brand.dev 0.0.1.pre.alpha.0 → 0.0.2
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 +188 -0
- data/README.md +7 -3
- data/lib/brand_dev/errors.rb +22 -0
- data/lib/brand_dev/internal/transport/base_client.rb +10 -2
- data/lib/brand_dev/internal/type/array_of.rb +6 -1
- data/lib/brand_dev/internal/type/base_model.rb +77 -25
- data/lib/brand_dev/internal/type/boolean.rb +7 -1
- data/lib/brand_dev/internal/type/converter.rb +42 -34
- data/lib/brand_dev/internal/type/enum.rb +16 -5
- data/lib/brand_dev/internal/type/file_input.rb +6 -1
- data/lib/brand_dev/internal/type/hash_of.rb +6 -1
- data/lib/brand_dev/internal/type/union.rb +17 -9
- data/lib/brand_dev/internal/type/unknown.rb +7 -1
- data/lib/brand_dev/internal/util.rb +8 -9
- data/lib/brand_dev/models/brand_ai_query_params.rb +173 -0
- data/lib/brand_dev/models/brand_ai_query_response.rb +80 -0
- data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +14 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +1 -29
- data/lib/brand_dev/models/brand_prefetch_params.rb +35 -0
- data/lib/brand_dev/models/brand_prefetch_response.rb +33 -0
- data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +14 -1
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +1 -29
- data/lib/brand_dev/models/brand_retrieve_naics_params.rb +11 -1
- data/lib/brand_dev/models/brand_retrieve_params.rb +24 -1
- data/lib/brand_dev/models/brand_retrieve_response.rb +1 -29
- data/lib/brand_dev/models/brand_retrieve_simplified_params.rb +35 -0
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +280 -0
- data/lib/brand_dev/models/brand_screenshot_params.rb +49 -0
- data/lib/brand_dev/models/brand_screenshot_response.rb +64 -0
- data/lib/brand_dev/models/brand_styleguide_params.rb +36 -0
- data/lib/brand_dev/models/brand_styleguide_response.rb +769 -0
- data/lib/brand_dev/models.rb +13 -5
- data/lib/brand_dev/resources/brand.rb +165 -18
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +10 -2
- data/rbi/brand_dev/errors.rbi +16 -0
- data/rbi/brand_dev/internal/type/boolean.rbi +2 -0
- data/rbi/brand_dev/internal/type/converter.rbi +15 -15
- data/rbi/brand_dev/internal/type/union.rbi +5 -0
- data/rbi/brand_dev/internal/type/unknown.rbi +2 -0
- data/rbi/brand_dev/internal/util.rbi +2 -0
- data/rbi/brand_dev/models/brand_ai_query_params.rbi +319 -0
- data/rbi/brand_dev/models/brand_ai_query_response.rbi +182 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +15 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +0 -69
- data/rbi/brand_dev/models/brand_prefetch_params.rbi +58 -0
- data/rbi/brand_dev/models/brand_prefetch_response.rbi +57 -0
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +19 -1
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +0 -69
- data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +19 -1
- data/rbi/brand_dev/models/brand_retrieve_params.rbi +30 -0
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +0 -65
- data/rbi/brand_dev/models/brand_retrieve_simplified_params.rbi +61 -0
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +667 -0
- data/rbi/brand_dev/models/brand_screenshot_params.rbi +105 -0
- data/rbi/brand_dev/models/brand_screenshot_response.rbi +135 -0
- data/rbi/brand_dev/models/brand_styleguide_params.rbi +60 -0
- data/rbi/brand_dev/models/brand_styleguide_response.rbi +1648 -0
- data/rbi/brand_dev/models.rbi +10 -1
- data/rbi/brand_dev/resources/brand.rbi +133 -6
- data/sig/brand_dev/errors.rbs +9 -0
- data/sig/brand_dev/internal/type/converter.rbs +7 -1
- data/sig/brand_dev/models/brand_ai_query_params.rbs +162 -0
- data/sig/brand_dev/models/brand_ai_query_response.rbs +79 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +7 -1
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +0 -25
- data/sig/brand_dev/models/brand_prefetch_params.rbs +30 -0
- data/sig/brand_dev/models/brand_prefetch_response.rbs +28 -0
- data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +8 -1
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +0 -25
- data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +8 -1
- data/sig/brand_dev/models/brand_retrieve_params.rbs +15 -1
- data/sig/brand_dev/models/brand_retrieve_response.rbs +0 -25
- data/sig/brand_dev/models/brand_retrieve_simplified_params.rbs +30 -0
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +292 -0
- data/sig/brand_dev/models/brand_screenshot_params.rbs +46 -0
- data/sig/brand_dev/models/brand_screenshot_response.rbs +63 -0
- data/sig/brand_dev/models/brand_styleguide_params.rbs +30 -0
- data/sig/brand_dev/models/brand_styleguide_response.rbs +925 -0
- data/sig/brand_dev/models.rbs +9 -1
- data/sig/brand_dev/resources/brand.rbs +35 -3
- metadata +46 -22
- data/lib/brand_dev/models/brand_search_params.rb +0 -22
- data/lib/brand_dev/models/brand_search_response.rb +0 -35
- data/rbi/brand_dev/models/brand_search_params.rbi +0 -40
- data/rbi/brand_dev/models/brand_search_response.rbi +0 -63
- data/sig/brand_dev/models/brand_search_params.rbs +0 -23
- data/sig/brand_dev/models/brand_search_response.rbs +0 -29
data/rbi/brand_dev/models.rbi
CHANGED
@@ -1,14 +1,23 @@
|
|
1
1
|
# typed: strong
|
2
2
|
|
3
3
|
module BrandDev
|
4
|
+
BrandAIQueryParams = BrandDev::Models::BrandAIQueryParams
|
5
|
+
|
4
6
|
BrandIdentifyFromTransactionParams =
|
5
7
|
BrandDev::Models::BrandIdentifyFromTransactionParams
|
6
8
|
|
9
|
+
BrandPrefetchParams = BrandDev::Models::BrandPrefetchParams
|
10
|
+
|
7
11
|
BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
8
12
|
|
9
13
|
BrandRetrieveNaicsParams = BrandDev::Models::BrandRetrieveNaicsParams
|
10
14
|
|
11
15
|
BrandRetrieveParams = BrandDev::Models::BrandRetrieveParams
|
12
16
|
|
13
|
-
|
17
|
+
BrandRetrieveSimplifiedParams =
|
18
|
+
BrandDev::Models::BrandRetrieveSimplifiedParams
|
19
|
+
|
20
|
+
BrandScreenshotParams = BrandDev::Models::BrandScreenshotParams
|
21
|
+
|
22
|
+
BrandStyleguideParams = BrandDev::Models::BrandStyleguideParams
|
14
23
|
end
|
@@ -9,6 +9,8 @@ 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,
|
12
14
|
request_options: BrandDev::RequestOptions::OrHash
|
13
15
|
).returns(BrandDev::Models::BrandRetrieveResponse)
|
14
16
|
end
|
@@ -17,6 +19,42 @@ module BrandDev
|
|
17
19
|
domain:,
|
18
20
|
# Optional parameter to force the language of the retrieved brand data
|
19
21
|
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
|
+
request_options: {}
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Beta feature: Use AI to extract specific data points from a brand's website. The
|
35
|
+
# AI will crawl the website and extract the requested information based on the
|
36
|
+
# provided data points.
|
37
|
+
sig do
|
38
|
+
params(
|
39
|
+
data_to_extract:
|
40
|
+
T::Array[BrandDev::BrandAIQueryParams::DataToExtract::OrHash],
|
41
|
+
domain: String,
|
42
|
+
specific_pages: BrandDev::BrandAIQueryParams::SpecificPages::OrHash,
|
43
|
+
timeout_ms: Integer,
|
44
|
+
request_options: BrandDev::RequestOptions::OrHash
|
45
|
+
).returns(BrandDev::Models::BrandAIQueryResponse)
|
46
|
+
end
|
47
|
+
def ai_query(
|
48
|
+
# Array of data points to extract from the website
|
49
|
+
data_to_extract:,
|
50
|
+
# The domain name to analyze
|
51
|
+
domain:,
|
52
|
+
# Optional object specifying which pages to analyze
|
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,
|
20
58
|
request_options: {}
|
21
59
|
)
|
22
60
|
end
|
@@ -26,12 +64,39 @@ module BrandDev
|
|
26
64
|
sig do
|
27
65
|
params(
|
28
66
|
transaction_info: String,
|
67
|
+
timeout_ms: Integer,
|
29
68
|
request_options: BrandDev::RequestOptions::OrHash
|
30
69
|
).returns(BrandDev::Models::BrandIdentifyFromTransactionResponse)
|
31
70
|
end
|
32
71
|
def identify_from_transaction(
|
33
72
|
# Transaction information to identify the brand
|
34
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,
|
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,
|
35
100
|
request_options: {}
|
36
101
|
)
|
37
102
|
end
|
@@ -40,12 +105,17 @@ module BrandDev
|
|
40
105
|
sig do
|
41
106
|
params(
|
42
107
|
ticker: String,
|
108
|
+
timeout_ms: Integer,
|
43
109
|
request_options: BrandDev::RequestOptions::OrHash
|
44
110
|
).returns(BrandDev::Models::BrandRetrieveByTickerResponse)
|
45
111
|
end
|
46
112
|
def retrieve_by_ticker(
|
47
113
|
# Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)
|
48
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,
|
49
119
|
request_options: {}
|
50
120
|
)
|
51
121
|
end
|
@@ -54,6 +124,7 @@ module BrandDev
|
|
54
124
|
sig do
|
55
125
|
params(
|
56
126
|
input: String,
|
127
|
+
timeout_ms: Integer,
|
57
128
|
request_options: BrandDev::RequestOptions::OrHash
|
58
129
|
).returns(BrandDev::Models::BrandRetrieveNaicsResponse)
|
59
130
|
end
|
@@ -62,20 +133,76 @@ module BrandDev
|
|
62
133
|
# in `input`, it will be used for classification, otherwise, we will search for
|
63
134
|
# the brand using the provided title.
|
64
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,
|
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,
|
65
161
|
request_options: {}
|
66
162
|
)
|
67
163
|
end
|
68
164
|
|
69
|
-
#
|
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.
|
70
168
|
sig do
|
71
169
|
params(
|
72
|
-
|
170
|
+
domain: String,
|
171
|
+
full_screenshot:
|
172
|
+
BrandDev::BrandScreenshotParams::FullScreenshot::OrSymbol,
|
73
173
|
request_options: BrandDev::RequestOptions::OrHash
|
74
|
-
).returns(
|
174
|
+
).returns(BrandDev::Models::BrandScreenshotResponse)
|
75
175
|
end
|
76
|
-
def
|
77
|
-
#
|
78
|
-
|
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
|
+
request_options: {}
|
185
|
+
)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Beta feature: Automatically extract comprehensive design system information from
|
189
|
+
# a brand's website including colors, typography, spacing, shadows, and UI
|
190
|
+
# components.
|
191
|
+
sig do
|
192
|
+
params(
|
193
|
+
domain: String,
|
194
|
+
timeout_ms: Integer,
|
195
|
+
request_options: BrandDev::RequestOptions::OrHash
|
196
|
+
).returns(BrandDev::Models::BrandStyleguideResponse)
|
197
|
+
end
|
198
|
+
def styleguide(
|
199
|
+
# Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
|
200
|
+
# domain will be automatically normalized and validated.
|
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,
|
79
206
|
request_options: {}
|
80
207
|
)
|
81
208
|
end
|
data/sig/brand_dev/errors.rbs
CHANGED
@@ -5,6 +5,15 @@ 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
|
8
17
|
end
|
9
18
|
|
10
19
|
class APIError < BrandDev::Errors::Error
|
@@ -8,8 +8,10 @@ module BrandDev
|
|
8
8
|
|
9
9
|
type coerce_state =
|
10
10
|
{
|
11
|
-
|
11
|
+
translate_names: bool,
|
12
|
+
strictness: bool,
|
12
13
|
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
14
|
+
error: Class,
|
13
15
|
branched: Integer
|
14
16
|
}
|
15
17
|
|
@@ -37,6 +39,10 @@ module BrandDev
|
|
37
39
|
| BrandDev::Internal::Type::Converter::input spec
|
38
40
|
) -> (^-> top)
|
39
41
|
|
42
|
+
def self.new_coerce_state: (
|
43
|
+
?translate_names: bool
|
44
|
+
) -> BrandDev::Internal::Type::Converter::coerce_state
|
45
|
+
|
40
46
|
def self.coerce: (
|
41
47
|
BrandDev::Internal::Type::Converter::input target,
|
42
48
|
top value,
|
@@ -0,0 +1,162 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_ai_query_params =
|
4
|
+
{
|
5
|
+
data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
|
6
|
+
domain: String,
|
7
|
+
specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
|
8
|
+
timeout_ms: Integer
|
9
|
+
}
|
10
|
+
& BrandDev::Internal::Type::request_parameters
|
11
|
+
|
12
|
+
class BrandAIQueryParams < BrandDev::Internal::Type::BaseModel
|
13
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
14
|
+
include BrandDev::Internal::Type::RequestParameters
|
15
|
+
|
16
|
+
attr_accessor data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract]
|
17
|
+
|
18
|
+
attr_accessor domain: String
|
19
|
+
|
20
|
+
attr_reader specific_pages: BrandDev::BrandAIQueryParams::SpecificPages?
|
21
|
+
|
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
|
29
|
+
|
30
|
+
def initialize: (
|
31
|
+
data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
|
32
|
+
domain: String,
|
33
|
+
?specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
|
34
|
+
?timeout_ms: Integer,
|
35
|
+
?request_options: BrandDev::request_opts
|
36
|
+
) -> void
|
37
|
+
|
38
|
+
def to_hash: -> {
|
39
|
+
data_to_extract: ::Array[BrandDev::BrandAIQueryParams::DataToExtract],
|
40
|
+
domain: String,
|
41
|
+
specific_pages: BrandDev::BrandAIQueryParams::SpecificPages,
|
42
|
+
timeout_ms: Integer,
|
43
|
+
request_options: BrandDev::RequestOptions
|
44
|
+
}
|
45
|
+
|
46
|
+
type data_to_extract =
|
47
|
+
{
|
48
|
+
datapoint_description: String,
|
49
|
+
datapoint_example: String,
|
50
|
+
datapoint_name: String,
|
51
|
+
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
52
|
+
}
|
53
|
+
|
54
|
+
class DataToExtract < BrandDev::Internal::Type::BaseModel
|
55
|
+
attr_accessor datapoint_description: String
|
56
|
+
|
57
|
+
attr_accessor datapoint_example: String
|
58
|
+
|
59
|
+
attr_accessor datapoint_name: String
|
60
|
+
|
61
|
+
attr_accessor datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
62
|
+
|
63
|
+
def initialize: (
|
64
|
+
datapoint_description: String,
|
65
|
+
datapoint_example: String,
|
66
|
+
datapoint_name: String,
|
67
|
+
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
68
|
+
) -> void
|
69
|
+
|
70
|
+
def to_hash: -> {
|
71
|
+
datapoint_description: String,
|
72
|
+
datapoint_example: String,
|
73
|
+
datapoint_name: String,
|
74
|
+
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
75
|
+
}
|
76
|
+
|
77
|
+
type datapoint_type = :text | :number | :date | :boolean | :list | :url
|
78
|
+
|
79
|
+
module DatapointType
|
80
|
+
extend BrandDev::Internal::Type::Enum
|
81
|
+
|
82
|
+
TEXT: :text
|
83
|
+
NUMBER: :number
|
84
|
+
DATE: :date
|
85
|
+
BOOLEAN: :boolean
|
86
|
+
LIST: :list
|
87
|
+
URL: :url
|
88
|
+
|
89
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type]
|
90
|
+
end
|
91
|
+
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
|
+
end
|
161
|
+
end
|
162
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_ai_query_response =
|
4
|
+
{
|
5
|
+
data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
6
|
+
domain: String,
|
7
|
+
urls_analyzed: ::Array[String]
|
8
|
+
}
|
9
|
+
|
10
|
+
class BrandAIQueryResponse < BrandDev::Internal::Type::BaseModel
|
11
|
+
attr_reader data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted]?
|
12
|
+
|
13
|
+
def data_extracted=: (
|
14
|
+
::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted]
|
15
|
+
) -> ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted]
|
16
|
+
|
17
|
+
attr_reader domain: String?
|
18
|
+
|
19
|
+
def domain=: (String) -> String
|
20
|
+
|
21
|
+
attr_reader urls_analyzed: ::Array[String]?
|
22
|
+
|
23
|
+
def urls_analyzed=: (::Array[String]) -> ::Array[String]
|
24
|
+
|
25
|
+
def initialize: (
|
26
|
+
?data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
27
|
+
?domain: String,
|
28
|
+
?urls_analyzed: ::Array[String]
|
29
|
+
) -> void
|
30
|
+
|
31
|
+
def to_hash: -> {
|
32
|
+
data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
33
|
+
domain: String,
|
34
|
+
urls_analyzed: ::Array[String]
|
35
|
+
}
|
36
|
+
|
37
|
+
type data_extracted =
|
38
|
+
{
|
39
|
+
datapoint_name: String,
|
40
|
+
datapoint_value: BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value
|
41
|
+
}
|
42
|
+
|
43
|
+
class DataExtracted < BrandDev::Internal::Type::BaseModel
|
44
|
+
attr_reader datapoint_name: String?
|
45
|
+
|
46
|
+
def datapoint_name=: (String) -> String
|
47
|
+
|
48
|
+
attr_reader datapoint_value: BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value?
|
49
|
+
|
50
|
+
def datapoint_value=: (
|
51
|
+
BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value
|
52
|
+
) -> BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value
|
53
|
+
|
54
|
+
def initialize: (
|
55
|
+
?datapoint_name: String,
|
56
|
+
?datapoint_value: BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value
|
57
|
+
) -> void
|
58
|
+
|
59
|
+
def to_hash: -> {
|
60
|
+
datapoint_name: String,
|
61
|
+
datapoint_value: BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value
|
62
|
+
}
|
63
|
+
|
64
|
+
type datapoint_value =
|
65
|
+
String | Float | bool | ::Array[String] | ::Array[Float]
|
66
|
+
|
67
|
+
module DatapointValue
|
68
|
+
extend BrandDev::Internal::Type::Union
|
69
|
+
|
70
|
+
def self?.variants: -> ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted::datapoint_value]
|
71
|
+
|
72
|
+
StringArray: BrandDev::Internal::Type::Converter
|
73
|
+
|
74
|
+
FloatArray: BrandDev::Internal::Type::Converter
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
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, 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
|
@@ -41,7 +41,6 @@ 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],
|
45
44
|
logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
46
45
|
slogan: String,
|
47
46
|
socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
@@ -76,12 +75,6 @@ module BrandDev
|
|
76
75
|
|
77
76
|
def domain=: (String) -> String
|
78
77
|
|
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
|
-
|
85
78
|
attr_reader logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo]?
|
86
79
|
|
87
80
|
def logos=: (
|
@@ -114,7 +107,6 @@ module BrandDev
|
|
114
107
|
?colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
115
108
|
?description: String,
|
116
109
|
?domain: String,
|
117
|
-
?fonts: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font],
|
118
110
|
?logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
119
111
|
?slogan: String,
|
120
112
|
?socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
@@ -128,7 +120,6 @@ module BrandDev
|
|
128
120
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
129
121
|
description: String,
|
130
122
|
domain: String,
|
131
|
-
fonts: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Font],
|
132
123
|
logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
133
124
|
slogan: String,
|
134
125
|
socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
@@ -282,22 +273,6 @@ module BrandDev
|
|
282
273
|
def to_hash: -> { hex: String, name: String }
|
283
274
|
end
|
284
275
|
|
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
|
-
|
301
276
|
type logo =
|
302
277
|
{
|
303
278
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color],
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_prefetch_params =
|
4
|
+
{ domain: String, timeout_ms: Integer }
|
5
|
+
& BrandDev::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class BrandPrefetchParams < BrandDev::Internal::Type::BaseModel
|
8
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
9
|
+
include BrandDev::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
attr_accessor domain: String
|
12
|
+
|
13
|
+
attr_reader timeout_ms: Integer?
|
14
|
+
|
15
|
+
def timeout_ms=: (Integer) -> Integer
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
domain: String,
|
19
|
+
?timeout_ms: Integer,
|
20
|
+
?request_options: BrandDev::request_opts
|
21
|
+
) -> void
|
22
|
+
|
23
|
+
def to_hash: -> {
|
24
|
+
domain: String,
|
25
|
+
timeout_ms: Integer,
|
26
|
+
request_options: BrandDev::RequestOptions
|
27
|
+
}
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_prefetch_response =
|
4
|
+
{ domain: String, message: String, status: String }
|
5
|
+
|
6
|
+
class BrandPrefetchResponse < BrandDev::Internal::Type::BaseModel
|
7
|
+
attr_reader domain: String?
|
8
|
+
|
9
|
+
def domain=: (String) -> String
|
10
|
+
|
11
|
+
attr_reader message: String?
|
12
|
+
|
13
|
+
def message=: (String) -> String
|
14
|
+
|
15
|
+
attr_reader status: String?
|
16
|
+
|
17
|
+
def status=: (String) -> String
|
18
|
+
|
19
|
+
def initialize: (
|
20
|
+
?domain: String,
|
21
|
+
?message: String,
|
22
|
+
?status: String
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
def to_hash: -> { domain: String, message: String, status: String }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module BrandDev
|
2
2
|
module Models
|
3
3
|
type brand_retrieve_by_ticker_params =
|
4
|
-
{ ticker: String
|
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
|