context.dev 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/context_dev/models/web_web_scrape_html_response.rb +37 -3
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +84 -2
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +22 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d3680b28e1ece1f34117ae03f9e1338ab3ac87a3ba4abcafa312c4cb5d611fe
|
|
4
|
+
data.tar.gz: 317e0671ee43e0b05884ae45993732e3870279131ea7943523f3c9d93e490cc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68d2975c379e21f1916469f944acea547cd3d8cee372ef4cc911e533caa4f6ca2e661a1f0b1b42ce33b52a5a447fb0ac7caf16d51365f8c1ceef0dfa488da4b8
|
|
7
|
+
data.tar.gz: 7b34767be78b1b12b0d01c3ac4a251b4b0b59c35d53acbf029b41ca4df245469712a079e27001fba55c3ac31c39133be55e3caf4635abdeaf626c8896b9dfc4b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
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
|
+
|
|
3
11
|
## 1.28.0 (2026-06-06)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.27.0...v1.28.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.27.0...v1.28.0)
|
data/README.md
CHANGED
|
@@ -5,7 +5,9 @@ module ContextDev
|
|
|
5
5
|
# @see ContextDev::Resources::Web#web_scrape_html
|
|
6
6
|
class WebWebScrapeHTMLResponse < ContextDev::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute html
|
|
8
|
-
#
|
|
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.
|
|
9
11
|
#
|
|
10
12
|
# @return [String]
|
|
11
13
|
required :html, String
|
|
@@ -16,17 +18,29 @@ module ContextDev
|
|
|
16
18
|
# @return [Boolean, ContextDev::Models::WebWebScrapeHTMLResponse::Success]
|
|
17
19
|
required :success, enum: -> { ContextDev::Models::WebWebScrapeHTMLResponse::Success }
|
|
18
20
|
|
|
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
|
+
|
|
19
28
|
# @!attribute url
|
|
20
29
|
# The URL that was scraped
|
|
21
30
|
#
|
|
22
31
|
# @return [String]
|
|
23
32
|
required :url, String
|
|
24
33
|
|
|
25
|
-
# @!method initialize(html:, success:, url:)
|
|
26
|
-
#
|
|
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
|
|
27
39
|
#
|
|
28
40
|
# @param success [Boolean, ContextDev::Models::WebWebScrapeHTMLResponse::Success] Indicates success
|
|
29
41
|
#
|
|
42
|
+
# @param type [Symbol, ContextDev::Models::WebWebScrapeHTMLResponse::Type] Detected content type of the returned `html` field. Sitemaps and feeds are surfa
|
|
43
|
+
#
|
|
30
44
|
# @param url [String] The URL that was scraped
|
|
31
45
|
|
|
32
46
|
# Indicates success
|
|
@@ -40,6 +54,26 @@ module ContextDev
|
|
|
40
54
|
# @!method self.values
|
|
41
55
|
# @return [Array<Boolean>]
|
|
42
56
|
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
|
|
43
77
|
end
|
|
44
78
|
end
|
|
45
79
|
end
|
data/lib/context_dev/version.rb
CHANGED
|
@@ -11,7 +11,9 @@ module ContextDev
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
#
|
|
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.
|
|
15
17
|
sig { returns(String) }
|
|
16
18
|
attr_accessor :html
|
|
17
19
|
|
|
@@ -23,6 +25,15 @@ module ContextDev
|
|
|
23
25
|
end
|
|
24
26
|
attr_accessor :success
|
|
25
27
|
|
|
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
|
+
|
|
26
37
|
# The URL that was scraped
|
|
27
38
|
sig { returns(String) }
|
|
28
39
|
attr_accessor :url
|
|
@@ -32,14 +43,20 @@ module ContextDev
|
|
|
32
43
|
html: String,
|
|
33
44
|
success:
|
|
34
45
|
ContextDev::Models::WebWebScrapeHTMLResponse::Success::OrBoolean,
|
|
46
|
+
type: ContextDev::Models::WebWebScrapeHTMLResponse::Type::OrSymbol,
|
|
35
47
|
url: String
|
|
36
48
|
).returns(T.attached_class)
|
|
37
49
|
end
|
|
38
50
|
def self.new(
|
|
39
|
-
#
|
|
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.
|
|
40
54
|
html:,
|
|
41
55
|
# Indicates success
|
|
42
56
|
success:,
|
|
57
|
+
# Detected content type of the returned `html` field. Sitemaps and feeds are
|
|
58
|
+
# surfaced as `xml`; ordinary pages are `html`.
|
|
59
|
+
type:,
|
|
43
60
|
# The URL that was scraped
|
|
44
61
|
url:
|
|
45
62
|
)
|
|
@@ -51,6 +68,8 @@ module ContextDev
|
|
|
51
68
|
html: String,
|
|
52
69
|
success:
|
|
53
70
|
ContextDev::Models::WebWebScrapeHTMLResponse::Success::TaggedBoolean,
|
|
71
|
+
type:
|
|
72
|
+
ContextDev::Models::WebWebScrapeHTMLResponse::Type::TaggedSymbol,
|
|
54
73
|
url: String
|
|
55
74
|
}
|
|
56
75
|
)
|
|
@@ -87,6 +106,69 @@ module ContextDev
|
|
|
87
106
|
def self.values
|
|
88
107
|
end
|
|
89
108
|
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
|
|
90
172
|
end
|
|
91
173
|
end
|
|
92
174
|
end
|
|
@@ -4,6 +4,7 @@ module ContextDev
|
|
|
4
4
|
{
|
|
5
5
|
html: String,
|
|
6
6
|
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
|
|
7
|
+
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
|
|
7
8
|
url: String
|
|
8
9
|
}
|
|
9
10
|
|
|
@@ -12,17 +13,21 @@ module ContextDev
|
|
|
12
13
|
|
|
13
14
|
attr_accessor success: ContextDev::Models::WebWebScrapeHTMLResponse::success
|
|
14
15
|
|
|
16
|
+
attr_accessor type: ContextDev::Models::WebWebScrapeHTMLResponse::type_
|
|
17
|
+
|
|
15
18
|
attr_accessor url: String
|
|
16
19
|
|
|
17
20
|
def initialize: (
|
|
18
21
|
html: String,
|
|
19
22
|
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
|
|
23
|
+
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
|
|
20
24
|
url: String
|
|
21
25
|
) -> void
|
|
22
26
|
|
|
23
27
|
def to_hash: -> {
|
|
24
28
|
html: String,
|
|
25
29
|
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
|
|
30
|
+
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
|
|
26
31
|
url: String
|
|
27
32
|
}
|
|
28
33
|
|
|
@@ -35,6 +40,23 @@ module ContextDev
|
|
|
35
40
|
|
|
36
41
|
def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::success]
|
|
37
42
|
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
|
|
38
60
|
end
|
|
39
61
|
end
|
|
40
62
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: context.dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.29.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Context Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|