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.10.0"
".": "2.11.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-5dbe631ce516ca688273053ddcb58870561bd6dc76fa75df354c954d7af65a3c.yml
openapi_spec_hash: 53a74c4cccbdec8590db38183840a446
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b0c72d2fe5911c9ce155275b954198bf2152e915a7e5b9f719aad50e222b9ef8.yml
openapi_spec_hash: 5cf943ea5718059b7975417b012cee28
config_hash: 0fb0ceca5946298c416cec0cca5260c7
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 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)

### Features

* **api:** api update ([9bff49f](https://github.com/context-dot-dev/context-ruby-sdk/commit/9bff49f9a966fd40691f2cd7a41ba96ec7679243))
* **api:** api update ([5b19e0c](https://github.com/context-dot-dev/context-ruby-sdk/commit/5b19e0ce1f7ad615a92e28440bec6ab3703ffe02))
* **api:** api update ([f4ccf22](https://github.com/context-dot-dev/context-ruby-sdk/commit/f4ccf220f130672950d3231a6b9952c166168ef9))

## 2.10.0 (2026-08-17)

Full Changelog: [v2.9.0...v2.10.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.9.0...v2.10.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.10.0)
context.dev (2.11.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.10.0"
gem "context.dev", "~> 2.11.0"
```

<!-- x-release-please-end -->
Expand Down
30 changes: 29 additions & 1 deletion lib/context_dev/models/brand_retrieve_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,38 @@ class Color < ContextDev::Internal::Type::BaseModel
# @return [String, nil]
optional :name, String

# @!method initialize(hex: nil, name: nil)
# @!attribute source
# Where the color was observed: 'site' colors come from the website's own theme
# signals (rendered page colors, manifest, theme-color meta), 'logo' colors from
# logo image pixels.
#
# @return [Symbol, ContextDev::Models::BrandRetrieveResponse::Brand::Color::Source, nil]
optional :source, enum: -> { ContextDev::Models::BrandRetrieveResponse::Brand::Color::Source }

# @!method initialize(hex: nil, name: nil, source: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::BrandRetrieveResponse::Brand::Color} for more details.
#
# @param hex [String] Color in hexadecimal format
#
# @param name [String] Name of the color
#
# @param source [Symbol, ContextDev::Models::BrandRetrieveResponse::Brand::Color::Source] Where the color was observed: 'site' colors come from the website's own theme si

# Where the color was observed: 'site' colors come from the website's own theme
# signals (rendered page colors, manifest, theme-color meta), 'logo' colors from
# logo image pixels.
#
# @see ContextDev::Models::BrandRetrieveResponse::Brand::Color#source
module Source
extend ContextDev::Internal::Type::Enum

SITE = :site
LOGO = :logo

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

# @see ContextDev::Models::BrandRetrieveResponse::Brand#employees
Expand Down
31 changes: 30 additions & 1 deletion lib/context_dev/models/brand_retrieve_simplified_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,39 @@ class Color < ContextDev::Internal::Type::BaseModel
# @return [String, nil]
optional :name, String

# @!method initialize(hex: nil, name: nil)
# @!attribute source
# Where the color was observed: 'site' colors come from the website's own theme
# signals (rendered page colors, manifest, theme-color meta), 'logo' colors from
# logo image pixels.
#
# @return [Symbol, ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::Source, nil]
optional :source, enum: -> { ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::Source }

# @!method initialize(hex: nil, name: nil, source: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color} for more
# details.
#
# @param hex [String] Color in hexadecimal format
#
# @param name [String] Name of the color
#
# @param source [Symbol, ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::Source] Where the color was observed: 'site' colors come from the website's own theme si

# Where the color was observed: 'site' colors come from the website's own theme
# signals (rendered page colors, manifest, theme-color meta), 'logo' colors from
# logo image pixels.
#
# @see ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color#source
module Source
extend ContextDev::Internal::Type::Enum

SITE = :site
LOGO = :logo

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

class Logo < ContextDev::Internal::Type::BaseModel
Expand Down
90 changes: 68 additions & 22 deletions lib/context_dev/models/news_search_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,26 @@ module Models
# @see ContextDev::Resources::News#search
class NewsSearchResponse < ContextDev::Internal::Type::BaseModel
# @!attribute data
# Articles matching the search, in the requested order.
#
# @return [Array<ContextDev::Models::NewsSearchResponse::Data>]
required :data, -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::NewsSearchResponse::Data] }

# @!attribute has_more
# True when more results are available beyond this page.
#
# @return [Boolean]
required :has_more, ContextDev::Internal::Type::Boolean

# @!attribute meta
# Summary information about this response.
#
# @return [ContextDev::Models::NewsSearchResponse::Meta]
required :meta, -> { ContextDev::Models::NewsSearchResponse::Meta }

# @!attribute next_cursor
# Pass as cursor in the next request to fetch the following page. Null when there
# are no more results.
#
# @return [String, nil]
required :next_cursor, String, nil?: true
Expand All @@ -35,119 +40,150 @@ class NewsSearchResponse < ContextDev::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {ContextDev::Models::NewsSearchResponse} for more details.
#
# @param data [Array<ContextDev::Models::NewsSearchResponse::Data>]
# @param data [Array<ContextDev::Models::NewsSearchResponse::Data>] Articles matching the search, in the requested order.
#
# @param has_more [Boolean]
# @param has_more [Boolean] True when more results are available beyond this page.
#
# @param meta [ContextDev::Models::NewsSearchResponse::Meta]
# @param meta [ContextDev::Models::NewsSearchResponse::Meta] Summary information about this response.
#
# @param next_cursor [String, nil]
# @param next_cursor [String, nil] Pass as cursor in the next request to fetch the following page. Null when there
#
# @param key_metadata [ContextDev::Models::NewsSearchResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when

class Data < ContextDev::Internal::Type::BaseModel
# @!attribute id
# Stable unique identifier for this article. Use it to deduplicate or reference an
# article across requests.
#
# @return [String]
required :id, String

# @!attribute authors
# Bylined authors. Empty when no byline is available.
#
# @return [Array<String>]
required :authors, ContextDev::Internal::Type::ArrayOf[String]

# @!attribute description
# Short summary or excerpt of the article, when the publisher provides one.
#
# @return [String, nil]
required :description, String, nil?: true

# @!attribute image_url
# Lead image for the article, when one is available.
#
# @return [String, nil]
required :image_url, String, nil?: true

# @!attribute language
# Language the article is written in, as a lowercase ISO 639-1 code such as en.
# Null when unknown.
#
# @return [String, nil]
required :language, String, nil?: true

# @!attribute match
# How the article relates to the company you searched for.
#
# @return [ContextDev::Models::NewsSearchResponse::Data::Match]
required :match, -> { ContextDev::Models::NewsSearchResponse::Data::Match }

# @!attribute published_at
# When the article was published, as an ISO 8601 timestamp. Null when the
# publisher does not state a reliable date.
#
# @return [Time, nil]
required :published_at, Time, nil?: true

# @!attribute source
# The publication that published the article.
#
# @return [ContextDev::Models::NewsSearchResponse::Data::Source]
required :source, -> { ContextDev::Models::NewsSearchResponse::Data::Source }

# @!attribute story_id
# Groups matching normalized headlines published on the same UTC day.
# Shared by articles covering the same story on the same day. Use it to group or
# collapse syndicated copies of one announcement across outlets.
#
# @return [String]
required :story_id, String

# @!attribute title
# Article headline.
#
# @return [String]
required :title, String

# @!attribute type
# Kind of coverage. Use it to separate independent reporting (editorial) from
# company-issued content (press_release, regulatory_filing, advisory).
#
# @return [Symbol, ContextDev::Models::NewsSearchResponse::Data::Type]
required :type, enum: -> { ContextDev::Models::NewsSearchResponse::Data::Type }

# @!attribute url
# Link to the article on the publisher site.
#
# @return [String]
required :url, String

# @!method initialize(id:, authors:, description:, image_url:, language:, match:, published_at:, source:, story_id:, title:, type:, url:)
# @param id [String]
# Some parameter documentations has been truncated, see
# {ContextDev::Models::NewsSearchResponse::Data} for more details.
#
# @param authors [Array<String>]
# @param id [String] Stable unique identifier for this article. Use it to deduplicate or reference an
#
# @param description [String, nil]
# @param authors [Array<String>] Bylined authors. Empty when no byline is available.
#
# @param image_url [String, nil]
# @param description [String, nil] Short summary or excerpt of the article, when the publisher provides one.
#
# @param language [String, nil]
# @param image_url [String, nil] Lead image for the article, when one is available.
#
# @param match [ContextDev::Models::NewsSearchResponse::Data::Match]
# @param language [String, nil] Language the article is written in, as a lowercase ISO 639-1 code such as en. Nu
#
# @param published_at [Time, nil]
# @param match [ContextDev::Models::NewsSearchResponse::Data::Match] How the article relates to the company you searched for.
#
# @param source [ContextDev::Models::NewsSearchResponse::Data::Source]
# @param published_at [Time, nil] When the article was published, as an ISO 8601 timestamp. Null when the publishe
#
# @param story_id [String] Groups matching normalized headlines published on the same UTC day.
# @param source [ContextDev::Models::NewsSearchResponse::Data::Source] The publication that published the article.
#
# @param title [String]
# @param story_id [String] Shared by articles covering the same story on the same day. Use it to group or c
#
# @param type [Symbol, ContextDev::Models::NewsSearchResponse::Data::Type]
# @param title [String] Article headline.
#
# @param url [String]
# @param type [Symbol, ContextDev::Models::NewsSearchResponse::Data::Type] Kind of coverage. Use it to separate independent reporting (editorial) from comp
#
# @param url [String] Link to the article on the publisher site.

# @see ContextDev::Models::NewsSearchResponse::Data#match
class Match < ContextDev::Internal::Type::BaseModel
# @!attribute confidence
# How confident the match is, from 0 to 1. Null when a score is unavailable.
#
# @return [Float, nil]
required :confidence, Float, nil?: true

# @!attribute level
# primary when the article is mainly about the company, secondary when the company
# is mentioned but is not the main subject.
#
# @return [Symbol, ContextDev::Models::NewsSearchResponse::Data::Match::Level]
required :level, enum: -> { ContextDev::Models::NewsSearchResponse::Data::Match::Level }

# @!method initialize(confidence:, level:)
# @param confidence [Float, nil]
# @param level [Symbol, ContextDev::Models::NewsSearchResponse::Data::Match::Level]
# Some parameter documentations has been truncated, see
# {ContextDev::Models::NewsSearchResponse::Data::Match} for more details.
#
# How the article relates to the company you searched for.
#
# @param confidence [Float, nil] How confident the match is, from 0 to 1. Null when a score is unavailable.
#
# @param level [Symbol, ContextDev::Models::NewsSearchResponse::Data::Match::Level] primary when the article is mainly about the company, secondary when the company

# primary when the article is mainly about the company, secondary when the company
# is mentioned but is not the main subject.
#
# @see ContextDev::Models::NewsSearchResponse::Data::Match#level
module Level
extend ContextDev::Internal::Type::Enum
Expand All @@ -169,23 +205,30 @@ class Source < ContextDev::Internal::Type::BaseModel
required :direct, ContextDev::Internal::Type::Boolean

# @!attribute domain
# Website domain of the publication.
#
# @return [String]
required :domain, String

# @!attribute name
# Name of the publication, such as Reuters.
#
# @return [String]
required :name, String

# @!method initialize(direct:, domain:, name:)
# The publication that published the article.
#
# @param direct [Boolean] True when Context observed this article in the publisher-owned feed.
#
# @param domain [String]
# @param domain [String] Website domain of the publication.
#
# @param name [String]
# @param name [String] Name of the publication, such as Reuters.
end

# Kind of coverage. Use it to separate independent reporting (editorial) from
# company-issued content (press_release, regulatory_filing, advisory).
#
# @see ContextDev::Models::NewsSearchResponse::Data#type
module Type
extend ContextDev::Internal::Type::Enum
Expand All @@ -203,12 +246,15 @@ module Type
# @see ContextDev::Models::NewsSearchResponse#meta
class Meta < ContextDev::Internal::Type::BaseModel
# @!attribute count
# Number of articles in this page.
#
# @return [Integer]
required :count, Integer

# @!method initialize(count:)
# @param count [Integer]
# Summary information about this response.
#
# @param count [Integer] Number of articles in this page.
end

# @see ContextDev::Models::NewsSearchResponse#key_metadata
Expand Down
Loading