brand.dev 0.1.0.pre.alpha.4 → 0.1.0.pre.alpha.6

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/brand_dev/models/brand_ai_query_params.rb +14 -1
  5. data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +14 -1
  6. data/lib/brand_dev/models/brand_prefetch_params.rb +14 -1
  7. data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +14 -1
  8. data/lib/brand_dev/models/brand_retrieve_naics_params.rb +11 -1
  9. data/lib/brand_dev/models/brand_retrieve_params.rb +13 -3
  10. data/lib/brand_dev/models/brand_search_params.rb +14 -1
  11. data/lib/brand_dev/resources/brand.rb +41 -12
  12. data/lib/brand_dev/version.rb +1 -1
  13. data/rbi/brand_dev/models/brand_ai_query_params.rbi +15 -0
  14. data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +15 -0
  15. data/rbi/brand_dev/models/brand_prefetch_params.rbi +19 -1
  16. data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +19 -1
  17. data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +19 -1
  18. data/rbi/brand_dev/models/brand_retrieve_params.rbi +19 -4
  19. data/rbi/brand_dev/models/brand_search_params.rbi +19 -1
  20. data/rbi/brand_dev/resources/brand.rbi +37 -2
  21. data/sig/brand_dev/models/brand_ai_query_params.rbs +8 -1
  22. data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +7 -1
  23. data/sig/brand_dev/models/brand_prefetch_params.rbs +8 -1
  24. data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +8 -1
  25. data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +8 -1
  26. data/sig/brand_dev/models/brand_retrieve_params.rbs +8 -1
  27. data/sig/brand_dev/models/brand_search_params.rbs +8 -1
  28. data/sig/brand_dev/resources/brand.rbs +7 -0
  29. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7838f8c194543e8e3ba05ae68343cc13ea4aed8ceabcb0502530061da5a41ac
4
- data.tar.gz: 9036c6faf4fee43e86625466038184bd93b1c3118ccfcdc132b2d00dabf30fe3
3
+ metadata.gz: 0ff1c1363e8b548d944f7b819d56f08f63583655abcfe8e050e24f4d2ee03dfb
4
+ data.tar.gz: 3cc411e59f0cda02a786942b934b07aa66e4af07884afa849042bdc07c7e17c5
5
5
  SHA512:
