context.dev 2.5.0 → 2.7.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 +23 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +4 -0
- data/lib/context_dev/models/batch_cancel_params.rb +22 -0
- data/lib/context_dev/models/batch_cancel_response.rb +241 -0
- data/lib/context_dev/models/batch_get_results_params.rb +42 -0
- data/lib/context_dev/models/batch_get_results_response.rb +463 -0
- data/lib/context_dev/models/batch_list_params.rb +94 -0
- data/lib/context_dev/models/batch_list_response.rb +379 -0
- data/lib/context_dev/models/batch_retrieve_params.rb +22 -0
- data/lib/context_dev/models/batch_retrieve_response.rb +373 -0
- data/lib/context_dev/models/batch_submit_params.rb +56 -0
- data/lib/context_dev/models/batch_submit_response.rb +614 -0
- data/lib/context_dev/models/crawl_controls.rb +126 -0
- data/lib/context_dev/models/failure.rb +27 -0
- data/lib/context_dev/models/intake.rb +62 -0
- data/lib/context_dev/models/monitor_create_params.rb +141 -127
- data/lib/context_dev/models/monitor_create_response.rb +34 -10
- data/lib/context_dev/models/monitor_list_response.rb +21 -7
- data/lib/context_dev/models/monitor_retrieve_response.rb +21 -7
- data/lib/context_dev/models/monitor_update_params.rb +21 -7
- data/lib/context_dev/models/monitor_update_response.rb +21 -7
- data/lib/context_dev/models/page_error_count.rb +26 -0
- data/lib/context_dev/models/web_screenshot_params.rb +5 -7
- data/lib/context_dev/models/web_web_crawl_md_params.rb +5 -7
- data/lib/context_dev/models/web_web_scrape_html_params.rb +5 -7
- data/lib/context_dev/models/web_web_scrape_html_response.rb +93 -1
- data/lib/context_dev/models/web_web_scrape_md_params.rb +5 -7
- data/lib/context_dev/models/web_web_scrape_md_response.rb +93 -1
- data/lib/context_dev/models.rb +18 -0
- data/lib/context_dev/resources/batch.rb +152 -0
- data/lib/context_dev/resources/monitors.rb +5 -5
- data/lib/context_dev/resources/web.rb +4 -4
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +15 -0
- data/rbi/context_dev/client.rbi +3 -0
- data/rbi/context_dev/models/batch_cancel_params.rbi +40 -0
- data/rbi/context_dev/models/batch_cancel_response.rbi +424 -0
- data/rbi/context_dev/models/batch_get_results_params.rbi +70 -0
- data/rbi/context_dev/models/batch_get_results_response.rbi +848 -0
- data/rbi/context_dev/models/batch_list_params.rbi +166 -0
- data/rbi/context_dev/models/batch_list_response.rbi +713 -0
- data/rbi/context_dev/models/batch_retrieve_params.rbi +40 -0
- data/rbi/context_dev/models/batch_retrieve_response.rbi +672 -0
- data/rbi/context_dev/models/batch_submit_params.rbi +105 -0
- data/rbi/context_dev/models/batch_submit_response.rbi +1330 -0
- data/rbi/context_dev/models/crawl_controls.rbi +252 -0
- data/rbi/context_dev/models/failure.rbi +35 -0
- data/rbi/context_dev/models/intake.rbi +88 -0
- data/rbi/context_dev/models/monitor_create_params.rbi +274 -242
- data/rbi/context_dev/models/monitor_create_response.rbi +38 -7
- data/rbi/context_dev/models/monitor_list_response.rbi +24 -5
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +24 -5
- data/rbi/context_dev/models/monitor_update_params.rbi +24 -5
- data/rbi/context_dev/models/monitor_update_response.rbi +24 -5
- data/rbi/context_dev/models/page_error_count.rbi +34 -0
- data/rbi/context_dev/models/web_screenshot_params.rbi +6 -9
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +6 -9
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +6 -9
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +182 -0
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +6 -9
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +180 -0
- data/rbi/context_dev/models.rbi +18 -0
- data/rbi/context_dev/resources/batch.rbi +117 -0
- data/rbi/context_dev/resources/monitors.rbi +12 -12
- data/rbi/context_dev/resources/web.rbi +8 -12
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/batch_cancel_params.rbs +23 -0
- data/sig/context_dev/models/batch_cancel_response.rbs +174 -0
- data/sig/context_dev/models/batch_get_results_params.rbs +36 -0
- data/sig/context_dev/models/batch_get_results_response.rbs +399 -0
- data/sig/context_dev/models/batch_list_params.rbs +94 -0
- data/sig/context_dev/models/batch_list_response.rbs +283 -0
- data/sig/context_dev/models/batch_retrieve_params.rbs +23 -0
- data/sig/context_dev/models/batch_retrieve_response.rbs +262 -0
- data/sig/context_dev/models/batch_submit_params.rbs +52 -0
- data/sig/context_dev/models/batch_submit_response.rbs +542 -0
- data/sig/context_dev/models/crawl_controls.rbs +114 -0
- data/sig/context_dev/models/failure.rbs +15 -0
- data/sig/context_dev/models/intake.rbs +40 -0
- data/sig/context_dev/models/monitor_create_params.rbs +117 -97
- data/sig/context_dev/models/monitor_create_response.rbs +18 -1
- data/sig/context_dev/models/monitor_list_response.rbs +13 -1
- data/sig/context_dev/models/monitor_retrieve_response.rbs +13 -1
- data/sig/context_dev/models/monitor_update_params.rbs +13 -1
- data/sig/context_dev/models/monitor_update_response.rbs +13 -1
- data/sig/context_dev/models/page_error_count.rbs +15 -0
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +85 -0
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +85 -0
- data/sig/context_dev/models.rbs +18 -0
- data/sig/context_dev/resources/batch.rbs +41 -0
- data/sig/context_dev/resources/monitors.rbs +2 -2
- metadata +47 -2
|
@@ -2,11 +2,11 @@ module ContextDev
|
|
|
2
2
|
module Models
|
|
3
3
|
type monitor_create_params =
|
|
4
4
|
{
|
|
5
|
-
change_detection: ContextDev::Models::MonitorCreateParams::change_detection,
|
|
6
5
|
name: String,
|
|
7
|
-
schedule: ContextDev::MonitorCreateParams::Schedule,
|
|
8
6
|
target: ContextDev::Models::MonitorCreateParams::target,
|
|
7
|
+
change_detection: ContextDev::Models::MonitorCreateParams::change_detection,
|
|
9
8
|
mode: ContextDev::Models::MonitorCreateParams::mode,
|
|
9
|
+
schedule: ContextDev::MonitorCreateParams::Schedule,
|
|
10
10
|
tags: ::Array[String],
|
|
11
11
|
webhook: ContextDev::MonitorCreateParams::Webhook?
|
|
12
12
|
}
|
|
@@ -16,20 +16,28 @@ module ContextDev
|
|
|
16
16
|
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
17
17
|
include ContextDev::Internal::Type::RequestParameters
|
|
18
18
|
|
|
19
|
-
attr_accessor change_detection: ContextDev::Models::MonitorCreateParams::change_detection
|
|
20
|
-
|
|
21
19
|
attr_accessor name: String
|
|
22
20
|
|
|
23
|
-
attr_accessor schedule: ContextDev::MonitorCreateParams::Schedule
|
|
24
|
-
|
|
25
21
|
attr_accessor target: ContextDev::Models::MonitorCreateParams::target
|
|
26
22
|
|
|
23
|
+
attr_reader change_detection: ContextDev::Models::MonitorCreateParams::change_detection?
|
|
24
|
+
|
|
25
|
+
def change_detection=: (
|
|
26
|
+
ContextDev::Models::MonitorCreateParams::change_detection
|
|
27
|
+
) -> ContextDev::Models::MonitorCreateParams::change_detection
|
|
28
|
+
|
|
27
29
|
attr_reader mode: ContextDev::Models::MonitorCreateParams::mode?
|
|
28
30
|
|
|
29
31
|
def mode=: (
|
|
30
32
|
ContextDev::Models::MonitorCreateParams::mode
|
|
31
33
|
) -> ContextDev::Models::MonitorCreateParams::mode
|
|
32
34
|
|
|
35
|
+
attr_reader schedule: ContextDev::MonitorCreateParams::Schedule?
|
|
36
|
+
|
|
37
|
+
def schedule=: (
|
|
38
|
+
ContextDev::MonitorCreateParams::Schedule
|
|
39
|
+
) -> ContextDev::MonitorCreateParams::Schedule
|
|
40
|
+
|
|
33
41
|
attr_reader tags: ::Array[String]?
|
|
34
42
|
|
|
35
43
|
def tags=: (::Array[String]) -> ::Array[String]
|
|
@@ -37,113 +45,27 @@ module ContextDev
|
|
|
37
45
|
attr_accessor webhook: ContextDev::MonitorCreateParams::Webhook?
|
|
38
46
|
|
|
39
47
|
def initialize: (
|
|
40
|
-
change_detection: ContextDev::Models::MonitorCreateParams::change_detection,
|
|
41
48
|
name: String,
|
|
42
|
-
schedule: ContextDev::MonitorCreateParams::Schedule,
|
|
43
49
|
target: ContextDev::Models::MonitorCreateParams::target,
|
|
50
|
+
?change_detection: ContextDev::Models::MonitorCreateParams::change_detection,
|
|
44
51
|
?mode: ContextDev::Models::MonitorCreateParams::mode,
|
|
52
|
+
?schedule: ContextDev::MonitorCreateParams::Schedule,
|
|
45
53
|
?tags: ::Array[String],
|
|
46
54
|
?webhook: ContextDev::MonitorCreateParams::Webhook?,
|
|
47
55
|
?request_options: ContextDev::request_opts
|
|
48
56
|
) -> void
|
|
49
57
|
|
|
50
58
|
def to_hash: -> {
|
|
51
|
-
change_detection: ContextDev::Models::MonitorCreateParams::change_detection,
|
|
52
59
|
name: String,
|
|
53
|
-
schedule: ContextDev::MonitorCreateParams::Schedule,
|
|
54
60
|
target: ContextDev::Models::MonitorCreateParams::target,
|
|
61
|
+
change_detection: ContextDev::Models::MonitorCreateParams::change_detection,
|
|
55
62
|
mode: ContextDev::Models::MonitorCreateParams::mode,
|
|
63
|
+
schedule: ContextDev::MonitorCreateParams::Schedule,
|
|
56
64
|
tags: ::Array[String],
|
|
57
65
|
webhook: ContextDev::MonitorCreateParams::Webhook?,
|
|
58
66
|
request_options: ContextDev::RequestOptions
|
|
59
67
|
}
|
|
60
68
|
|
|
61
|
-
type change_detection =
|
|
62
|
-
ContextDev::MonitorCreateParams::ChangeDetection::Exact
|
|
63
|
-
| ContextDev::MonitorCreateParams::ChangeDetection::Semantic
|
|
64
|
-
|
|
65
|
-
module ChangeDetection
|
|
66
|
-
extend ContextDev::Internal::Type::Union
|
|
67
|
-
|
|
68
|
-
type exact = { type: :exact }
|
|
69
|
-
|
|
70
|
-
class Exact < ContextDev::Internal::Type::BaseModel
|
|
71
|
-
attr_accessor type: :exact
|
|
72
|
-
|
|
73
|
-
def initialize: (?type: :exact) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { type: :exact }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
type semantic = { type: :semantic, confidence_threshold: Float }
|
|
79
|
-
|
|
80
|
-
class Semantic < ContextDev::Internal::Type::BaseModel
|
|
81
|
-
attr_accessor type: :semantic
|
|
82
|
-
|
|
83
|
-
attr_reader confidence_threshold: Float?
|
|
84
|
-
|
|
85
|
-
def confidence_threshold=: (Float) -> Float
|
|
86
|
-
|
|
87
|
-
def initialize: (
|
|
88
|
-
?confidence_threshold: Float,
|
|
89
|
-
?type: :semantic
|
|
90
|
-
) -> void
|
|
91
|
-
|
|
92
|
-
def to_hash: -> { type: :semantic, confidence_threshold: Float }
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::change_detection]
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
type schedule =
|
|
99
|
-
{
|
|
100
|
-
frequency: Integer,
|
|
101
|
-
type: ContextDev::Models::MonitorCreateParams::Schedule::type_,
|
|
102
|
-
unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
class Schedule < ContextDev::Internal::Type::BaseModel
|
|
106
|
-
attr_accessor frequency: Integer
|
|
107
|
-
|
|
108
|
-
attr_accessor type: ContextDev::Models::MonitorCreateParams::Schedule::type_
|
|
109
|
-
|
|
110
|
-
attr_accessor unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
111
|
-
|
|
112
|
-
def initialize: (
|
|
113
|
-
frequency: Integer,
|
|
114
|
-
type: ContextDev::Models::MonitorCreateParams::Schedule::type_,
|
|
115
|
-
unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
116
|
-
) -> void
|
|
117
|
-
|
|
118
|
-
def to_hash: -> {
|
|
119
|
-
frequency: Integer,
|
|
120
|
-
type: ContextDev::Models::MonitorCreateParams::Schedule::type_,
|
|
121
|
-
unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
type type_ = :interval
|
|
125
|
-
|
|
126
|
-
module Type
|
|
127
|
-
extend ContextDev::Internal::Type::Enum
|
|
128
|
-
|
|
129
|
-
INTERVAL: :interval
|
|
130
|
-
|
|
131
|
-
def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Schedule::type_]
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
type unit = :minutes | :hours | :days
|
|
135
|
-
|
|
136
|
-
module Unit
|
|
137
|
-
extend ContextDev::Internal::Type::Enum
|
|
138
|
-
|
|
139
|
-
MINUTES: :minutes
|
|
140
|
-
HOURS: :hours
|
|
141
|
-
DAYS: :days
|
|
142
|
-
|
|
143
|
-
def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Schedule::unit]
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
|
|
147
69
|
type target =
|
|
148
70
|
ContextDev::MonitorCreateParams::Target::Page
|
|
149
71
|
| ContextDev::MonitorCreateParams::Target::Sitemap
|
|
@@ -152,19 +74,30 @@ module ContextDev
|
|
|
152
74
|
module Target
|
|
153
75
|
extend ContextDev::Internal::Type::Union
|
|
154
76
|
|
|
155
|
-
type page =
|
|
77
|
+
type page =
|
|
78
|
+
{
|
|
79
|
+
type: :page,
|
|
80
|
+
url: String,
|
|
81
|
+
instructions: String,
|
|
82
|
+
normalize_whitespace: bool
|
|
83
|
+
}
|
|
156
84
|
|
|
157
85
|
class Page < ContextDev::Internal::Type::BaseModel
|
|
158
86
|
attr_accessor type: :page
|
|
159
87
|
|
|
160
88
|
attr_accessor url: String
|
|
161
89
|
|
|
90
|
+
attr_reader instructions: String?
|
|
91
|
+
|
|
92
|
+
def instructions=: (String) -> String
|
|
93
|
+
|
|
162
94
|
attr_reader normalize_whitespace: bool?
|
|
163
95
|
|
|
164
96
|
def normalize_whitespace=: (bool) -> bool
|
|
165
97
|
|
|
166
98
|
def initialize: (
|
|
167
99
|
url: String,
|
|
100
|
+
?instructions: String,
|
|
168
101
|
?normalize_whitespace: bool,
|
|
169
102
|
?type: :page
|
|
170
103
|
) -> void
|
|
@@ -172,6 +105,7 @@ module ContextDev
|
|
|
172
105
|
def to_hash: -> {
|
|
173
106
|
type: :page,
|
|
174
107
|
url: String,
|
|
108
|
+
instructions: String,
|
|
175
109
|
normalize_whitespace: bool
|
|
176
110
|
}
|
|
177
111
|
end
|
|
@@ -277,6 +211,43 @@ module ContextDev
|
|
|
277
211
|
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::target]
|
|
278
212
|
end
|
|
279
213
|
|
|
214
|
+
type change_detection =
|
|
215
|
+
ContextDev::MonitorCreateParams::ChangeDetection::Exact
|
|
216
|
+
| ContextDev::MonitorCreateParams::ChangeDetection::Semantic
|
|
217
|
+
|
|
218
|
+
module ChangeDetection
|
|
219
|
+
extend ContextDev::Internal::Type::Union
|
|
220
|
+
|
|
221
|
+
type exact = { type: :exact }
|
|
222
|
+
|
|
223
|
+
class Exact < ContextDev::Internal::Type::BaseModel
|
|
224
|
+
attr_accessor type: :exact
|
|
225
|
+
|
|
226
|
+
def initialize: (?type: :exact) -> void
|
|
227
|
+
|
|
228
|
+
def to_hash: -> { type: :exact }
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
type semantic = { type: :semantic, confidence_threshold: Float }
|
|
232
|
+
|
|
233
|
+
class Semantic < ContextDev::Internal::Type::BaseModel
|
|
234
|
+
attr_accessor type: :semantic
|
|
235
|
+
|
|
236
|
+
attr_reader confidence_threshold: Float?
|
|
237
|
+
|
|
238
|
+
def confidence_threshold=: (Float) -> Float
|
|
239
|
+
|
|
240
|
+
def initialize: (
|
|
241
|
+
?confidence_threshold: Float,
|
|
242
|
+
?type: :semantic
|
|
243
|
+
) -> void
|
|
244
|
+
|
|
245
|
+
def to_hash: -> { type: :semantic, confidence_threshold: Float }
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateParams::change_detection]
|
|
249
|
+
end
|
|
250
|
+
|
|
280
251
|
type mode = :web
|
|
281
252
|
|
|
282
253
|
module Mode
|
|
@@ -287,6 +258,55 @@ module ContextDev
|
|
|
287
258
|
def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::mode]
|
|
288
259
|
end
|
|
289
260
|
|
|
261
|
+
type schedule =
|
|
262
|
+
{
|
|
263
|
+
frequency: Integer,
|
|
264
|
+
type: ContextDev::Models::MonitorCreateParams::Schedule::type_,
|
|
265
|
+
unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
class Schedule < ContextDev::Internal::Type::BaseModel
|
|
269
|
+
attr_accessor frequency: Integer
|
|
270
|
+
|
|
271
|
+
attr_accessor type: ContextDev::Models::MonitorCreateParams::Schedule::type_
|
|
272
|
+
|
|
273
|
+
attr_accessor unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
274
|
+
|
|
275
|
+
def initialize: (
|
|
276
|
+
frequency: Integer,
|
|
277
|
+
type: ContextDev::Models::MonitorCreateParams::Schedule::type_,
|
|
278
|
+
unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
279
|
+
) -> void
|
|
280
|
+
|
|
281
|
+
def to_hash: -> {
|
|
282
|
+
frequency: Integer,
|
|
283
|
+
type: ContextDev::Models::MonitorCreateParams::Schedule::type_,
|
|
284
|
+
unit: ContextDev::Models::MonitorCreateParams::Schedule::unit
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
type type_ = :interval
|
|
288
|
+
|
|
289
|
+
module Type
|
|
290
|
+
extend ContextDev::Internal::Type::Enum
|
|
291
|
+
|
|
292
|
+
INTERVAL: :interval
|
|
293
|
+
|
|
294
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Schedule::type_]
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
type unit = :minutes | :hours | :days
|
|
298
|
+
|
|
299
|
+
module Unit
|
|
300
|
+
extend ContextDev::Internal::Type::Enum
|
|
301
|
+
|
|
302
|
+
MINUTES: :minutes
|
|
303
|
+
HOURS: :hours
|
|
304
|
+
DAYS: :days
|
|
305
|
+
|
|
306
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorCreateParams::Schedule::unit]
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
290
310
|
type webhook =
|
|
291
311
|
{
|
|
292
312
|
url: String,
|
|
@@ -5,6 +5,7 @@ module ContextDev
|
|
|
5
5
|
id: String,
|
|
6
6
|
change_detection: ContextDev::Models::MonitorCreateResponse::change_detection,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
initial_run_id: String?,
|
|
8
9
|
mode: ContextDev::Models::MonitorCreateResponse::mode,
|
|
9
10
|
name: String,
|
|
10
11
|
schedule: ContextDev::Models::MonitorCreateResponse::Schedule,
|
|
@@ -28,6 +29,8 @@ module ContextDev
|
|
|
28
29
|
|
|
29
30
|
attr_accessor created_at: Time
|
|
30
31
|
|
|
32
|
+
attr_accessor initial_run_id: String?
|
|
33
|
+
|
|
31
34
|
attr_accessor mode: ContextDev::Models::MonitorCreateResponse::mode
|
|
32
35
|
|
|
33
36
|
attr_accessor name: String
|
|
@@ -62,6 +65,7 @@ module ContextDev
|
|
|
62
65
|
id: String,
|
|
63
66
|
change_detection: ContextDev::Models::MonitorCreateResponse::change_detection,
|
|
64
67
|
created_at: Time,
|
|
68
|
+
initial_run_id: String?,
|
|
65
69
|
mode: ContextDev::Models::MonitorCreateResponse::mode,
|
|
66
70
|
name: String,
|
|
67
71
|
schedule: ContextDev::Models::MonitorCreateResponse::Schedule,
|
|
@@ -82,6 +86,7 @@ module ContextDev
|
|
|
82
86
|
id: String,
|
|
83
87
|
change_detection: ContextDev::Models::MonitorCreateResponse::change_detection,
|
|
84
88
|
created_at: Time,
|
|
89
|
+
initial_run_id: String?,
|
|
85
90
|
mode: ContextDev::Models::MonitorCreateResponse::mode,
|
|
86
91
|
name: String,
|
|
87
92
|
schedule: ContextDev::Models::MonitorCreateResponse::Schedule,
|
|
@@ -214,19 +219,30 @@ module ContextDev
|
|
|
214
219
|
module Target
|
|
215
220
|
extend ContextDev::Internal::Type::Union
|
|
216
221
|
|
|
217
|
-
type page =
|
|
222
|
+
type page =
|
|
223
|
+
{
|
|
224
|
+
type: :page,
|
|
225
|
+
url: String,
|
|
226
|
+
instructions: String,
|
|
227
|
+
normalize_whitespace: bool
|
|
228
|
+
}
|
|
218
229
|
|
|
219
230
|
class Page < ContextDev::Internal::Type::BaseModel
|
|
220
231
|
attr_accessor type: :page
|
|
221
232
|
|
|
222
233
|
attr_accessor url: String
|
|
223
234
|
|
|
235
|
+
attr_reader instructions: String?
|
|
236
|
+
|
|
237
|
+
def instructions=: (String) -> String
|
|
238
|
+
|
|
224
239
|
attr_reader normalize_whitespace: bool?
|
|
225
240
|
|
|
226
241
|
def normalize_whitespace=: (bool) -> bool
|
|
227
242
|
|
|
228
243
|
def initialize: (
|
|
229
244
|
url: String,
|
|
245
|
+
?instructions: String,
|
|
230
246
|
?normalize_whitespace: bool,
|
|
231
247
|
?type: :page
|
|
232
248
|
) -> void
|
|
@@ -234,6 +250,7 @@ module ContextDev
|
|
|
234
250
|
def to_hash: -> {
|
|
235
251
|
type: :page,
|
|
236
252
|
url: String,
|
|
253
|
+
instructions: String,
|
|
237
254
|
normalize_whitespace: bool
|
|
238
255
|
}
|
|
239
256
|
end
|
|
@@ -240,19 +240,30 @@ module ContextDev
|
|
|
240
240
|
module Target
|
|
241
241
|
extend ContextDev::Internal::Type::Union
|
|
242
242
|
|
|
243
|
-
type page =
|
|
243
|
+
type page =
|
|
244
|
+
{
|
|
245
|
+
type: :page,
|
|
246
|
+
url: String,
|
|
247
|
+
instructions: String,
|
|
248
|
+
normalize_whitespace: bool
|
|
249
|
+
}
|
|
244
250
|
|
|
245
251
|
class Page < ContextDev::Internal::Type::BaseModel
|
|
246
252
|
attr_accessor type: :page
|
|
247
253
|
|
|
248
254
|
attr_accessor url: String
|
|
249
255
|
|
|
256
|
+
attr_reader instructions: String?
|
|
257
|
+
|
|
258
|
+
def instructions=: (String) -> String
|
|
259
|
+
|
|
250
260
|
attr_reader normalize_whitespace: bool?
|
|
251
261
|
|
|
252
262
|
def normalize_whitespace=: (bool) -> bool
|
|
253
263
|
|
|
254
264
|
def initialize: (
|
|
255
265
|
url: String,
|
|
266
|
+
?instructions: String,
|
|
256
267
|
?normalize_whitespace: bool,
|
|
257
268
|
?type: :page
|
|
258
269
|
) -> void
|
|
@@ -260,6 +271,7 @@ module ContextDev
|
|
|
260
271
|
def to_hash: -> {
|
|
261
272
|
type: :page,
|
|
262
273
|
url: String,
|
|
274
|
+
instructions: String,
|
|
263
275
|
normalize_whitespace: bool
|
|
264
276
|
}
|
|
265
277
|
end
|
|
@@ -214,19 +214,30 @@ module ContextDev
|
|
|
214
214
|
module Target
|
|
215
215
|
extend ContextDev::Internal::Type::Union
|
|
216
216
|
|
|
217
|
-
type page =
|
|
217
|
+
type page =
|
|
218
|
+
{
|
|
219
|
+
type: :page,
|
|
220
|
+
url: String,
|
|
221
|
+
instructions: String,
|
|
222
|
+
normalize_whitespace: bool
|
|
223
|
+
}
|
|
218
224
|
|
|
219
225
|
class Page < ContextDev::Internal::Type::BaseModel
|
|
220
226
|
attr_accessor type: :page
|
|
221
227
|
|
|
222
228
|
attr_accessor url: String
|
|
223
229
|
|
|
230
|
+
attr_reader instructions: String?
|
|
231
|
+
|
|
232
|
+
def instructions=: (String) -> String
|
|
233
|
+
|
|
224
234
|
attr_reader normalize_whitespace: bool?
|
|
225
235
|
|
|
226
236
|
def normalize_whitespace=: (bool) -> bool
|
|
227
237
|
|
|
228
238
|
def initialize: (
|
|
229
239
|
url: String,
|
|
240
|
+
?instructions: String,
|
|
230
241
|
?normalize_whitespace: bool,
|
|
231
242
|
?type: :page
|
|
232
243
|
) -> void
|
|
@@ -234,6 +245,7 @@ module ContextDev
|
|
|
234
245
|
def to_hash: -> {
|
|
235
246
|
type: :page,
|
|
236
247
|
url: String,
|
|
248
|
+
instructions: String,
|
|
237
249
|
normalize_whitespace: bool
|
|
238
250
|
}
|
|
239
251
|
end
|
|
@@ -182,19 +182,30 @@ module ContextDev
|
|
|
182
182
|
module Target
|
|
183
183
|
extend ContextDev::Internal::Type::Union
|
|
184
184
|
|
|
185
|
-
type page =
|
|
185
|
+
type page =
|
|
186
|
+
{
|
|
187
|
+
type: :page,
|
|
188
|
+
url: String,
|
|
189
|
+
instructions: String,
|
|
190
|
+
normalize_whitespace: bool
|
|
191
|
+
}
|
|
186
192
|
|
|
187
193
|
class Page < ContextDev::Internal::Type::BaseModel
|
|
188
194
|
attr_accessor type: :page
|
|
189
195
|
|
|
190
196
|
attr_accessor url: String
|
|
191
197
|
|
|
198
|
+
attr_reader instructions: String?
|
|
199
|
+
|
|
200
|
+
def instructions=: (String) -> String
|
|
201
|
+
|
|
192
202
|
attr_reader normalize_whitespace: bool?
|
|
193
203
|
|
|
194
204
|
def normalize_whitespace=: (bool) -> bool
|
|
195
205
|
|
|
196
206
|
def initialize: (
|
|
197
207
|
url: String,
|
|
208
|
+
?instructions: String,
|
|
198
209
|
?normalize_whitespace: bool,
|
|
199
210
|
?type: :page
|
|
200
211
|
) -> void
|
|
@@ -202,6 +213,7 @@ module ContextDev
|
|
|
202
213
|
def to_hash: -> {
|
|
203
214
|
type: :page,
|
|
204
215
|
url: String,
|
|
216
|
+
instructions: String,
|
|
205
217
|
normalize_whitespace: bool
|
|
206
218
|
}
|
|
207
219
|
end
|
|
@@ -214,19 +214,30 @@ module ContextDev
|
|
|
214
214
|
module Target
|
|
215
215
|
extend ContextDev::Internal::Type::Union
|
|
216
216
|
|
|
217
|
-
type page =
|
|
217
|
+
type page =
|
|
218
|
+
{
|
|
219
|
+
type: :page,
|
|
220
|
+
url: String,
|
|
221
|
+
instructions: String,
|
|
222
|
+
normalize_whitespace: bool
|
|
223
|
+
}
|
|
218
224
|
|
|
219
225
|
class Page < ContextDev::Internal::Type::BaseModel
|
|
220
226
|
attr_accessor type: :page
|
|
221
227
|
|
|
222
228
|
attr_accessor url: String
|
|
223
229
|
|
|
230
|
+
attr_reader instructions: String?
|
|
231
|
+
|
|
232
|
+
def instructions=: (String) -> String
|
|
233
|
+
|
|
224
234
|
attr_reader normalize_whitespace: bool?
|
|
225
235
|
|
|
226
236
|
def normalize_whitespace=: (bool) -> bool
|
|
227
237
|
|
|
228
238
|
def initialize: (
|
|
229
239
|
url: String,
|
|
240
|
+
?instructions: String,
|
|
230
241
|
?normalize_whitespace: bool,
|
|
231
242
|
?type: :page
|
|
232
243
|
) -> void
|
|
@@ -234,6 +245,7 @@ module ContextDev
|
|
|
234
245
|
def to_hash: -> {
|
|
235
246
|
type: :page,
|
|
236
247
|
url: String,
|
|
248
|
+
instructions: String,
|
|
237
249
|
normalize_whitespace: bool
|
|
238
250
|
}
|
|
239
251
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type page_error_count = { code: String, count: Integer }
|
|
4
|
+
|
|
5
|
+
class PageErrorCount < ContextDev::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor code: String
|
|
7
|
+
|
|
8
|
+
attr_accessor count: Integer
|
|
9
|
+
|
|
10
|
+
def initialize: (code: String, count: Integer) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { code: String, count: Integer }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -7,6 +7,8 @@ module ContextDev
|
|
|
7
7
|
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
|
|
8
8
|
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
|
|
9
9
|
url: String,
|
|
10
|
+
actions_applied: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied],
|
|
11
|
+
actions_html_stale: bool,
|
|
10
12
|
key_metadata: ContextDev::Models::WebWebScrapeHTMLResponse::KeyMetadata
|
|
11
13
|
}
|
|
12
14
|
|
|
@@ -21,6 +23,16 @@ module ContextDev
|
|
|
21
23
|
|
|
22
24
|
attr_accessor url: String
|
|
23
25
|
|
|
26
|
+
attr_reader actions_applied: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied]?
|
|
27
|
+
|
|
28
|
+
def actions_applied=: (
|
|
29
|
+
::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied]
|
|
30
|
+
) -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied]
|
|
31
|
+
|
|
32
|
+
attr_reader actions_html_stale: bool?
|
|
33
|
+
|
|
34
|
+
def actions_html_stale=: (bool) -> bool
|
|
35
|
+
|
|
24
36
|
attr_reader key_metadata: ContextDev::Models::WebWebScrapeHTMLResponse::KeyMetadata?
|
|
25
37
|
|
|
26
38
|
def key_metadata=: (
|
|
@@ -33,6 +45,8 @@ module ContextDev
|
|
|
33
45
|
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
|
|
34
46
|
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
|
|
35
47
|
url: String,
|
|
48
|
+
?actions_applied: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied],
|
|
49
|
+
?actions_html_stale: bool,
|
|
36
50
|
?key_metadata: ContextDev::Models::WebWebScrapeHTMLResponse::KeyMetadata
|
|
37
51
|
) -> void
|
|
38
52
|
|
|
@@ -42,6 +56,8 @@ module ContextDev
|
|
|
42
56
|
success: ContextDev::Models::WebWebScrapeHTMLResponse::success,
|
|
43
57
|
type: ContextDev::Models::WebWebScrapeHTMLResponse::type_,
|
|
44
58
|
url: String,
|
|
59
|
+
actions_applied: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied],
|
|
60
|
+
actions_html_stale: bool,
|
|
45
61
|
key_metadata: ContextDev::Models::WebWebScrapeHTMLResponse::KeyMetadata
|
|
46
62
|
}
|
|
47
63
|
|
|
@@ -306,6 +322,75 @@ module ContextDev
|
|
|
306
322
|
def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::type_]
|
|
307
323
|
end
|
|
308
324
|
|
|
325
|
+
type actions_applied =
|
|
326
|
+
{
|
|
327
|
+
instruction: String,
|
|
328
|
+
status: ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied::status,
|
|
329
|
+
completion_evidence: String,
|
|
330
|
+
duration_ms: Float,
|
|
331
|
+
error: String,
|
|
332
|
+
method_: String,
|
|
333
|
+
target_description: String
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
class ActionsApplied < ContextDev::Internal::Type::BaseModel
|
|
337
|
+
attr_accessor instruction: String
|
|
338
|
+
|
|
339
|
+
attr_accessor status: ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied::status
|
|
340
|
+
|
|
341
|
+
attr_reader completion_evidence: String?
|
|
342
|
+
|
|
343
|
+
def completion_evidence=: (String) -> String
|
|
344
|
+
|
|
345
|
+
attr_reader duration_ms: Float?
|
|
346
|
+
|
|
347
|
+
def duration_ms=: (Float) -> Float
|
|
348
|
+
|
|
349
|
+
attr_reader error: String?
|
|
350
|
+
|
|
351
|
+
def error=: (String) -> String
|
|
352
|
+
|
|
353
|
+
attr_reader method_: String?
|
|
354
|
+
|
|
355
|
+
def method_=: (String) -> String
|
|
356
|
+
|
|
357
|
+
attr_reader target_description: String?
|
|
358
|
+
|
|
359
|
+
def target_description=: (String) -> String
|
|
360
|
+
|
|
361
|
+
def initialize: (
|
|
362
|
+
instruction: String,
|
|
363
|
+
status: ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied::status,
|
|
364
|
+
?completion_evidence: String,
|
|
365
|
+
?duration_ms: Float,
|
|
366
|
+
?error: String,
|
|
367
|
+
?method_: String,
|
|
368
|
+
?target_description: String
|
|
369
|
+
) -> void
|
|
370
|
+
|
|
371
|
+
def to_hash: -> {
|
|
372
|
+
instruction: String,
|
|
373
|
+
status: ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied::status,
|
|
374
|
+
completion_evidence: String,
|
|
375
|
+
duration_ms: Float,
|
|
376
|
+
error: String,
|
|
377
|
+
method_: String,
|
|
378
|
+
target_description: String
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
type status = :applied | :failed | :skipped
|
|
382
|
+
|
|
383
|
+
module Status
|
|
384
|
+
extend ContextDev::Internal::Type::Enum
|
|
385
|
+
|
|
386
|
+
APPLIED: :applied
|
|
387
|
+
FAILED: :failed
|
|
388
|
+
SKIPPED: :skipped
|
|
389
|
+
|
|
390
|
+
def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::ActionsApplied::status]
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
309
394
|
type key_metadata =
|
|
310
395
|
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
311
396
|
|