context.dev 2.0.0 → 2.2.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 +20 -0
- data/README.md +1 -1
- data/lib/context_dev/models/brand_retrieve_params.rb +46 -3
- data/lib/context_dev/models/monitor_create_params.rb +36 -28
- data/lib/context_dev/models/monitor_create_response.rb +158 -29
- data/lib/context_dev/models/monitor_list_account_runs_response.rb +102 -1
- data/lib/context_dev/models/monitor_list_params.rb +4 -4
- data/lib/context_dev/models/monitor_list_response.rb +158 -29
- data/lib/context_dev/models/monitor_list_runs_response.rb +100 -1
- data/lib/context_dev/models/monitor_retrieve_change_response.rb +1 -8
- data/lib/context_dev/models/monitor_retrieve_response.rb +158 -29
- data/lib/context_dev/models/monitor_update_params.rb +36 -28
- data/lib/context_dev/models/monitor_update_response.rb +158 -29
- data/lib/context_dev/resources/brand.rb +4 -2
- data/lib/context_dev/resources/monitors.rb +1 -1
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/brand_retrieve_params.rbi +67 -0
- data/rbi/context_dev/models/monitor_create_params.rbi +44 -33
- data/rbi/context_dev/models/monitor_create_response.rbi +243 -33
- data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +204 -3
- data/rbi/context_dev/models/monitor_list_params.rbi +9 -6
- data/rbi/context_dev/models/monitor_list_response.rbi +247 -33
- data/rbi/context_dev/models/monitor_list_runs_response.rbi +204 -3
- data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +0 -9
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +243 -33
- data/rbi/context_dev/models/monitor_update_params.rbi +44 -33
- data/rbi/context_dev/models/monitor_update_response.rbi +243 -33
- data/rbi/context_dev/resources/brand.rbi +4 -1
- data/rbi/context_dev/resources/monitors.rbi +2 -2
- data/sig/context_dev/models/brand_retrieve_params.rbs +26 -0
- data/sig/context_dev/models/monitor_create_params.rbs +7 -17
- data/sig/context_dev/models/monitor_create_response.rbs +81 -17
- data/sig/context_dev/models/monitor_list_account_runs_response.rbs +74 -3
- data/sig/context_dev/models/monitor_list_params.rbs +2 -2
- data/sig/context_dev/models/monitor_list_response.rbs +81 -17
- data/sig/context_dev/models/monitor_list_runs_response.rbs +74 -3
- data/sig/context_dev/models/monitor_retrieve_change_response.rbs +0 -7
- data/sig/context_dev/models/monitor_retrieve_response.rbs +81 -17
- data/sig/context_dev/models/monitor_update_params.rbs +7 -17
- data/sig/context_dev/models/monitor_update_response.rbs +81 -17
- metadata +2 -2
|
@@ -11,6 +11,7 @@ module ContextDev
|
|
|
11
11
|
status: ContextDev::Models::MonitorCreateResponse::status,
|
|
12
12
|
target: ContextDev::Models::MonitorCreateResponse::target,
|
|
13
13
|
updated_at: Time,
|
|
14
|
+
baseline: ContextDev::Models::MonitorCreateResponse::baseline?,
|
|
14
15
|
last_change_at: Time?,
|
|
15
16
|
last_error: ContextDev::Models::MonitorCreateResponse::LastError?,
|
|
16
17
|
last_run_at: Time?,
|
|
@@ -38,6 +39,8 @@ module ContextDev
|
|
|
38
39
|
|
|
39
40
|
attr_accessor updated_at: Time
|
|
40
41
|
|
|
42
|
+
attr_accessor baseline: ContextDev::Models::MonitorCreateResponse::baseline?
|
|
43
|
+
|
|
41
44
|
attr_accessor last_change_at: Time?
|
|
42
45
|
|
|
43
46
|
attr_accessor last_error: ContextDev::Models::MonitorCreateResponse::LastError?
|
|
@@ -62,6 +65,7 @@ module ContextDev
|
|
|
62
65
|
status: ContextDev::Models::MonitorCreateResponse::status,
|
|
63
66
|
target: ContextDev::Models::MonitorCreateResponse::target,
|
|
64
67
|
updated_at: Time,
|
|
68
|
+
?baseline: ContextDev::Models::MonitorCreateResponse::baseline?,
|
|
65
69
|
?last_change_at: Time?,
|
|
66
70
|
?last_error: ContextDev::Models::MonitorCreateResponse::LastError?,
|
|
67
71
|
?last_run_at: Time?,
|
|
@@ -80,6 +84,7 @@ module ContextDev
|
|
|
80
84
|
status: ContextDev::Models::MonitorCreateResponse::status,
|
|
81
85
|
target: ContextDev::Models::MonitorCreateResponse::target,
|
|
82
86
|
updated_at: Time,
|
|
87
|
+
baseline: ContextDev::Models::MonitorCreateResponse::baseline?,
|
|
83
88
|
last_change_at: Time?,
|
|
84
89
|
last_error: ContextDev::Models::MonitorCreateResponse::LastError?,
|
|
85
90
|
last_run_at: Time?,
|
|
@@ -105,12 +110,9 @@ module ContextDev
|
|
|
105
110
|
def to_hash: -> { type: :exact }
|
|
106
111
|
end
|
|
107
112
|
|
|
108
|
-
type semantic =
|
|
109
|
-
{ query: String, type: :semantic, confidence_threshold: Float }
|
|
113
|
+
type semantic = { type: :semantic, confidence_threshold: Float }
|
|
110
114
|
|
|
111
115
|
class Semantic < ContextDev::Internal::Type::BaseModel
|
|
112
|
-
attr_accessor query: String
|
|
113
|
-
|
|
114
116
|
attr_accessor type: :semantic
|
|
115
117
|
|
|
116
118
|
attr_reader confidence_threshold: Float?
|
|
@@ -118,16 +120,11 @@ module ContextDev
|
|
|
118
120
|
def confidence_threshold=: (Float) -> Float
|
|
119
121
|
|
|
120
122
|
def initialize: (
|
|
121
|
-
query: String,
|
|
122
123
|
?confidence_threshold: Float,
|
|
123
124
|
?type: :semantic
|
|
124
125
|
) -> void
|
|
125
126
|
|
|
126
|
-
def to_hash: -> {
|
|
127
|
-
query: String,
|
|
128
|
-
type: :semantic,
|
|
129
|
-
confidence_threshold: Float
|
|
130
|
-
}
|
|
127
|
+
def to_hash: -> { type: :semantic, confidence_threshold: Float }
|
|
131
128
|
end
|
|
132
129
|
|
|
133
130
|
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateResponse::change_detection]
|
|
@@ -281,16 +278,18 @@ module ContextDev
|
|
|
281
278
|
|
|
282
279
|
type extract =
|
|
283
280
|
{
|
|
281
|
+
instructions: String,
|
|
284
282
|
type: :extract,
|
|
285
283
|
url: String,
|
|
286
284
|
follow_subdomains: bool,
|
|
287
|
-
instructions: String,
|
|
288
285
|
max_depth: Integer,
|
|
289
286
|
max_pages: Integer,
|
|
290
287
|
schema: ::Hash[Symbol, top]
|
|
291
288
|
}
|
|
292
289
|
|
|
293
290
|
class Extract < ContextDev::Internal::Type::BaseModel
|
|
291
|
+
attr_accessor instructions: String
|
|
292
|
+
|
|
294
293
|
attr_accessor type: :extract
|
|
295
294
|
|
|
296
295
|
attr_accessor url: String
|
|
@@ -299,10 +298,6 @@ module ContextDev
|
|
|
299
298
|
|
|
300
299
|
def follow_subdomains=: (bool) -> bool
|
|
301
300
|
|
|
302
|
-
attr_reader instructions: String?
|
|
303
|
-
|
|
304
|
-
def instructions=: (String) -> String
|
|
305
|
-
|
|
306
301
|
attr_reader max_depth: Integer?
|
|
307
302
|
|
|
308
303
|
def max_depth=: (Integer) -> Integer
|
|
@@ -316,9 +311,9 @@ module ContextDev
|
|
|
316
311
|
def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
317
312
|
|
|
318
313
|
def initialize: (
|
|
314
|
+
instructions: String,
|
|
319
315
|
url: String,
|
|
320
316
|
?follow_subdomains: bool,
|
|
321
|
-
?instructions: String,
|
|
322
317
|
?max_depth: Integer,
|
|
323
318
|
?max_pages: Integer,
|
|
324
319
|
?schema: ::Hash[Symbol, top],
|
|
@@ -326,10 +321,10 @@ module ContextDev
|
|
|
326
321
|
) -> void
|
|
327
322
|
|
|
328
323
|
def to_hash: -> {
|
|
324
|
+
instructions: String,
|
|
329
325
|
type: :extract,
|
|
330
326
|
url: String,
|
|
331
327
|
follow_subdomains: bool,
|
|
332
|
-
instructions: String,
|
|
333
328
|
max_depth: Integer,
|
|
334
329
|
max_pages: Integer,
|
|
335
330
|
schema: ::Hash[Symbol, top]
|
|
@@ -339,6 +334,75 @@ module ContextDev
|
|
|
339
334
|
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateResponse::target]
|
|
340
335
|
end
|
|
341
336
|
|
|
337
|
+
type baseline =
|
|
338
|
+
ContextDev::Models::MonitorCreateResponse::Baseline::MonitorsPageBaseline
|
|
339
|
+
| ContextDev::Models::MonitorCreateResponse::Baseline::MonitorsSitemapBaseline
|
|
340
|
+
| ContextDev::Models::MonitorCreateResponse::Baseline::MonitorsExtractBaseline
|
|
341
|
+
|
|
342
|
+
module Baseline
|
|
343
|
+
extend ContextDev::Internal::Type::Union
|
|
344
|
+
|
|
345
|
+
type monitors_page_baseline = { captured_at: Time, text: String }
|
|
346
|
+
|
|
347
|
+
class MonitorsPageBaseline < ContextDev::Internal::Type::BaseModel
|
|
348
|
+
attr_accessor captured_at: Time
|
|
349
|
+
|
|
350
|
+
attr_accessor text: String
|
|
351
|
+
|
|
352
|
+
def initialize: (captured_at: Time, text: String) -> void
|
|
353
|
+
|
|
354
|
+
def to_hash: -> { captured_at: Time, text: String }
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
type monitors_sitemap_baseline =
|
|
358
|
+
{ captured_at: Time, url_count: Integer, urls: ::Array[String] }
|
|
359
|
+
|
|
360
|
+
class MonitorsSitemapBaseline < ContextDev::Internal::Type::BaseModel
|
|
361
|
+
attr_accessor captured_at: Time
|
|
362
|
+
|
|
363
|
+
attr_accessor url_count: Integer
|
|
364
|
+
|
|
365
|
+
attr_accessor urls: ::Array[String]
|
|
366
|
+
|
|
367
|
+
def initialize: (
|
|
368
|
+
captured_at: Time,
|
|
369
|
+
url_count: Integer,
|
|
370
|
+
urls: ::Array[String]
|
|
371
|
+
) -> void
|
|
372
|
+
|
|
373
|
+
def to_hash: -> {
|
|
374
|
+
captured_at: Time,
|
|
375
|
+
url_count: Integer,
|
|
376
|
+
urls: ::Array[String]
|
|
377
|
+
}
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
type monitors_extract_baseline =
|
|
381
|
+
{ captured_at: Time, data: top, urls_analyzed: ::Array[String] }
|
|
382
|
+
|
|
383
|
+
class MonitorsExtractBaseline < ContextDev::Internal::Type::BaseModel
|
|
384
|
+
attr_accessor captured_at: Time
|
|
385
|
+
|
|
386
|
+
attr_accessor data: top
|
|
387
|
+
|
|
388
|
+
attr_accessor urls_analyzed: ::Array[String]
|
|
389
|
+
|
|
390
|
+
def initialize: (
|
|
391
|
+
captured_at: Time,
|
|
392
|
+
data: top,
|
|
393
|
+
urls_analyzed: ::Array[String]
|
|
394
|
+
) -> void
|
|
395
|
+
|
|
396
|
+
def to_hash: -> {
|
|
397
|
+
captured_at: Time,
|
|
398
|
+
data: top,
|
|
399
|
+
urls_analyzed: ::Array[String]
|
|
400
|
+
}
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
def self?.variants: -> ::Array[ContextDev::Models::MonitorCreateResponse::baseline]
|
|
404
|
+
end
|
|
405
|
+
|
|
342
406
|
type last_error = { code: String, message: String }
|
|
343
407
|
|
|
344
408
|
class LastError < ContextDev::Internal::Type::BaseModel
|
|
@@ -41,7 +41,8 @@ module ContextDev
|
|
|
41
41
|
completed_at: Time?,
|
|
42
42
|
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?,
|
|
43
43
|
skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?,
|
|
44
|
-
started_at: Time
|
|
44
|
+
started_at: Time?,
|
|
45
|
+
webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
class Data < ContextDev::Internal::Type::BaseModel
|
|
@@ -73,6 +74,12 @@ module ContextDev
|
|
|
73
74
|
|
|
74
75
|
attr_accessor started_at: Time?
|
|
75
76
|
|
|
77
|
+
attr_reader webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery?
|
|
78
|
+
|
|
79
|
+
def webhook_delivery=: (
|
|
80
|
+
ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery
|
|
81
|
+
) -> ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery
|
|
82
|
+
|
|
76
83
|
def initialize: (
|
|
77
84
|
id: String,
|
|
78
85
|
baseline_created: bool,
|
|
@@ -87,7 +94,8 @@ module ContextDev
|
|
|
87
94
|
?completed_at: Time?,
|
|
88
95
|
?error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?,
|
|
89
96
|
?skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?,
|
|
90
|
-
?started_at: Time
|
|
97
|
+
?started_at: Time?,
|
|
98
|
+
?webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery
|
|
91
99
|
) -> void
|
|
92
100
|
|
|
93
101
|
def to_hash: -> {
|
|
@@ -104,7 +112,8 @@ module ContextDev
|
|
|
104
112
|
completed_at: Time?,
|
|
105
113
|
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?,
|
|
106
114
|
skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?,
|
|
107
|
-
started_at: Time
|
|
115
|
+
started_at: Time?,
|
|
116
|
+
webhook_delivery: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
type change_detection_type = :exact | :semantic
|
|
@@ -178,6 +187,68 @@ module ContextDev
|
|
|
178
187
|
|
|
179
188
|
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason]
|
|
180
189
|
end
|
|
190
|
+
|
|
191
|
+
type webhook_delivery =
|
|
192
|
+
{
|
|
193
|
+
attempted_at: Time,
|
|
194
|
+
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?,
|
|
195
|
+
event_id: String,
|
|
196
|
+
http_status: Integer?,
|
|
197
|
+
status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
class WebhookDelivery < ContextDev::Internal::Type::BaseModel
|
|
201
|
+
attr_accessor attempted_at: Time
|
|
202
|
+
|
|
203
|
+
attr_accessor error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?
|
|
204
|
+
|
|
205
|
+
attr_accessor event_id: String
|
|
206
|
+
|
|
207
|
+
attr_accessor http_status: Integer?
|
|
208
|
+
|
|
209
|
+
attr_accessor status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status
|
|
210
|
+
|
|
211
|
+
def initialize: (
|
|
212
|
+
attempted_at: Time,
|
|
213
|
+
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?,
|
|
214
|
+
event_id: String,
|
|
215
|
+
http_status: Integer?,
|
|
216
|
+
status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status
|
|
217
|
+
) -> void
|
|
218
|
+
|
|
219
|
+
def to_hash: -> {
|
|
220
|
+
attempted_at: Time,
|
|
221
|
+
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::Error?,
|
|
222
|
+
event_id: String,
|
|
223
|
+
http_status: Integer?,
|
|
224
|
+
status: ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
type error = { code: String, message: String }
|
|
228
|
+
|
|
229
|
+
class Error < ContextDev::Internal::Type::BaseModel
|
|
230
|
+
attr_accessor code: String
|
|
231
|
+
|
|
232
|
+
attr_accessor message: String
|
|
233
|
+
|
|
234
|
+
def initialize: (code: String, message: String) -> void
|
|
235
|
+
|
|
236
|
+
def to_hash: -> { code: String, message: String }
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
type status = :delivered | :rejected | :failed | :skipped_unsafe_url
|
|
240
|
+
|
|
241
|
+
module Status
|
|
242
|
+
extend ContextDev::Internal::Type::Enum
|
|
243
|
+
|
|
244
|
+
DELIVERED: :delivered
|
|
245
|
+
REJECTED: :rejected
|
|
246
|
+
FAILED: :failed
|
|
247
|
+
SKIPPED_UNSAFE_URL: :skipped_unsafe_url
|
|
248
|
+
|
|
249
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::WebhookDelivery::status]
|
|
250
|
+
end
|
|
251
|
+
end
|
|
181
252
|
end
|
|
182
253
|
end
|
|
183
254
|
end
|
|
@@ -108,14 +108,14 @@ module ContextDev
|
|
|
108
108
|
def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::change_detection_type]
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
-
type search_by = :name | :url | :
|
|
111
|
+
type search_by = :name | :url | :instructions | :tags
|
|
112
112
|
|
|
113
113
|
module SearchBy
|
|
114
114
|
extend ContextDev::Internal::Type::Enum
|
|
115
115
|
|
|
116
116
|
NAME: :name
|
|
117
117
|
URL: :url
|
|
118
|
-
|
|
118
|
+
INSTRUCTIONS: :instructions
|
|
119
119
|
TAGS: :tags
|
|
120
120
|
|
|
121
121
|
def self?.values: -> ::Array[ContextDev::Models::MonitorListParams::search_by]
|
|
@@ -37,6 +37,7 @@ module ContextDev
|
|
|
37
37
|
status: ContextDev::Models::MonitorListResponse::Data::status,
|
|
38
38
|
target: ContextDev::Models::MonitorListResponse::Data::target,
|
|
39
39
|
updated_at: Time,
|
|
40
|
+
baseline: ContextDev::Models::MonitorListResponse::Data::baseline?,
|
|
40
41
|
last_change_at: Time?,
|
|
41
42
|
last_error: ContextDev::Models::MonitorListResponse::Data::LastError?,
|
|
42
43
|
last_run_at: Time?,
|
|
@@ -64,6 +65,8 @@ module ContextDev
|
|
|
64
65
|
|
|
65
66
|
attr_accessor updated_at: Time
|
|
66
67
|
|
|
68
|
+
attr_accessor baseline: ContextDev::Models::MonitorListResponse::Data::baseline?
|
|
69
|
+
|
|
67
70
|
attr_accessor last_change_at: Time?
|
|
68
71
|
|
|
69
72
|
attr_accessor last_error: ContextDev::Models::MonitorListResponse::Data::LastError?
|
|
@@ -88,6 +91,7 @@ module ContextDev
|
|
|
88
91
|
status: ContextDev::Models::MonitorListResponse::Data::status,
|
|
89
92
|
target: ContextDev::Models::MonitorListResponse::Data::target,
|
|
90
93
|
updated_at: Time,
|
|
94
|
+
?baseline: ContextDev::Models::MonitorListResponse::Data::baseline?,
|
|
91
95
|
?last_change_at: Time?,
|
|
92
96
|
?last_error: ContextDev::Models::MonitorListResponse::Data::LastError?,
|
|
93
97
|
?last_run_at: Time?,
|
|
@@ -106,6 +110,7 @@ module ContextDev
|
|
|
106
110
|
status: ContextDev::Models::MonitorListResponse::Data::status,
|
|
107
111
|
target: ContextDev::Models::MonitorListResponse::Data::target,
|
|
108
112
|
updated_at: Time,
|
|
113
|
+
baseline: ContextDev::Models::MonitorListResponse::Data::baseline?,
|
|
109
114
|
last_change_at: Time?,
|
|
110
115
|
last_error: ContextDev::Models::MonitorListResponse::Data::LastError?,
|
|
111
116
|
last_run_at: Time?,
|
|
@@ -131,12 +136,9 @@ module ContextDev
|
|
|
131
136
|
def to_hash: -> { type: :exact }
|
|
132
137
|
end
|
|
133
138
|
|
|
134
|
-
type semantic =
|
|
135
|
-
{ query: String, type: :semantic, confidence_threshold: Float }
|
|
139
|
+
type semantic = { type: :semantic, confidence_threshold: Float }
|
|
136
140
|
|
|
137
141
|
class Semantic < ContextDev::Internal::Type::BaseModel
|
|
138
|
-
attr_accessor query: String
|
|
139
|
-
|
|
140
142
|
attr_accessor type: :semantic
|
|
141
143
|
|
|
142
144
|
attr_reader confidence_threshold: Float?
|
|
@@ -144,16 +146,11 @@ module ContextDev
|
|
|
144
146
|
def confidence_threshold=: (Float) -> Float
|
|
145
147
|
|
|
146
148
|
def initialize: (
|
|
147
|
-
query: String,
|
|
148
149
|
?confidence_threshold: Float,
|
|
149
150
|
?type: :semantic
|
|
150
151
|
) -> void
|
|
151
152
|
|
|
152
|
-
def to_hash: -> {
|
|
153
|
-
query: String,
|
|
154
|
-
type: :semantic,
|
|
155
|
-
confidence_threshold: Float
|
|
156
|
-
}
|
|
153
|
+
def to_hash: -> { type: :semantic, confidence_threshold: Float }
|
|
157
154
|
end
|
|
158
155
|
|
|
159
156
|
def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::Data::change_detection]
|
|
@@ -307,16 +304,18 @@ module ContextDev
|
|
|
307
304
|
|
|
308
305
|
type extract =
|
|
309
306
|
{
|
|
307
|
+
instructions: String,
|
|
310
308
|
type: :extract,
|
|
311
309
|
url: String,
|
|
312
310
|
follow_subdomains: bool,
|
|
313
|
-
instructions: String,
|
|
314
311
|
max_depth: Integer,
|
|
315
312
|
max_pages: Integer,
|
|
316
313
|
schema: ::Hash[Symbol, top]
|
|
317
314
|
}
|
|
318
315
|
|
|
319
316
|
class Extract < ContextDev::Internal::Type::BaseModel
|
|
317
|
+
attr_accessor instructions: String
|
|
318
|
+
|
|
320
319
|
attr_accessor type: :extract
|
|
321
320
|
|
|
322
321
|
attr_accessor url: String
|
|
@@ -325,10 +324,6 @@ module ContextDev
|
|
|
325
324
|
|
|
326
325
|
def follow_subdomains=: (bool) -> bool
|
|
327
326
|
|
|
328
|
-
attr_reader instructions: String?
|
|
329
|
-
|
|
330
|
-
def instructions=: (String) -> String
|
|
331
|
-
|
|
332
327
|
attr_reader max_depth: Integer?
|
|
333
328
|
|
|
334
329
|
def max_depth=: (Integer) -> Integer
|
|
@@ -342,9 +337,9 @@ module ContextDev
|
|
|
342
337
|
def schema=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
343
338
|
|
|
344
339
|
def initialize: (
|
|
340
|
+
instructions: String,
|
|
345
341
|
url: String,
|
|
346
342
|
?follow_subdomains: bool,
|
|
347
|
-
?instructions: String,
|
|
348
343
|
?max_depth: Integer,
|
|
349
344
|
?max_pages: Integer,
|
|
350
345
|
?schema: ::Hash[Symbol, top],
|
|
@@ -352,10 +347,10 @@ module ContextDev
|
|
|
352
347
|
) -> void
|
|
353
348
|
|
|
354
349
|
def to_hash: -> {
|
|
350
|
+
instructions: String,
|
|
355
351
|
type: :extract,
|
|
356
352
|
url: String,
|
|
357
353
|
follow_subdomains: bool,
|
|
358
|
-
instructions: String,
|
|
359
354
|
max_depth: Integer,
|
|
360
355
|
max_pages: Integer,
|
|
361
356
|
schema: ::Hash[Symbol, top]
|
|
@@ -365,6 +360,75 @@ module ContextDev
|
|
|
365
360
|
def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::Data::target]
|
|
366
361
|
end
|
|
367
362
|
|
|
363
|
+
type baseline =
|
|
364
|
+
ContextDev::Models::MonitorListResponse::Data::Baseline::MonitorsPageBaseline
|
|
365
|
+
| ContextDev::Models::MonitorListResponse::Data::Baseline::MonitorsSitemapBaseline
|
|
366
|
+
| ContextDev::Models::MonitorListResponse::Data::Baseline::MonitorsExtractBaseline
|
|
367
|
+
|
|
368
|
+
module Baseline
|
|
369
|
+
extend ContextDev::Internal::Type::Union
|
|
370
|
+
|
|
371
|
+
type monitors_page_baseline = { captured_at: Time, text: String }
|
|
372
|
+
|
|
373
|
+
class MonitorsPageBaseline < ContextDev::Internal::Type::BaseModel
|
|
374
|
+
attr_accessor captured_at: Time
|
|
375
|
+
|
|
376
|
+
attr_accessor text: String
|
|
377
|
+
|
|
378
|
+
def initialize: (captured_at: Time, text: String) -> void
|
|
379
|
+
|
|
380
|
+
def to_hash: -> { captured_at: Time, text: String }
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
type monitors_sitemap_baseline =
|
|
384
|
+
{ captured_at: Time, url_count: Integer, urls: ::Array[String] }
|
|
385
|
+
|
|
386
|
+
class MonitorsSitemapBaseline < ContextDev::Internal::Type::BaseModel
|
|
387
|
+
attr_accessor captured_at: Time
|
|
388
|
+
|
|
389
|
+
attr_accessor url_count: Integer
|
|
390
|
+
|
|
391
|
+
attr_accessor urls: ::Array[String]
|
|
392
|
+
|
|
393
|
+
def initialize: (
|
|
394
|
+
captured_at: Time,
|
|
395
|
+
url_count: Integer,
|
|
396
|
+
urls: ::Array[String]
|
|
397
|
+
) -> void
|
|
398
|
+
|
|
399
|
+
def to_hash: -> {
|
|
400
|
+
captured_at: Time,
|
|
401
|
+
url_count: Integer,
|
|
402
|
+
urls: ::Array[String]
|
|
403
|
+
}
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
type monitors_extract_baseline =
|
|
407
|
+
{ captured_at: Time, data: top, urls_analyzed: ::Array[String] }
|
|
408
|
+
|
|
409
|
+
class MonitorsExtractBaseline < ContextDev::Internal::Type::BaseModel
|
|
410
|
+
attr_accessor captured_at: Time
|
|
411
|
+
|
|
412
|
+
attr_accessor data: top
|
|
413
|
+
|
|
414
|
+
attr_accessor urls_analyzed: ::Array[String]
|
|
415
|
+
|
|
416
|
+
def initialize: (
|
|
417
|
+
captured_at: Time,
|
|
418
|
+
data: top,
|
|
419
|
+
urls_analyzed: ::Array[String]
|
|
420
|
+
) -> void
|
|
421
|
+
|
|
422
|
+
def to_hash: -> {
|
|
423
|
+
captured_at: Time,
|
|
424
|
+
data: top,
|
|
425
|
+
urls_analyzed: ::Array[String]
|
|
426
|
+
}
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
def self?.variants: -> ::Array[ContextDev::Models::MonitorListResponse::Data::baseline]
|
|
430
|
+
end
|
|
431
|
+
|
|
368
432
|
type last_error = { code: String, message: String }
|
|
369
433
|
|
|
370
434
|
class LastError < ContextDev::Internal::Type::BaseModel
|
|
@@ -41,7 +41,8 @@ module ContextDev
|
|
|
41
41
|
completed_at: Time?,
|
|
42
42
|
error: ContextDev::Models::MonitorListRunsResponse::Data::Error?,
|
|
43
43
|
skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?,
|
|
44
|
-
started_at: Time
|
|
44
|
+
started_at: Time?,
|
|
45
|
+
webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
class Data < ContextDev::Internal::Type::BaseModel
|
|
@@ -73,6 +74,12 @@ module ContextDev
|
|
|
73
74
|
|
|
74
75
|
attr_accessor started_at: Time?
|
|
75
76
|
|
|
77
|
+
attr_reader webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery?
|
|
78
|
+
|
|
79
|
+
def webhook_delivery=: (
|
|
80
|
+
ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery
|
|
81
|
+
) -> ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery
|
|
82
|
+
|
|
76
83
|
def initialize: (
|
|
77
84
|
id: String,
|
|
78
85
|
baseline_created: bool,
|
|
@@ -87,7 +94,8 @@ module ContextDev
|
|
|
87
94
|
?completed_at: Time?,
|
|
88
95
|
?error: ContextDev::Models::MonitorListRunsResponse::Data::Error?,
|
|
89
96
|
?skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?,
|
|
90
|
-
?started_at: Time
|
|
97
|
+
?started_at: Time?,
|
|
98
|
+
?webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery
|
|
91
99
|
) -> void
|
|
92
100
|
|
|
93
101
|
def to_hash: -> {
|
|
@@ -104,7 +112,8 @@ module ContextDev
|
|
|
104
112
|
completed_at: Time?,
|
|
105
113
|
error: ContextDev::Models::MonitorListRunsResponse::Data::Error?,
|
|
106
114
|
skip_reason: ContextDev::Models::MonitorListRunsResponse::Data::skip_reason?,
|
|
107
|
-
started_at: Time
|
|
115
|
+
started_at: Time?,
|
|
116
|
+
webhook_delivery: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
type change_detection_type = :exact | :semantic
|
|
@@ -178,6 +187,68 @@ module ContextDev
|
|
|
178
187
|
|
|
179
188
|
def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::skip_reason]
|
|
180
189
|
end
|
|
190
|
+
|
|
191
|
+
type webhook_delivery =
|
|
192
|
+
{
|
|
193
|
+
attempted_at: Time,
|
|
194
|
+
error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?,
|
|
195
|
+
event_id: String,
|
|
196
|
+
http_status: Integer?,
|
|
197
|
+
status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
class WebhookDelivery < ContextDev::Internal::Type::BaseModel
|
|
201
|
+
attr_accessor attempted_at: Time
|
|
202
|
+
|
|
203
|
+
attr_accessor error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?
|
|
204
|
+
|
|
205
|
+
attr_accessor event_id: String
|
|
206
|
+
|
|
207
|
+
attr_accessor http_status: Integer?
|
|
208
|
+
|
|
209
|
+
attr_accessor status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status
|
|
210
|
+
|
|
211
|
+
def initialize: (
|
|
212
|
+
attempted_at: Time,
|
|
213
|
+
error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?,
|
|
214
|
+
event_id: String,
|
|
215
|
+
http_status: Integer?,
|
|
216
|
+
status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status
|
|
217
|
+
) -> void
|
|
218
|
+
|
|
219
|
+
def to_hash: -> {
|
|
220
|
+
attempted_at: Time,
|
|
221
|
+
error: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::Error?,
|
|
222
|
+
event_id: String,
|
|
223
|
+
http_status: Integer?,
|
|
224
|
+
status: ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
type error = { code: String, message: String }
|
|
228
|
+
|
|
229
|
+
class Error < ContextDev::Internal::Type::BaseModel
|
|
230
|
+
attr_accessor code: String
|
|
231
|
+
|
|
232
|
+
attr_accessor message: String
|
|
233
|
+
|
|
234
|
+
def initialize: (code: String, message: String) -> void
|
|
235
|
+
|
|
236
|
+
def to_hash: -> { code: String, message: String }
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
type status = :delivered | :rejected | :failed | :skipped_unsafe_url
|
|
240
|
+
|
|
241
|
+
module Status
|
|
242
|
+
extend ContextDev::Internal::Type::Enum
|
|
243
|
+
|
|
244
|
+
DELIVERED: :delivered
|
|
245
|
+
REJECTED: :rejected
|
|
246
|
+
FAILED: :failed
|
|
247
|
+
SKIPPED_UNSAFE_URL: :skipped_unsafe_url
|
|
248
|
+
|
|
249
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListRunsResponse::Data::WebhookDelivery::status]
|
|
250
|
+
end
|
|
251
|
+
end
|
|
181
252
|
end
|
|
182
253
|
end
|
|
183
254
|
end
|
|
@@ -22,7 +22,6 @@ module ContextDev
|
|
|
22
22
|
importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance,
|
|
23
23
|
matched_url_count: Integer,
|
|
24
24
|
matched_urls: ::Array[String],
|
|
25
|
-
query: String,
|
|
26
25
|
removed_url_count: Integer,
|
|
27
26
|
removed_urls: ::Array[String],
|
|
28
27
|
tags: ::Array[String]
|
|
@@ -93,10 +92,6 @@ module ContextDev
|
|
|
93
92
|
|
|
94
93
|
def matched_urls=: (::Array[String]) -> ::Array[String]
|
|
95
94
|
|
|
96
|
-
attr_reader query: String?
|
|
97
|
-
|
|
98
|
-
def query=: (String) -> String
|
|
99
|
-
|
|
100
95
|
attr_reader removed_url_count: Integer?
|
|
101
96
|
|
|
102
97
|
def removed_url_count=: (Integer) -> Integer
|
|
@@ -130,7 +125,6 @@ module ContextDev
|
|
|
130
125
|
?importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance,
|
|
131
126
|
?matched_url_count: Integer,
|
|
132
127
|
?matched_urls: ::Array[String],
|
|
133
|
-
?query: String,
|
|
134
128
|
?removed_url_count: Integer,
|
|
135
129
|
?removed_urls: ::Array[String],
|
|
136
130
|
?tags: ::Array[String]
|
|
@@ -157,7 +151,6 @@ module ContextDev
|
|
|
157
151
|
importance: ContextDev::Models::MonitorRetrieveChangeResponse::importance,
|
|
158
152
|
matched_url_count: Integer,
|
|
159
153
|
matched_urls: ::Array[String],
|
|
160
|
-
query: String,
|
|
161
154
|
removed_url_count: Integer,
|
|
162
155
|
removed_urls: ::Array[String],
|
|
163
156
|
tags: ::Array[String]
|