6
- metadata.gz: c7b864fff0ccfb6e158d491159cbed2efbb9e497245f5c35779b010ddfa74e43538a228cd7041623da7d806c19a1288ddeea4db6983a3b4a7caf9776e4642613
7
- data.tar.gz: 1e7fc08296c8f69cc226b9f84337a48fc90043f1943057f4892841a412200c7a17bb827cd4a34db3b8a983ad4464ea7d877e4213eae8cefb9338b2452e015f15
6
+ metadata.gz: 813bd1adf601daf718337c4a4f5e764b8af9630c6ee8351e28b5aa55965c1d4f4b284105a041687e1fac2b0fe91903da7db8d32359fff82a9db6a5e6c9c854a5
7
+ data.tar.gz: bbf2e2fd8da681b98115655ae937de097f6c864114ebdcbe56cf88b3e1ecd19fd724e19bc17febe79da9aaf049307f85a6446eadc5a25ebf32da3bc7c3dac84e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.6 (2025-06-08)
4
+
5
+ Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([aa20a00](https://github.com/brand-dot-dev/ruby-sdk/commit/aa20a0054ed6afaea030f1391f50b94b9e019b17))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** version bump ([223cabb](https://github.com/brand-dot-dev/ruby-sdk/commit/223cabb690bebf1e41c54c6cc1c3367b81d9bb98))
15
+
16
+ ## 0.1.0-alpha.5 (2025-06-06)
17
+
18
+ Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
19
+
20
+ ### Features
21
+
22
+ * **api:** manual updates ([d07e957](https://github.com/brand-dot-dev/ruby-sdk/commit/d07e957a8e10c10626468008285953a205b6dafc))
23
+
24
+
25
+ ### Chores
26
+
27
+ * **internal:** version bump ([6b3a243](https://github.com/brand-dot-dev/ruby-sdk/commit/6b3a2437ab0592fee82bc4829e048937f54d9e18))
28
+
3
29
  ## 0.1.0-alpha.4 (2025-06-06)
4
30
 
5
31
  Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
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.4"
18
+ gem "brand.dev", "~> 0.1.0.pre.alpha.6"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -26,13 +26,26 @@ module BrandDev
26
26
  # @return [BrandDev::Models::BrandAIQueryParams::SpecificPages, nil]
27
27
  optional :specific_pages, -> { BrandDev::BrandAIQueryParams::SpecificPages }
28
28
 
29
- # @!method initialize(data_to_extract:, domain:, specific_pages: nil, request_options: {})
29
+ # @!attribute timeout_ms
30
+ # Optional timeout in milliseconds for the request. If the request takes longer
31
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
32
+ # value is 300000ms (5 minutes).
33
+ #
34
+ # @return [Integer, nil]
35
+ optional :timeout_ms, Integer, api_name: :timeoutMS
36
+
37
+ # @!method initialize(data_to_extract:, domain:, specific_pages: nil, timeout_ms: nil, request_options: {})
38
+ # Some parameter documentations has been truncated, see
39
+ # {BrandDev::Models::BrandAIQueryParams} for more details.
40
+ #
30
41
  # @param data_to_extract [Array<BrandDev::Models::BrandAIQueryParams::DataToExtract>] Array of data points to extract from the website
31
42
  #
32
43
  # @param domain [String] The domain name to analyze
33
44
  #
34
45
  # @param specific_pages [BrandDev::Models::BrandAIQueryParams::SpecificPages] Optional object specifying which pages to analyze
35
46
  #
47
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
48
+ #
36
49
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
37
50
 
38
51
  class DataToExtract < BrandDev::Internal::Type::BaseModel
@@ -13,9 +13,22 @@ module BrandDev
13
13
  # @return [String]
14
14
  required :transaction_info, String
15
15
 
16
- # @!method initialize(transaction_info:, request_options: {})
16
+ # @!attribute timeout_ms
17
+ # Optional timeout in milliseconds for the request. If the request takes longer
18
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
19
+ # value is 300000ms (5 minutes).
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :timeout_ms, Integer
23
+
24
+ # @!method initialize(transaction_info:, timeout_ms: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {BrandDev::Models::BrandIdentifyFromTransactionParams} for more details.
27
+ #
17
28
  # @param transaction_info [String] Transaction information to identify the brand
18
29
  #
30
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
31
+ #
19
32
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
20
33
  end
21
34
  end
@@ -13,9 +13,22 @@ module BrandDev
13
13
  # @return [String]
14
14
  required :domain, String
15
15
 
16
- # @!method initialize(domain:, request_options: {})
16
+ # @!attribute timeout_ms
17
+ # Optional timeout in milliseconds for the request. If the request takes longer
18
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
19
+ # value is 300000ms (5 minutes).
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :timeout_ms, Integer, api_name: :timeoutMS
23
+
24
+ # @!method initialize(domain:, timeout_ms: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {BrandDev::Models::BrandPrefetchParams} for more details.
27
+ #
17
28
  # @param domain [String] Domain name to prefetch brand data for
18
29
  #
30
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
31
+ #
19
32
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
20
33
  end
21
34
  end
@@ -13,9 +13,22 @@ module BrandDev
13
13
  # @return [String]
14
14
  required :ticker, String
15
15
 
16
- # @!method initialize(ticker:, request_options: {})
16
+ # @!attribute timeout_ms
17
+ # Optional timeout in milliseconds for the request. If the request takes longer
18
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
19
+ # value is 300000ms (5 minutes).
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :timeout_ms, Integer
23
+
24
+ # @!method initialize(ticker:, timeout_ms: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {BrandDev::Models::BrandRetrieveByTickerParams} for more details.
27
+ #
17
28
  # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
18
29
  #
30
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
31
+ #
19
32
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
20
33
  end
21
34
  end
@@ -15,12 +15,22 @@ module BrandDev
15
15
  # @return [String]
16
16
  required :input, String
17
17
 
18
- # @!method initialize(input:, request_options: {})
18
+ # @!attribute timeout_ms
19
+ # Optional timeout in milliseconds for the request. If the request takes longer
20
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
21
+ # value is 300000ms (5 minutes).
22
+ #
23
+ # @return [Integer, nil]
24
+ optional :timeout_ms, Integer
25
+
26
+ # @!method initialize(input:, timeout_ms: nil, request_options: {})
19
27
  # Some parameter documentations has been truncated, see
20
28
  # {BrandDev::Models::BrandRetrieveNaicsParams} for more details.
21
29
  #
22
30
  # @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
23
31
  #
32
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
33
+ #
24
34
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
25
35
  end
26
36
  end
@@ -21,13 +21,21 @@ module BrandDev
21
21
 
22
22
  # @!attribute max_speed
23
23
  # Optional parameter to optimize the API call for maximum speed. When set to true,
24
- # the API will skip social media data extraction and external service calls (like
25
- # Crunchbase) to return results faster with basic brand information only.
24
+ # the API will skip time-consuming operations for faster response at the cost of
25
+ # less comprehensive data.
26
26
  #
27
27
  # @return [Boolean, nil]
28
28
  optional :max_speed, BrandDev::Internal::Type::Boolean
29
29
 
30
- # @!method initialize(domain:, force_language: nil, max_speed: nil, request_options: {})
30
+ # @!attribute timeout_ms
31
+ # Optional timeout in milliseconds for the request. If the request takes longer
32
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
33
+ # value is 300000ms (5 minutes).
34
+ #
35
+ # @return [Integer, nil]
36
+ optional :timeout_ms, Integer
37
+
38
+ # @!method initialize(domain:, force_language: nil, max_speed: nil, timeout_ms: nil, request_options: {})
31
39
  # Some parameter documentations has been truncated, see
32
40
  # {BrandDev::Models::BrandRetrieveParams} for more details.
33
41
  #
@@ -37,6 +45,8 @@ module BrandDev
37
45
  #
38
46
  # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
39
47
  #
48
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
49
+ #
40
50
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
41
51
 
42
52
  # Optional parameter to force the language of the retrieved brand data
@@ -13,9 +13,22 @@ module BrandDev
13
13
  # @return [String]
14
14
  required :query, String
15
15
 
16
- # @!method initialize(query:, request_options: {})
16
+ # @!attribute timeout_ms
17
+ # Optional timeout in milliseconds for the request. If the request takes longer
18
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
19
+ # value is 300000ms (5 minutes).
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :timeout_ms, Integer
23
+
24
+ # @!method initialize(query:, timeout_ms: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {BrandDev::Models::BrandSearchParams} for more details.
27
+ #
17
28
  # @param query [String] Query string to search brands
18
29
  #
30
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
31
+ #
19
32
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
20
33
  end
21
34
  end
@@ -8,7 +8,7 @@ module BrandDev
8
8
  #
9
9
  # Retrieve brand data by domain
10
10
  #
11
- # @overload retrieve(domain:, force_language: nil, max_speed: nil, request_options: {})
11
+ # @overload retrieve(domain:, force_language: nil, max_speed: nil, timeout_ms: nil, request_options: {})
12
12
  #
13
13
  # @param domain [String] Domain name to retrieve brand data for
14
14
  #
@@ -16,6 +16,8 @@ module BrandDev
16
16
  #
17
17
  # @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
18
18
  #
19
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
20
+ #
19
21
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
20
22
  #
21
23
  # @return [BrandDev::Models::BrandRetrieveResponse]
@@ -26,17 +28,20 @@ module BrandDev
26
28
  @client.request(
27
29
  method: :get,
28
30
  path: "brand/retrieve",
29
- query: parsed.transform_keys(max_speed: "maxSpeed"),
31
+ query: parsed.transform_keys(max_speed: "maxSpeed", timeout_ms: "timeoutMS"),
30
32
  model: BrandDev::Models::BrandRetrieveResponse,
31
33
  options: options
32
34
  )
33
35
  end
34
36
 
37
+ # Some parameter documentations has been truncated, see
38
+ # {BrandDev::Models::BrandAIQueryParams} for more details.
39
+ #
35
40
  # Beta feature: Use AI to extract specific data points from a brand's website. The
36
41
  # AI will crawl the website and extract the requested information based on the
37
42
  # provided data points.
38
43
  #
39
- # @overload ai_query(data_to_extract:, domain:, specific_pages: nil, request_options: {})
44
+ # @overload ai_query(data_to_extract:, domain:, specific_pages: nil, timeout_ms: nil, request_options: {})
40
45
  #
41
46
  # @param data_to_extract [Array<BrandDev::Models::BrandAIQueryParams::DataToExtract>] Array of data points to extract from the website
42
47
  #
@@ -44,6 +49,8 @@ module BrandDev
44
49
  #
45
50
  # @param specific_pages [BrandDev::Models::BrandAIQueryParams::SpecificPages] Optional object specifying which pages to analyze
46
51
  #
52
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
53
+ #
47
54
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
48
55
  #
49
56
  # @return [BrandDev::Models::BrandAIQueryResponse]
@@ -60,13 +67,18 @@ module BrandDev
60
67
  )
61
68
  end
62
69
 
70
+ # Some parameter documentations has been truncated, see
71
+ # {BrandDev::Models::BrandIdentifyFromTransactionParams} for more details.
72
+ #
63
73
  # Endpoint specially designed for platforms that want to identify transaction data
64
74
  # by the transaction title.
65
75
  #
66
- # @overload identify_from_transaction(transaction_info:, request_options: {})
76
+ # @overload identify_from_transaction(transaction_info:, timeout_ms: nil, request_options: {})
67
77
  #
68
78
  # @param transaction_info [String] Transaction information to identify the brand
69
79
  #
80
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
81
+ #
70
82
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
71
83
  #
72
84
  # @return [BrandDev::Models::BrandIdentifyFromTransactionResponse]
@@ -77,21 +89,26 @@ module BrandDev
77
89
  @client.request(
78
90
  method: :get,
79
91
  path: "brand/transaction_identifier",
80
- query: parsed,
92
+ query: parsed.transform_keys(timeout_ms: "timeoutMS"),
81
93
  model: BrandDev::Models::BrandIdentifyFromTransactionResponse,
82
94
  options: options
83
95
  )
84
96
  end
85
97
 
98
+ # Some parameter documentations has been truncated, see
99
+ # {BrandDev::Models::BrandPrefetchParams} for more details.
100
+ #
86
101
  # Signal that you may fetch brand data for a particular domain soon to improve
87
102
  # latency. This endpoint does not charge credits and is available for paid
88
103
  # customers to optimize future requests. [You must be on a paid plan to use this
89
104
  # endpoint]
90
105
  #
91
- # @overload prefetch(domain:, request_options: {})
106
+ # @overload prefetch(domain:, timeout_ms: nil, request_options: {})
92
107
  #
93
108
  # @param domain [String] Domain name to prefetch brand data for
94
109
  #
110
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
111
+ #
95
112
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
96
113
  #
97
114
  # @return [BrandDev::Models::BrandPrefetchResponse]
@@ -108,12 +125,17 @@ module BrandDev
108
125
  )
109
126
  end
110
127
 
128
+ # Some parameter documentations has been truncated, see
129
+ # {BrandDev::Models::BrandRetrieveByTickerParams} for more details.
130
+ #
111
131
  # Retrieve brand data by stock ticker (e.g. AAPL, TSLA, etc.)
112
132
  #
113
- # @overload retrieve_by_ticker(ticker:, request_options: {})
133
+ # @overload retrieve_by_ticker(ticker:, timeout_ms: nil, request_options: {})
114
134
  #
115
135
  # @param ticker [String] Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
116
136
  #
137
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
138
+ #
117
139
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
118
140
  #
119
141
  # @return [BrandDev::Models::BrandRetrieveByTickerResponse]
@@ -124,7 +146,7 @@ module BrandDev
124
146
  @client.request(
125
147
  method: :get,
126
148
  path: "brand/retrieve-by-ticker",
127
- query: parsed,
149
+ query: parsed.transform_keys(timeout_ms: "timeoutMS"),
128
150
  model: BrandDev::Models::BrandRetrieveByTickerResponse,
129
151
  options: options
130
152
  )
@@ -135,10 +157,12 @@ module BrandDev
135
157
  #
136
158
  # Endpoint to classify any brand into a 2022 NAICS code.
137
159
  #
138
- # @overload retrieve_naics(input:, request_options: {})
160
+ # @overload retrieve_naics(input:, timeout_ms: nil, request_options: {})
139
161
  #
140
162
  # @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
141
163
  #
164
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
165
+ #
142
166
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
143
167
  #
144
168
  # @return [BrandDev::Models::BrandRetrieveNaicsResponse]
@@ -149,18 +173,23 @@ module BrandDev
149
173
  @client.request(
150
174
  method: :get,
151
175
  path: "brand/naics",
152
- query: parsed,
176
+ query: parsed.transform_keys(timeout_ms: "timeoutMS"),
153
177
  model: BrandDev::Models::BrandRetrieveNaicsResponse,
154
178
  options: options
155
179
  )
156
180
  end
157
181
 
182
+ # Some parameter documentations has been truncated, see
183
+ # {BrandDev::Models::BrandSearchParams} for more details.
184
+ #
158
185
  # Search brands by query
159
186
  #
160
- # @overload search(query:, request_options: {})
187
+ # @overload search(query:, timeout_ms: nil, request_options: {})
161
188
  #
162
189
  # @param query [String] Query string to search brands
163
190
  #
191
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
192
+ #
164
193
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
165
194
  #
166
195
  # @return [Array<BrandDev::Models::BrandSearchResponseItem>]
@@ -171,7 +200,7 @@ module BrandDev
171
200
  @client.request(
172
201
  method: :get,
173
202
  path: "brand/search",
174
- query: parsed,
203
+ query: parsed.transform_keys(timeout_ms: "timeoutMS"),
175
204
  model: BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandSearchResponseItem],
176
205
  options: options
177
206
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrandDev
4
- VERSION = "0.1.0.pre.alpha.4"
4
+ VERSION = "0.1.0.pre.alpha.6"
5
5
  end
@@ -30,12 +30,22 @@ module BrandDev
30
30
  end
31
31
  attr_writer :specific_pages
32
32
 
33
+ # Optional timeout in milliseconds for the request. If the request takes longer
34
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
35
+ # value is 300000ms (5 minutes).
36
+ sig { returns(T.nilable(Integer)) }
37
+ attr_reader :timeout_ms
38
+
39
+ sig { params(timeout_ms: Integer).void }
40
+ attr_writer :timeout_ms
41
+
33
42
  sig do
34
43
  params(
35
44
  data_to_extract:
36
45
  T::Array[BrandDev::BrandAIQueryParams::DataToExtract::OrHash],
37
46
  domain: String,
38
47
  specific_pages: BrandDev::BrandAIQueryParams::SpecificPages::OrHash,
48
+ timeout_ms: Integer,
39
49
  request_options: BrandDev::RequestOptions::OrHash
40
50
  ).returns(T.attached_class)
41
51
  end
@@ -46,6 +56,10 @@ module BrandDev
46
56
  domain:,
47
57
  # Optional object specifying which pages to analyze
48
58
  specific_pages: nil,
59
+ # Optional timeout in milliseconds for the request. If the request takes longer
60
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
61
+ # value is 300000ms (5 minutes).
62
+ timeout_ms: nil,
49
63
  request_options: {}
50
64
  )
51
65
  end
@@ -57,6 +71,7 @@ module BrandDev
57
71
  T::Array[BrandDev::BrandAIQueryParams::DataToExtract],
58
72
  domain: String,
59
73
  specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
74
+ timeout_ms: Integer,
60
75
  request_options: BrandDev::RequestOptions
61
76
  }
62
77
  )
@@ -18,15 +18,29 @@ module BrandDev
18
18
  sig { returns(String) }
19
19
  attr_accessor :transaction_info
20
20
 
21
+ # Optional timeout in milliseconds for the request. If the request takes longer
22
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
23
+ # value is 300000ms (5 minutes).
24
+ sig { returns(T.nilable(Integer)) }
25
+ attr_reader :timeout_ms
26
+
27
+ sig { params(timeout_ms: Integer).void }
28
+ attr_writer :timeout_ms
29
+
21
30
  sig do
22
31
  params(
23
32
  transaction_info: String,
33
+ timeout_ms: Integer,
24
34
  request_options: BrandDev::RequestOptions::OrHash
25
35
  ).returns(T.attached_class)
26
36
  end
27
37
  def self.new(
28
38
  # Transaction information to identify the brand
29
39
  transaction_info:,
40
+ # Optional timeout in milliseconds for the request. If the request takes longer
41
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
42
+ # value is 300000ms (5 minutes).
43
+ timeout_ms: nil,
30
44
  request_options: {}
31
45
  )
32
46
  end
@@ -35,6 +49,7 @@ module BrandDev
35
49
  override.returns(
36
50
  {
37
51
  transaction_info: String,
52
+ timeout_ms: Integer,
38
53
  request_options: BrandDev::RequestOptions
39
54
  }
40
55
  )
@@ -15,22 +15,40 @@ module BrandDev
15
15
  sig { returns(String) }
16
16
  attr_accessor :domain
17
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
+
18
27
  sig do
19
28
  params(
20
29
  domain: String,
30
+ timeout_ms: Integer,
21
31
  request_options: BrandDev::RequestOptions::OrHash
22
32
  ).returns(T.attached_class)
23
33
  end
24
34
  def self.new(
25
35
  # Domain name to prefetch brand data for
26
36
  domain:,
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,
27
41
  request_options: {}
28
42
  )
29
43
  end
30
44
 
31
45
  sig do
32
46
  override.returns(
33
- { domain: String, request_options: BrandDev::RequestOptions }
47
+ {
48
+ domain: String,
49
+ timeout_ms: Integer,
50
+ request_options: BrandDev::RequestOptions
51
+ }
34
52
  )
35
53
  end
36
54
  def to_hash
@@ -18,22 +18,40 @@ module BrandDev
18
18
  sig { returns(String) }
19
19
  attr_accessor :ticker
20
20
 
21
+ # Optional timeout in milliseconds for the request. If the request takes longer
22
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
23
+ # value is 300000ms (5 minutes).
24
+ sig { returns(T.nilable(Integer)) }
25
+ attr_reader :timeout_ms
26
+
27
+ sig { params(timeout_ms: Integer).void }
28
+ attr_writer :timeout_ms
29
+
21
30
  sig do
22
31
  params(
23
32
  ticker: String,
33
+ timeout_ms: Integer,
24
34
  request_options: BrandDev::RequestOptions::OrHash
25
35
  ).returns(T.attached_class)
26
36
  end
27
37
  def self.new(
28
38
  # Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
29
39
  ticker:,
40
+ # Optional timeout in milliseconds for the request. If the request takes longer
41
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
42
+ # value is 300000ms (5 minutes).
43
+ timeout_ms: nil,
30
44
  request_options: {}
31
45
  )
32
46
  end
33
47
 
34
48
  sig do
35
49
  override.returns(
36
- { ticker: String, request_options: BrandDev::RequestOptions }
50
+ {
51
+ ticker: String,
52
+ timeout_ms: Integer,
53
+ request_options: BrandDev::RequestOptions
54
+ }
37
55
  )
38
56
  end
39
57
  def to_hash
@@ -17,9 +17,19 @@ module BrandDev
17
17
  sig { returns(String) }
18
18
  attr_accessor :input
19
19
 
20
+ # Optional timeout in milliseconds for the request. If the request takes longer
21
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
22
+ # value is 300000ms (5 minutes).
23
+ sig { returns(T.nilable(Integer)) }
24
+ attr_reader :timeout_ms
25
+
26
+ sig { params(timeout_ms: Integer).void }
27
+ attr_writer :timeout_ms
28
+
20
29
  sig do
21
30
  params(
22
31
  input: String,
32
+ timeout_ms: Integer,
23
33
  request_options: BrandDev::RequestOptions::OrHash
24
34
  ).returns(T.attached_class)
25
35
  end
@@ -28,13 +38,21 @@ module BrandDev
28
38
  # in `input`, it will be used for classification, otherwise, we will search for
29
39
  # the brand using the provided title.
30
40
  input:,
41
+ # Optional timeout in milliseconds for the request. If the request takes longer
42
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
43
+ # value is 300000ms (5 minutes).
44
+ timeout_ms: nil,
31
45
  request_options: {}
32
46
  )
