context.dev 2.11.0 → 2.12.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 +11 -0
- data/README.md +1 -1
- data/lib/context_dev/models/ai_extract_product_response.rb +48 -1
- data/lib/context_dev/models/ai_extract_products_response.rb +48 -1
- data/lib/context_dev/models/news_search_params.rb +1 -0
- data/lib/context_dev/models/web_extract_params.rb +169 -6
- data/lib/context_dev/models/web_extract_response.rb +85 -1
- data/lib/context_dev/models/web_web_crawl_md_params.rb +7 -5
- data/lib/context_dev/models/web_web_scrape_html_params.rb +99 -3
- data/lib/context_dev/models/web_web_scrape_images_params.rb +99 -3
- data/lib/context_dev/models/web_web_scrape_images_response.rb +85 -1
- data/lib/context_dev/models/web_web_scrape_md_params.rb +99 -3
- data/lib/context_dev/resources/web.rb +9 -7
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/ai_extract_product_response.rbi +99 -0
- data/rbi/context_dev/models/ai_extract_products_response.rbi +99 -0
- data/rbi/context_dev/models/news_search_params.rbi +5 -0
- data/rbi/context_dev/models/web_extract_params.rbi +353 -8
- data/rbi/context_dev/models/web_extract_response.rbi +172 -3
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +10 -6
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +218 -4
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +218 -4
- data/rbi/context_dev/models/web_web_scrape_images_response.rbi +169 -0
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +218 -4
- data/rbi/context_dev/resources/web.rbi +31 -10
- data/sig/context_dev/models/ai_extract_product_response.rbs +40 -0
- data/sig/context_dev/models/ai_extract_products_response.rbs +40 -0
- data/sig/context_dev/models/news_search_params.rbs +2 -0
- data/sig/context_dev/models/web_extract_params.rbs +117 -0
- data/sig/context_dev/models/web_extract_response.rbs +81 -3
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +74 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +74 -0
- data/sig/context_dev/models/web_web_scrape_images_response.rbs +78 -0
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +74 -0
- data/sig/context_dev/resources/web.rbs +1 -0
- metadata +2 -2
|
@@ -232,6 +232,16 @@ module ContextDev
|
|
|
232
232
|
sig { returns(T::Array[String]) }
|
|
233
233
|
attr_accessor :target_audience
|
|
234
234
|
|
|
235
|
+
# Normalized stock or ordering availability
|
|
236
|
+
sig do
|
|
237
|
+
returns(
|
|
238
|
+
T.nilable(
|
|
239
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
240
|
+
)
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
attr_accessor :availability
|
|
244
|
+
|
|
235
245
|
# Billing frequency for the product
|
|
236
246
|
sig do
|
|
237
247
|
returns(
|
|
@@ -250,6 +260,13 @@ module ContextDev
|
|
|
250
260
|
sig { returns(T.nilable(String)) }
|
|
251
261
|
attr_accessor :currency
|
|
252
262
|
|
|
263
|
+
# Dimension statements shown for the product, preserving labels, values, and units
|
|
264
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
265
|
+
attr_reader :dimensions
|
|
266
|
+
|
|
267
|
+
sig { params(dimensions: T::Array[String]).void }
|
|
268
|
+
attr_writer :dimensions
|
|
269
|
+
|
|
253
270
|
# URL to the product image
|
|
254
271
|
sig { returns(T.nilable(String)) }
|
|
255
272
|
attr_accessor :image_url
|
|
@@ -268,6 +285,10 @@ module ContextDev
|
|
|
268
285
|
end
|
|
269
286
|
attr_accessor :pricing_model
|
|
270
287
|
|
|
288
|
+
# Original or regular price before a displayed discount
|
|
289
|
+
sig { returns(T.nilable(Float)) }
|
|
290
|
+
attr_accessor :regular_price
|
|
291
|
+
|
|
271
292
|
# URL to the product page
|
|
272
293
|
sig { returns(T.nilable(String)) }
|
|
273
294
|
attr_accessor :url
|
|
@@ -282,18 +303,24 @@ module ContextDev
|
|
|
282
303
|
sku: T.nilable(String),
|
|
283
304
|
tags: T::Array[String],
|
|
284
305
|
target_audience: T::Array[String],
|
|
306
|
+
availability:
|
|
307
|
+
T.nilable(
|
|
308
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::OrSymbol
|
|
309
|
+
),
|
|
285
310
|
billing_frequency:
|
|
286
311
|
T.nilable(
|
|
287
312
|
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::OrSymbol
|
|
288
313
|
),
|
|
289
314
|
category: T.nilable(String),
|
|
290
315
|
currency: T.nilable(String),
|
|
316
|
+
dimensions: T::Array[String],
|
|
291
317
|
image_url: T.nilable(String),
|
|
292
318
|
price: T.nilable(Float),
|
|
293
319
|
pricing_model:
|
|
294
320
|
T.nilable(
|
|
295
321
|
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::OrSymbol
|
|
296
322
|
),
|
|
323
|
+
regular_price: T.nilable(Float),
|
|
297
324
|
url: T.nilable(String)
|
|
298
325
|
).returns(T.attached_class)
|
|
299
326
|
end
|
|
@@ -312,18 +339,24 @@ module ContextDev
|
|
|
312
339
|
tags:,
|
|
313
340
|
# Target audience for the product (array of strings)
|
|
314
341
|
target_audience:,
|
|
342
|
+
# Normalized stock or ordering availability
|
|
343
|
+
availability: nil,
|
|
315
344
|
# Billing frequency for the product
|
|
316
345
|
billing_frequency: nil,
|
|
317
346
|
# Category of the product
|
|
318
347
|
category: nil,
|
|
319
348
|
# Currency code for the price (e.g., USD, EUR)
|
|
320
349
|
currency: nil,
|
|
350
|
+
# Dimension statements shown for the product, preserving labels, values, and units
|
|
351
|
+
dimensions: nil,
|
|
321
352
|
# URL to the product image
|
|
322
353
|
image_url: nil,
|
|
323
354
|
# Price of the product
|
|
324
355
|
price: nil,
|
|
325
356
|
# Pricing model for the product
|
|
326
357
|
pricing_model: nil,
|
|
358
|
+
# Original or regular price before a displayed discount
|
|
359
|
+
regular_price: nil,
|
|
327
360
|
# URL to the product page
|
|
328
361
|
url: nil
|
|
329
362
|
)
|
|
@@ -339,18 +372,24 @@ module ContextDev
|
|
|
339
372
|
sku: T.nilable(String),
|
|
340
373
|
tags: T::Array[String],
|
|
341
374
|
target_audience: T::Array[String],
|
|
375
|
+
availability:
|
|
376
|
+
T.nilable(
|
|
377
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
378
|
+
),
|
|
342
379
|
billing_frequency:
|
|
343
380
|
T.nilable(
|
|
344
381
|
ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency::TaggedSymbol
|
|
345
382
|
),
|
|
346
383
|
category: T.nilable(String),
|
|
347
384
|
currency: T.nilable(String),
|
|
385
|
+
dimensions: T::Array[String],
|
|
348
386
|
image_url: T.nilable(String),
|
|
349
387
|
price: T.nilable(Float),
|
|
350
388
|
pricing_model:
|
|
351
389
|
T.nilable(
|
|
352
390
|
ContextDev::Models::AIExtractProductResponse::Product::PricingModel::TaggedSymbol
|
|
353
391
|
),
|
|
392
|
+
regular_price: T.nilable(Float),
|
|
354
393
|
url: T.nilable(String)
|
|
355
394
|
}
|
|
356
395
|
)
|
|
@@ -358,6 +397,66 @@ module ContextDev
|
|
|
358
397
|
def to_hash
|
|
359
398
|
end
|
|
360
399
|
|
|
400
|
+
# Normalized stock or ordering availability
|
|
401
|
+
module Availability
|
|
402
|
+
extend ContextDev::Internal::Type::Enum
|
|
403
|
+
|
|
404
|
+
TaggedSymbol =
|
|
405
|
+
T.type_alias do
|
|
406
|
+
T.all(
|
|
407
|
+
Symbol,
|
|
408
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability
|
|
409
|
+
)
|
|
410
|
+
end
|
|
411
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
412
|
+
|
|
413
|
+
IN_STOCK =
|
|
414
|
+
T.let(
|
|
415
|
+
:in_stock,
|
|
416
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
417
|
+
)
|
|
418
|
+
OUT_OF_STOCK =
|
|
419
|
+
T.let(
|
|
420
|
+
:out_of_stock,
|
|
421
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
422
|
+
)
|
|
423
|
+
LIMITED_AVAILABILITY =
|
|
424
|
+
T.let(
|
|
425
|
+
:limited_availability,
|
|
426
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
427
|
+
)
|
|
428
|
+
PREORDER =
|
|
429
|
+
T.let(
|
|
430
|
+
:preorder,
|
|
431
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
432
|
+
)
|
|
433
|
+
BACKORDER =
|
|
434
|
+
T.let(
|
|
435
|
+
:backorder,
|
|
436
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
437
|
+
)
|
|
438
|
+
MADE_TO_ORDER =
|
|
439
|
+
T.let(
|
|
440
|
+
:made_to_order,
|
|
441
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
442
|
+
)
|
|
443
|
+
DISCONTINUED =
|
|
444
|
+
T.let(
|
|
445
|
+
:discontinued,
|
|
446
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
sig do
|
|
450
|
+
override.returns(
|
|
451
|
+
T::Array[
|
|
452
|
+
ContextDev::Models::AIExtractProductResponse::Product::Availability::TaggedSymbol
|
|
453
|
+
]
|
|
454
|
+
)
|
|
455
|
+
end
|
|
456
|
+
def self.values
|
|
457
|
+
end
|
|
458
|
+
end
|
|
459
|
+
|
|
361
460
|
# Billing frequency for the product
|
|
362
461
|
module BillingFrequency
|
|
363
462
|
extend ContextDev::Internal::Type::Enum
|
|
@@ -158,6 +158,16 @@ module ContextDev
|
|
|
158
158
|
sig { returns(T::Array[String]) }
|
|
159
159
|
attr_accessor :target_audience
|
|
160
160
|
|
|
161
|
+
# Normalized stock or ordering availability
|
|
162
|
+
sig do
|
|
163
|
+
returns(
|
|
164
|
+
T.nilable(
|
|
165
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
166
|
+
)
|
|
167
|
+
)
|
|
168
|
+
end
|
|
169
|
+
attr_accessor :availability
|
|
170
|
+
|
|
161
171
|
# Billing frequency for the product
|
|
162
172
|
sig do
|
|
163
173
|
returns(
|
|
@@ -176,6 +186,13 @@ module ContextDev
|
|
|
176
186
|
sig { returns(T.nilable(String)) }
|
|
177
187
|
attr_accessor :currency
|
|
178
188
|
|
|
189
|
+
# Dimension statements shown for the product, preserving labels, values, and units
|
|
190
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
191
|
+
attr_reader :dimensions
|
|
192
|
+
|
|
193
|
+
sig { params(dimensions: T::Array[String]).void }
|
|
194
|
+
attr_writer :dimensions
|
|
195
|
+
|
|
179
196
|
# URL to the product image
|
|
180
197
|
sig { returns(T.nilable(String)) }
|
|
181
198
|
attr_accessor :image_url
|
|
@@ -194,6 +211,10 @@ module ContextDev
|
|
|
194
211
|
end
|
|
195
212
|
attr_accessor :pricing_model
|
|
196
213
|
|
|
214
|
+
# Original or regular price before a displayed discount
|
|
215
|
+
sig { returns(T.nilable(Float)) }
|
|
216
|
+
attr_accessor :regular_price
|
|
217
|
+
|
|
197
218
|
# URL to the product page
|
|
198
219
|
sig { returns(T.nilable(String)) }
|
|
199
220
|
attr_accessor :url
|
|
@@ -207,18 +228,24 @@ module ContextDev
|
|
|
207
228
|
sku: T.nilable(String),
|
|
208
229
|
tags: T::Array[String],
|
|
209
230
|
target_audience: T::Array[String],
|
|
231
|
+
availability:
|
|
232
|
+
T.nilable(
|
|
233
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::OrSymbol
|
|
234
|
+
),
|
|
210
235
|
billing_frequency:
|
|
211
236
|
T.nilable(
|
|
212
237
|
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::OrSymbol
|
|
213
238
|
),
|
|
214
239
|
category: T.nilable(String),
|
|
215
240
|
currency: T.nilable(String),
|
|
241
|
+
dimensions: T::Array[String],
|
|
216
242
|
image_url: T.nilable(String),
|
|
217
243
|
price: T.nilable(Float),
|
|
218
244
|
pricing_model:
|
|
219
245
|
T.nilable(
|
|
220
246
|
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::OrSymbol
|
|
221
247
|
),
|
|
248
|
+
regular_price: T.nilable(Float),
|
|
222
249
|
url: T.nilable(String)
|
|
223
250
|
).returns(T.attached_class)
|
|
224
251
|
end
|
|
@@ -237,18 +264,24 @@ module ContextDev
|
|
|
237
264
|
tags:,
|
|
238
265
|
# Target audience for the product (array of strings)
|
|
239
266
|
target_audience:,
|
|
267
|
+
# Normalized stock or ordering availability
|
|
268
|
+
availability: nil,
|
|
240
269
|
# Billing frequency for the product
|
|
241
270
|
billing_frequency: nil,
|
|
242
271
|
# Category of the product
|
|
243
272
|
category: nil,
|
|
244
273
|
# Currency code for the price (e.g., USD, EUR)
|
|
245
274
|
currency: nil,
|
|
275
|
+
# Dimension statements shown for the product, preserving labels, values, and units
|
|
276
|
+
dimensions: nil,
|
|
246
277
|
# URL to the product image
|
|
247
278
|
image_url: nil,
|
|
248
279
|
# Price of the product
|
|
249
280
|
price: nil,
|
|
250
281
|
# Pricing model for the product
|
|
251
282
|
pricing_model: nil,
|
|
283
|
+
# Original or regular price before a displayed discount
|
|
284
|
+
regular_price: nil,
|
|
252
285
|
# URL to the product page
|
|
253
286
|
url: nil
|
|
254
287
|
)
|
|
@@ -264,18 +297,24 @@ module ContextDev
|
|
|
264
297
|
sku: T.nilable(String),
|
|
265
298
|
tags: T::Array[String],
|
|
266
299
|
target_audience: T::Array[String],
|
|
300
|
+
availability:
|
|
301
|
+
T.nilable(
|
|
302
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
303
|
+
),
|
|
267
304
|
billing_frequency:
|
|
268
305
|
T.nilable(
|
|
269
306
|
ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency::TaggedSymbol
|
|
270
307
|
),
|
|
271
308
|
category: T.nilable(String),
|
|
272
309
|
currency: T.nilable(String),
|
|
310
|
+
dimensions: T::Array[String],
|
|
273
311
|
image_url: T.nilable(String),
|
|
274
312
|
price: T.nilable(Float),
|
|
275
313
|
pricing_model:
|
|
276
314
|
T.nilable(
|
|
277
315
|
ContextDev::Models::AIExtractProductsResponse::Product::PricingModel::TaggedSymbol
|
|
278
316
|
),
|
|
317
|
+
regular_price: T.nilable(Float),
|
|
279
318
|
url: T.nilable(String)
|
|
280
319
|
}
|
|
281
320
|
)
|
|
@@ -283,6 +322,66 @@ module ContextDev
|
|
|
283
322
|
def to_hash
|
|
284
323
|
end
|
|
285
324
|
|
|
325
|
+
# Normalized stock or ordering availability
|
|
326
|
+
module Availability
|
|
327
|
+
extend ContextDev::Internal::Type::Enum
|
|
328
|
+
|
|
329
|
+
TaggedSymbol =
|
|
330
|
+
T.type_alias do
|
|
331
|
+
T.all(
|
|
332
|
+
Symbol,
|
|
333
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability
|
|
334
|
+
)
|
|
335
|
+
end
|
|
336
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
337
|
+
|
|
338
|
+
IN_STOCK =
|
|
339
|
+
T.let(
|
|
340
|
+
:in_stock,
|
|
341
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
342
|
+
)
|
|
343
|
+
OUT_OF_STOCK =
|
|
344
|
+
T.let(
|
|
345
|
+
:out_of_stock,
|
|
346
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
347
|
+
)
|
|
348
|
+
LIMITED_AVAILABILITY =
|
|
349
|
+
T.let(
|
|
350
|
+
:limited_availability,
|
|
351
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
352
|
+
)
|
|
353
|
+
PREORDER =
|
|
354
|
+
T.let(
|
|
355
|
+
:preorder,
|
|
356
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
357
|
+
)
|
|
358
|
+
BACKORDER =
|
|
359
|
+
T.let(
|
|
360
|
+
:backorder,
|
|
361
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
362
|
+
)
|
|
363
|
+
MADE_TO_ORDER =
|
|
364
|
+
T.let(
|
|
365
|
+
:made_to_order,
|
|
366
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
367
|
+
)
|
|
368
|
+
DISCONTINUED =
|
|
369
|
+
T.let(
|
|
370
|
+
:discontinued,
|
|
371
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
sig do
|
|
375
|
+
override.returns(
|
|
376
|
+
T::Array[
|
|
377
|
+
ContextDev::Models::AIExtractProductsResponse::Product::Availability::TaggedSymbol
|
|
378
|
+
]
|
|
379
|
+
)
|
|
380
|
+
end
|
|
381
|
+
def self.values
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
286
385
|
# Billing frequency for the product
|
|
287
386
|
module BillingFrequency
|
|
288
387
|
extend ContextDev::Internal::Type::Enum
|
|
@@ -1123,6 +1123,11 @@ module ContextDev
|
|
|
1123
1123
|
:cl,
|
|
1124
1124
|
ContextDev::NewsSearchParams::FilterBy::SourceCountry::TaggedSymbol
|
|
1125
1125
|
)
|
|
1126
|
+
CZ =
|
|
1127
|
+
T.let(
|
|
1128
|
+
:cz,
|
|
1129
|
+
ContextDev::NewsSearchParams::FilterBy::SourceCountry::TaggedSymbol
|
|
1130
|
+
)
|
|
1126
1131
|
DE =
|
|
1127
1132
|
T.let(
|
|
1128
1133
|
:de,
|