Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.11.0"
".": "2.12.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 41
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b0c72d2fe5911c9ce155275b954198bf2152e915a7e5b9f719aad50e222b9ef8.yml
openapi_spec_hash: 5cf943ea5718059b7975417b012cee28
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-2c3f4e4b357ca78c019a3aacd006e2bb8b332d4172a300ee6c46c076a216ed3f.yml
openapi_spec_hash: b89be415cf6ee594b521885a9deb25ac
config_hash: 0fb0ceca5946298c416cec0cca5260c7
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 2.12.0 (2026-08-23)

Full Changelog: [v2.11.0...v2.12.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.11.0...v2.12.0)

### Features

* **api:** api update ([f7adbd6](https://github.com/context-dot-dev/context-ruby-sdk/commit/f7adbd63407b697245019ea9483dc090de9ba0ff))
* **api:** api update ([c26b304](https://github.com/context-dot-dev/context-ruby-sdk/commit/c26b30411607dcc2eaad14962d582f4588f5193f))
* **api:** api update ([852a96e](https://github.com/context-dot-dev/context-ruby-sdk/commit/852a96e58dab7e6fef53af10093119ffc237f52e))
* **api:** api update ([c16beb5](https://github.com/context-dot-dev/context-ruby-sdk/commit/c16beb55d66977611c58711b489132f347ab2c96))

## 2.11.0 (2026-08-18)

Full Changelog: [v2.10.0...v2.11.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.10.0...v2.11.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
context.dev (2.11.0)
context.dev (2.12.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "context.dev", "~> 2.11.0"
gem "context.dev", "~> 2.12.0"
```

<!-- x-release-please-end -->
Expand Down
49 changes: 48 additions & 1 deletion lib/context_dev/models/ai_extract_product_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ class Product < ContextDev::Internal::Type::BaseModel
# @return [Array<String>]
required :target_audience, ContextDev::Internal::Type::ArrayOf[String]

# @!attribute availability
# Normalized stock or ordering availability
#
# @return [Symbol, ContextDev::Models::AIExtractProductResponse::Product::Availability, nil]
optional :availability,
enum: -> { ContextDev::Models::AIExtractProductResponse::Product::Availability },
nil?: true

# @!attribute billing_frequency
# Billing frequency for the product
#
Expand All @@ -143,6 +151,12 @@ class Product < ContextDev::Internal::Type::BaseModel
# @return [String, nil]
optional :currency, String, nil?: true

# @!attribute dimensions
# Dimension statements shown for the product, preserving labels, values, and units
#
# @return [Array<String>, nil]
optional :dimensions, ContextDev::Internal::Type::ArrayOf[String]

# @!attribute image_url
# URL to the product image
#
Expand All @@ -163,13 +177,22 @@ class Product < ContextDev::Internal::Type::BaseModel
enum: -> { ContextDev::Models::AIExtractProductResponse::Product::PricingModel },
nil?: true

# @!attribute regular_price
# Original or regular price before a displayed discount
#
# @return [Float, nil]
optional :regular_price, Float, nil?: true

# @!attribute url
# URL to the product page
#
# @return [String, nil]
optional :url, String, nil?: true

# @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil)
# @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, availability: nil, billing_frequency: nil, category: nil, currency: nil, dimensions: nil, image_url: nil, price: nil, pricing_model: nil, regular_price: nil, url: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::AIExtractProductResponse::Product} for more details.
#
# The extracted product data, or null if not a product page
#
# @param description [String] Description of the product
Expand All @@ -186,20 +209,44 @@ class Product < ContextDev::Internal::Type::BaseModel
#
# @param target_audience [Array<String>] Target audience for the product (array of strings)
#
# @param availability [Symbol, ContextDev::Models::AIExtractProductResponse::Product::Availability, nil] Normalized stock or ordering availability
#
# @param billing_frequency [Symbol, ContextDev::Models::AIExtractProductResponse::Product::BillingFrequency, nil] Billing frequency for the product
#
# @param category [String, nil] Category of the product
#
# @param currency [String, nil] Currency code for the price (e.g., USD, EUR)
#
# @param dimensions [Array<String>] Dimension statements shown for the product, preserving labels, values, and units
#
# @param image_url [String, nil] URL to the product image
#
# @param price [Float, nil] Price of the product
#
# @param pricing_model [Symbol, ContextDev::Models::AIExtractProductResponse::Product::PricingModel, nil] Pricing model for the product
#
# @param regular_price [Float, nil] Original or regular price before a displayed discount
#
# @param url [String, nil] URL to the product page

# Normalized stock or ordering availability
#
# @see ContextDev::Models::AIExtractProductResponse::Product#availability
module Availability
extend ContextDev::Internal::Type::Enum

IN_STOCK = :in_stock
OUT_OF_STOCK = :out_of_stock
LIMITED_AVAILABILITY = :limited_availability
PREORDER = :preorder
BACKORDER = :backorder
MADE_TO_ORDER = :made_to_order
DISCONTINUED = :discontinued

# @!method self.values
# @return [Array<Symbol>]
end

# Billing frequency for the product
#
# @see ContextDev::Models::AIExtractProductResponse::Product#billing_frequency
Expand Down
49 changes: 48 additions & 1 deletion lib/context_dev/models/ai_extract_products_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ class Product < ContextDev::Internal::Type::BaseModel
# @return [Array<String>]
required :target_audience, ContextDev::Internal::Type::ArrayOf[String]

# @!attribute availability
# Normalized stock or ordering availability
#
# @return [Symbol, ContextDev::Models::AIExtractProductsResponse::Product::Availability, nil]
optional :availability,
enum: -> { ContextDev::Models::AIExtractProductsResponse::Product::Availability },
nil?: true

# @!attribute billing_frequency
# Billing frequency for the product
#
Expand All @@ -112,6 +120,12 @@ class Product < ContextDev::Internal::Type::BaseModel
# @return [String, nil]
optional :currency, String, nil?: true

# @!attribute dimensions
# Dimension statements shown for the product, preserving labels, values, and units
#
# @return [Array<String>, nil]
optional :dimensions, ContextDev::Internal::Type::ArrayOf[String]

# @!attribute image_url
# URL to the product image
#
Expand All @@ -132,13 +146,22 @@ class Product < ContextDev::Internal::Type::BaseModel
enum: -> { ContextDev::Models::AIExtractProductsResponse::Product::PricingModel },
nil?: true

# @!attribute regular_price
# Original or regular price before a displayed discount
#
# @return [Float, nil]
optional :regular_price, Float, nil?: true

# @!attribute url
# URL to the product page
#
# @return [String, nil]
optional :url, String, nil?: true

# @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, billing_frequency: nil, category: nil, currency: nil, image_url: nil, price: nil, pricing_model: nil, url: nil)
# @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, availability: nil, billing_frequency: nil, category: nil, currency: nil, dimensions: nil, image_url: nil, price: nil, pricing_model: nil, regular_price: nil, url: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::AIExtractProductsResponse::Product} for more details.
#
# @param description [String] Description of the product
#
# @param features [Array<String>] List of product features
Expand All @@ -153,20 +176,44 @@ class Product < ContextDev::Internal::Type::BaseModel
#
# @param target_audience [Array<String>] Target audience for the product (array of strings)
#
# @param availability [Symbol, ContextDev::Models::AIExtractProductsResponse::Product::Availability, nil] Normalized stock or ordering availability
#
# @param billing_frequency [Symbol, ContextDev::Models::AIExtractProductsResponse::Product::BillingFrequency, nil] Billing frequency for the product
#
# @param category [String, nil] Category of the product
#
# @param currency [String, nil] Currency code for the price (e.g., USD, EUR)
#
# @param dimensions [Array<String>] Dimension statements shown for the product, preserving labels, values, and units
#
# @param image_url [String, nil] URL to the product image
#
# @param price [Float, nil] Price of the product
#
# @param pricing_model [Symbol, ContextDev::Models::AIExtractProductsResponse::Product::PricingModel, nil] Pricing model for the product
#
# @param regular_price [Float, nil] Original or regular price before a displayed discount
#
# @param url [String, nil] URL to the product page

# Normalized stock or ordering availability
#
# @see ContextDev::Models::AIExtractProductsResponse::Product#availability
module Availability
extend ContextDev::Internal::Type::Enum

IN_STOCK = :in_stock
OUT_OF_STOCK = :out_of_stock
LIMITED_AVAILABILITY = :limited_availability
PREORDER = :preorder
BACKORDER = :backorder
MADE_TO_ORDER = :made_to_order
DISCONTINUED = :discontinued

# @!method self.values
# @return [Array<Symbol>]
end

# Billing frequency for the product
#
# @see ContextDev::Models::AIExtractProductsResponse::Product#billing_frequency
Expand Down
1 change: 1 addition & 0 deletions lib/context_dev/models/news_search_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ module SourceCountry
CG = :cg
CH = :ch
CL = :cl
CZ = :cz
DE = :de
FI = :fi
FR = :fr
Expand Down
Loading