33
47
  end
34
48
 
35
49
  sig do
36
50
  override.returns(
37
- { input: String, request_options: BrandDev::RequestOptions }
51
+ {
52
+ input: String,
53
+ timeout_ms: Integer,
54
+ request_options: BrandDev::RequestOptions
55
+ }
38
56
  )
39
57
  end
40
58
  def to_hash
@@ -31,20 +31,30 @@ module BrandDev
31
31
  attr_writer :force_language
32
32
 
33
33
  # Optional parameter to optimize the API call for maximum speed. When set to true,
34
- # the API will skip social media data extraction and external service calls (like
35
- # Crunchbase) to return results faster with basic brand information only.
34
+ # the API will skip time-consuming operations for faster response at the cost of
35
+ # less comprehensive data.
36
36
  sig { returns(T.nilable(T::Boolean)) }
37
37
  attr_reader :max_speed
38
38
 
39
39
  sig { params(max_speed: T::Boolean).void }
40
40
  attr_writer :max_speed
41
41
 
42
+ # Optional timeout in milliseconds for the request. If the request takes longer
43
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
44
+ # value is 300000ms (5 minutes).
45
+ sig { returns(T.nilable(Integer)) }
46
+ attr_reader :timeout_ms
47
+
48
+ sig { params(timeout_ms: Integer).void }
49
+ attr_writer :timeout_ms
50
+
42
51
  sig do
