brand.dev 0.1.0.pre.alpha.13 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -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 +17 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +6 -26
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +6 -26
- data/lib/brand_dev/models/brand_retrieve_response.rb +6 -27
- 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 +22 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +9 -67
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +9 -67
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +9 -65
- 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 +14 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +5 -23
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +5 -23
- data/sig/brand_dev/models/brand_retrieve_response.rbs +5 -23
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 824d292c41a48213239b6d735b4603e5e00e06e78993cf0ef687aa52222c9755
|
4
|
+
data.tar.gz: fd40a5b5cab29332c6a1a25654015f31230523e059646ce75be08696c0605fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 134eb59e2cf2b53012812e2d0028e488ecfae96cc0a0bd18e79f0042421fde9d121a0e90d152e6093947a538367e121d97e89b6c5264d5b3ece7b884d99154c6
|
7
|
+
data.tar.gz: 6dec3e7ad876474973f234021971eb5dd751ac87f638dbee58a95f9915e79c7099c2281b3583e9667c150894409de7edb7cdf72ef5ca9a2b9bdef461de9c3757
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,46 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0 (2025-07-29)
|
4
|
+
|
5
|
+
Full Changelog: [v0.0.2...v0.1.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.0.2...v0.1.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** manual updates ([16b9bdc](https://github.com/brand-dot-dev/ruby-sdk/commit/16b9bdcdbcbac819a1120c93399195b102db34ed))
|
10
|
+
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
* **internal:** ensure sorbet test always runs serially ([b780fe6](https://github.com/brand-dot-dev/ruby-sdk/commit/b780fe622148d3af2db69a59c16470ebf82b3702))
|
15
|
+
|
16
|
+
|
17
|
+
### Chores
|
18
|
+
|
19
|
+
* **internal:** version bump ([d7516ea](https://github.com/brand-dot-dev/ruby-sdk/commit/d7516ea2cf7f6c5b21236d90fca254a91476d5ad))
|
20
|
+
* update contribute.md ([05a6bc4](https://github.com/brand-dot-dev/ruby-sdk/commit/05a6bc4264abb72f63d72ee43a0ba2fac7fd0511))
|
21
|
+
|
22
|
+
## 0.0.2 (2025-07-21)
|
23
|
+
|
24
|
+
Full Changelog: [v0.0.1...v0.0.2](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.0.1...v0.0.2)
|
25
|
+
|
26
|
+
### Chores
|
27
|
+
|
28
|
+
* **internal:** version bump ([c8553b7](https://github.com/brand-dot-dev/ruby-sdk/commit/c8553b728303284cda46b2a980743c5533932fdd))
|
29
|
+
|
30
|
+
## 0.0.1 (2025-07-21)
|
31
|
+
|
32
|
+
Full Changelog: [v0.1.0-alpha.13...v0.0.1](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.13...v0.0.1)
|
33
|
+
|
34
|
+
### Features
|
35
|
+
|
36
|
+
* **api:** manual updates ([cfaabba](https://github.com/brand-dot-dev/ruby-sdk/commit/cfaabbab93b68ba4926f78560d759d788e4b4b98))
|
37
|
+
|
38
|
+
|
39
|
+
### Chores
|
40
|
+
|
41
|
+
* **internal:** allow streams to also be unwrapped on a per-row basis ([99d7893](https://github.com/brand-dot-dev/ruby-sdk/commit/99d7893d01a3e111d49fb7c39e53bc9dd524f6b6))
|
42
|
+
* **internal:** version bump ([d51ca58](https://github.com/brand-dot-dev/ruby-sdk/commit/d51ca5841eb432576fb2e251d4ebdab02cfb1ad7))
|
43
|
+
|
3
44
|
## 0.1.0-alpha.13 (2025-06-29)
|
4
45
|
|
5
46
|
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
|
data/README.md
CHANGED
@@ -471,6 +471,7 @@ module BrandDev
|
|
471
471
|
self.class.validate!(req)
|
472
472
|
model = req.fetch(:model) { BrandDev::Internal::Type::Unknown }
|
473
473
|
opts = req[:options].to_h
|
474
|
+
unwrap = req[:unwrap]
|
474
475
|
BrandDev::RequestOptions.validate!(opts)
|
475
476
|
request = build_request(req.except(:options), opts)
|
476
477
|
url = request.fetch(:url)
|
@@ -487,11 +488,18 @@ module BrandDev
|
|
487
488
|
decoded = BrandDev::Internal::Util.decode_content(response, stream: stream)
|
488
489
|
case req
|
489
490
|
in {stream: Class => st}
|
490
|
-
st.new(
|
491
|
+
st.new(
|
492
|
+
model: model,
|
493
|
+
url: url,
|
494
|
+
status: status,
|
495
|
+
response: response,
|
496
|
+
unwrap: unwrap,
|
497
|
+
stream: decoded
|
498
|
+
)
|
491
499
|
in {page: Class => page}
|
492
500
|
page.new(client: self, req: req, headers: response, page_data: decoded)
|
493
501
|
else
|
494
|
-
unwrapped = BrandDev::Internal::Util.dig(decoded,
|
502
|
+
unwrapped = BrandDev::Internal::Util.dig(decoded, unwrap)
|
495
503
|
BrandDev::Internal::Type::Converter.coerce(model, unwrapped)
|
496
504
|
end
|
497
505
|
end
|
@@ -4,6 +4,12 @@ module BrandDev
|
|
4
4
|
module Models
|
5
5
|
# @see BrandDev::Resources::Brand#ai_query
|
6
6
|
class BrandAIQueryResponse < BrandDev::Internal::Type::BaseModel
|
7
|
+
# @!attribute code
|
8
|
+
# HTTP status code
|
9
|
+
#
|
10
|
+
# @return [Integer, nil]
|
11
|
+
optional :code, Integer
|
12
|
+
|
7
13
|
# @!attribute data_extracted
|
8
14
|
# Array of extracted data points
|
9
15
|
#
|
@@ -17,17 +23,27 @@ module BrandDev
|
|
17
23
|
# @return [String, nil]
|
18
24
|
optional :domain, String
|
19
25
|
|
26
|
+
# @!attribute status
|
27
|
+
# Status of the response, e.g., 'ok'
|
28
|
+
#
|
29
|
+
# @return [String, nil]
|
30
|
+
optional :status, String
|
31
|
+
|
20
32
|
# @!attribute urls_analyzed
|
21
33
|
# List of URLs that were analyzed
|
22
34
|
#
|
23
35
|
# @return [Array<String>, nil]
|
24
36
|
optional :urls_analyzed, BrandDev::Internal::Type::ArrayOf[String]
|
25
37
|
|
26
|
-
# @!method initialize(data_extracted: nil, domain: nil, urls_analyzed: nil)
|
38
|
+
# @!method initialize(code: nil, data_extracted: nil, domain: nil, status: nil, urls_analyzed: nil)
|
39
|
+
# @param code [Integer] HTTP status code
|
40
|
+
#
|
27
41
|
# @param data_extracted [Array<BrandDev::Models::BrandAIQueryResponse::DataExtracted>] Array of extracted data points
|
28
42
|
#
|
29
43
|
# @param domain [String] The domain that was analyzed
|
30
44
|
#
|
45
|
+
# @param status [String] Status of the response, e.g., 'ok'
|
46
|
+
#
|
31
47
|
# @param urls_analyzed [Array<String>] List of URLs that were analyzed
|
32
48
|
|
33
49
|
class DataExtracted < BrandDev::Internal::Type::BaseModel
|
@@ -63,12 +63,11 @@ module BrandDev
|
|
63
63
|
# @return [String, nil]
|
64
64
|
optional :domain, String
|
65
65
|
|
66
|
-
# @!attribute
|
67
|
-
#
|
66
|
+
# @!attribute is_nsfw
|
67
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
68
68
|
#
|
69
|
-
# @return [
|
70
|
-
optional :
|
71
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font] }
|
69
|
+
# @return [Boolean, nil]
|
70
|
+
optional :is_nsfw, BrandDev::Internal::Type::Boolean
|
72
71
|
|
73
72
|
# @!attribute logos
|
74
73
|
# An array of logos associated with the brand
|
@@ -103,7 +102,7 @@ module BrandDev
|
|
103
102
|
# @return [String, nil]
|
104
103
|
optional :title, String
|
105
104
|
|
106
|
-
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil,
|
105
|
+
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, is_nsfw: nil, logos: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
107
106
|
# Some parameter documentations has been truncated, see
|
108
107
|
# {BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand} for more
|
109
108
|
# details.
|
@@ -120,7 +119,7 @@ module BrandDev
|
|
120
119
|
#
|
121
120
|
# @param domain [String] The domain name of the brand
|
122
121
|
#
|
123
|
-
# @param
|
122
|
+
# @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW)
|
124
123
|
#
|
125
124
|
# @param logos [Array<BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo>] An array of logos associated with the brand
|
126
125
|
#
|
@@ -283,25 +282,6 @@ module BrandDev
|
|
283
282
|
# @param name [String] Name of the color
|
284
283
|
end
|
285
284
|
|
286
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
287
|
-
# @!attribute name
|
288
|
-
# Name of the font
|
289
|
-
#
|
290
|
-
# @return [String, nil]
|
291
|
-
optional :name, String
|
292
|
-
|
293
|
-
# @!attribute usage
|
294
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
295
|
-
#
|
296
|
-
# @return [String, nil]
|
297
|
-
optional :usage, String
|
298
|
-
|
299
|
-
# @!method initialize(name: nil, usage: nil)
|
300
|
-
# @param name [String] Name of the font
|
301
|
-
#
|
302
|
-
# @param usage [String] Usage of the font, e.g., 'title', 'body', 'button'
|
303
|
-
end
|
304
|
-
|
305
285
|
class Logo < BrandDev::Internal::Type::BaseModel
|
306
286
|
# @!attribute colors
|
307
287
|
# Array of colors in the logo
|
@@ -63,12 +63,11 @@ module BrandDev
|
|
63
63
|
# @return [String, nil]
|
64
64
|
optional :domain, String
|
65
65
|
|
66
|
-
# @!attribute
|
67
|
-
#
|
66
|
+
# @!attribute is_nsfw
|
67
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
68
68
|
#
|
69
|
-
# @return [
|
70
|
-
optional :
|
71
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font] }
|
69
|
+
# @return [Boolean, nil]
|
70
|
+
optional :is_nsfw, BrandDev::Internal::Type::Boolean
|
72
71
|
|
73
72
|
# @!attribute logos
|
74
73
|
# An array of logos associated with the brand
|
@@ -103,7 +102,7 @@ module BrandDev
|
|
103
102
|
# @return [String, nil]
|
104
103
|
optional :title, String
|
105
104
|
|
106
|
-
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil,
|
105
|
+
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, is_nsfw: nil, logos: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
107
106
|
# Some parameter documentations has been truncated, see
|
108
107
|
# {BrandDev::Models::BrandRetrieveByTickerResponse::Brand} for more details.
|
109
108
|
#
|
@@ -119,7 +118,7 @@ module BrandDev
|
|
119
118
|
#
|
120
119
|
# @param domain [String] The domain name of the brand
|
121
120
|
#
|
122
|
-
# @param
|
121
|
+
# @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW)
|
123
122
|
#
|
124
123
|
# @param logos [Array<BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo>] An array of logos associated with the brand
|
125
124
|
#
|
@@ -281,25 +280,6 @@ module BrandDev
|
|
281
280
|
# @param name [String] Name of the color
|
282
281
|
end
|
283
282
|
|
284
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
285
|
-
# @!attribute name
|
286
|
-
# Name of the font
|
287
|
-
#
|
288
|
-
# @return [String, nil]
|
289
|
-
optional :name, String
|
290
|
-
|
291
|
-
# @!attribute usage
|
292
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
293
|
-
#
|
294
|
-
# @return [String, nil]
|
295
|
-
optional :usage, String
|
296
|
-
|
297
|
-
# @!method initialize(name: nil, usage: nil)
|
298
|
-
# @param name [String] Name of the font
|
299
|
-
#
|
300
|
-
# @param usage [String] Usage of the font, e.g., 'title', 'body', 'button'
|
301
|
-
end
|
302
|
-
|
303
283
|
class Logo < BrandDev::Internal::Type::BaseModel
|
304
284
|
# @!attribute colors
|
305
285
|
# Array of colors in the logo
|
@@ -63,13 +63,11 @@ module BrandDev
|
|
63
63
|
# @return [String, nil]
|
64
64
|
optional :domain, String
|
65
65
|
|
66
|
-
# @!attribute
|
67
|
-
#
|
68
|
-
# be removed in the future. Please migrate to the styleguide API.
|
66
|
+
# @!attribute is_nsfw
|
67
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
69
68
|
#
|
70
|
-
# @return [
|
71
|
-
optional :
|
72
|
-
-> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandRetrieveResponse::Brand::Font] }
|
69
|
+
# @return [Boolean, nil]
|
70
|
+
optional :is_nsfw, BrandDev::Internal::Type::Boolean
|
73
71
|
|
74
72
|
# @!attribute logos
|
75
73
|
# An array of logos associated with the brand
|
@@ -104,7 +102,7 @@ module BrandDev
|
|
104
102
|
# @return [String, nil]
|
105
103
|
optional :title, String
|
106
104
|
|
107
|
-
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil,
|
105
|
+
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, is_nsfw: nil, logos: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
108
106
|
# Some parameter documentations has been truncated, see
|
109
107
|
# {BrandDev::Models::BrandRetrieveResponse::Brand} for more details.
|
110
108
|
#
|
@@ -120,7 +118,7 @@ module BrandDev
|
|
120
118
|
#
|
121
119
|
# @param domain [String] The domain name of the brand
|
122
120
|
#
|
123
|
-
# @param
|
121
|
+
# @param is_nsfw [Boolean] Indicates whether the brand content is not safe for work (NSFW)
|
124
122
|
#
|
125
123
|
# @param logos [Array<BrandDev::Models::BrandRetrieveResponse::Brand::Logo>] An array of logos associated with the brand
|
126
124
|
#
|
@@ -282,25 +280,6 @@ module BrandDev
|
|
282
280
|
# @param name [String] Name of the color
|
283
281
|
end
|
284
282
|
|
285
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
286
|
-
# @!attribute name
|
287
|
-
# Name of the font
|
288
|
-
#
|
289
|
-
# @return [String, nil]
|
290
|
-
optional :name, String
|
291
|
-
|
292
|
-
# @!attribute usage
|
293
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
294
|
-
#
|
295
|
-
# @return [String, nil]
|
296
|
-
optional :usage, String
|
297
|
-
|
298
|
-
# @!method initialize(name: nil, usage: nil)
|
299
|
-
# @param name [String] Name of the font
|
300
|
-
#
|
301
|
-
# @param usage [String] Usage of the font, e.g., 'title', 'body', 'button'
|
302
|
-
end
|
303
|
-
|
304
283
|
class Logo < BrandDev::Internal::Type::BaseModel
|
305
284
|
# @!attribute colors
|
306
285
|
# Array of colors in the logo
|
data/lib/brand_dev/models.rb
CHANGED
@@ -237,33 +237,6 @@ module BrandDev
|
|
237
237
|
)
|
238
238
|
end
|
239
239
|
|
240
|
-
# Some parameter documentations has been truncated, see
|
241
|
-
# {BrandDev::Models::BrandSearchParams} for more details.
|
242
|
-
#
|
243
|
-
# Search brands by query
|
244
|
-
#
|
245
|
-
# @overload search(query:, timeout_ms: nil, request_options: {})
|
246
|
-
#
|
247
|
-
# @param query [String] Query string to search brands
|
248
|
-
#
|
249
|
-
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
250
|
-
#
|
251
|
-
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
252
|
-
#
|
253
|
-
# @return [Array<BrandDev::Models::BrandSearchResponseItem>]
|
254
|
-
#
|
255
|
-
# @see BrandDev::Models::BrandSearchParams
|
256
|
-
def search(params)
|
257
|
-
parsed, options = BrandDev::BrandSearchParams.dump_request(params)
|
258
|
-
@client.request(
|
259
|
-
method: :get,
|
260
|
-
path: "brand/search",
|
261
|
-
query: parsed.transform_keys(timeout_ms: "timeoutMS"),
|
262
|
-
model: BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandSearchResponseItem],
|
263
|
-
options: options
|
264
|
-
)
|
265
|
-
end
|
266
|
-
|
267
240
|
# Some parameter documentations has been truncated, see
|
268
241
|
# {BrandDev::Models::BrandStyleguideParams} for more details.
|
269
242
|
#
|
data/lib/brand_dev/version.rb
CHANGED
data/lib/brand_dev.rb
CHANGED
@@ -66,8 +66,6 @@ require_relative "brand_dev/models/brand_retrieve_simplified_params"
|
|
66
66
|
require_relative "brand_dev/models/brand_retrieve_simplified_response"
|
67
67
|
require_relative "brand_dev/models/brand_screenshot_params"
|
68
68
|
require_relative "brand_dev/models/brand_screenshot_response"
|
69
|
-
require_relative "brand_dev/models/brand_search_params"
|
70
|
-
require_relative "brand_dev/models/brand_search_response"
|
71
69
|
require_relative "brand_dev/models/brand_styleguide_params"
|
72
70
|
require_relative "brand_dev/models/brand_styleguide_response"
|
73
71
|
require_relative "brand_dev/models"
|
@@ -11,6 +11,13 @@ module BrandDev
|
|
11
11
|
)
|
12
12
|
end
|
13
13
|
|
14
|
+
# HTTP status code
|
15
|
+
sig { returns(T.nilable(Integer)) }
|
16
|
+
attr_reader :code
|
17
|
+
|
18
|
+
sig { params(code: Integer).void }
|
19
|
+
attr_writer :code
|
20
|
+
|
14
21
|
# Array of extracted data points
|
15
22
|
sig do
|
16
23
|
returns(
|
@@ -38,6 +45,13 @@ module BrandDev
|
|
38
45
|
sig { params(domain: String).void }
|
39
46
|
attr_writer :domain
|
40
47
|
|
48
|
+
# Status of the response, e.g., 'ok'
|
49
|
+
sig { returns(T.nilable(String)) }
|
50
|
+
attr_reader :status
|
51
|
+
|
52
|
+
sig { params(status: String).void }
|
53
|
+
attr_writer :status
|
54
|
+
|
41
55
|
# List of URLs that were analyzed
|
42
56
|
sig { returns(T.nilable(T::Array[String])) }
|
43
57
|
attr_reader :urls_analyzed
|
@@ -47,19 +61,25 @@ module BrandDev
|
|
47
61
|
|
48
62
|
sig do
|
49
63
|
params(
|
64
|
+
code: Integer,
|
50
65
|
data_extracted:
|
51
66
|
T::Array[
|
52
67
|
BrandDev::Models::BrandAIQueryResponse::DataExtracted::OrHash
|
53
68
|
],
|
54
69
|
domain: String,
|
70
|
+
status: String,
|
55
71
|
urls_analyzed: T::Array[String]
|
56
72
|
).returns(T.attached_class)
|
57
73
|
end
|
58
74
|
def self.new(
|
75
|
+
# HTTP status code
|
76
|
+
code: nil,
|
59
77
|
# Array of extracted data points
|
60
78
|
data_extracted: nil,
|
61
79
|
# The domain that was analyzed
|
62
80
|
domain: nil,
|
81
|
+
# Status of the response, e.g., 'ok'
|
82
|
+
status: nil,
|
63
83
|
# List of URLs that were analyzed
|
64
84
|
urls_analyzed: nil
|
65
85
|
)
|
@@ -68,9 +88,11 @@ module BrandDev
|
|
68
88
|
sig do
|
69
89
|
override.returns(
|
70
90
|
{
|
91
|
+
code: Integer,
|
71
92
|
data_extracted:
|
72
93
|
T::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
73
94
|
domain: String,
|
95
|
+
status: String,
|
74
96
|
urls_analyzed: T::Array[String]
|
75
97
|
}
|
76
98
|
)
|
@@ -159,27 +159,12 @@ module BrandDev
|
|
159
159
|
sig { params(domain: String).void }
|
160
160
|
attr_writer :domain
|
161
161
|
|
162
|
-
#
|
163
|
-
sig
|
164
|
-
|
165
|
-
T.nilable(
|
166
|
-
T::Array[
|
167
|
-
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font
|
168
|
-
]
|
169
|
-
)
|
170
|
-
)
|
171
|
-
end
|
172
|
-
attr_reader :fonts
|
162
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
163
|
+
sig { returns(T.nilable(T::Boolean)) }
|
164
|
+
attr_reader :is_nsfw
|
173
165
|
|
174
|
-
sig
|
175
|
-
|
176
|
-
fonts:
|
177
|
-
T::Array[
|
178
|
-
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font::OrHash
|
179
|
-
]
|
180
|
-
).void
|
181
|
-
end
|
182
|
-
attr_writer :fonts
|
166
|
+
sig { params(is_nsfw: T::Boolean).void }
|
167
|
+
attr_writer :is_nsfw
|
183
168
|
|
184
169
|
# An array of logos associated with the brand
|
185
170
|
sig do
|
@@ -273,10 +258,7 @@ module BrandDev
|
|
273
258
|
],
|
274
259
|
description: String,
|
275
260
|
domain: String,
|
276
|
-
|
277
|
-
T::Array[
|
278
|
-
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font::OrHash
|
279
|
-
],
|
261
|
+
is_nsfw: T::Boolean,
|
280
262
|
logos:
|
281
263
|
T::Array[
|
282
264
|
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::OrHash
|
@@ -302,8 +284,8 @@ module BrandDev
|
|
302
284
|
description: nil,
|
303
285
|
# The domain name of the brand
|
304
286
|
domain: nil,
|
305
|
-
#
|
306
|
-
|
287
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
288
|
+
is_nsfw: nil,
|
307
289
|
# An array of logos associated with the brand
|
308
290
|
logos: nil,
|
309
291
|
# The brand's slogan
|
@@ -333,10 +315,7 @@ module BrandDev
|
|
333
315
|
],
|
334
316
|
description: String,
|
335
317
|
domain: String,
|
336
|
-
|
337
|
-
T::Array[
|
338
|
-
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font
|
339
|
-
],
|
318
|
+
is_nsfw: T::Boolean,
|
340
319
|
logos:
|
341
320
|
T::Array[
|
342
321
|
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo
|
@@ -668,43 +647,6 @@ module BrandDev
|
|
668
647
|
end
|
669
648
|
end
|
670
649
|
|
671
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
672
|
-
OrHash =
|
673
|
-
T.type_alias do
|
674
|
-
T.any(
|
675
|
-
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font,
|
676
|
-
BrandDev::Internal::AnyHash
|
677
|
-
)
|
678
|
-
end
|
679
|
-
|
680
|
-
# Name of the font
|
681
|
-
sig { returns(T.nilable(String)) }
|
682
|
-
attr_reader :name
|
683
|
-
|
684
|
-
sig { params(name: String).void }
|
685
|
-
attr_writer :name
|
686
|
-
|
687
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
688
|
-
sig { returns(T.nilable(String)) }
|
689
|
-
attr_reader :usage
|
690
|
-
|
691
|
-
sig { params(usage: String).void }
|
692
|
-
attr_writer :usage
|
693
|
-
|
694
|
-
sig { params(name: String, usage: String).returns(T.attached_class) }
|
695
|
-
def self.new(
|
696
|
-
# Name of the font
|
697
|
-
name: nil,
|
698
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
699
|
-
usage: nil
|
700
|
-
)
|
701
|
-
end
|
702
|
-
|
703
|
-
sig { override.returns({ name: String, usage: String }) }
|
704
|
-
def to_hash
|
705
|
-
end
|
706
|
-
end
|
707
|
-
|
708
650
|
class Logo < BrandDev::Internal::Type::BaseModel
|
709
651
|
OrHash =
|
710
652
|
T.type_alias do
|
@@ -154,27 +154,12 @@ module BrandDev
|
|
154
154
|
sig { params(domain: String).void }
|
155
155
|
attr_writer :domain
|
156
156
|
|
157
|
-
#
|
158
|
-
sig
|
159
|
-
|
160
|
-
T.nilable(
|
161
|
-
T::Array[
|
162
|
-
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font
|
163
|
-
]
|
164
|
-
)
|
165
|
-
)
|
166
|
-
end
|
167
|
-
attr_reader :fonts
|
157
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
158
|
+
sig { returns(T.nilable(T::Boolean)) }
|
159
|
+
attr_reader :is_nsfw
|
168
160
|
|
169
|
-
sig
|
170
|
-
|
171
|
-
fonts:
|
172
|
-
T::Array[
|
173
|
-
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font::OrHash
|
174
|
-
]
|
175
|
-
).void
|
176
|
-
end
|
177
|
-
attr_writer :fonts
|
161
|
+
sig { params(is_nsfw: T::Boolean).void }
|
162
|
+
attr_writer :is_nsfw
|
178
163
|
|
179
164
|
# An array of logos associated with the brand
|
180
165
|
sig do
|
@@ -268,10 +253,7 @@ module BrandDev
|
|
268
253
|
],
|
269
254
|
description: String,
|
270
255
|
domain: String,
|
271
|
-
|
272
|
-
T::Array[
|
273
|
-
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font::OrHash
|
274
|
-
],
|
256
|
+
is_nsfw: T::Boolean,
|
275
257
|
logos:
|
276
258
|
T::Array[
|
277
259
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::OrHash
|
@@ -297,8 +279,8 @@ module BrandDev
|
|
297
279
|
description: nil,
|
298
280
|
# The domain name of the brand
|
299
281
|
domain: nil,
|
300
|
-
#
|
301
|
-
|
282
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
283
|
+
is_nsfw: nil,
|
302
284
|
# An array of logos associated with the brand
|
303
285
|
logos: nil,
|
304
286
|
# The brand's slogan
|
@@ -328,10 +310,7 @@ module BrandDev
|
|
328
310
|
],
|
329
311
|
description: String,
|
330
312
|
domain: String,
|
331
|
-
|
332
|
-
T::Array[
|
333
|
-
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font
|
334
|
-
],
|
313
|
+
is_nsfw: T::Boolean,
|
335
314
|
logos:
|
336
315
|
T::Array[
|
337
316
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo
|
@@ -663,43 +642,6 @@ module BrandDev
|
|
663
642
|
end
|
664
643
|
end
|
665
644
|
|
666
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
667
|
-
OrHash =
|
668
|
-
T.type_alias do
|
669
|
-
T.any(
|
670
|
-
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font,
|
671
|
-
BrandDev::Internal::AnyHash
|
672
|
-
)
|
673
|
-
end
|
674
|
-
|
675
|
-
# Name of the font
|
676
|
-
sig { returns(T.nilable(String)) }
|
677
|
-
attr_reader :name
|
678
|
-
|
679
|
-
sig { params(name: String).void }
|
680
|
-
attr_writer :name
|
681
|
-
|
682
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
683
|
-
sig { returns(T.nilable(String)) }
|
684
|
-
attr_reader :usage
|
685
|
-
|
686
|
-
sig { params(usage: String).void }
|
687
|
-
attr_writer :usage
|
688
|
-
|
689
|
-
sig { params(name: String, usage: String).returns(T.attached_class) }
|
690
|
-
def self.new(
|
691
|
-
# Name of the font
|
692
|
-
name: nil,
|
693
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
694
|
-
usage: nil
|
695
|
-
)
|
696
|
-
end
|
697
|
-
|
698
|
-
sig { override.returns({ name: String, usage: String }) }
|
699
|
-
def to_hash
|
700
|
-
end
|
701
|
-
end
|
702
|
-
|
703
645
|
class Logo < BrandDev::Internal::Type::BaseModel
|
704
646
|
OrHash =
|
705
647
|
T.type_alias do
|