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 @@
{
".": "1.31.0"
".": "1.32.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: 25
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5a8e1f6e16ecdbab4b2ff14701779818fe0328b06a1c7fa44a32da4f4bc87a49.yml
openapi_spec_hash: 4b5407859d1154232189ef440b783b17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b84f53b1a92511eff85645f287ec08d43adcdcc589367c015770bde836422a65.yml
openapi_spec_hash: 71e317da7bc58cfc3bc2e4180f5b6267
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.32.0 (2026-06-11)

Full Changelog: [v1.31.0...v1.32.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.31.0...v1.32.0)

### Features

* **api:** api update ([67ddd60](https://github.com/context-dot-dev/context-ruby-sdk/commit/67ddd60fffad48a4cc6697fb940f6510bc04d0cb))
* **api:** api update ([e987167](https://github.com/context-dot-dev/context-ruby-sdk/commit/e9871675c89fd313209d95cd54071fe986dd772a))

## 1.31.0 (2026-06-08)

Full Changelog: [v1.30.0...v1.31.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.30.0...v1.31.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 (1.31.0)
context.dev (1.32.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", "~> 1.31.0"
gem "context.dev", "~> 1.32.0"
```

<!-- x-release-please-end -->
Expand Down
37 changes: 36 additions & 1 deletion lib/context_dev/models/ai_ai_query_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel
# @return [String, nil]
optional :domain, String

# @!attribute key_metadata
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @return [ContextDev::Models::AIAIQueryResponse::KeyMetadata, nil]
optional :key_metadata, -> { ContextDev::Models::AIAIQueryResponse::KeyMetadata }

# @!attribute status
# Status of the response, e.g., 'ok'
#
Expand All @@ -29,11 +36,16 @@ class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel
# @return [Array<String>, nil]
optional :urls_analyzed, ContextDev::Internal::Type::ArrayOf[String]

# @!method initialize(data_extracted: nil, domain: nil, status: nil, urls_analyzed: nil)
# @!method initialize(data_extracted: nil, domain: nil, key_metadata: nil, status: nil, urls_analyzed: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::AIAIQueryResponse} for more details.
#
# @param data_extracted [Array<ContextDev::Models::AIAIQueryResponse::DataExtracted>] Array of extracted data points
#
# @param domain [String] The domain that was analyzed
#
# @param key_metadata [ContextDev::Models::AIAIQueryResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
#
# @param status [String] Status of the response, e.g., 'ok'
#
# @param urls_analyzed [Array<String>] List of URLs that were analyzed
Expand Down Expand Up @@ -93,6 +105,29 @@ module DatapointValue
UnionMember5Array = ContextDev::Internal::Type::ArrayOf[ContextDev::Internal::Type::Unknown]
end
end

# @see ContextDev::Models::AIAIQueryResponse#key_metadata
class KeyMetadata < ContextDev::Internal::Type::BaseModel
# @!attribute credits_consumed
# The number of credits consumed by this request.
#
# @return [Integer]
required :credits_consumed, Integer

# @!attribute credits_remaining
# The number of credits remaining for your organization after this request.
#
# @return [Integer]
required :credits_remaining, Integer

# @!method initialize(credits_consumed:, credits_remaining:)
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @param credits_consumed [Integer] The number of credits consumed by this request.
#
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
end
end
end
end
37 changes: 36 additions & 1 deletion lib/context_dev/models/ai_extract_product_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ class AIExtractProductResponse < ContextDev::Internal::Type::BaseModel
# @return [Boolean, nil]
optional :is_product_page, ContextDev::Internal::Type::Boolean

# @!attribute key_metadata
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @return [ContextDev::Models::AIExtractProductResponse::KeyMetadata, nil]
optional :key_metadata, -> { ContextDev::Models::AIExtractProductResponse::KeyMetadata }

# @!attribute platform
# The detected ecommerce platform, or null if not a product page
#
Expand All @@ -22,13 +29,41 @@ class AIExtractProductResponse < ContextDev::Internal::Type::BaseModel
# @return [ContextDev::Models::AIExtractProductResponse::Product, nil]
optional :product, -> { ContextDev::Models::AIExtractProductResponse::Product }, nil?: true

# @!method initialize(is_product_page: nil, platform: nil, product: nil)
# @!method initialize(is_product_page: nil, key_metadata: nil, platform: nil, product: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::AIExtractProductResponse} for more details.
#
# @param is_product_page [Boolean] Whether the given URL is a product detail page
#
# @param key_metadata [ContextDev::Models::AIExtractProductResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
#
# @param platform [Symbol, ContextDev::Models::AIExtractProductResponse::Platform, nil] The detected ecommerce platform, or null if not a product page
#
# @param product [ContextDev::Models::AIExtractProductResponse::Product, nil] The extracted product data, or null if not a product page

# @see ContextDev::Models::AIExtractProductResponse#key_metadata
class KeyMetadata < ContextDev::Internal::Type::BaseModel
# @!attribute credits_consumed
# The number of credits consumed by this request.
#
# @return [Integer]
required :credits_consumed, Integer

# @!attribute credits_remaining
# The number of credits remaining for your organization after this request.
#
# @return [Integer]
required :credits_remaining, Integer

# @!method initialize(credits_consumed:, credits_remaining:)
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @param credits_consumed [Integer] The number of credits consumed by this request.
#
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
end

# The detected ecommerce platform, or null if not a product page
#
# @see ContextDev::Models::AIExtractProductResponse#platform
Expand Down
37 changes: 36 additions & 1 deletion lib/context_dev/models/ai_extract_products_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,51 @@ module ContextDev
module Models
# @see ContextDev::Resources::AI#extract_products
class AIExtractProductsResponse < ContextDev::Internal::Type::BaseModel
# @!attribute key_metadata
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @return [ContextDev::Models::AIExtractProductsResponse::KeyMetadata, nil]
optional :key_metadata, -> { ContextDev::Models::AIExtractProductsResponse::KeyMetadata }

# @!attribute products
# Array of products extracted from the website
#
# @return [Array<ContextDev::Models::AIExtractProductsResponse::Product>, nil]
optional :products,
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIExtractProductsResponse::Product] }

# @!method initialize(products: nil)
# @!method initialize(key_metadata: nil, products: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::AIExtractProductsResponse} for more details.
#
# @param key_metadata [ContextDev::Models::AIExtractProductsResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
#
# @param products [Array<ContextDev::Models::AIExtractProductsResponse::Product>] Array of products extracted from the website

# @see ContextDev::Models::AIExtractProductsResponse#key_metadata
class KeyMetadata < ContextDev::Internal::Type::BaseModel
# @!attribute credits_consumed
# The number of credits consumed by this request.
#
# @return [Integer]
required :credits_consumed, Integer

# @!attribute credits_remaining
# The number of credits remaining for your organization after this request.
#
# @return [Integer]
required :credits_remaining, Integer

# @!method initialize(credits_consumed:, credits_remaining:)
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @param credits_consumed [Integer] The number of credits consumed by this request.
#
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
end

class Product < ContextDev::Internal::Type::BaseModel
# @!attribute description
# Description of the product
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,29 @@ class BrandIdentifyFromTransactionResponse < ContextDev::Internal::Type::BaseMod
# @return [Integer, nil]
optional :code, Integer

# @!attribute key_metadata
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, nil]
optional :key_metadata, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata }

# @!attribute status
# Status of the response, e.g., 'ok'
#
# @return [String, nil]
optional :status, String

# @!method initialize(brand: nil, code: nil, status: nil)
# @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::BrandIdentifyFromTransactionResponse} for more details.
#
# @param brand [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand] Detailed brand information
#
# @param code [Integer] HTTP status code
#
# @param key_metadata [ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
#
# @param status [String] Status of the response, e.g., 'ok'

# @see ContextDev::Models::BrandIdentifyFromTransactionResponse#brand
Expand Down Expand Up @@ -1034,6 +1046,29 @@ class Stock < ContextDev::Internal::Type::BaseModel
# @param ticker [String] Stock ticker symbol
end
end

# @see ContextDev::Models::BrandIdentifyFromTransactionResponse#key_metadata
class KeyMetadata < ContextDev::Internal::Type::BaseModel
# @!attribute credits_consumed
# The number of credits consumed by this request.
#
# @return [Integer]
required :credits_consumed, Integer

# @!attribute credits_remaining
# The number of credits remaining for your organization after this request.
#
# @return [Integer]
required :credits_remaining, Integer

# @!method initialize(credits_consumed:, credits_remaining:)
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @param credits_consumed [Integer] The number of credits consumed by this request.
#
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
end
end
end
end
37 changes: 36 additions & 1 deletion lib/context_dev/models/brand_retrieve_by_email_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,29 @@ class BrandRetrieveByEmailResponse < ContextDev::Internal::Type::BaseModel
# @return [Integer, nil]
optional :code, Integer

# @!attribute key_metadata
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @return [ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, nil]
optional :key_metadata, -> { ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata }

# @!attribute status
# Status of the response, e.g., 'ok'
#
# @return [String, nil]
optional :status, String

# @!method initialize(brand: nil, code: nil, status: nil)
# @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::BrandRetrieveByEmailResponse} for more details.
#
# @param brand [ContextDev::Models::BrandRetrieveByEmailResponse::Brand] Detailed brand information
#
# @param code [Integer] HTTP status code
#
# @param key_metadata [ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
#
# @param status [String] Status of the response, e.g., 'ok'

# @see ContextDev::Models::BrandRetrieveByEmailResponse#brand
Expand Down Expand Up @@ -1031,6 +1043,29 @@ class Stock < ContextDev::Internal::Type::BaseModel
# @param ticker [String] Stock ticker symbol
end
end

# @see ContextDev::Models::BrandRetrieveByEmailResponse#key_metadata
class KeyMetadata < ContextDev::Internal::Type::BaseModel
# @!attribute credits_consumed
# The number of credits consumed by this request.
#
# @return [Integer]
required :credits_consumed, Integer

# @!attribute credits_remaining
# The number of credits remaining for your organization after this request.
#
# @return [Integer]
required :credits_remaining, Integer

# @!method initialize(credits_consumed:, credits_remaining:)
# Metadata about the API key used for the request. Included in every response
# whenever a valid API key is provided, even when the response status is not 200.
#
# @param credits_consumed [Integer] The number of credits consumed by this request.
#
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
end
end
end
end
Loading
Loading