43
52
  params(
44
53
  domain: String,
45
54
  force_language:
46
55
  BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
47
56
  max_speed: T::Boolean,
57
+ timeout_ms: Integer,
48
58
  request_options: BrandDev::RequestOptions::OrHash
49
59
  ).returns(T.attached_class)
50
60
  end
@@ -54,9 +64,13 @@ module BrandDev
54
64
  # Optional parameter to force the language of the retrieved brand data
55
65
  force_language: nil,
56
66
  # Optional parameter to optimize the API call for maximum speed. When set to true,
57
- # the API will skip social media data extraction and external service calls (like
58
- # Crunchbase) to return results faster with basic brand information only.
67
+ # the API will skip time-consuming operations for faster response at the cost of
68
+ # less comprehensive data.
59
69
  max_speed: nil,
70
+ # Optional timeout in milliseconds for the request. If the request takes longer
71
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
72
+ # value is 300000ms (5 minutes).
73
+ timeout_ms: nil,
60
74
  request_options: {}
61
75
  )
62
76
  end
@@ -68,6 +82,7 @@ module BrandDev
68
82
  force_language:
69
83
  BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
70
84
  max_speed: T::Boolean,
85
+ timeout_ms: Integer,
71
86
  request_options: BrandDev::RequestOptions
72
87
  }
