Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bfc24de
codegen metadata
stainless-app[bot] Apr 12, 2026
9761d7d
codegen metadata
stainless-app[bot] Apr 12, 2026
6132fa4
codegen metadata
stainless-app[bot] Apr 12, 2026
e061d10
codegen metadata
stainless-app[bot] Apr 12, 2026
4e74fe3
feat(api): api update
stainless-app[bot] Apr 16, 2026
b09024f
feat(api): api update
stainless-app[bot] Apr 17, 2026
7b5ddec
feat(api): api update
stainless-app[bot] Apr 17, 2026
8b33b1e
feat(api): api update
stainless-app[bot] Apr 17, 2026
f359256
codegen metadata
stainless-app[bot] Apr 17, 2026
2d439b9
feat(api): api update
stainless-app[bot] Apr 17, 2026
aa9cdea
codegen metadata
stainless-app[bot] Apr 17, 2026
7d186fa
feat(api): api update
stainless-app[bot] Apr 17, 2026
5a69904
feat(api): api update
stainless-app[bot] Apr 17, 2026
d32eb69
feat(api): manual updates
stainless-app[bot] Apr 17, 2026
51320a5
feat(api): api update
stainless-app[bot] Apr 17, 2026
55529f6
feat(api): api update
stainless-app[bot] Apr 17, 2026
739b99f
feat(api): manual updates
stainless-app[bot] Apr 17, 2026
a4d1c57
codegen metadata
stainless-app[bot] Apr 17, 2026
11ea49f
feat(api): manual updates
stainless-app[bot] Apr 17, 2026
c9851eb
feat(api): api update
stainless-app[bot] Apr 17, 2026
30ef99f
feat(api): api update
stainless-app[bot] Apr 18, 2026
f451afe
feat(api): manual updates
stainless-app[bot] Apr 18, 2026
3b0140e
codegen metadata
stainless-app[bot] Apr 18, 2026
33d128f
codegen metadata
stainless-app[bot] Apr 19, 2026
4fa1dc5
release: 1.5.0
stainless-app[bot] Apr 19, 2026
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.4.0"
".": "1.5.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-5ee7a321f8e01d2678d56277f011f71294c2b8ac4d0cff0bda412362c0d9cf73.yml
openapi_spec_hash: bf5d57e3bddb6975770cf85c267b5035
config_hash: 682b89b02a20f5d1c13e2c91ecbcf5ce
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-5afee68d7308a77a9ef51fb53917080746f96327c6d745fc029363a7d1494c3c.yml
openapi_spec_hash: b2e32bb58d92a00f6ede04c4f7bf1a34
config_hash: 7d13dca2b2c6f71fc463cb6062efa5ea
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 1.5.0 (2026-04-19)

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

### Features

