brand.dev 0.15.0 → 0.16.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 +8 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_ai_query_params.rb +64 -2
- data/lib/brand_dev/models/brand_ai_query_response.rb +15 -5
- data/lib/brand_dev/version.rb +1 -1
- data/rbi/brand_dev/models/brand_ai_query_params.rbi +188 -3
- data/rbi/brand_dev/models/brand_ai_query_response.rbi +16 -4
- data/sig/brand_dev/models/brand_ai_query_params.rbs +59 -3
- data/sig/brand_dev/models/brand_ai_query_response.rbs +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccf8dd90507c84dcea927392291711080cc1dff713f6033bb87f974573f66417
|
|
4
|
+
data.tar.gz: dab13e3371525060dcf6a098cc9d75faba070512dd62aca367addff096cfab1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48199f00792a5f903f0ebb82179675614a0e3f0a68e75b7e03adc7f26cb061b4a44f704b4afcfa6400caf5c539b62c10e2b89120740d3faf661a7e57fe3525db
|
|
7
|
+
data.tar.gz: ad14e379feafc54eb6989a0fb16c9b37d1eb29424566344f6b0c442921eeafbaf92826d7a5ef5e3f5e4c5acd04749c4700de34be20336965c3d9653671ebb36f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.0 (2025-12-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.15.0...v0.16.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.15.0...v0.16.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([dcb86fa](https://github.com/brand-dot-dev/ruby-sdk/commit/dcb86fa97e3a08822e0a379989adbf766b7638c2))
|
|
10
|
+
|
|
3
11
|
## 0.15.0 (2025-11-29)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.14.0...v0.15.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.14.0...v0.15.0)
|
data/README.md
CHANGED
|
@@ -73,7 +73,25 @@ module BrandDev
|
|
|
73
73
|
# @return [Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::DatapointType]
|
|
74
74
|
required :datapoint_type, enum: -> { BrandDev::BrandAIQueryParams::DataToExtract::DatapointType }
|
|
75
75
|
|
|
76
|
-
# @!
|
|
76
|
+
# @!attribute datapoint_list_type
|
|
77
|
+
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
78
|
+
# Use 'object' to extract an array of objects matching a schema.
|
|
79
|
+
#
|
|
80
|
+
# @return [Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::DatapointListType, nil]
|
|
81
|
+
optional :datapoint_list_type, enum: -> { BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType }
|
|
82
|
+
|
|
83
|
+
# @!attribute datapoint_object_schema
|
|
84
|
+
# Schema definition for objects when datapoint_list_type is 'object'. Provide a
|
|
85
|
+
# map of field names to their scalar types.
|
|
86
|
+
#
|
|
87
|
+
# @return [Hash{Symbol=>Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::DatapointObjectSchema}, nil]
|
|
88
|
+
optional :datapoint_object_schema,
|
|
89
|
+
-> { BrandDev::Internal::Type::HashOf[enum: BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema] }
|
|
90
|
+
|
|
91
|
+
# @!method initialize(datapoint_description:, datapoint_example:, datapoint_name:, datapoint_type:, datapoint_list_type: nil, datapoint_object_schema: nil)
|
|
92
|
+
# Some parameter documentations has been truncated, see
|
|
93
|
+
# {BrandDev::Models::BrandAIQueryParams::DataToExtract} for more details.
|
|
94
|
+
#
|
|
77
95
|
# @param datapoint_description [String] Description of what to extract
|
|
78
96
|
#
|
|
79
97
|
# @param datapoint_example [String] Example of the expected value
|
|
@@ -81,6 +99,10 @@ module BrandDev
|
|
|
81
99
|
# @param datapoint_name [String] Name of the data point to extract
|
|
82
100
|
#
|
|
83
101
|
# @param datapoint_type [Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::DatapointType] Type of the data point
|
|
102
|
+
#
|
|
103
|
+
# @param datapoint_list_type [Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::DatapointListType] Type of items in the list when datapoint_type is 'list'. Defaults to 'string'. U
|
|
104
|
+
#
|
|
105
|
+
# @param datapoint_object_schema [Hash{Symbol=>Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::DatapointObjectSchema}] Schema definition for objects when datapoint_list_type is 'object'. Provide a ma
|
|
84
106
|
|
|
85
107
|
# Type of the data point
|
|
86
108
|
#
|
|
@@ -98,6 +120,38 @@ module BrandDev
|
|
|
98
120
|
# @!method self.values
|
|
99
121
|
# @return [Array<Symbol>]
|
|
100
122
|
end
|
|
123
|
+
|
|
124
|
+
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
125
|
+
# Use 'object' to extract an array of objects matching a schema.
|
|
126
|
+
#
|
|
127
|
+
# @see BrandDev::Models::BrandAIQueryParams::DataToExtract#datapoint_list_type
|
|
128
|
+
module DatapointListType
|
|
129
|
+
extend BrandDev::Internal::Type::Enum
|
|
130
|
+
|
|
131
|
+
STRING = :string
|
|
132
|
+
TEXT = :text
|
|
133
|
+
NUMBER = :number
|
|
134
|
+
DATE = :date
|
|
135
|
+
BOOLEAN = :boolean
|
|
136
|
+
LIST = :list
|
|
137
|
+
URL = :url
|
|
138
|
+
OBJECT = :object
|
|
139
|
+
|
|
140
|
+
# @!method self.values
|
|
141
|
+
# @return [Array<Symbol>]
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
module DatapointObjectSchema
|
|
145
|
+
extend BrandDev::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
STRING = :string
|
|
148
|
+
NUMBER = :number
|
|
149
|
+
DATE = :date
|
|
150
|
+
BOOLEAN = :boolean
|
|
151
|
+
|
|
152
|
+
# @!method self.values
|
|
153
|
+
# @return [Array<Symbol>]
|
|
154
|
+
end
|
|
101
155
|
end
|
|
102
156
|
|
|
103
157
|
class SpecificPages < BrandDev::Internal::Type::BaseModel
|
|
@@ -137,6 +191,12 @@ module BrandDev
|
|
|
137
191
|
# @return [Boolean, nil]
|
|
138
192
|
optional :home_page, BrandDev::Internal::Type::Boolean
|
|
139
193
|
|
|
194
|
+
# @!attribute pricing
|
|
195
|
+
# Whether to analyze the pricing page
|
|
196
|
+
#
|
|
197
|
+
# @return [Boolean, nil]
|
|
198
|
+
optional :pricing, BrandDev::Internal::Type::Boolean
|
|
199
|
+
|
|
140
200
|
# @!attribute privacy_policy
|
|
141
201
|
# Whether to analyze the privacy policy page
|
|
142
202
|
#
|
|
@@ -149,7 +209,7 @@ module BrandDev
|
|
|
149
209
|
# @return [Boolean, nil]
|
|
150
210
|
optional :terms_and_conditions, BrandDev::Internal::Type::Boolean
|
|
151
211
|
|
|
152
|
-
# @!method initialize(about_us: nil, blog: nil, careers: nil, contact_us: nil, faq: nil, home_page: nil, privacy_policy: nil, terms_and_conditions: nil)
|
|
212
|
+
# @!method initialize(about_us: nil, blog: nil, careers: nil, contact_us: nil, faq: nil, home_page: nil, pricing: nil, privacy_policy: nil, terms_and_conditions: nil)
|
|
153
213
|
# Optional object specifying which pages to analyze
|
|
154
214
|
#
|
|
155
215
|
# @param about_us [Boolean] Whether to analyze the about us page
|
|
@@ -164,6 +224,8 @@ module BrandDev
|
|
|
164
224
|
#
|
|
165
225
|
# @param home_page [Boolean] Whether to analyze the home page
|
|
166
226
|
#
|
|
227
|
+
# @param pricing [Boolean] Whether to analyze the pricing page
|
|
228
|
+
#
|
|
167
229
|
# @param privacy_policy [Boolean] Whether to analyze the privacy policy page
|
|
168
230
|
#
|
|
169
231
|
# @param terms_and_conditions [Boolean] Whether to analyze the terms and conditions page
|
|
@@ -46,18 +46,23 @@ module BrandDev
|
|
|
46
46
|
optional :datapoint_name, String
|
|
47
47
|
|
|
48
48
|
# @!attribute datapoint_value
|
|
49
|
-
# Value of the extracted data point
|
|
49
|
+
# Value of the extracted data point. Can be a primitive type, an array of
|
|
50
|
+
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
50
51
|
#
|
|
51
|
-
# @return [String, Float, Boolean, Array<String>, Array<Float>, nil]
|
|
52
|
+
# @return [String, Float, Boolean, Array<String>, Array<Float>, Array<Object>, nil]
|
|
52
53
|
optional :datapoint_value,
|
|
53
54
|
union: -> { BrandDev::Models::BrandAIQueryResponse::DataExtracted::DatapointValue }
|
|
54
55
|
|
|
55
56
|
# @!method initialize(datapoint_name: nil, datapoint_value: nil)
|
|
57
|
+
# Some parameter documentations has been truncated, see
|
|
58
|
+
# {BrandDev::Models::BrandAIQueryResponse::DataExtracted} for more details.
|
|
59
|
+
#
|
|
56
60
|
# @param datapoint_name [String] Name of the extracted data point
|
|
57
61
|
#
|
|
58
|
-
# @param datapoint_value [String, Float, Boolean, Array<String>, Array<Float>] Value of the extracted data point
|
|
62
|
+
# @param datapoint_value [String, Float, Boolean, Array<String>, Array<Float>, Array<Object>] Value of the extracted data point. Can be a primitive type, an array of primitiv
|
|
59
63
|
|
|
60
|
-
# Value of the extracted data point
|
|
64
|
+
# Value of the extracted data point. Can be a primitive type, an array of
|
|
65
|
+
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
61
66
|
#
|
|
62
67
|
# @see BrandDev::Models::BrandAIQueryResponse::DataExtracted#datapoint_value
|
|
63
68
|
module DatapointValue
|
|
@@ -73,14 +78,19 @@ module BrandDev
|
|
|
73
78
|
|
|
74
79
|
variant -> { BrandDev::Models::BrandAIQueryResponse::DataExtracted::DatapointValue::FloatArray }
|
|
75
80
|
|
|
81
|
+
variant -> { BrandDev::Models::BrandAIQueryResponse::DataExtracted::DatapointValue::UnionMember5Array }
|
|
82
|
+
|
|
76
83
|
# @!method self.variants
|
|
77
|
-
# @return [Array(String, Float, Boolean, Array<String>, Array<Float>)]
|
|
84
|
+
# @return [Array(String, Float, Boolean, Array<String>, Array<Float>, Array<Object>)]
|
|
78
85
|
|
|
79
86
|
# @type [BrandDev::Internal::Type::Converter]
|
|
80
87
|
StringArray = BrandDev::Internal::Type::ArrayOf[String]
|
|
81
88
|
|
|
82
89
|
# @type [BrandDev::Internal::Type::Converter]
|
|
83
90
|
FloatArray = BrandDev::Internal::Type::ArrayOf[Float]
|
|
91
|
+
|
|
92
|
+
# @type [BrandDev::Internal::Type::Converter]
|
|
93
|
+
UnionMember5Array = BrandDev::Internal::Type::ArrayOf[BrandDev::Internal::Type::Unknown]
|
|
84
94
|
end
|
|
85
95
|
end
|
|
86
96
|
end
|
data/lib/brand_dev/version.rb
CHANGED
|
@@ -108,13 +108,64 @@ module BrandDev
|
|
|
108
108
|
end
|
|
109
109
|
attr_accessor :datapoint_type
|
|
110
110
|
|
|
111
|
+
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
112
|
+
# Use 'object' to extract an array of objects matching a schema.
|
|
113
|
+
sig do
|
|
114
|
+
returns(
|
|
115
|
+
T.nilable(
|
|
116
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::OrSymbol
|
|
117
|
+
)
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
attr_reader :datapoint_list_type
|
|
121
|
+
|
|
122
|
+
sig do
|
|
123
|
+
params(
|
|
124
|
+
datapoint_list_type:
|
|
125
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::OrSymbol
|
|
126
|
+
).void
|
|
127
|
+
end
|
|
128
|
+
attr_writer :datapoint_list_type
|
|
129
|
+
|
|
130
|
+
# Schema definition for objects when datapoint_list_type is 'object'. Provide a
|
|
131
|
+
# map of field names to their scalar types.
|
|
132
|
+
sig do
|
|
133
|
+
returns(
|
|
134
|
+
T.nilable(
|
|
135
|
+
T::Hash[
|
|
136
|
+
Symbol,
|
|
137
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol
|
|
138
|
+
]
|
|
139
|
+
)
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
attr_reader :datapoint_object_schema
|
|
143
|
+
|
|
144
|
+
sig do
|
|
145
|
+
params(
|
|
146
|
+
datapoint_object_schema:
|
|
147
|
+
T::Hash[
|
|
148
|
+
Symbol,
|
|
149
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol
|
|
150
|
+
]
|
|
151
|
+
).void
|
|
152
|
+
end
|
|
153
|
+
attr_writer :datapoint_object_schema
|
|
154
|
+
|
|
111
155
|
sig do
|
|
112
156
|
params(
|
|
113
157
|
datapoint_description: String,
|
|
114
158
|
datapoint_example: String,
|
|
115
159
|
datapoint_name: String,
|
|
116
160
|
datapoint_type:
|
|
117
|
-
BrandDev::BrandAIQueryParams::DataToExtract::DatapointType::OrSymbol
|
|
161
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointType::OrSymbol,
|
|
162
|
+
datapoint_list_type:
|
|
163
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::OrSymbol,
|
|
164
|
+
datapoint_object_schema:
|
|
165
|
+
T::Hash[
|
|
166
|
+
Symbol,
|
|
167
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol
|
|
168
|
+
]
|
|
118
169
|
).returns(T.attached_class)
|
|
119
170
|
end
|
|
120
171
|
def self.new(
|
|
@@ -125,7 +176,13 @@ module BrandDev
|
|
|
125
176
|
# Name of the data point to extract
|
|
126
177
|
datapoint_name:,
|
|
127
178
|
# Type of the data point
|
|
128
|
-
datapoint_type
|
|
179
|
+
datapoint_type:,
|
|
180
|
+
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
181
|
+
# Use 'object' to extract an array of objects matching a schema.
|
|
182
|
+
datapoint_list_type: nil,
|
|
183
|
+
# Schema definition for objects when datapoint_list_type is 'object'. Provide a
|
|
184
|
+
# map of field names to their scalar types.
|
|
185
|
+
datapoint_object_schema: nil
|
|
129
186
|
)
|
|
130
187
|
end
|
|
131
188
|
|
|
@@ -136,7 +193,14 @@ module BrandDev
|
|
|
136
193
|
datapoint_example: String,
|
|
137
194
|
datapoint_name: String,
|
|
138
195
|
datapoint_type:
|
|
139
|
-
BrandDev::BrandAIQueryParams::DataToExtract::DatapointType::OrSymbol
|
|
196
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointType::OrSymbol,
|
|
197
|
+
datapoint_list_type:
|
|
198
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::OrSymbol,
|
|
199
|
+
datapoint_object_schema:
|
|
200
|
+
T::Hash[
|
|
201
|
+
Symbol,
|
|
202
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::OrSymbol
|
|
203
|
+
]
|
|
140
204
|
}
|
|
141
205
|
)
|
|
142
206
|
end
|
|
@@ -197,6 +261,116 @@ module BrandDev
|
|
|
197
261
|
def self.values
|
|
198
262
|
end
|
|
199
263
|
end
|
|
264
|
+
|
|
265
|
+
# Type of items in the list when datapoint_type is 'list'. Defaults to 'string'.
|
|
266
|
+
# Use 'object' to extract an array of objects matching a schema.
|
|
267
|
+
module DatapointListType
|
|
268
|
+
extend BrandDev::Internal::Type::Enum
|
|
269
|
+
|
|
270
|
+
TaggedSymbol =
|
|
271
|
+
T.type_alias do
|
|
272
|
+
T.all(
|
|
273
|
+
Symbol,
|
|
274
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType
|
|
275
|
+
)
|
|
276
|
+
end
|
|
277
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
278
|
+
|
|
279
|
+
STRING =
|
|
280
|
+
T.let(
|
|
281
|
+
:string,
|
|
282
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
283
|
+
)
|
|
284
|
+
TEXT =
|
|
285
|
+
T.let(
|
|
286
|
+
:text,
|
|
287
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
288
|
+
)
|
|
289
|
+
NUMBER =
|
|
290
|
+
T.let(
|
|
291
|
+
:number,
|
|
292
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
293
|
+
)
|
|
294
|
+
DATE =
|
|
295
|
+
T.let(
|
|
296
|
+
:date,
|
|
297
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
298
|
+
)
|
|
299
|
+
BOOLEAN =
|
|
300
|
+
T.let(
|
|
301
|
+
:boolean,
|
|
302
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
303
|
+
)
|
|
304
|
+
LIST =
|
|
305
|
+
T.let(
|
|
306
|
+
:list,
|
|
307
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
308
|
+
)
|
|
309
|
+
URL =
|
|
310
|
+
T.let(
|
|
311
|
+
:url,
|
|
312
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
313
|
+
)
|
|
314
|
+
OBJECT =
|
|
315
|
+
T.let(
|
|
316
|
+
:object,
|
|
317
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
sig do
|
|
321
|
+
override.returns(
|
|
322
|
+
T::Array[
|
|
323
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointListType::TaggedSymbol
|
|
324
|
+
]
|
|
325
|
+
)
|
|
326
|
+
end
|
|
327
|
+
def self.values
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
module DatapointObjectSchema
|
|
332
|
+
extend BrandDev::Internal::Type::Enum
|
|
333
|
+
|
|
334
|
+
TaggedSymbol =
|
|
335
|
+
T.type_alias do
|
|
336
|
+
T.all(
|
|
337
|
+
Symbol,
|
|
338
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema
|
|
339
|
+
)
|
|
340
|
+
end
|
|
341
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
342
|
+
|
|
343
|
+
STRING =
|
|
344
|
+
T.let(
|
|
345
|
+
:string,
|
|
346
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol
|
|
347
|
+
)
|
|
348
|
+
NUMBER =
|
|
349
|
+
T.let(
|
|
350
|
+
:number,
|
|
351
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol
|
|
352
|
+
)
|
|
353
|
+
DATE =
|
|
354
|
+
T.let(
|
|
355
|
+
:date,
|
|
356
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol
|
|
357
|
+
)
|
|
358
|
+
BOOLEAN =
|
|
359
|
+
T.let(
|
|
360
|
+
:boolean,
|
|
361
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
sig do
|
|
365
|
+
override.returns(
|
|
366
|
+
T::Array[
|
|
367
|
+
BrandDev::BrandAIQueryParams::DataToExtract::DatapointObjectSchema::TaggedSymbol
|
|
368
|
+
]
|
|
369
|
+
)
|
|
370
|
+
end
|
|
371
|
+
def self.values
|
|
372
|
+
end
|
|
373
|
+
end
|
|
200
374
|
end
|
|
201
375
|
|
|
202
376
|
class SpecificPages < BrandDev::Internal::Type::BaseModel
|
|
@@ -250,6 +424,13 @@ module BrandDev
|
|
|
250
424
|
sig { params(home_page: T::Boolean).void }
|
|
251
425
|
attr_writer :home_page
|
|
252
426
|
|
|
427
|
+
# Whether to analyze the pricing page
|
|
428
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
429
|
+
attr_reader :pricing
|
|
430
|
+
|
|
431
|
+
sig { params(pricing: T::Boolean).void }
|
|
432
|
+
attr_writer :pricing
|
|
433
|
+
|
|
253
434
|
# Whether to analyze the privacy policy page
|
|
254
435
|
sig { returns(T.nilable(T::Boolean)) }
|
|
255
436
|
attr_reader :privacy_policy
|
|
@@ -273,6 +454,7 @@ module BrandDev
|
|
|
273
454
|
contact_us: T::Boolean,
|
|
274
455
|
faq: T::Boolean,
|
|
275
456
|
home_page: T::Boolean,
|
|
457
|
+
pricing: T::Boolean,
|
|
276
458
|
privacy_policy: T::Boolean,
|
|
277
459
|
terms_and_conditions: T::Boolean
|
|
278
460
|
).returns(T.attached_class)
|
|
@@ -290,6 +472,8 @@ module BrandDev
|
|
|
290
472
|
faq: nil,
|
|
291
473
|
# Whether to analyze the home page
|
|
292
474
|
home_page: nil,
|
|
475
|
+
# Whether to analyze the pricing page
|
|
476
|
+
pricing: nil,
|
|
293
477
|
# Whether to analyze the privacy policy page
|
|
294
478
|
privacy_policy: nil,
|
|
295
479
|
# Whether to analyze the terms and conditions page
|
|
@@ -306,6 +490,7 @@ module BrandDev
|
|
|
306
490
|
contact_us: T::Boolean,
|
|
307
491
|
faq: T::Boolean,
|
|
308
492
|
home_page: T::Boolean,
|
|
493
|
+
pricing: T::Boolean,
|
|
309
494
|
privacy_policy: T::Boolean,
|
|
310
495
|
terms_and_conditions: T::Boolean
|
|
311
496
|
}
|
|
@@ -105,7 +105,8 @@ module BrandDev
|
|
|
105
105
|
sig { params(datapoint_name: String).void }
|
|
106
106
|
attr_writer :datapoint_name
|
|
107
107
|
|
|
108
|
-
# Value of the extracted data point
|
|
108
|
+
# Value of the extracted data point. Can be a primitive type, an array of
|
|
109
|
+
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
109
110
|
sig do
|
|
110
111
|
returns(
|
|
111
112
|
T.nilable(
|
|
@@ -133,7 +134,8 @@ module BrandDev
|
|
|
133
134
|
def self.new(
|
|
134
135
|
# Name of the extracted data point
|
|
135
136
|
datapoint_name: nil,
|
|
136
|
-
# Value of the extracted data point
|
|
137
|
+
# Value of the extracted data point. Can be a primitive type, an array of
|
|
138
|
+
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
137
139
|
datapoint_value: nil
|
|
138
140
|
)
|
|
139
141
|
end
|
|
@@ -150,7 +152,8 @@ module BrandDev
|
|
|
150
152
|
def to_hash
|
|
151
153
|
end
|
|
152
154
|
|
|
153
|
-
# Value of the extracted data point
|
|
155
|
+
# Value of the extracted data point. Can be a primitive type, an array of
|
|
156
|
+
# primitives, or an array of objects when datapoint_list_type is 'object'.
|
|
154
157
|
module DatapointValue
|
|
155
158
|
extend BrandDev::Internal::Type::Union
|
|
156
159
|
|
|
@@ -161,7 +164,8 @@ module BrandDev
|
|
|
161
164
|
Float,
|
|
162
165
|
T::Boolean,
|
|
163
166
|
T::Array[String],
|
|
164
|
-
T::Array[Float]
|
|
167
|
+
T::Array[Float],
|
|
168
|
+
T::Array[T.anything]
|
|
165
169
|
)
|
|
166
170
|
end
|
|
167
171
|
|
|
@@ -186,6 +190,14 @@ module BrandDev
|
|
|
186
190
|
BrandDev::Internal::Type::ArrayOf[Float],
|
|
187
191
|
BrandDev::Internal::Type::Converter
|
|
188
192
|
)
|
|
193
|
+
|
|
194
|
+
UnionMember5Array =
|
|
195
|
+
T.let(
|
|
196
|
+
BrandDev::Internal::Type::ArrayOf[
|
|
197
|
+
BrandDev::Internal::Type::Unknown
|
|
198
|
+
],
|
|
199
|
+
BrandDev::Internal::Type::Converter
|
|
200
|
+
)
|
|
189
201
|
end
|
|
190
202
|
end
|
|
191
203
|
end
|
|
@@ -48,7 +48,9 @@ module BrandDev
|
|
|
48
48
|
datapoint_description: String,
|
|
49
49
|
datapoint_example: String,
|
|
50
50
|
datapoint_name: String,
|
|
51
|
-
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
|
51
|
+
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type,
|
|
52
|
+
datapoint_list_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type,
|
|
53
|
+
datapoint_object_schema: ::Hash[Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
class DataToExtract < BrandDev::Internal::Type::BaseModel
|
|
@@ -60,18 +62,34 @@ module BrandDev
|
|
|
60
62
|
|
|
61
63
|
attr_accessor datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
|
62
64
|
|
|
65
|
+
attr_reader datapoint_list_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type?
|
|
66
|
+
|
|
67
|
+
def datapoint_list_type=: (
|
|
68
|
+
BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type
|
|
69
|
+
) -> BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type
|
|
70
|
+
|
|
71
|
+
attr_reader datapoint_object_schema: ::Hash[Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]?
|
|
72
|
+
|
|
73
|
+
def datapoint_object_schema=: (
|
|
74
|
+
::Hash[Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]
|
|
75
|
+
) -> ::Hash[Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]
|
|
76
|
+
|
|
63
77
|
def initialize: (
|
|
64
78
|
datapoint_description: String,
|
|
65
79
|
datapoint_example: String,
|
|
66
80
|
datapoint_name: String,
|
|
67
|
-
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
|
81
|
+
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type,
|
|
82
|
+
?datapoint_list_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type,
|
|
83
|
+
?datapoint_object_schema: ::Hash[Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]
|
|
68
84
|
) -> void
|
|
69
85
|
|
|
70
86
|
def to_hash: -> {
|
|
71
87
|
datapoint_description: String,
|
|
72
88
|
datapoint_example: String,
|
|
73
89
|
datapoint_name: String,
|
|
74
|
-
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type
|
|
90
|
+
datapoint_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type,
|
|
91
|
+
datapoint_list_type: BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type,
|
|
92
|
+
datapoint_object_schema: ::Hash[Symbol, BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
type datapoint_type = :text | :number | :date | :boolean | :list | :url
|
|
@@ -88,6 +106,37 @@ module BrandDev
|
|
|
88
106
|
|
|
89
107
|
def self?.values: -> ::Array[BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_type]
|
|
90
108
|
end
|
|
109
|
+
|
|
110
|
+
type datapoint_list_type =
|
|
111
|
+
:string | :text | :number | :date | :boolean | :list | :url | :object
|
|
112
|
+
|
|
113
|
+
module DatapointListType
|
|
114
|
+
extend BrandDev::Internal::Type::Enum
|
|
115
|
+
|
|
116
|
+
STRING: :string
|
|
117
|
+
TEXT: :text
|
|
118
|
+
NUMBER: :number
|
|
119
|
+
DATE: :date
|
|
120
|
+
BOOLEAN: :boolean
|
|
121
|
+
LIST: :list
|
|
122
|
+
URL: :url
|
|
123
|
+
OBJECT: :object
|
|
124
|
+
|
|
125
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_list_type]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
type datapoint_object_schema = :string | :number | :date | :boolean
|
|
129
|
+
|
|
130
|
+
module DatapointObjectSchema
|
|
131
|
+
extend BrandDev::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
STRING: :string
|
|
134
|
+
NUMBER: :number
|
|
135
|
+
DATE: :date
|
|
136
|
+
BOOLEAN: :boolean
|
|
137
|
+
|
|
138
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandAIQueryParams::DataToExtract::datapoint_object_schema]
|
|
139
|
+
end
|
|
91
140
|
end
|
|
92
141
|
|
|
93
142
|
type specific_pages =
|
|
@@ -98,6 +147,7 @@ module BrandDev
|
|
|
98
147
|
contact_us: bool,
|
|
99
148
|
faq: bool,
|
|
100
149
|
home_page: bool,
|
|
150
|
+
pricing: bool,
|
|
101
151
|
privacy_policy: bool,
|
|
102
152
|
terms_and_conditions: bool
|
|
103
153
|
}
|
|
@@ -127,6 +177,10 @@ module BrandDev
|
|
|
127
177
|
|
|
128
178
|
def home_page=: (bool) -> bool
|
|
129
179
|
|
|
180
|
+
attr_reader pricing: bool?
|
|
181
|
+
|
|
182
|
+
def pricing=: (bool) -> bool
|
|
183
|
+
|
|
130
184
|
attr_reader privacy_policy: bool?
|
|
131
185
|
|
|
132
186
|
def privacy_policy=: (bool) -> bool
|
|
@@ -142,6 +196,7 @@ module BrandDev
|
|
|
142
196
|
?contact_us: bool,
|
|
143
197
|
?faq: bool,
|
|
144
198
|
?home_page: bool,
|
|
199
|
+
?pricing: bool,
|
|
145
200
|
?privacy_policy: bool,
|
|
146
201
|
?terms_and_conditions: bool
|
|
147
202
|
) -> void
|
|
@@ -153,6 +208,7 @@ module BrandDev
|
|
|
153
208
|
contact_us: bool,
|
|
154
209
|
faq: bool,
|
|
155
210
|
home_page: bool,
|
|
211
|
+
pricing: bool,
|
|
156
212
|
privacy_policy: bool,
|
|
157
213
|
terms_and_conditions: bool
|
|
158
214
|
}
|
|
@@ -69,7 +69,12 @@ module BrandDev
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
type datapoint_value =
|
|
72
|
-
String
|
|
72
|
+
String
|
|
73
|
+
| Float
|
|
74
|
+
| bool
|
|
75
|
+
| ::Array[String]
|
|
76
|
+
| ::Array[Float]
|
|
77
|
+
| ::Array[top]
|
|
73
78
|
|
|
74
79
|
module DatapointValue
|
|
75
80
|
extend BrandDev::Internal::Type::Union
|
|
@@ -79,6 +84,8 @@ module BrandDev
|
|
|
79
84
|
StringArray: BrandDev::Internal::Type::Converter
|
|
80
85
|
|
|
81
86
|
FloatArray: BrandDev::Internal::Type::Converter
|
|
87
|
+
|
|
88
|
+
UnionMember5Array: BrandDev::Internal::Type::Converter
|
|
82
89
|
end
|
|
83
90
|
end
|
|
84
91
|
end
|
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.
|
|
4
|
+
version: 0.16.0
|
|
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-
|
|
11
|
+
date: 2025-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|