73
88
  )
@@ -15,22 +15,40 @@ module BrandDev
15
15
  sig { returns(String) }
16
16
  attr_accessor :query
17
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
+
18
27
  sig do
19
28
  params(
20
29
  query: String,
30
+ timeout_ms: Integer,
21
31
  request_options: BrandDev::RequestOptions::OrHash
22
32
  ).returns(T.attached_class)
23
33
  end
24
34
  def self.new(
25
35
  # Query string to search brands
26
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,
27
41
  request_options: {}
28
42
  )
29
43
  end
30
44
 
31
45
  sig do
32
46
  override.returns(
33
- { query: String, request_options: BrandDev::RequestOptions }
47
+ {
48
+ query: String,
49
+ timeout_ms: Integer,
50
+ request_options: BrandDev::RequestOptions
51
+ }
34
52
  )
35
53
  end
36
54
  def to_hash
@@ -10,6 +10,7 @@ module BrandDev
10
10
  force_language:
11
11
  BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
12
12
  max_speed: T::Boolean,
13
+ timeout_ms: Integer,
13
14
  request_options: BrandDev::RequestOptions::OrHash
14
15
  ).returns(BrandDev::Models::BrandRetrieveResponse)
15
16
  end
@@ -19,9 +20,13 @@ module BrandDev
19
20
  # Optional parameter to force the language of the retrieved brand data
