Skip to content

Commit 168d640

Browse files
authored
Merge pull request #43 from context-dot-dev/release-please--branches--main--changes--next
release: 1.32.0
2 parents 89395ae + d33171a commit 168d640

92 files changed

Lines changed: 3452 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.31.0"
2+
".": "1.32.0"
33
}

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 25
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5a8e1f6e16ecdbab4b2ff14701779818fe0328b06a1c7fa44a32da4f4bc87a49.yml
3-
openapi_spec_hash: 4b5407859d1154232189ef440b783b17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b84f53b1a92511eff85645f287ec08d43adcdcc589367c015770bde836422a65.yml
3+
openapi_spec_hash: 71e317da7bc58cfc3bc2e4180f5b6267
44
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c

‎CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 1.32.0 (2026-06-11)
4+
5+
Full Changelog: [v1.31.0...v1.32.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.31.0...v1.32.0)
6+
7+
### Features
8+
9+
* **api:** api update ([67ddd60](https://github.com/context-dot-dev/context-ruby-sdk/commit/67ddd60fffad48a4cc6697fb940f6510bc04d0cb))
10+
* **api:** api update ([e987167](https://github.com/context-dot-dev/context-ruby-sdk/commit/e9871675c89fd313209d95cd54071fe986dd772a))
11+
312
## 1.31.0 (2026-06-08)
413

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

‎Gemfile.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
context.dev (1.31.0)
14+
context.dev (1.32.0)
1515
cgi
1616
connection_pool
1717

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
2626
<!-- x-release-please-start-version -->
2727

2828
```ruby
29-
gem "context.dev", "~> 1.31.0"
29+
gem "context.dev", "~> 1.32.0"
3030
```
3131

3232
<!-- x-release-please-end -->

‎lib/context_dev/models/ai_ai_query_response.rb‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel
1717
# @return [String, nil]
1818
optional :domain, String
1919

20+
# @!attribute key_metadata
21+
# Metadata about the API key used for the request. Included in every response
22+
# whenever a valid API key is provided, even when the response status is not 200.
23+
#
24+
# @return [ContextDev::Models::AIAIQueryResponse::KeyMetadata, nil]
25+
optional :key_metadata, -> { ContextDev::Models::AIAIQueryResponse::KeyMetadata }
26+
2027
# @!attribute status
2128
# Status of the response, e.g., 'ok'
2229
#
@@ -29,11 +36,16 @@ class AIAIQueryResponse < ContextDev::Internal::Type::BaseModel
2936
# @return [Array<String>, nil]
3037
optional :urls_analyzed, ContextDev::Internal::Type::ArrayOf[String]
3138

32-
# @!method initialize(data_extracted: nil, domain: nil, status: nil, urls_analyzed: nil)
39+
# @!method initialize(data_extracted: nil, domain: nil, key_metadata: nil, status: nil, urls_analyzed: nil)
40+
# Some parameter documentations has been truncated, see
41+
# {ContextDev::Models::AIAIQueryResponse} for more details.
42+
#
3343
# @param data_extracted [Array<ContextDev::Models::AIAIQueryResponse::DataExtracted>] Array of extracted data points
3444
#
3545
# @param domain [String] The domain that was analyzed
3646
#
47+
# @param key_metadata [ContextDev::Models::AIAIQueryResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
48+
#
3749
# @param status [String] Status of the response, e.g., 'ok'
3850
#
3951
# @param urls_analyzed [Array<String>] List of URLs that were analyzed
@@ -93,6 +105,29 @@ module DatapointValue
93105
UnionMember5Array = ContextDev::Internal::Type::ArrayOf[ContextDev::Internal::Type::Unknown]
94106
end
95107
end
108+
109+
# @see ContextDev::Models::AIAIQueryResponse#key_metadata
110+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
111+
# @!attribute credits_consumed
112+
# The number of credits consumed by this request.
113+
#
114+
# @return [Integer]
115+
required :credits_consumed, Integer
116+
117+
# @!attribute credits_remaining
118+
# The number of credits remaining for your organization after this request.
119+
#
120+
# @return [Integer]
121+
required :credits_remaining, Integer
122+
123+
# @!method initialize(credits_consumed:, credits_remaining:)
124+
# Metadata about the API key used for the request. Included in every response
125+
# whenever a valid API key is provided, even when the response status is not 200.
126+
#
127+
# @param credits_consumed [Integer] The number of credits consumed by this request.
128+
#
129+
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
130+
end
96131
end
97132
end
98133
end

‎lib/context_dev/models/ai_extract_product_response.rb‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ class AIExtractProductResponse < ContextDev::Internal::Type::BaseModel
1010
# @return [Boolean, nil]
1111
optional :is_product_page, ContextDev::Internal::Type::Boolean
1212

13+
# @!attribute key_metadata
14+
# Metadata about the API key used for the request. Included in every response
15+
# whenever a valid API key is provided, even when the response status is not 200.
16+
#
17+
# @return [ContextDev::Models::AIExtractProductResponse::KeyMetadata, nil]
18+
optional :key_metadata, -> { ContextDev::Models::AIExtractProductResponse::KeyMetadata }
19+
1320
# @!attribute platform
1421
# The detected ecommerce platform, or null if not a product page
1522
#
@@ -22,13 +29,41 @@ class AIExtractProductResponse < ContextDev::Internal::Type::BaseModel
2229
# @return [ContextDev::Models::AIExtractProductResponse::Product, nil]
2330
optional :product, -> { ContextDev::Models::AIExtractProductResponse::Product }, nil?: true
2431

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

44+
# @see ContextDev::Models::AIExtractProductResponse#key_metadata
45+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
46+
# @!attribute credits_consumed
47+
# The number of credits consumed by this request.
48+
#
49+
# @return [Integer]
50+
required :credits_consumed, Integer
51+
52+
# @!attribute credits_remaining
53+
# The number of credits remaining for your organization after this request.
54+
#
55+
# @return [Integer]
56+
required :credits_remaining, Integer
57+
58+
# @!method initialize(credits_consumed:, credits_remaining:)
59+
# Metadata about the API key used for the request. Included in every response
60+
# whenever a valid API key is provided, even when the response status is not 200.
61+
#
62+
# @param credits_consumed [Integer] The number of credits consumed by this request.
63+
#
64+
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
65+
end
66+
3267
# The detected ecommerce platform, or null if not a product page
3368
#
3469
# @see ContextDev::Models::AIExtractProductResponse#platform

‎lib/context_dev/models/ai_extract_products_response.rb‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,51 @@ module ContextDev
44
module Models
55
# @see ContextDev::Resources::AI#extract_products
66
class AIExtractProductsResponse < ContextDev::Internal::Type::BaseModel
7+
# @!attribute key_metadata
8+
# Metadata about the API key used for the request. Included in every response
9+
# whenever a valid API key is provided, even when the response status is not 200.
10+
#
11+
# @return [ContextDev::Models::AIExtractProductsResponse::KeyMetadata, nil]
12+
optional :key_metadata, -> { ContextDev::Models::AIExtractProductsResponse::KeyMetadata }
13+
714
# @!attribute products
815
# Array of products extracted from the website
916
#
1017
# @return [Array<ContextDev::Models::AIExtractProductsResponse::Product>, nil]
1118
optional :products,
1219
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIExtractProductsResponse::Product] }
1320

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

29+
# @see ContextDev::Models::AIExtractProductsResponse#key_metadata
30+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
31+
# @!attribute credits_consumed
32+
# The number of credits consumed by this request.
33+
#
34+
# @return [Integer]
35+
required :credits_consumed, Integer
36+
37+
# @!attribute credits_remaining
38+
# The number of credits remaining for your organization after this request.
39+
#
40+
# @return [Integer]
41+
required :credits_remaining, Integer
42+
43+
# @!method initialize(credits_consumed:, credits_remaining:)
44+
# Metadata about the API key used for the request. Included in every response
45+
# whenever a valid API key is provided, even when the response status is not 200.
46+
#
47+
# @param credits_consumed [Integer] The number of credits consumed by this request.
48+
#
49+
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
50+
end
51+
1752
class Product < ContextDev::Internal::Type::BaseModel
1853
# @!attribute description
1954
# Description of the product

‎lib/context_dev/models/brand_identify_from_transaction_response.rb‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,29 @@ class BrandIdentifyFromTransactionResponse < ContextDev::Internal::Type::BaseMod
1616
# @return [Integer, nil]
1717
optional :code, Integer
1818

19+
# @!attribute key_metadata
20+
# Metadata about the API key used for the request. Included in every response
21+
# whenever a valid API key is provided, even when the response status is not 200.
22+
#
23+
# @return [ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata, nil]
24+
optional :key_metadata, -> { ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata }
25+
1926
# @!attribute status
2027
# Status of the response, e.g., 'ok'
2128
#
2229
# @return [String, nil]
2330
optional :status, String
2431

25-
# @!method initialize(brand: nil, code: nil, status: nil)
32+
# @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil)
33+
# Some parameter documentations has been truncated, see
34+
# {ContextDev::Models::BrandIdentifyFromTransactionResponse} for more details.
35+
#
2636
# @param brand [ContextDev::Models::BrandIdentifyFromTransactionResponse::Brand] Detailed brand information
2737
#
2838
# @param code [Integer] HTTP status code
2939
#
40+
# @param key_metadata [ContextDev::Models::BrandIdentifyFromTransactionResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
41+
#
3042
# @param status [String] Status of the response, e.g., 'ok'
3143

3244
# @see ContextDev::Models::BrandIdentifyFromTransactionResponse#brand
@@ -1034,6 +1046,29 @@ class Stock < ContextDev::Internal::Type::BaseModel
10341046
# @param ticker [String] Stock ticker symbol
10351047
end
10361048
end
1049+
1050+
# @see ContextDev::Models::BrandIdentifyFromTransactionResponse#key_metadata
1051+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
1052+
# @!attribute credits_consumed
1053+
# The number of credits consumed by this request.
1054+
#
1055+
# @return [Integer]
1056+
required :credits_consumed, Integer
1057+
1058+
# @!attribute credits_remaining
1059+
# The number of credits remaining for your organization after this request.
1060+
#
1061+
# @return [Integer]
1062+
required :credits_remaining, Integer
1063+
1064+
# @!method initialize(credits_consumed:, credits_remaining:)
1065+
# Metadata about the API key used for the request. Included in every response
1066+
# whenever a valid API key is provided, even when the response status is not 200.
1067+
#
1068+
# @param credits_consumed [Integer] The number of credits consumed by this request.
1069+
#
1070+
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
1071+
end
10371072
end
10381073
end
10391074
end

‎lib/context_dev/models/brand_retrieve_by_email_response.rb‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,29 @@ class BrandRetrieveByEmailResponse < ContextDev::Internal::Type::BaseModel
1616
# @return [Integer, nil]
1717
optional :code, Integer
1818

19+
# @!attribute key_metadata
20+
# Metadata about the API key used for the request. Included in every response
21+
# whenever a valid API key is provided, even when the response status is not 200.
22+
#
23+
# @return [ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata, nil]
24+
optional :key_metadata, -> { ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata }
25+
1926
# @!attribute status
2027
# Status of the response, e.g., 'ok'
2128
#
2229
# @return [String, nil]
2330
optional :status, String
2431

25-
# @!method initialize(brand: nil, code: nil, status: nil)
32+
# @!method initialize(brand: nil, code: nil, key_metadata: nil, status: nil)
33+
# Some parameter documentations has been truncated, see
34+
# {ContextDev::Models::BrandRetrieveByEmailResponse} for more details.
35+
#
2636
# @param brand [ContextDev::Models::BrandRetrieveByEmailResponse::Brand] Detailed brand information
2737
#
2838
# @param code [Integer] HTTP status code
2939
#
40+
# @param key_metadata [ContextDev::Models::BrandRetrieveByEmailResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
41+
#
3042
# @param status [String] Status of the response, e.g., 'ok'
3143

3244
# @see ContextDev::Models::BrandRetrieveByEmailResponse#brand
@@ -1031,6 +1043,29 @@ class Stock < ContextDev::Internal::Type::BaseModel
10311043
# @param ticker [String] Stock ticker symbol
10321044
end
10331045
end
1046+
1047+
# @see ContextDev::Models::BrandRetrieveByEmailResponse#key_metadata
1048+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
1049+
# @!attribute credits_consumed
1050+
# The number of credits consumed by this request.
1051+
#
1052+
# @return [Integer]
1053+
required :credits_consumed, Integer
1054+
1055+
# @!attribute credits_remaining
1056+
# The number of credits remaining for your organization after this request.
1057+
#
1058+
# @return [Integer]
1059+
required :credits_remaining, Integer
1060+
1061+
# @!method initialize(credits_consumed:, credits_remaining:)
1062+
# Metadata about the API key used for the request. Included in every response
1063+
# whenever a valid API key is provided, even when the response status is not 200.
1064+
#
1065+
# @param credits_consumed [Integer] The number of credits consumed by this request.
1066+
#
1067+
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
1068+
end
10341069
end
10351070
end
10361071
end

0 commit comments

Comments
 (0)