Skip to content

Commit 9aab526

Browse files
authored
Merge pull request #40 from context-dot-dev/release-please--branches--main--changes--next
release: 1.29.0
2 parents 35638c9 + 7ed1d56 commit 9aab526

10 files changed

Lines changed: 158 additions & 11 deletions

File tree

‎.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.28.0"
2+
".": "1.29.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-9575a58bf027da9ca006bf34d9e24850ef2bbc6de0459b9fff6f26cf62e1d82d.yml
3-
openapi_spec_hash: e68a98dbc0e29b45c42b3517eb554e6c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-de0ba2ed18ec7265b0b20d9639b3da207dd33e354f0a856091902291c6661830.yml
3+
openapi_spec_hash: ae25efc2ac6bcab54bc3f4efaab73a55
44
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c

‎CHANGELOG.md‎

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

3+
## 1.29.0 (2026-06-07)
4+
5+
Full Changelog: [v1.28.0...v1.29.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.28.0...v1.29.0)
6+
7+
### Features
8+
9+
* **api:** api update ([9aa6127](https://github.com/context-dot-dev/context-ruby-sdk/commit/9aa6127b563032655648c3c24fe9564616ebe3f1))
10+
311
## 1.28.0 (2026-06-06)
412

513
Full Changelog: [v1.27.0...v1.28.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.27.0...v1.28.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.28.0)
14+
context.dev (1.29.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.28.0"
29+
gem "context.dev", "~> 1.29.0"
3030
```
3131

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

‎lib/context_dev/models/web_web_scrape_html_response.rb‎

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ module Models
55
# @see ContextDev::Resources::Web#web_scrape_html
66
class WebWebScrapeHTMLResponse < ContextDev::Internal::Type::BaseModel
77
# @!attribute html
8-
# Raw HTML content of the page
8+
# The scraped content of the page. For normal pages this is the raw HTML. When the
9+
# page is a sitemap or feed served behind an XSL stylesheet (which browsers render
10+
# into HTML), this is the underlying XML instead — see the `type` field.
911
#
1012
# @return [String]
1113
required :html, String
@@ -16,17 +18,29 @@ class WebWebScrapeHTMLResponse < ContextDev::Internal::Type::BaseModel
1618
# @return [Boolean, ContextDev::Models::WebWebScrapeHTMLResponse::Success]
1719
required :success, enum: -> { ContextDev::Models::WebWebScrapeHTMLResponse::Success }
1820

21+
# @!attribute type
22+
# Detected content type of the returned `html` field. Sitemaps and feeds are
23+
# surfaced as `xml`; ordinary pages are `html`.
24+
#
25+
# @return [Symbol, ContextDev::Models::WebWebScrapeHTMLResponse::Type]
26+
required :type, enum: -> { ContextDev::Models::WebWebScrapeHTMLResponse::Type }
27+
1928
# @!attribute url
2029
# The URL that was scraped
2130
#
2231
# @return [String]
2332
required :url, String
2433

25-
# @!method initialize(html:, success:, url:)
26-
# @param html [String] Raw HTML content of the page
34+
# @!method initialize(html:, success:, type:, url:)
35+
# Some parameter documentations has been truncated, see
36+
# {ContextDev::Models::WebWebScrapeHTMLResponse} for more details.
37+
#
38+
# @param html [String] The scraped content of the page. For normal pages this is the raw HTML. When the
2739
#
2840
# @param success [Boolean, ContextDev::Models::WebWebScrapeHTMLResponse::Success] Indicates success
2941
#
42+
# @param type [Symbol, ContextDev::Models::WebWebScrapeHTMLResponse::Type] Detected content type of the returned `html` field. Sitemaps and feeds are surfa
43+
#
3044
# @param url [String] The URL that was scraped
3145

3246
# Indicates success
@@ -40,6 +54,26 @@ module Success
4054
# @!method self.values
4155
# @return [Array<Boolean>]
4256
end
57+
58+
# Detected content type of the returned `html` field. Sitemaps and feeds are
59+
# surfaced as `xml`; ordinary pages are `html`.
60+
#
61+
# @see ContextDev::Models::WebWebScrapeHTMLResponse#type
62+
module Type
63+
extend ContextDev::Internal::Type::Enum
64+
65+
HTML = :html
66+
XML = :xml
67+
JSON = :json
68+
TEXT = :text
69+
CSV = :csv
70+
MARKDOWN = :markdown
71+
SVG = :svg
72+
PDF = :pdf
73+
74+
# @!method self.values
75+
# @return [Array<Symbol>]
76+
end
4377
end
4478
end
4579
end

‎lib/context_dev/version.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module ContextDev
4-
VERSION = "1.28.0"
4+
VERSION = "1.29.0"
55
end

‎rbi/context_dev/models/web_web_scrape_html_response.rbi‎

Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ module ContextDev
1111
)
1212
end
1313

14-
# Raw HTML content of the page
14+
# The scraped content of the page. For normal pages this is the raw HTML. When the
15+
# page is a sitemap or feed served behind an XSL stylesheet (which browsers render
16+
# into HTML), this is the underlying XML instead — see the `type` field.
1517
sig { returns(String) }
1618
attr_accessor :html
1719

@@ -23,6 +25,15 @@ module ContextDev
2325
end
2426
attr_accessor :success
2527

28+
# Detected content type of the returned `html` field. Sitemaps and feeds are
29+
# surfaced as `xml`; ordinary pages are `html`.
30+
sig do
31+
returns(
32+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
33+
)
34+
end
35+
attr_accessor :type
36+
2637
# The URL that was scraped
2738
sig { returns(String) }
2839
attr_accessor :url
@@ -32,14 +43,20 @@ module ContextDev
3243
html: String,
3344
success:
3445
ContextDev::Models::WebWebScrapeHTMLResponse::Success::OrBoolean,
46+
type: ContextDev::Models::WebWebScrapeHTMLResponse::Type::OrSymbol,
3547
url: String
3648
).returns(T.attached_class)
3749
end
3850
def self.new(
39-
# Raw HTML content of the page
51+
# The scraped content of the page. For normal pages this is the raw HTML. When the
52+
# page is a sitemap or feed served behind an XSL stylesheet (which browsers render
53+
# into HTML), this is the underlying XML instead — see the `type` field.
4054
html:,
4155
# Indicates success
4256
success:,
57+
# Detected content type of the returned `html` field. Sitemaps and feeds are
58+
# surfaced as `xml`; ordinary pages are `html`.
59+
type:,
4360
# The URL that was scraped
4461
url:
4562
)
@@ -51,6 +68,8 @@ module ContextDev
5168
html: String,
5269
success:
5370
ContextDev::Models::WebWebScrapeHTMLResponse::Success::TaggedBoolean,
71+
type:
72+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol,
5473
url: String
5574
}
5675
)
@@ -87,6 +106,69 @@ module ContextDev
87106
def self.values
88107
end
89108
end
109+
110+
# Detected content type of the returned `html` field. Sitemaps and feeds are
111+
# surfaced as `xml`; ordinary pages are `html`.
112+
module Type
113+
extend ContextDev::Internal::Type::Enum
114+
115+
TaggedSymbol =
116+
T.type_alias do
117+
T.all(Symbol, ContextDev::Models::WebWebScrapeHTMLResponse::Type)
118+
end
119+
OrSymbol = T.type_alias { T.any(Symbol, String) }
120+
121+
HTML =
122+
T.let(
123+
:html,
124+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
125+
)
126+
XML =
127+
T.let(
128+
:xml,
129+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
130+
)
131+
JSON =
132+
T.let(
133+
:json,
134+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
135+
)
136+
TEXT =
137+
T.let(
138+
:text,
139+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
140+
)
141+
CSV =
142+
T.let(
143+
:csv,
144+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
145+
)
146+
MARKDOWN =
147+
T.let(
148+
:markdown,
149+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
150+
)
151+
SVG =
152+
T.let(
153+
:svg,
154+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
155+
)
156+
PDF =
157+
T.let(
158+
:pdf,
159+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
160+
)
161+
162+
sig do
163+
override.returns(
164+
T::Array[
165+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol
166+
]
167+
)
168+
end
169+
def self.values
170+
end
171+
end
90172
end
91173
end
92174
end

‎sig/context_dev/models/web_web_scrape_html_response.rbs‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module ContextDev
44
{
55
html: String,
66
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
7+
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
78
url: String
89
}
910

@@ -12,17 +13,21 @@ module ContextDev
1213

1314
attr_accessor success: ContextDev::Models::WebWebScrapeHTMLResponse::success
1415

16+
attr_accessor type: ContextDev::Models::WebWebScrapeHTMLResponse::type_
17+
1518
attr_accessor url: String
1619

1720
def initialize: (
1821
html: String,
1922
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
23+
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
2024
url: String
2125
) -> void
2226

2327
def to_hash: -> {
2428
html: String,
2529
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
30+
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
2631
url: String
2732
}
2833

@@ -35,6 +40,23 @@ module ContextDev
3540

3641
def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::success]
3742
end
43+
44+
type type_ = :html | :xml | :json | :text | :csv | :markdown | :svg | :pdf
45+
46+
module Type
47+
extend ContextDev::Internal::Type::Enum
48+
49+
HTML: :html
50+
XML: :xml
51+
JSON: :json
52+
TEXT: :text
53+
CSV: :csv
54+
MARKDOWN: :markdown
55+
SVG: :svg
56+
PDF: :pdf
57+
58+
def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::type_]
59+
end
3860
end
3961
end
4062
end

‎test/context_dev/resources/web_test.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def test_web_scrape_html_required_params
154154
response => {
155155
html: String,
156156
success: ContextDev::Models::WebWebScrapeHTMLResponse::Success,
157+
type: ContextDev::Models::WebWebScrapeHTMLResponse::Type,
157158
url: String
158159
}
159160
end

0 commit comments

Comments
 (0)