20
21
  force_language: nil,
21
22
  # Optional parameter to optimize the API call for maximum speed. When set to true,
22
- # the API will skip social media data extraction and external service calls (like
23
- # Crunchbase) to return results faster with basic brand information only.
23
+ # the API will skip time-consuming operations for faster response at the cost of
24
+ # less comprehensive data.
24
25
  max_speed: nil,
26
+ # Optional timeout in milliseconds for the request. If the request takes longer
27
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
28
+ # value is 300000ms (5 minutes).
29
+ timeout_ms: nil,
25
30
  request_options: {}
26
31
  )
27
32
  end
@@ -35,6 +40,7 @@ module BrandDev
35
40
  T::Array[BrandDev::BrandAIQueryParams::DataToExtract::OrHash],
36
41
  domain: String,
37
42
  specific_pages: BrandDev::BrandAIQueryParams::SpecificPages::OrHash,
43
+ timeout_ms: Integer,
38
44
  request_options: BrandDev::RequestOptions::OrHash
39
45
  ).returns(BrandDev::Models::BrandAIQueryResponse)
40
46
  end
@@ -45,6 +51,10 @@ module BrandDev
45
51
  domain:,
46
52
  # Optional object specifying which pages to analyze
47
53
  specific_pages: nil,
54
+ # Optional timeout in milliseconds for the request. If the request takes longer
55
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
56
+ # value is 300000ms (5 minutes).
57
+ timeout_ms: nil,
48
58
  request_options: {}
49
59
  )
50
60
  end
@@ -54,12 +64,17 @@ module BrandDev
54
64
  sig do
55
65
  params(
56
66
  transaction_info: String,
67
+ timeout_ms: Integer,
57
68
  request_options: BrandDev::RequestOptions::OrHash
58
69
  ).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse)
59
70
  end
60
71
  def identify_from_transaction(
61
72
  # Transaction information to identify the brand
62
73
  transaction_info:,
74
+ # Optional timeout in milliseconds for the request. If the request takes longer
75
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
76
+ # value is 300000ms (5 minutes).
77
+ timeout_ms: nil,
63
78
  request_options: {}
64
79
  )
65
80
  end
@@ -71,12 +86,17 @@ module BrandDev
71
86
  sig do
72
87
  params(
73
88
  domain: String,
89
+ timeout_ms: Integer,
74
90
  request_options: BrandDev::RequestOptions::OrHash
75
91
  ).returns(BrandDev::Models::BrandPrefetchResponse)
76
92
  end
77
93
  def prefetch(
78
94
  # Domain name to prefetch brand data for
79
95
  domain:,
96
+ # Optional timeout in milliseconds for the request. If the request takes longer
97
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
98
+ # value is 300000ms (5 minutes).
99
+ timeout_ms: nil,
80
100
  request_options: {}
81
101
  )
82
102
  end
@@ -85,12 +105,17 @@ module BrandDev
85
105
  sig do
86
106
  params(
87
107
  ticker: String,
108
+ timeout_ms: Integer,
88
109
  request_options: BrandDev::RequestOptions::OrHash
89
110
  ).returns(BrandDev::Models::BrandRetrieveByTickerResponse)
