brand.dev 0.0.2 → 0.1.0.pre.alpha.1
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 +0 -173
- data/README.md +1 -1
- data/lib/brand_dev/errors.rb +0 -22
- data/lib/brand_dev/internal/transport/base_client.rb +2 -10
- data/lib/brand_dev/internal/type/array_of.rb +1 -6
- data/lib/brand_dev/internal/type/base_model.rb +25 -77
- data/lib/brand_dev/internal/type/boolean.rb +1 -7
- data/lib/brand_dev/internal/type/converter.rb +34 -42
- data/lib/brand_dev/internal/type/enum.rb +5 -16
- data/lib/brand_dev/internal/type/file_input.rb +1 -6
- data/lib/brand_dev/internal/type/hash_of.rb +1 -6
- data/lib/brand_dev/internal/type/union.rb +9 -17
- data/lib/brand_dev/internal/type/unknown.rb +1 -7
- data/lib/brand_dev/internal/util.rb +9 -8
- data/lib/brand_dev/models/brand_ai_query_params.rb +5 -87
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +1 -14
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +29 -1
- data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +1 -14
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +29 -1
- data/lib/brand_dev/models/brand_retrieve_naics_params.rb +1 -11
- data/lib/brand_dev/models/brand_retrieve_params.rb +1 -24
- data/lib/brand_dev/models/brand_retrieve_response.rb +29 -1
- data/lib/brand_dev/models/brand_search_params.rb +22 -0
- data/lib/brand_dev/models/brand_search_response.rb +35 -0
- data/lib/brand_dev/models.rb +5 -11
- data/lib/brand_dev/resources/brand.rb +20 -139
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +2 -8
- data/rbi/brand_dev/errors.rbi +0 -16
- data/rbi/brand_dev/internal/type/boolean.rbi +0 -2
- data/rbi/brand_dev/internal/type/converter.rbi +15 -15
- data/rbi/brand_dev/internal/type/union.rbi +0 -5
- data/rbi/brand_dev/internal/type/unknown.rbi +0 -2
- data/rbi/brand_dev/internal/util.rbi +0 -2
- data/rbi/brand_dev/models/brand_ai_query_params.rbi +6 -141
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +0 -15
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +69 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +1 -19
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +69 -0
- data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +1 -19
- data/rbi/brand_dev/models/brand_retrieve_params.rbi +0 -30
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +65 -0
- data/rbi/brand_dev/models/brand_search_params.rbi +40 -0
- data/rbi/brand_dev/models/brand_search_response.rbi +63 -0
- data/rbi/brand_dev/models.rbi +1 -8
- data/rbi/brand_dev/resources/brand.rbi +8 -112
- data/sig/brand_dev/errors.rbs +0 -9
- data/sig/brand_dev/internal/type/converter.rbs +1 -7
- data/sig/brand_dev/models/brand_ai_query_params.rbs +5 -82
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +1 -7
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +25 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +1 -8
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +25 -0
- data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +1 -8
- data/sig/brand_dev/models/brand_retrieve_params.rbs +1 -15
- data/sig/brand_dev/models/brand_retrieve_response.rbs +25 -0
- data/sig/brand_dev/models/brand_search_params.rbs +23 -0
- data/sig/brand_dev/models/brand_search_response.rbs +29 -0
- data/sig/brand_dev/models.rbs +1 -7
- data/sig/brand_dev/resources/brand.rbs +4 -29
- metadata +10 -28
- data/lib/brand_dev/models/brand_prefetch_params.rb +0 -35
- data/lib/brand_dev/models/brand_prefetch_response.rb +0 -33
- data/lib/brand_dev/models/brand_retrieve_simplified_params.rb +0 -35
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +0 -280
- data/lib/brand_dev/models/brand_screenshot_params.rb +0 -49
- data/lib/brand_dev/models/brand_screenshot_response.rb +0 -64
- data/lib/brand_dev/models/brand_styleguide_params.rb +0 -36
- data/lib/brand_dev/models/brand_styleguide_response.rb +0 -769
- data/rbi/brand_dev/models/brand_prefetch_params.rbi +0 -58
- data/rbi/brand_dev/models/brand_prefetch_response.rbi +0 -57
- data/rbi/brand_dev/models/brand_retrieve_simplified_params.rbi +0 -61
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +0 -667
- data/rbi/brand_dev/models/brand_screenshot_params.rbi +0 -105
- data/rbi/brand_dev/models/brand_screenshot_response.rbi +0 -135
- data/rbi/brand_dev/models/brand_styleguide_params.rbi +0 -60
- data/rbi/brand_dev/models/brand_styleguide_response.rbi +0 -1648
- data/sig/brand_dev/models/brand_prefetch_params.rbs +0 -30
- data/sig/brand_dev/models/brand_prefetch_response.rbs +0 -28
- data/sig/brand_dev/models/brand_retrieve_simplified_params.rbs +0 -30
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +0 -292
- data/sig/brand_dev/models/brand_screenshot_params.rbs +0 -46
- data/sig/brand_dev/models/brand_screenshot_response.rbs +0 -63
- data/sig/brand_dev/models/brand_styleguide_params.rbs +0 -30
- data/sig/brand_dev/models/brand_styleguide_response.rbs +0 -925
@@ -9,8 +9,6 @@ module BrandDev
|
|
9
9
|
domain: String,
|
10
10
|
force_language:
|
11
11
|
BrandDev::BrandRetrieveParams::ForceLanguage::OrSymbol,
|
12
|
-
max_speed: T::Boolean,
|
13
|
-
timeout_ms: Integer,
|
14
12
|
request_options: BrandDev::RequestOptions::OrHash
|
15
13
|
).returns(BrandDev::Models::BrandRetrieveResponse)
|
16
14
|
end
|
@@ -19,14 +17,6 @@ module BrandDev
|
|
19
17
|
domain:,
|
20
18
|
# Optional parameter to force the language of the retrieved brand data
|
21
19
|
force_language: nil,
|
22
|
-
# Optional parameter to optimize the API call for maximum speed. When set to true,
|
23
|
-
# the API will skip time-consuming operations for faster response at the cost of
|
24
|
-
# less comprehensive data.
|
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,
|
30
20
|
request_options: {}
|
31
21
|
)
|
32
22
|
end
|
@@ -39,8 +29,7 @@ module BrandDev
|
|
39
29
|
data_to_extract:
|
40
30
|
T::Array[BrandDev::BrandAIQueryParams::DataToExtract::OrHash],
|
41
31
|
domain: String,
|
42
|
-
specific_pages:
|
43
|
-
timeout_ms: Integer,
|
32
|
+
specific_pages: T::Array[String],
|
44
33
|
request_options: BrandDev::RequestOptions::OrHash
|
45
34
|
).returns(BrandDev::Models::BrandAIQueryResponse)
|
46
35
|
end
|
@@ -49,12 +38,8 @@ module BrandDev
|
|
49
38
|
data_to_extract:,
|
50
39
|
# The domain name to analyze
|
51
40
|
domain:,
|
52
|
-
# Optional
|
41
|
+
# Optional array of specific pages to analyze
|
53
42
|
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,
|
58
43
|
request_options: {}
|
59
44
|
)
|
60
45
|
end
|
@@ -64,39 +49,12 @@ module BrandDev
|
|
64
49
|
sig do
|
65
50
|
params(
|
66
51
|
transaction_info: String,
|
67
|
-
timeout_ms: Integer,
|
68
52
|
request_options: BrandDev::RequestOptions::OrHash
|
69
53
|
).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse)
|
70
54
|
end
|
71
55
|
def identify_from_transaction(
|
72
56
|
# Transaction information to identify the brand
|
73
57
|
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,
|
78
|
-
request_options: {}
|
79
|
-
)
|
80
|
-
end
|
81
|
-
|
82
|
-
# Signal that you may fetch brand data for a particular domain soon to improve
|
83
|
-
# latency. This endpoint does not charge credits and is available for paid
|
84
|
-
# customers to optimize future requests. [You must be on a paid plan to use this
|
85
|
-
# endpoint]
|
86
|
-
sig do
|
87
|
-
params(
|
88
|
-
domain: String,
|
89
|
-
timeout_ms: Integer,
|
90
|
-
request_options: BrandDev::RequestOptions::OrHash
|
91
|
-
).returns(BrandDev::Models::BrandPrefetchResponse)
|
92
|
-
end
|
93
|
-
def prefetch(
|
94
|
-
# Domain name to prefetch brand data for
|
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,
|
100
58
|
request_options: {}
|
101
59
|
)
|
102
60
|
end
|
@@ -105,17 +63,12 @@ module BrandDev
|
|
105
63
|
sig do
|
106
64
|
params(
|
107
65
|
ticker: String,
|
108
|
-
timeout_ms: Integer,
|
109
66
|
request_options: BrandDev::RequestOptions::OrHash
|
110
67
|
).returns(BrandDev::Models::BrandRetrieveByTickerResponse)
|
111
68
|
end
|
112
69
|
def retrieve_by_ticker(
|
113
70
|
# Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
114
71
|
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,
|
119
72
|
request_options: {}
|
120
73
|
)
|
121
74
|
end
|
@@ -124,7 +77,6 @@ module BrandDev
|
|
124
77
|
sig do
|
125
78
|
params(
|
126
79
|
input: String,
|
127
|
-
timeout_ms: Integer,
|
128
80
|
request_options: BrandDev::RequestOptions::OrHash
|
129
81
|
).returns(BrandDev::Models::BrandRetrieveNaicsResponse)
|
130
82
|
end
|
@@ -133,76 +85,20 @@ module BrandDev
|
|
133
85
|
# in `input`, it will be used for classification, otherwise, we will search for
|
134
86
|
# the brand using the provided title.
|
135
87
|
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,
|
140
|
-
request_options: {}
|
141
|
-
)
|
142
|
-
end
|
143
|
-
|
144
|
-
# Returns a simplified version of brand data containing only essential
|
145
|
-
# information: domain, title, colors, logos, and backdrops. This endpoint is
|
146
|
-
# optimized for faster responses and reduced data transfer.
|
147
|
-
sig do
|
148
|
-
params(
|
149
|
-
domain: String,
|
150
|
-
timeout_ms: Integer,
|
151
|
-
request_options: BrandDev::RequestOptions::OrHash
|
152
|
-
).returns(BrandDev::Models::BrandRetrieveSimplifiedResponse)
|
153
|
-
end
|
154
|
-
def retrieve_simplified(
|
155
|
-
# Domain name to retrieve simplified brand data for
|
156
|
-
domain:,
|
157
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
158
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
159
|
-
# value is 300000ms (5 minutes).
|
160
|
-
timeout_ms: nil,
|
161
|
-
request_options: {}
|
162
|
-
)
|
163
|
-
end
|
164
|
-
|
165
|
-
# Beta feature: Capture a screenshot of a website. Supports both viewport
|
166
|
-
# (standard browser view) and full-page screenshots. Returns a URL to the uploaded
|
167
|
-
# screenshot image hosted on our CDN.
|
168
|
-
sig do
|
169
|
-
params(
|
170
|
-
domain: String,
|
171
|
-
full_screenshot:
|
172
|
-
BrandDev::BrandScreenshotParams::FullScreenshot::OrSymbol,
|
173
|
-
request_options: BrandDev::RequestOptions::OrHash
|
174
|
-
).returns(BrandDev::Models::BrandScreenshotResponse)
|
175
|
-
end
|
176
|
-
def screenshot(
|
177
|
-
# Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The
|
178
|
-
# domain will be automatically normalized and validated.
|
179
|
-
domain:,
|
180
|
-
# Optional parameter to determine screenshot type. If 'true', takes a full page
|
181
|
-
# screenshot capturing all content. If 'false' or not provided, takes a viewport
|
182
|
-
# screenshot (standard browser view).
|
183
|
-
full_screenshot: nil,
|
184
88
|
request_options: {}
|
185
89
|
)
|
186
90
|
end
|
187
91
|
|
188
|
-
#
|
189
|
-
# a brand's website including colors, typography, spacing, shadows, and UI
|
190
|
-
# components.
|
92
|
+
# Search brands by query
|
191
93
|
sig do
|
192
94
|
params(
|
193
|
-
|
194
|
-
timeout_ms: Integer,
|
95
|
+
query: String,
|
195
96
|
request_options: BrandDev::RequestOptions::OrHash
|
196
|
-
).returns(BrandDev::Models::
|
97
|
+
).returns(T::Array[BrandDev::Models::BrandSearchResponseItem])
|
197
98
|
end
|
198
|
-
def
|
199
|
-
#
|
200
|
-
|
201
|
-
domain:,
|
202
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
203
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
204
|
-
# value is 300000ms (5 minutes).
|
205
|
-
timeout_ms: nil,
|
99
|
+
def search(
|
100
|
+
# Query string to search brands
|
101
|
+
query:,
|
206
102
|
request_options: {}
|
207
103
|
)
|
208
104
|
end
|
data/sig/brand_dev/errors.rbs
CHANGED
@@ -5,15 +5,6 @@ module BrandDev
|
|
5
5
|
end
|
6
6
|
|
7
7
|
class ConversionError < BrandDev::Errors::Error
|
8
|
-
def cause: -> StandardError?
|
9
|
-
|
10
|
-
def initialize: (
|
11
|
-
on: Class,
|
12
|
-
method: Symbol,
|
13
|
-
target: top,
|
14
|
-
value: top,
|
15
|
-
?cause: StandardError?
|
16
|
-
) -> void
|
17
8
|
end
|
18
9
|
|
19
10
|
class APIError < BrandDev::Errors::Error
|
@@ -8,10 +8,8 @@ module BrandDev
|
|
8
8
|
|
9
9
|
type coerce_state =
|
10
10
|
{
|
11
|
-
|
12
|
-
strictness: bool,
|
11
|
+
strictness: bool | :strong,
|
13
12
|
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
14
|
-
error: Class,
|
15
13
|
branched: Integer
|
16
14
|
}
|
17
15
|
|
@@ -39,10 +37,6 @@ module BrandDev
|
|
39
37
|
| BrandDev::Internal::Type::Converter::input spec
|
40
38
|
) -> (^-> top)
|
41
39
|
|
42
|
-
def self.new_coerce_state: (
|
43
|
-
?translate_names: bool
|
44
|
-
) -> BrandDev::Internal::Type::Converter::coerce_state
|
45
|
-
|
46
40
|
def self.coerce: (
|
47
41
|
BrandDev::Internal::Type::Converter::input target,
|
48
42
|
top value,
|
@@ -4,8 +4,7 @@ module BrandDev
|
|
4
4
|
{
|
5
5
|
data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
|
6
6
|
domain: String,
|
7
|
-
specific_pages:
|
8
|
-
timeout_ms: Integer
|
7
|
+
specific_pages: ::Array[String]
|
9
8
|
}
|
10
9
|
& BrandDev::Internal::Type::request_parameters
|
11
10
|
|
@@ -17,29 +16,21 @@ module BrandDev
|
|
17
16
|
|
18
17
|
attr_accessor domain: String
|
19
18
|
|
20
|
-
attr_reader specific_pages:
|
19
|
+
attr_reader specific_pages: ::Array[String]?
|
21
20
|
|
22
|
-
def specific_pages=: (
|
23
|
-
BrandDev::BrandAIQueryParams::SpecificPages
|
24
|
-
) -> BrandDev::BrandAIQueryParams::SpecificPages
|
25
|
-
|
26
|
-
attr_reader timeout_ms: Integer?
|
27
|
-
|
28
|
-
def timeout_ms=: (Integer) -> Integer
|
21
|
+
def specific_pages=: (::Array[String]) -> ::Array[String]
|
29
22
|
|
30
23
|
def initialize: (
|
31
24
|
data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
|
32
25
|
domain: String,
|
33
|
-
?specific_pages:
|
34
|
-
?timeout_ms: Integer,
|
26
|
+
?specific_pages: ::Array[String],
|
35
27
|
?request_options: BrandDev::request_opts
|
36
28
|
) -> void
|
37
29
|
|
38
30
|
def to_hash: -> {
|
39
31
|
data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
|
40
32
|
domain: String,
|
41
|
-
specific_pages:
|
42
|
-
timeout_ms: Integer,
|
33
|
+
specific_pages: ::Array[String],
|
43
34
|
request_options: BrandDev::RequestOptions
|
44
35
|
}
|
45
36
|
|
@@ -89,74 +80,6 @@ module BrandDev
|
|
89
80
|
def self?.values: -> ::Array[BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type]
|
90
81
|
end
|
91
82
|
end
|
92
|
-
|
93
|
-
type specific_pages =
|
94
|
-
{
|
95
|
-
about_us: bool,
|
96
|
-
blog: bool,
|
97
|
-
careers: bool,
|
98
|
-
contact_us: bool,
|
99
|
-
faq: bool,
|
100
|
-
home_page: bool,
|
101
|
-
privacy_policy: bool,
|
102
|
-
terms_and_conditions: bool
|
103
|
-
}
|
104
|
-
|
105
|
-
class SpecificPages < BrandDev::Internal::Type::BaseModel
|
106
|
-
attr_reader about_us: bool?
|
107
|
-
|
108
|
-
def about_us=: (bool) -> bool
|
109
|
-
|
110
|
-
attr_reader blog: bool?
|
111
|
-
|
112
|
-
def blog=: (bool) -> bool
|
113
|
-
|
114
|
-
attr_reader careers: bool?
|
115
|
-
|
116
|
-
def careers=: (bool) -> bool
|
117
|
-
|
118
|
-
attr_reader contact_us: bool?
|
119
|
-
|
120
|
-
def contact_us=: (bool) -> bool
|
121
|
-
|
122
|
-
attr_reader faq: bool?
|
123
|
-
|
124
|
-
def faq=: (bool) -> bool
|
125
|
-
|
126
|
-
attr_reader home_page: bool?
|
127
|
-
|
128
|
-
def home_page=: (bool) -> bool
|
129
|
-
|
130
|
-
attr_reader privacy_policy: bool?
|
131
|
-
|
132
|
-
def privacy_policy=: (bool) -> bool
|
133
|
-
|
134
|
-
attr_reader terms_and_conditions: bool?
|
135
|
-
|
136
|
-
def terms_and_conditions=: (bool) -> bool
|
137
|
-
|
138
|
-
def initialize: (
|
139
|
-
?about_us: bool,
|
140
|
-
?blog: bool,
|
141
|
-
?careers: bool,
|
142
|
-
?contact_us: bool,
|
143
|
-
?faq: bool,
|
144
|
-
?home_page: bool,
|
145
|
-
?privacy_policy: bool,
|
146
|
-
?terms_and_conditions: bool
|
147
|
-
) -> void
|
148
|
-
|
149
|
-
def to_hash: -> {
|
150
|
-
about_us: bool,
|
151
|
-
blog: bool,
|
152
|
-
careers: bool,
|
153
|
-
contact_us: bool,
|
154
|
-
faq: bool,
|
155
|
-
home_page: bool,
|
156
|
-
privacy_policy: bool,
|
157
|
-
terms_and_conditions: bool
|
158
|
-
}
|
159
|
-
end
|
160
83
|
end
|
161
84
|
end
|
162
85
|
end
|
@@ -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 }
|
5
5
|
& BrandDev::Internal::Type::request_parameters
|
6
6
|
|
7
7
|
class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
|
@@ -10,19 +10,13 @@ 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
|
-
|
17
13
|
def initialize: (
|
18
14
|
transaction_info: String,
|
19
|
-
?timeout_ms: Integer,
|
20
15
|
?request_options: BrandDev::request_opts
|
21
16
|
) -> void
|
22
17
|
|
23
18
|
def to_hash: -> {
|
24
19
|
transaction_info: String,
|
25
|
-
timeout_ms: Integer,
|
26
20
|
request_options: BrandDev::RequestOptions
|
27
21
|
}
|
28
22
|
end
|
@@ -41,6 +41,7 @@ module BrandDev
|
|
41
41
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
42
42
|
description: String,
|
43
43
|
domain: String,
|
44
|
+
fonts: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font],
|
44
45
|
logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
45
46
|
slogan: String,
|
46
47
|
socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
@@ -75,6 +76,12 @@ module BrandDev
|
|
75
76
|
|
76
77
|
def domain=: (String) -> String
|
77
78
|
|
79
|
+
attr_reader fonts: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font]?
|
80
|
+
|
81
|
+
def fonts=: (
|
82
|
+
::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font]
|
83
|
+
) -> ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font]
|
84
|
+
|
78
85
|
attr_reader logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo]?
|
79
86
|
|
80
87
|
def logos=: (
|
@@ -107,6 +114,7 @@ module BrandDev
|
|
107
114
|
?colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
108
115
|
?description: String,
|
109
116
|
?domain: String,
|
117
|
+
?fonts: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font],
|
110
118
|
?logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
111
119
|
?slogan: String,
|
112
120
|
?socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
@@ -120,6 +128,7 @@ module BrandDev
|
|
120
128
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
121
129
|
description: String,
|
122
130
|
domain: String,
|
131
|
+
fonts: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font],
|
123
132
|
logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
124
133
|
slogan: String,
|
125
134
|
socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
@@ -273,6 +282,22 @@ module BrandDev
|
|
273
282
|
def to_hash: -> { hex: String, name: String }
|
274
283
|
end
|
275
284
|
|
285
|
+
type font = { name: String, usage: String }
|
286
|
+
|
287
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
288
|
+
attr_reader name: String?
|
289
|
+
|
290
|
+
def name=: (String) -> String
|
291
|
+
|
292
|
+
attr_reader usage: String?
|
293
|
+
|
294
|
+
def usage=: (String) -> String
|
295
|
+
|
296
|
+
def initialize: (?name: String, ?usage: String) -> void
|
297
|
+
|
298
|
+
def to_hash: -> { name: String, usage: String }
|
299
|
+
end
|
300
|
+
|
276
301
|
type logo =
|
277
302
|
{
|
278
303
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color],
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module BrandDev
|
2
2
|
module Models
|
3
3
|
type brand_retrieve_by_ticker_params =
|
4
|
-
{ ticker: String
|
5
|
-
& BrandDev::Internal::Type::request_parameters
|
4
|
+
{ ticker: String } & BrandDev::Internal::Type::request_parameters
|
6
5
|
|
7
6
|
class BrandRetrieveByTickerParams < BrandDev::Internal::Type::BaseModel
|
8
7
|
extend BrandDev::Internal::Type::RequestParameters::Converter
|
@@ -10,19 +9,13 @@ module BrandDev
|
|
10
9
|
|
11
10
|
attr_accessor ticker: String
|
12
11
|
|
13
|
-
attr_reader timeout_ms: Integer?
|
14
|
-
|
15
|
-
def timeout_ms=: (Integer) -> Integer
|
16
|
-
|
17
12
|
def initialize: (
|
18
13
|
ticker: String,
|
19
|
-
?timeout_ms: Integer,
|
20
14
|
?request_options: BrandDev::request_opts
|
21
15
|
) -> void
|
22
16
|
|
23
17
|
def to_hash: -> {
|
24
18
|
ticker: String,
|
25
|
-
timeout_ms: Integer,
|
26
19
|
request_options: BrandDev::RequestOptions
|
27
20
|
}
|
28
21
|
end
|
@@ -41,6 +41,7 @@ module BrandDev
|
|
41
41
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
|
42
42
|
description: String,
|
43
43
|
domain: String,
|
44
|
+
fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font],
|
44
45
|
logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
|
45
46
|
slogan: String,
|
46
47
|
socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
|
@@ -75,6 +76,12 @@ module BrandDev
|
|
75
76
|
|
76
77
|
def domain=: (String) -> String
|
77
78
|
|
79
|
+
attr_reader fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font]?
|
80
|
+
|
81
|
+
def fonts=: (
|
82
|
+
::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font]
|
83
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font]
|
84
|
+
|
78
85
|
attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]?
|
79
86
|
|
80
87
|
def logos=: (
|
@@ -107,6 +114,7 @@ module BrandDev
|
|
107
114
|
?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
|
108
115
|
?description: String,
|
109
116
|
?domain: String,
|
117
|
+
?fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font],
|
110
118
|
?logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
|
111
119
|
?slogan: String,
|
112
120
|
?socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
|
@@ -120,6 +128,7 @@ module BrandDev
|
|
120
128
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
|
121
129
|
description: String,
|
122
130
|
domain: String,
|
131
|
+
fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font],
|
123
132
|
logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
|
124
133
|
slogan: String,
|
125
134
|
socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
|
@@ -273,6 +282,22 @@ module BrandDev
|
|
273
282
|
def to_hash: -> { hex: String, name: String }
|
274
283
|
end
|
275
284
|
|
285
|
+
type font = { name: String, usage: String }
|
286
|
+
|
287
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
288
|
+
attr_reader name: String?
|
289
|
+
|
290
|
+
def name=: (String) -> String
|
291
|
+
|
292
|
+
attr_reader usage: String?
|
293
|
+
|
294
|
+
def usage=: (String) -> String
|
295
|
+
|
296
|
+
def initialize: (?name: String, ?usage: String) -> void
|
297
|
+
|
298
|
+
def to_hash: -> { name: String, usage: String }
|
299
|
+
end
|
300
|
+
|
276
301
|
type logo =
|
277
302
|
{
|
278
303
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module BrandDev
|
2
2
|
module Models
|
3
3
|
type brand_retrieve_naics_params =
|
4
|
-
{ input: String
|
5
|
-
& BrandDev::Internal::Type::request_parameters
|
4
|
+
{ input: String } & BrandDev::Internal::Type::request_parameters
|
6
5
|
|
7
6
|
class BrandRetrieveNaicsParams < BrandDev::Internal::Type::BaseModel
|
8
7
|
extend BrandDev::Internal::Type::RequestParameters::Converter
|
@@ -10,19 +9,13 @@ module BrandDev
|
|
10
9
|
|
11
10
|
attr_accessor input: String
|
12
11
|
|
13
|
-
attr_reader timeout_ms: Integer?
|
14
|
-
|
15
|
-
def timeout_ms=: (Integer) -> Integer
|
16
|
-
|
17
12
|
def initialize: (
|
18
13
|
input: String,
|
19
|
-
?timeout_ms: Integer,
|
20
14
|
?request_options: BrandDev::request_opts
|
21
15
|
) -> void
|
22
16
|
|
23
17
|
def to_hash: -> {
|
24
18
|
input: String,
|
25
|
-
timeout_ms: Integer,
|
26
19
|
request_options: BrandDev::RequestOptions
|
27
20
|
}
|
28
21
|
end
|
@@ -3,9 +3,7 @@ module BrandDev
|
|
3
3
|
type brand_retrieve_params =
|
4
4
|
{
|
5
5
|
domain: String,
|
6
|
-
force_language: BrandDev::Models::BrandRetrieveParams::force_language
|
7
|
-
max_speed: bool,
|
8
|
-
timeout_ms: Integer
|
6
|
+
force_language: BrandDev::Models::BrandRetrieveParams::force_language
|
9
7
|
}
|
10
8
|
& BrandDev::Internal::Type::request_parameters
|
11
9
|
|
@@ -21,27 +19,15 @@ module BrandDev
|
|
21
19
|
BrandDev::Models::BrandRetrieveParams::force_language
|
22
20
|
) -> BrandDev::Models::BrandRetrieveParams::force_language
|
23
21
|
|
24
|
-
attr_reader max_speed: bool?
|
25
|
-
|
26
|
-
def max_speed=: (bool) -> bool
|
27
|
-
|
28
|
-
attr_reader timeout_ms: Integer?
|
29
|
-
|
30
|
-
def timeout_ms=: (Integer) -> Integer
|
31
|
-
|
32
22
|
def initialize: (
|
33
23
|
domain: String,
|
34
24
|
?force_language: BrandDev::Models::BrandRetrieveParams::force_language,
|
35
|
-
?max_speed: bool,
|
36
|
-
?timeout_ms: Integer,
|
37
25
|
?request_options: BrandDev::request_opts
|
38
26
|
) -> void
|
39
27
|
|
40
28
|
def to_hash: -> {
|
41
29
|
domain: String,
|
42
30
|
force_language: BrandDev::Models::BrandRetrieveParams::force_language,
|
43
|
-
max_speed: bool,
|
44
|
-
timeout_ms: Integer,
|
45
31
|
request_options: BrandDev::RequestOptions
|
46
32
|
}
|
47
33
|
|
@@ -41,6 +41,7 @@ module BrandDev
|
|
41
41
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
42
42
|
description: String,
|
43
43
|
domain: String,
|
44
|
+
fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
|
44
45
|
logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
45
46
|
slogan: String,
|
46
47
|
socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
|
@@ -75,6 +76,12 @@ module BrandDev
|
|
75
76
|
|
76
77
|
def domain=: (String) -> String
|
77
78
|
|
79
|
+
attr_reader fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]?
|
80
|
+
|
81
|
+
def fonts=: (
|
82
|
+
::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]
|
83
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]
|
84
|
+
|
78
85
|
attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo]?
|
79
86
|
|
80
87
|
def logos=: (
|
@@ -107,6 +114,7 @@ module BrandDev
|
|
107
114
|
?colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
108
115
|
?description: String,
|
109
116
|
?domain: String,
|
117
|
+
?fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
|
110
118
|
?logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
111
119
|
?slogan: String,
|
112
120
|
?socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
|
@@ -120,6 +128,7 @@ module BrandDev
|
|
120
128
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
121
129
|
description: String,
|
122
130
|
domain: String,
|
131
|
+
fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
|
123
132
|
logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
124
133
|
slogan: String,
|
125
134
|
socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
|
@@ -273,6 +282,22 @@ module BrandDev
|
|
273
282
|
def to_hash: -> { hex: String, name: String }
|
274
283
|
end
|
275
284
|
|
285
|
+
type font = { name: String, usage: String }
|
286
|
+
|
287
|
+
class Font < BrandDev::Internal::Type::BaseModel
|
288
|
+
attr_reader name: String?
|
289
|
+
|
290
|
+
def name=: (String) -> String
|
291
|
+
|
292
|
+
attr_reader usage: String?
|
293
|
+
|
294
|
+
def usage=: (String) -> String
|
295
|
+
|
296
|
+
def initialize: (?name: String, ?usage: String) -> void
|
297
|
+
|
298
|
+
def to_hash: -> { name: String, usage: String }
|
299
|
+
end
|
300
|
+
|
276
301
|
type logo =
|
277
302
|
{
|
278
303
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color],
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_search_params =
|
4
|
+
{ query: String } & BrandDev::Internal::Type::request_parameters
|
5
|
+
|
6
|
+
class BrandSearchParams < BrandDev::Internal::Type::BaseModel
|
7
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
8
|
+
include BrandDev::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
attr_accessor query: String
|
11
|
+
|
12
|
+
def initialize: (
|
13
|
+
query: String,
|
14
|
+
?request_options: BrandDev::request_opts
|
15
|
+
) -> void
|
16
|
+
|
17
|
+
def to_hash: -> {
|
18
|
+
query: String,
|
19
|
+
request_options: BrandDev::RequestOptions
|
20
|
+
}
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|