* **api:** api update ([30ef99f](https://github.com/context-dot-dev/context-ruby-sdk/commit/30ef99f9a0d61f6528aed16b080f376753b3447a))
* **api:** api update ([c9851eb](https://github.com/context-dot-dev/context-ruby-sdk/commit/c9851ebc0618d7433ed88f7062902fcec575b229))
* **api:** api update ([55529f6](https://github.com/context-dot-dev/context-ruby-sdk/commit/55529f63e23cf255645bdb2d0420bf24aaba28b1))
* **api:** api update ([51320a5](https://github.com/context-dot-dev/context-ruby-sdk/commit/51320a5677298ab231dc417ef3c54d6a75e640ba))
* **api:** api update ([5a69904](https://github.com/context-dot-dev/context-ruby-sdk/commit/5a69904d89cc873614e8320308eecac9304992d2))
* **api:** api update ([7d186fa](https://github.com/context-dot-dev/context-ruby-sdk/commit/7d186faf849e20bcd958beb5f46b71f6440b8358))
* **api:** api update ([2d439b9](https://github.com/context-dot-dev/context-ruby-sdk/commit/2d439b9814f0e3be9efead3d2e70e3e5d7e3a1f0))
* **api:** api update ([8b33b1e](https://github.com/context-dot-dev/context-ruby-sdk/commit/8b33b1ee26acc8314d9c285ea53e3531ba390a16))
* **api:** api update ([7b5ddec](https://github.com/context-dot-dev/context-ruby-sdk/commit/7b5ddec0b8e306df34a72ccd39e8d731168a62ea))
* **api:** api update ([b09024f](https://github.com/context-dot-dev/context-ruby-sdk/commit/b09024fa19c7aecafaf4fe4bd211bfc3738484ed))
* **api:** api update ([4e74fe3](https://github.com/context-dot-dev/context-ruby-sdk/commit/4e74fe3f395778efb1ca3f1e752f2f71e21a3191))
* **api:** manual updates ([f451afe](https://github.com/context-dot-dev/context-ruby-sdk/commit/f451afea50625bba49a808a4b193c451c7019571))
* **api:** manual updates ([11ea49f](https://github.com/context-dot-dev/context-ruby-sdk/commit/11ea49fac95ca680db1f9880b8b8590aa650b00a))
* **api:** manual updates ([739b99f](https://github.com/context-dot-dev/context-ruby-sdk/commit/739b99fddcd745960b3cf390cc9bff4220941ee8))
* **api:** manual updates ([d32eb69](https://github.com/context-dot-dev/context-ruby-sdk/commit/d32eb69f2bafb655156587bfb2daa659dcc3b731))

## 1.4.0 (2026-04-09)

Full Changelog: [v1.3.0...v1.4.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.3.0...v1.4.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.4.0)
context.dev (1.5.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.4.0"
gem "context.dev", "~> 1.5.0"
```

<!-- x-release-please-end -->
Expand Down
9 changes: 4 additions & 5 deletions lib/context_dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@
require_relative "context_dev/models/brand_retrieve_simplified_response"
require_relative "context_dev/models/industry_retrieve_naics_params"
require_relative "context_dev/models/industry_retrieve_naics_response"
require_relative "context_dev/models/style_extract_fonts_params"
require_relative "context_dev/models/style_extract_fonts_response"
require_relative "context_dev/models/style_extract_styleguide_params"
require_relative "context_dev/models/style_extract_styleguide_response"
require_relative "context_dev/models/utility_prefetch_by_email_params"
require_relative "context_dev/models/utility_prefetch_by_email_response"
require_relative "context_dev/models/utility_prefetch_params"
require_relative "context_dev/models/utility_prefetch_response"
require_relative "context_dev/models/web_extract_fonts_params"
require_relative "context_dev/models/web_extract_fonts_response"
require_relative "context_dev/models/web_extract_styleguide_params"
require_relative "context_dev/models/web_extract_styleguide_response"
require_relative "context_dev/models/web_screenshot_params"
require_relative "context_dev/models/web_screenshot_response"
require_relative "context_dev/models/web_web_crawl_md_params"
Expand All @@ -98,6 +98,5 @@
require_relative "context_dev/resources/ai"
require_relative "context_dev/resources/brand"
require_relative "context_dev/resources/industry"
require_relative "context_dev/resources/style"
require_relative "context_dev/resources/utility"
require_relative "context_dev/resources/web"
4 changes: 0 additions & 4 deletions lib/context_dev/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ class Client < ContextDev::Internal::Transport::BaseClient
# @return [ContextDev::Resources::AI]
attr_reader :ai

# @return [ContextDev::Resources::Style]
attr_reader :style

# @return [ContextDev::Resources::Brand]
attr_reader :brand

Expand Down Expand Up @@ -85,7 +82,6 @@ def initialize(

@web = ContextDev::Resources::Web.new(client: self)
@ai = ContextDev::Resources::AI.new(client: self)
@style = ContextDev::Resources::Style.new(client: self)
@brand = ContextDev::Resources::Brand.new(client: self)
@industry = ContextDev::Resources::Industry.new(client: self)
@utility = ContextDev::Resources::Utility.new(client: self)
Expand Down
6 changes: 3 additions & 3 deletions lib/context_dev/internal/type/base_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,11 @@ def deep_to_h = self.class.recursively_to_h(@data, convert: false)
# @return [Hash{Symbol=>Object}]
#
# @example
# # `web_screenshot_response` is a `ContextDev::Models::WebScreenshotResponse`
# web_screenshot_response => {
# # `web_extract_fonts_response` is a `ContextDev::Models::WebExtractFontsResponse`
# web_extract_fonts_response => {
# code: code,
# domain: domain,
# screenshot: screenshot
# fonts: fonts
# }
def deconstruct_keys(keys)
(keys || self.class.known_fields.keys)
Expand Down
8 changes: 4 additions & 4 deletions lib/context_dev/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ module ContextDev

IndustryRetrieveNaicsParams = ContextDev::Models::IndustryRetrieveNaicsParams

StyleExtractFontsParams = ContextDev::Models::StyleExtractFontsParams

StyleExtractStyleguideParams = ContextDev::Models::StyleExtractStyleguideParams

UtilityPrefetchByEmailParams = ContextDev::Models::UtilityPrefetchByEmailParams

UtilityPrefetchParams = ContextDev::Models::UtilityPrefetchParams

WebExtractFontsParams = ContextDev::Models::WebExtractFontsParams

WebExtractStyleguideParams = ContextDev::Models::WebExtractStyleguideParams

WebScreenshotParams = ContextDev::Models::WebScreenshotParams

WebWebCrawlMdParams = ContextDev::Models::WebWebCrawlMdParams
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class BrandIdentifyFromTransactionParams < ContextDev::Internal::Type::BaseModel
# @!attribute high_confidence_only
# When set to true, the API will perform an additional verification steps to
# ensure the identified brand matches the transaction with high confidence.
# Defaults to false.
#
# @return [Boolean, nil]
optional :high_confidence_only, ContextDev::Internal::Type::Boolean
Expand Down
10 changes: 5 additions & 5 deletions lib/context_dev/models/brand_retrieve_by_name_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class BrandRetrieveByNameParams < ContextDev::Internal::Type::BaseModel
required :name, String

# @!attribute country_gl
# Optional country code (GL parameter) to specify the country. This affects the
# geographic location used for search queries.
# Optional country code hint (GL parameter) to specify the country for the company
# name.
#
# @return [Symbol, ContextDev::Models::BrandRetrieveByNameParams::CountryGl, nil]
optional :country_gl, enum: -> { ContextDev::BrandRetrieveByNameParams::CountryGl }
Expand Down Expand Up @@ -49,7 +49,7 @@ class BrandRetrieveByNameParams < ContextDev::Internal::Type::BaseModel
#
# @param name [String] Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft Corporati
#
# @param country_gl [Symbol, ContextDev::Models::BrandRetrieveByNameParams::CountryGl] Optional country code (GL parameter) to specify the country. This affects the ge
# @param country_gl [Symbol, ContextDev::Models::BrandRetrieveByNameParams::CountryGl] Optional country code hint (GL parameter) to specify the country for the company
#
# @param force_language [Symbol, ContextDev::Models::BrandRetrieveByNameParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
#
Expand All @@ -59,8 +59,8 @@ class BrandRetrieveByNameParams < ContextDev::Internal::Type::BaseModel
#
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]

# Optional country code (GL parameter) to specify the country. This affects the
# geographic location used for search queries.
# Optional country code hint (GL parameter) to specify the country for the company
# name.
module CountryGl
extend ContextDev::Internal::Type::Enum

Expand Down
8 changes: 4 additions & 4 deletions lib/context_dev/models/industry_retrieve_naics_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class IndustryRetrieveNaicsParams < ContextDev::Internal::Type::BaseModel
include ContextDev::Internal::Type::RequestParameters

# @!attribute input
# Brand domain or title to retrieve NAICS code for. If a valid domain is provided
# in `input`, it will be used for classification, otherwise, we will search for
# the brand using the provided title.
# Brand domain or title to retrieve NAICS code for. If a valid domain is provided,
# it will be used for classification, otherwise, we will search for the brand
# using the provided title.
#
# @return [String]
required :input, String
Expand Down Expand Up @@ -40,7 +40,7 @@ class IndustryRetrieveNaicsParams < ContextDev::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {ContextDev::Models::IndustryRetrieveNaicsParams} for more details.
#
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided,
#
# @param max_results [Integer] Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults to 5
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@

module ContextDev
module Models
# @see ContextDev::Resources::Style#extract_fonts
class StyleExtractFontsParams < ContextDev::Internal::Type::BaseModel
# @see ContextDev::Resources::Web#extract_fonts
class WebExtractFontsParams < ContextDev::Internal::Type::BaseModel
extend ContextDev::Internal::Type::RequestParameters::Converter
include ContextDev::Internal::Type::RequestParameters

# @!attribute direct_url
# A specific URL to fetch fonts from directly, bypassing domain resolution (e.g.,
# 'https://example.com/design-system'). When provided, fonts are extracted from
# this exact URL. You must provide either 'domain' or 'directUrl', but not both.
#
# @return [String, nil]
optional :direct_url, String

# @!attribute domain
# Domain name to extract fonts from (e.g., 'example.com', 'google.com'). The
# domain will be automatically normalized and validated.
# domain will be automatically normalized and validated. You must provide either
# 'domain' or 'directUrl', but not both.
#
# @return [String]
required :domain, String
# @return [String, nil]
optional :domain, String

# @!attribute timeout_ms
# Optional timeout in milliseconds for the request. If the request takes longer
Expand All @@ -22,9 +31,11 @@ class StyleExtractFontsParams < ContextDev::Internal::Type::BaseModel
# @return [Integer, nil]
optional :timeout_ms, Integer

# @!method initialize(domain:, timeout_ms: nil, request_options: {})
# @!method initialize(direct_url: nil, domain: nil, timeout_ms: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {ContextDev::Models::StyleExtractFontsParams} for more details.
# {ContextDev::Models::WebExtractFontsParams} for more details.
#
# @param direct_url [String] A specific URL to fetch fonts from directly, bypassing domain resolution (e.g.,
#
# @param domain [String] Domain name to extract fonts from (e.g., 'example.com', 'google.com'). The domai
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module ContextDev
module Models
# @see ContextDev::Resources::Style#extract_fonts
class StyleExtractFontsResponse < ContextDev::Internal::Type::BaseModel
# @see ContextDev::Resources::Web#extract_fonts
class WebExtractFontsResponse < ContextDev::Internal::Type::BaseModel
# @!attribute code
# HTTP status code, e.g., 200
#
Expand All @@ -19,9 +19,9 @@ class StyleExtractFontsResponse < ContextDev::Internal::Type::BaseModel
# @!attribute fonts
# Array of font usage information
#
# @return [Array<ContextDev::Models::StyleExtractFontsResponse::Font>]
# @return [Array<ContextDev::Models::WebExtractFontsResponse::Font>]
required :fonts,
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::StyleExtractFontsResponse::Font] }
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::WebExtractFontsResponse::Font] }

# @!attribute status
# Status of the response, e.g., 'ok'
Expand All @@ -34,7 +34,7 @@ class StyleExtractFontsResponse < ContextDev::Internal::Type::BaseModel
#
# @param domain [String] The normalized domain that was processed
#
# @param fonts [Array<ContextDev::Models::StyleExtractFontsResponse::Font>] Array of font usage information
# @param fonts [Array<ContextDev::Models::WebExtractFontsResponse::Font>] Array of font usage information
#
# @param status [String] Status of the response, e.g., 'ok'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

module ContextDev
module Models
# @see ContextDev::Resources::Style#extract_styleguide
class StyleExtractStyleguideParams < ContextDev::Internal::Type::BaseModel
# @see ContextDev::Resources::Web#extract_styleguide
class WebExtractStyleguideParams < ContextDev::Internal::Type::BaseModel
extend ContextDev::Internal::Type::RequestParameters::Converter
include ContextDev::Internal::Type::RequestParameters

# @!attribute direct_url
# A specific URL to fetch the styleguide from directly, bypassing domain
# resolution (e.g., 'https://example.com/design-system').
# resolution (e.g., 'https://example.com/design-system'). When provided, the
# styleguide is extracted from this exact URL. You must provide either 'domain' or
# 'directUrl', but not both.
#
# @return [String, nil]
optional :direct_url, String

# @!attribute domain
# Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
# domain will be automatically normalized and validated.
# domain will be automatically normalized and validated. You must provide either
# 'domain' or 'directUrl', but not both.
#
# @return [String, nil]
optional :domain, String
Expand All @@ -31,7 +34,7 @@ class StyleExtractStyleguideParams < ContextDev::Internal::Type::BaseModel

# @!method initialize(direct_url: nil, domain: nil, timeout_ms: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {ContextDev::Models::StyleExtractStyleguideParams} for more details.
# {ContextDev::Models::WebExtractStyleguideParams} for more details.
#
# @param direct_url [String] A specific URL to fetch the styleguide from directly, bypassing domain resolutio
#
Expand Down
Loading
Loading