90
111
  end
91
112
  def retrieve_by_ticker(
92
113
  # Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
93
114
  ticker:,
115
+ # Optional timeout in milliseconds for the request. If the request takes longer
116
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
117
+ # value is 300000ms (5 minutes).
118
+ timeout_ms: nil,
94
119
  request_options: {}
95
120
  )
96
121
  end
@@ -99,6 +124,7 @@ module BrandDev
99
124
  sig do
100
125
  params(
101
126
  input: String,
127
+ timeout_ms: Integer,
102
128
  request_options: BrandDev::RequestOptions::OrHash
103
129
  ).returns(BrandDev::Models::BrandRetrieveNaicsResponse)
104
130
  end
@@ -107,6 +133,10 @@ module BrandDev
107
133
  # in `input`, it will be used for classification, otherwise, we will search for
108
134
  # the brand using the provided title.
109
135
  input:,
136
+ # Optional timeout in milliseconds for the request. If the request takes longer
137
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
138
+ # value is 300000ms (5 minutes).
139
+ timeout_ms: nil,
110
140
  request_options: {}
111
141
  )
112
142
  end
@@ -115,12 +145,17 @@ module BrandDev
115
145
  sig do
116
146
  params(
117
147
  query: String,
148
+ timeout_ms: Integer,
118
149
  request_options: BrandDev::RequestOptions::OrHash
119
150
  ).returns(T::Array[BrandDev::Models::BrandSearchResponseItem])
120
151
  end
121
152
  def search(
122
153
  # Query string to search brands
123
154
  query:,
155
+ # Optional timeout in milliseconds for the request. If the request takes longer
156
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
157
+ # value is 300000ms (5 minutes).
158
+ timeout_ms: nil,
124
159
  request_options: {}
125
160
  )
126
161
  end
@@ -4,7 +4,8 @@ module BrandDev
4
4
  {
5
5
  data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
6
6
  domain: String,
7
- specific_pages: BrandDev::BrandAIQueryParams::SpecificPages
7
+ specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
8
+ timeout_ms: Integer
8
9
  }
9
10
  & BrandDev::Internal::Type::request_parameters
10
11
 
@@ -22,10 +23,15 @@ module BrandDev
22
23
  BrandDev::BrandAIQueryParams::SpecificPages
23
24
  ) -> BrandDev::BrandAIQueryParams::SpecificPages
24
25
 
26
+ attr_reader timeout_ms: Integer?
27
+
28
+ def timeout_ms=: (Integer) -> Integer
29
+
25
30
  def initialize: (
26
31
  data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
27
32
  domain: String,
28
33
  ?specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
34
+ ?timeout_ms: Integer,
29
35
  ?request_options: BrandDev::request_opts
30
36
  ) -> void
31
37
 
@@ -33,6 +39,7 @@ module BrandDev
33
39
  data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
34
40
  domain: String,
35
41
  specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
42
+ timeout_ms: Integer,
36
43
  request_options: BrandDev::RequestOptions
37
44
  }
38
45
 
@@ -1,7 +1,7 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_identify_from_transaction_params =
4
- { transaction_info: String }
4
+ { transaction_info: String, timeout_ms: Integer }
5
5
  & BrandDev::Internal::Type::request_parameters
6
6
 
7
7
  class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
@@ -10,13 +10,19 @@ module BrandDev
10
10
 
11
11
  attr_accessor transaction_info: String
12
12
 
13
+ attr_reader timeout_ms: Integer?
14
+
15
+ def timeout_ms=: (Integer) -> Integer
16
+
13
17
  def initialize: (
14
18
  transaction_info: String,
19
+ ?timeout_ms: Integer,
15
20
  ?request_options: BrandDev::request_opts
16
21
  ) -> void
17
22
 
18
23
  def to_hash: -> {
19
24
  transaction_info: String,
25
+ timeout_ms: Integer,
20
26
  request_options: BrandDev::RequestOptions
21
27
  }
22
28
  end
@@ -1,7 +1,8 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_prefetch_params =
4
- { domain: String } & BrandDev::Internal::Type::request_parameters
4
+ { domain: String, timeout_ms: Integer }
5
+ & BrandDev::Internal::Type::request_parameters
5
6
 
6
7
  class BrandPrefetchParams < BrandDev::Internal::Type::BaseModel
7
8
  extend BrandDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module BrandDev
9
10
 
10
11
  attr_accessor domain: String
11
12
 
13
+ attr_reader timeout_ms: Integer?
14
+
15
+ def timeout_ms=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  domain: String,
19
+ ?timeout_ms: Integer,
14
20
  ?request_options: BrandDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  domain: String,
25
+ timeout_ms: Integer,
19
26
  request_options: BrandDev::RequestOptions
20
27
  }
21
28
  end
@@ -1,7 +1,8 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_retrieve_by_ticker_params =
4
- { ticker: String } & BrandDev::Internal::Type::request_parameters
4
+ { ticker: String, timeout_ms: Integer }
5
+ & BrandDev::Internal::Type::request_parameters
5
6
 
6
7
  class BrandRetrieveByTickerParams < BrandDev::Internal::Type::BaseModel
7
8
  extend BrandDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module BrandDev
9
10
 
10
11
  attr_accessor ticker: String
11
12
 
