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.9.0"
".": "2.10.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a0dda03bbb600917cfb9add468cc4c8c84351a8dbbf61644dbc353263ca1748f.yml
openapi_spec_hash: c24264f32a46d9317aac5af9d6a396f7
config_hash: 920678668dd2da6f8966fbf1b8fde4e2
configured_endpoints: 41
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5dbe631ce516ca688273053ddcb58870561bd6dc76fa75df354c954d7af65a3c.yml
openapi_spec_hash: 53a74c4cccbdec8590db38183840a446
config_hash: 0fb0ceca5946298c416cec0cca5260c7
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

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

### Features

* **api:** api update ([6f90ebf](https://github.com/context-dot-dev/context-ruby-sdk/commit/6f90ebff6164a8daf2f6c4bf8d1492ade1ad2779))
* **api:** api update ([95cbdde](https://github.com/context-dot-dev/context-ruby-sdk/commit/95cbddeb3a3351a03c394709dfeaf3fb5c98be92))
* **api:** api update ([97520df](https://github.com/context-dot-dev/context-ruby-sdk/commit/97520df52a798122460e2f219d7b582d2f6830da))
* **api:** api update ([2b73772](https://github.com/context-dot-dev/context-ruby-sdk/commit/2b737722e962cf7a5aba20a2b596d379f7f2bce0))
* **api:** api update ([630b415](https://github.com/context-dot-dev/context-ruby-sdk/commit/630b4156f12004d2da154e26003271cd143ccbb8))
* **api:** manual updates ([54ad450](https://github.com/context-dot-dev/context-ruby-sdk/commit/54ad450f892542378cec0ce5430d1436e1437a4d))

## 2.9.0 (2026-08-07)

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

<!-- x-release-please-end -->
Expand Down
3 changes: 3 additions & 0 deletions lib/context_dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
require_relative "context_dev/models/monitor_run_response"
require_relative "context_dev/models/monitor_update_params"
require_relative "context_dev/models/monitor_update_response"
require_relative "context_dev/models/news_search_params"
require_relative "context_dev/models/news_search_response"
require_relative "context_dev/models/page_error_count"
require_relative "context_dev/models/parse_handle_params"
require_relative "context_dev/models/parse_handle_response"
Expand Down Expand Up @@ -143,6 +145,7 @@
require_relative "context_dev/resources/brand"
require_relative "context_dev/resources/industry"
require_relative "context_dev/resources/monitors"
require_relative "context_dev/resources/news"
require_relative "context_dev/resources/parse"
require_relative "context_dev/resources/people"
require_relative "context_dev/resources/utility"
Expand Down
5 changes: 5 additions & 0 deletions lib/context_dev/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class Client < ContextDev::Internal::Transport::BaseClient
# @return [ContextDev::Resources::People]
attr_reader :people

# Search live first-party RSS and free historical news data by company identity.
# @return [ContextDev::Resources::News]
attr_reader :news

# @api private
#
# @return [Hash{String=>String}]
Expand Down Expand Up @@ -120,6 +124,7 @@ def initialize(
@monitors = ContextDev::Resources::Monitors.new(client: self)
@batch = ContextDev::Resources::Batch.new(client: self)
@people = ContextDev::Resources::People.new(client: self)
@news = ContextDev::Resources::News.new(client: self)
end
end
end
2 changes: 2 additions & 0 deletions lib/context_dev/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ module ContextDev

MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams

NewsSearchParams = ContextDev::Models::NewsSearchParams

PageErrorCount = ContextDev::Models::PageErrorCount

ParseHandleParams = ContextDev::Models::ParseHandleParams
Expand Down
36 changes: 33 additions & 3 deletions lib/context_dev/models/batch_get_results_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class Ok < ContextDev::Internal::Type::BaseModel
required :url, String

# @!attribute html
# Raw page HTML. Present on html batches.
# Page HTML. Present on html batches, and on markdown batches submitted with
# `options.includeHTML`.
#
# @return [String, nil]
optional :html, String
Expand Down Expand Up @@ -130,7 +131,7 @@ class Ok < ContextDev::Internal::Type::BaseModel
#
# @param url [String] URL as submitted, or as discovered by the crawl.
#
# @param html [String] Raw page HTML. Present on html batches.
# @param html [String] Page HTML. Present on html batches, and on markdown batches submitted with `opti
#
# @param item_id [String] Caller-supplied identifier echoed from submission.
#
Expand Down Expand Up @@ -196,6 +197,14 @@ class Metadata < ContextDev::Internal::Type::BaseModel
# @return [String, nil]
optional :favicon, String

# @!attribute headings
# Page headings (h1–h6) in document order, extracted from the unfiltered document.
# Capped at the first 500 headings. Omitted when the page has none.
#
# @return [Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading>, nil]
optional :headings,
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading] }

# @!attribute image
# Primary resolved preview image from Open Graph, Twitter, or image metadata.
#
Expand Down Expand Up @@ -267,7 +276,7 @@ class Metadata < ContextDev::Internal::Type::BaseModel
optional :twitter,
-> { ContextDev::Internal::Type::HashOf[union: ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Twitter] }

# @!method initialize(final_url:, source_url:, additional_meta: nil, alternates: nil, author: nil, canonical_url: nil, description: nil, favicon: nil, image: nil, json_ld: nil, keywords: nil, language: nil, modified_time: nil, open_graph: nil, published_time: nil, robots: nil, site_name: nil, title: nil, twitter: nil)
# @!method initialize(final_url:, source_url:, additional_meta: nil, alternates: nil, author: nil, canonical_url: nil, description: nil, favicon: nil, headings: nil, image: nil, json_ld: nil, keywords: nil, language: nil, modified_time: nil, open_graph: nil, published_time: nil, robots: nil, site_name: nil, title: nil, twitter: nil)
# Some parameter documentations has been truncated, see
# {ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata} for more
# details.
Expand All @@ -290,6 +299,8 @@ class Metadata < ContextDev::Internal::Type::BaseModel
#
# @param favicon [String] Resolved favicon URL, when present.
#
# @param headings [Array<ContextDev::Models::BatchGetResultsResponse::Data::Ok::Metadata::Heading>] Page headings (h1–h6) in document order, extracted from the unfiltered document.
#
# @param image [String] Primary resolved preview image from Open Graph, Twitter, or image metadata.
#
# @param json_ld [Array<Hash{Symbol=>Object}>] JSON-LD structured data blocks parsed from the page.
Expand Down Expand Up @@ -361,6 +372,25 @@ class Alternate < ContextDev::Internal::Type::BaseModel
# @param type [String] Alternate resource MIME type, when present.
end

class Heading < ContextDev::Internal::Type::BaseModel
# @!attribute level
# Heading level, 1–6 (from h1–h6).
#
# @return [Integer]
required :level, Integer

# @!attribute text
# Heading text with whitespace collapsed, truncated to 1000 characters.
#
# @return [String]
required :text, String

# @!method initialize(level:, text:)
# @param level [Integer] Heading level, 1–6 (from h1–h6).
#
# @param text [String] Heading text with whitespace collapsed, truncated to 1000 characters.
end

module OpenGraph
extend ContextDev::Internal::Type::Union

Expand Down
Loading