13
+ attr_reader timeout_ms: Integer?
14
+
15
+ def timeout_ms=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  ticker: String,
19
+ ?timeout_ms: Integer,
14
20
  ?request_options: BrandDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  ticker: String,
25
+ timeout_ms: Integer,
19
26
  request_options: BrandDev::RequestOptions
20
27
  }
21
28
  end
@@ -1,7 +1,8 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_retrieve_naics_params =
4
- { input: String } & BrandDev::Internal::Type::request_parameters
4
+ { input: String, timeout_ms: Integer }
5
+ & BrandDev::Internal::Type::request_parameters
5
6
 
6
7
  class BrandRetrieveNaicsParams < BrandDev::Internal::Type::BaseModel
7
8
  extend BrandDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module BrandDev
9
10
 
10
11
  attr_accessor input: String
11
12
 
13
+ attr_reader timeout_ms: Integer?
14
+
15
+ def timeout_ms=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  input: String,
19
+ ?timeout_ms: Integer,
14
20
  ?request_options: BrandDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  input: String,
25
+ timeout_ms: Integer,
19
26
  request_options: BrandDev::RequestOptions
20
27
  }
21
28
  end
@@ -4,7 +4,8 @@ module BrandDev
4
4
  {
5
5
  domain: String,
6
6
  force_language: BrandDev::Models::BrandRetrieveParams::force_language,
7
- max_speed: bool
7
+ max_speed: bool,
8
+ timeout_ms: Integer
8
9
  }
9
10
  & BrandDev::Internal::Type::request_parameters
10
11
 
@@ -24,10 +25,15 @@ module BrandDev
24
25
 
25
26
  def max_speed=: (bool) -> bool
26
27
 
28
+ attr_reader timeout_ms: Integer?
29
+
30
+ def timeout_ms=: (Integer) -> Integer
31
+
27
32
  def initialize: (
28
33
  domain: String,
29
34
  ?force_language: BrandDev::Models::BrandRetrieveParams::force_language,
30
35
  ?max_speed: bool,
36
+ ?timeout_ms: Integer,
31
37
  ?request_options: BrandDev::request_opts
32
38
  ) -> void
33
39
 
@@ -35,6 +41,7 @@ module BrandDev
35
41
  domain: String,
36
42
  force_language: BrandDev::Models::BrandRetrieveParams::force_language,
37
43
  max_speed: bool,
44
+ timeout_ms: Integer,
38
45
  request_options: BrandDev::RequestOptions
39
46
  }
40
47
 
@@ -1,7 +1,8 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_search_params =
4
- { query: String } & BrandDev::Internal::Type::request_parameters
4
+ { query: String, timeout_ms: Integer }
5
+ & BrandDev::Internal::Type::request_parameters
5
6
 
6
7
  class BrandSearchParams < BrandDev::Internal::Type::BaseModel
7
8
  extend BrandDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module BrandDev
9
10
 
10
11
  attr_accessor query: String
11
12
 
13
+ attr_reader timeout_ms: Integer?
14
+
15
+ def timeout_ms=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  query: String,
19
+ ?timeout_ms: Integer,
14
20
  ?request_options: BrandDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  query: String,
25
+ timeout_ms: Integer,
19
26
  request_options: BrandDev::RequestOptions
20
27
  }
21
28
  end
@@ -5,6 +5,7 @@ module BrandDev
5
5
  domain: String,
6
6
  ?force_language: BrandDev::Models::BrandRetrieveParams::force_language,
7
7
  ?max_speed: bool,
8
+ ?timeout_ms: Integer,
8
9
  ?request_options: BrandDev::request_opts
9
10
  ) -> BrandDev::Models::BrandRetrieveResponse
10
11
 
@@ -12,31 +13,37 @@ module BrandDev
12
13
  data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
13
14
  domain: String,
14
15
  ?specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
16
+ ?timeout_ms: Integer,
15
17
  ?request_options: BrandDev::request_opts
16
18
  ) -> BrandDev::Models::BrandAIQueryResponse
17
19
 
18
20
  def identify_from_transaction: (
19
21
  transaction_info: String,
22
+ ?timeout_ms: Integer,
20
23
  ?request_options: BrandDev::request_opts
21
24
  ) -> BrandDev::Models::BrandIdentifyFromTransactionResponse
22
25
 
23
26
  def prefetch: (
24
27
  domain: String,
28
+ ?timeout_ms: Integer,
25
29
  ?request_options: BrandDev::request_opts
26
30
  ) -> BrandDev::Models::BrandPrefetchResponse
27
31
 
28
32
  def retrieve_by_ticker: (
29
33
  ticker: String,
34
+ ?timeout_ms: Integer,
30
35
  ?request_options: BrandDev::request_opts
31
36
  ) -> BrandDev::Models::BrandRetrieveByTickerResponse
32
37
 
33
38
  def retrieve_naics: (
34
39
  input: String,
40
+ ?timeout_ms: Integer,
35
41
  ?request_options: BrandDev::request_opts
36
42
  ) -> BrandDev::Models::BrandRetrieveNaicsResponse
37
43
 
38
44
  def search: (
39
45
  query: String,
46
+ ?timeout_ms: Integer,
40
47
  ?request_options: BrandDev::request_opts
41
48
  ) -> BrandDev::Models::brand_search_response
42
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
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
4
+ version: 0.1.0.pre.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brand Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-06 00:00:00.000000000 Z
11
+ date: 2025-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool