context.dev 1.35.0 → 2.0.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 +35 -0
- data/README.md +24 -17
- data/lib/context_dev/client.rb +7 -0
- data/lib/context_dev/models/brand_retrieve_params.rb +1036 -174
- data/lib/context_dev/models/monitor_create_params.rb +361 -0
- data/lib/context_dev/models/monitor_create_response.rb +484 -0
- data/lib/context_dev/models/monitor_delete_params.rb +20 -0
- data/lib/context_dev/models/monitor_delete_response.rb +22 -0
- data/lib/context_dev/models/monitor_list_account_changes_params.rb +93 -0
- data/lib/context_dev/models/monitor_list_account_changes_response.rb +199 -0
- data/lib/context_dev/models/monitor_list_account_runs_params.rb +55 -0
- data/lib/context_dev/models/monitor_list_account_runs_response.rb +227 -0
- data/lib/context_dev/models/monitor_list_changes_params.rb +57 -0
- data/lib/context_dev/models/monitor_list_changes_response.rb +198 -0
- data/lib/context_dev/models/monitor_list_params.rb +161 -0
- data/lib/context_dev/models/monitor_list_response.rb +507 -0
- data/lib/context_dev/models/monitor_list_runs_params.rb +62 -0
- data/lib/context_dev/models/monitor_list_runs_response.rb +227 -0
- data/lib/context_dev/models/monitor_retrieve_change_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_change_response.rb +271 -0
- data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_response.rb +484 -0
- data/lib/context_dev/models/monitor_run_params.rb +20 -0
- data/lib/context_dev/models/monitor_run_response.rb +35 -0
- data/lib/context_dev/models/monitor_update_params.rb +368 -0
- data/lib/context_dev/models/monitor_update_response.rb +484 -0
- data/lib/context_dev/models/utility_prefetch_params.rb +70 -6
- data/lib/context_dev/models/utility_prefetch_response.rb +23 -1
- data/lib/context_dev/models/web_extract_response.rb +17 -1
- data/lib/context_dev/models/web_extract_styleguide_params.rb +22 -1
- data/lib/context_dev/models/web_screenshot_params.rb +245 -1
- data/lib/context_dev/models/web_search_params.rb +270 -3
- data/lib/context_dev/models/web_web_crawl_md_params.rb +236 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +234 -1
- data/lib/context_dev/models/web_web_scrape_html_response.rb +10 -2
- data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -1
- data/lib/context_dev/models/web_web_scrape_md_params.rb +234 -1
- data/lib/context_dev/models.rb +20 -12
- data/lib/context_dev/resources/ai.rb +0 -33
- data/lib/context_dev/resources/brand.rb +7 -204
- data/lib/context_dev/resources/monitors.rb +352 -0
- data/lib/context_dev/resources/utility.rb +9 -35
- data/lib/context_dev/resources/web.rb +36 -8
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +23 -14
- data/rbi/context_dev/client.rbi +6 -0
- data/rbi/context_dev/models/brand_retrieve_params.rbi +3792 -679
- data/rbi/context_dev/models/monitor_create_params.rbi +640 -0
- data/rbi/context_dev/models/monitor_create_response.rbi +820 -0
- data/rbi/context_dev/models/monitor_delete_params.rbi +35 -0
- data/rbi/context_dev/models/monitor_delete_response.rbi +29 -0
- data/rbi/context_dev/models/monitor_list_account_changes_params.rbi +211 -0
- data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +376 -0
- data/rbi/context_dev/models/monitor_list_account_runs_params.rbi +125 -0
- data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +464 -0
- data/rbi/context_dev/models/monitor_list_changes_params.rbi +91 -0
- data/rbi/context_dev/models/monitor_list_changes_response.rbi +372 -0
- data/rbi/context_dev/models/monitor_list_params.rbi +332 -0
- data/rbi/context_dev/models/monitor_list_response.rbi +885 -0
- data/rbi/context_dev/models/monitor_list_runs_params.rbi +125 -0
- data/rbi/context_dev/models/monitor_list_runs_response.rbi +455 -0
- data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +478 -0
- data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +828 -0
- data/rbi/context_dev/models/monitor_run_params.rbi +35 -0
- data/rbi/context_dev/models/monitor_run_response.rbi +48 -0
- data/rbi/context_dev/models/monitor_update_params.rbi +680 -0
- data/rbi/context_dev/models/monitor_update_response.rbi +820 -0
- data/rbi/context_dev/models/utility_prefetch_params.rbi +129 -7
- data/rbi/context_dev/models/utility_prefetch_response.rbi +55 -3
- data/rbi/context_dev/models/web_extract_response.rbi +10 -0
- data/rbi/context_dev/models/web_extract_styleguide_params.rbi +59 -0
- data/rbi/context_dev/models/web_screenshot_params.rbi +295 -0
- data/rbi/context_dev/models/web_search_params.rbi +288 -2
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +260 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +465 -0
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +29 -3
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +17 -0
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +259 -0
- data/rbi/context_dev/models.rbi +23 -15
- data/rbi/context_dev/resources/ai.rbi +0 -28
- data/rbi/context_dev/resources/brand.rbi +13 -228
- data/rbi/context_dev/resources/monitors.rbi +286 -0
- data/rbi/context_dev/resources/utility.rbi +14 -29
- data/rbi/context_dev/resources/web.rbi +56 -1
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/brand_retrieve_params.rbs +1560 -281
- data/sig/context_dev/models/monitor_create_params.rbs +311 -0
- data/sig/context_dev/models/monitor_create_response.rbs +369 -0
- data/sig/context_dev/models/monitor_delete_params.rbs +23 -0
- data/sig/context_dev/models/monitor_delete_response.rbs +15 -0
- data/sig/context_dev/models/monitor_list_account_changes_params.rbs +104 -0
- data/sig/context_dev/models/monitor_list_account_changes_response.rbs +176 -0
- data/sig/context_dev/models/monitor_list_account_runs_params.rbs +58 -0
- data/sig/context_dev/models/monitor_list_account_runs_response.rbs +184 -0
- data/sig/context_dev/models/monitor_list_changes_params.rbs +61 -0
- data/sig/context_dev/models/monitor_list_changes_response.rbs +176 -0
- data/sig/context_dev/models/monitor_list_params.rbs +160 -0
- data/sig/context_dev/models/monitor_list_response.rbs +396 -0
- data/sig/context_dev/models/monitor_list_runs_params.rbs +63 -0
- data/sig/context_dev/models/monitor_list_runs_response.rbs +184 -0
- data/sig/context_dev/models/monitor_retrieve_change_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_change_response.rbs +228 -0
- data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_response.rbs +369 -0
- data/sig/context_dev/models/monitor_run_params.rbs +23 -0
- data/sig/context_dev/models/monitor_run_response.rbs +18 -0
- data/sig/context_dev/models/monitor_update_params.rbs +331 -0
- data/sig/context_dev/models/monitor_update_response.rbs +369 -0
- data/sig/context_dev/models/utility_prefetch_params.rbs +52 -4
- data/sig/context_dev/models/utility_prefetch_response.rbs +22 -3
- data/sig/context_dev/models/web_extract_response.rbs +5 -0
- data/sig/context_dev/models/web_extract_styleguide_params.rbs +20 -0
- data/sig/context_dev/models/web_screenshot_params.rbs +446 -0
- data/sig/context_dev/models/web_search_params.rbs +503 -0
- data/sig/context_dev/models/web_web_crawl_md_params.rbs +433 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +433 -0
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +8 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +433 -0
- data/sig/context_dev/models.rbs +20 -12
- data/sig/context_dev/resources/ai.rbs +0 -8
- data/sig/context_dev/resources/brand.rbs +1 -56
- data/sig/context_dev/resources/monitors.rbs +101 -0
- data/sig/context_dev/resources/utility.rbs +2 -7
- data/sig/context_dev/resources/web.rbs +12 -0
- metadata +71 -44
- data/lib/context_dev/models/ai_ai_query_params.rb +0 -235
- data/lib/context_dev/models/ai_ai_query_response.rb +0 -133
- data/lib/context_dev/models/brand_identify_from_transaction_params.rb +0 -474
- data/lib/context_dev/models/brand_identify_from_transaction_response.rb +0 -1074
- data/lib/context_dev/models/brand_retrieve_by_email_params.rb +0 -195
- data/lib/context_dev/models/brand_retrieve_by_email_response.rb +0 -1071
- data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +0 -195
- data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +0 -1070
- data/lib/context_dev/models/brand_retrieve_by_name_params.rb +0 -452
- data/lib/context_dev/models/brand_retrieve_by_name_response.rb +0 -1070
- data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +0 -283
- data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +0 -1072
- data/lib/context_dev/models/utility_prefetch_by_email_params.rb +0 -37
- data/lib/context_dev/models/utility_prefetch_by_email_response.rb +0 -68
- data/rbi/context_dev/models/ai_ai_query_params.rbi +0 -504
- data/rbi/context_dev/models/ai_ai_query_response.rbi +0 -267
- data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +0 -2020
- data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +0 -3515
- data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +0 -743
- data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +0 -3511
- data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +0 -743
- data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +0 -3510
- data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +0 -1982
- data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +0 -3510
- data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +0 -1153
- data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +0 -3512
- data/rbi/context_dev/models/utility_prefetch_by_email_params.rbi +0 -65
- data/rbi/context_dev/models/utility_prefetch_by_email_response.rbi +0 -132
- data/sig/context_dev/models/ai_ai_query_params.rbs +0 -218
- data/sig/context_dev/models/ai_ai_query_response.rbs +0 -121
- data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +0 -822
- data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +0 -305
- data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +0 -305
- data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +0 -801
- data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +0 -467
- data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +0 -1441
- data/sig/context_dev/models/utility_prefetch_by_email_params.rbs +0 -30
- data/sig/context_dev/models/utility_prefetch_by_email_response.rbs +0 -64
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type monitor_list_account_changes_params =
|
|
4
|
+
{
|
|
5
|
+
change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type,
|
|
6
|
+
cursor: String,
|
|
7
|
+
limit: Integer,
|
|
8
|
+
monitor_id: String,
|
|
9
|
+
since: Time,
|
|
10
|
+
tag: String,
|
|
11
|
+
target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type,
|
|
12
|
+
until_: Time
|
|
13
|
+
}
|
|
14
|
+
& ContextDev::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class MonitorListAccountChangesParams < ContextDev::Internal::Type::BaseModel
|
|
17
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_reader change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type?
|
|
21
|
+
|
|
22
|
+
def change_detection_type=: (
|
|
23
|
+
ContextDev::Models::MonitorListAccountChangesParams::change_detection_type
|
|
24
|
+
) -> ContextDev::Models::MonitorListAccountChangesParams::change_detection_type
|
|
25
|
+
|
|
26
|
+
attr_reader cursor: String?
|
|
27
|
+
|
|
28
|
+
def cursor=: (String) -> String
|
|
29
|
+
|
|
30
|
+
attr_reader limit: Integer?
|
|
31
|
+
|
|
32
|
+
def limit=: (Integer) -> Integer
|
|
33
|
+
|
|
34
|
+
attr_reader monitor_id: String?
|
|
35
|
+
|
|
36
|
+
def monitor_id=: (String) -> String
|
|
37
|
+
|
|
38
|
+
attr_reader since: Time?
|
|
39
|
+
|
|
40
|
+
def since=: (Time) -> Time
|
|
41
|
+
|
|
42
|
+
attr_reader tag: String?
|
|
43
|
+
|
|
44
|
+
def tag=: (String) -> String
|
|
45
|
+
|
|
46
|
+
attr_reader target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type?
|
|
47
|
+
|
|
48
|
+
def target_type=: (
|
|
49
|
+
ContextDev::Models::MonitorListAccountChangesParams::target_type
|
|
50
|
+
) -> ContextDev::Models::MonitorListAccountChangesParams::target_type
|
|
51
|
+
|
|
52
|
+
attr_reader until_: Time?
|
|
53
|
+
|
|
54
|
+
def until_=: (Time) -> Time
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
?change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type,
|
|
58
|
+
?cursor: String,
|
|
59
|
+
?limit: Integer,
|
|
60
|
+
?monitor_id: String,
|
|
61
|
+
?since: Time,
|
|
62
|
+
?tag: String,
|
|
63
|
+
?target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type,
|
|
64
|
+
?until_: Time,
|
|
65
|
+
?request_options: ContextDev::request_opts
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
change_detection_type: ContextDev::Models::MonitorListAccountChangesParams::change_detection_type,
|
|
70
|
+
cursor: String,
|
|
71
|
+
limit: Integer,
|
|
72
|
+
monitor_id: String,
|
|
73
|
+
since: Time,
|
|
74
|
+
tag: String,
|
|
75
|
+
target_type: ContextDev::Models::MonitorListAccountChangesParams::target_type,
|
|
76
|
+
until_: Time,
|
|
77
|
+
request_options: ContextDev::RequestOptions
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type change_detection_type = :exact | :semantic
|
|
81
|
+
|
|
82
|
+
module ChangeDetectionType
|
|
83
|
+
extend ContextDev::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
EXACT: :exact
|
|
86
|
+
SEMANTIC: :semantic
|
|
87
|
+
|
|
88
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesParams::change_detection_type]
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
type target_type = :page | :sitemap | :extract
|
|
92
|
+
|
|
93
|
+
module TargetType
|
|
94
|
+
extend ContextDev::Internal::Type::Enum
|
|
95
|
+
|
|
96
|
+
PAGE: :page
|
|
97
|
+
SITEMAP: :sitemap
|
|
98
|
+
EXTRACT: :extract
|
|
99
|
+
|
|
100
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesParams::target_type]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type monitor_list_account_changes_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data],
|
|
6
|
+
has_more: bool,
|
|
7
|
+
next_cursor: String?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data]
|
|
12
|
+
|
|
13
|
+
attr_accessor has_more: bool
|
|
14
|
+
|
|
15
|
+
attr_accessor next_cursor: String?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data],
|
|
19
|
+
has_more: bool,
|
|
20
|
+
next_cursor: String?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
data: ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data],
|
|
25
|
+
has_more: bool,
|
|
26
|
+
next_cursor: String?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type data =
|
|
30
|
+
{
|
|
31
|
+
id: String,
|
|
32
|
+
change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type,
|
|
33
|
+
detected_at: Time,
|
|
34
|
+
mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode,
|
|
35
|
+
monitor_id: String,
|
|
36
|
+
summary: String,
|
|
37
|
+
target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type,
|
|
38
|
+
title: String,
|
|
39
|
+
url: String,
|
|
40
|
+
added_url_count: Integer,
|
|
41
|
+
confidence: Float,
|
|
42
|
+
importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance,
|
|
43
|
+
matched_url_count: Integer,
|
|
44
|
+
removed_url_count: Integer,
|
|
45
|
+
tags: ::Array[String]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
49
|
+
attr_accessor id: String
|
|
50
|
+
|
|
51
|
+
attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type
|
|
52
|
+
|
|
53
|
+
attr_accessor detected_at: Time
|
|
54
|
+
|
|
55
|
+
attr_accessor mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode
|
|
56
|
+
|
|
57
|
+
attr_accessor monitor_id: String
|
|
58
|
+
|
|
59
|
+
attr_accessor summary: String
|
|
60
|
+
|
|
61
|
+
attr_accessor target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type
|
|
62
|
+
|
|
63
|
+
attr_accessor title: String
|
|
64
|
+
|
|
65
|
+
attr_accessor url: String
|
|
66
|
+
|
|
67
|
+
attr_reader added_url_count: Integer?
|
|
68
|
+
|
|
69
|
+
def added_url_count=: (Integer) -> Integer
|
|
70
|
+
|
|
71
|
+
attr_reader confidence: Float?
|
|
72
|
+
|
|
73
|
+
def confidence=: (Float) -> Float
|
|
74
|
+
|
|
75
|
+
attr_reader importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance?
|
|
76
|
+
|
|
77
|
+
def importance=: (
|
|
78
|
+
ContextDev::Models::MonitorListAccountChangesResponse::Data::importance
|
|
79
|
+
) -> ContextDev::Models::MonitorListAccountChangesResponse::Data::importance
|
|
80
|
+
|
|
81
|
+
attr_reader matched_url_count: Integer?
|
|
82
|
+
|
|
83
|
+
def matched_url_count=: (Integer) -> Integer
|
|
84
|
+
|
|
85
|
+
attr_reader removed_url_count: Integer?
|
|
86
|
+
|
|
87
|
+
def removed_url_count=: (Integer) -> Integer
|
|
88
|
+
|
|
89
|
+
attr_reader tags: ::Array[String]?
|
|
90
|
+
|
|
91
|
+
def tags=: (::Array[String]) -> ::Array[String]
|
|
92
|
+
|
|
93
|
+
def initialize: (
|
|
94
|
+
id: String,
|
|
95
|
+
change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type,
|
|
96
|
+
detected_at: Time,
|
|
97
|
+
mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode,
|
|
98
|
+
monitor_id: String,
|
|
99
|
+
summary: String,
|
|
100
|
+
target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type,
|
|
101
|
+
title: String,
|
|
102
|
+
url: String,
|
|
103
|
+
?added_url_count: Integer,
|
|
104
|
+
?confidence: Float,
|
|
105
|
+
?importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance,
|
|
106
|
+
?matched_url_count: Integer,
|
|
107
|
+
?removed_url_count: Integer,
|
|
108
|
+
?tags: ::Array[String]
|
|
109
|
+
) -> void
|
|
110
|
+
|
|
111
|
+
def to_hash: -> {
|
|
112
|
+
id: String,
|
|
113
|
+
change_detection_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type,
|
|
114
|
+
detected_at: Time,
|
|
115
|
+
mode: ContextDev::Models::MonitorListAccountChangesResponse::Data::mode,
|
|
116
|
+
monitor_id: String,
|
|
117
|
+
summary: String,
|
|
118
|
+
target_type: ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type,
|
|
119
|
+
title: String,
|
|
120
|
+
url: String,
|
|
121
|
+
added_url_count: Integer,
|
|
122
|
+
confidence: Float,
|
|
123
|
+
importance: ContextDev::Models::MonitorListAccountChangesResponse::Data::importance,
|
|
124
|
+
matched_url_count: Integer,
|
|
125
|
+
removed_url_count: Integer,
|
|
126
|
+
tags: ::Array[String]
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
type change_detection_type = :exact | :semantic
|
|
130
|
+
|
|
131
|
+
module ChangeDetectionType
|
|
132
|
+
extend ContextDev::Internal::Type::Enum
|
|
133
|
+
|
|
134
|
+
EXACT: :exact
|
|
135
|
+
SEMANTIC: :semantic
|
|
136
|
+
|
|
137
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::change_detection_type]
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
type mode = :web
|
|
141
|
+
|
|
142
|
+
module Mode
|
|
143
|
+
extend ContextDev::Internal::Type::Enum
|
|
144
|
+
|
|
145
|
+
WEB: :web
|
|
146
|
+
|
|
147
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::mode]
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
type target_type = :page | :sitemap | :extract
|
|
151
|
+
|
|
152
|
+
module TargetType
|
|
153
|
+
extend ContextDev::Internal::Type::Enum
|
|
154
|
+
|
|
155
|
+
PAGE: :page
|
|
156
|
+
SITEMAP: :sitemap
|
|
157
|
+
EXTRACT: :extract
|
|
158
|
+
|
|
159
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::target_type]
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
type importance = :low | :medium | :high
|
|
163
|
+
|
|
164
|
+
module Importance
|
|
165
|
+
extend ContextDev::Internal::Type::Enum
|
|
166
|
+
|
|
167
|
+
LOW: :low
|
|
168
|
+
MEDIUM: :medium
|
|
169
|
+
HIGH: :high
|
|
170
|
+
|
|
171
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountChangesResponse::Data::importance]
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type monitor_list_account_runs_params =
|
|
4
|
+
{
|
|
5
|
+
cursor: String,
|
|
6
|
+
limit: Integer,
|
|
7
|
+
status: ContextDev::Models::MonitorListAccountRunsParams::status
|
|
8
|
+
}
|
|
9
|
+
& ContextDev::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel
|
|
12
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_reader cursor: String?
|
|
16
|
+
|
|
17
|
+
def cursor=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_reader limit: Integer?
|
|
20
|
+
|
|
21
|
+
def limit=: (Integer) -> Integer
|
|
22
|
+
|
|
23
|
+
attr_reader status: ContextDev::Models::MonitorListAccountRunsParams::status?
|
|
24
|
+
|
|
25
|
+
def status=: (
|
|
26
|
+
ContextDev::Models::MonitorListAccountRunsParams::status
|
|
27
|
+
) -> ContextDev::Models::MonitorListAccountRunsParams::status
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
?cursor: String,
|
|
31
|
+
?limit: Integer,
|
|
32
|
+
?status: ContextDev::Models::MonitorListAccountRunsParams::status,
|
|
33
|
+
?request_options: ContextDev::request_opts
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
cursor: String,
|
|
38
|
+
limit: Integer,
|
|
39
|
+
status: ContextDev::Models::MonitorListAccountRunsParams::status,
|
|
40
|
+
request_options: ContextDev::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type status = :queued | :running | :completed | :failed | :skipped
|
|
44
|
+
|
|
45
|
+
module Status
|
|
46
|
+
extend ContextDev::Internal::Type::Enum
|
|
47
|
+
|
|
48
|
+
QUEUED: :queued
|
|
49
|
+
RUNNING: :running
|
|
50
|
+
COMPLETED: :completed
|
|
51
|
+
FAILED: :failed
|
|
52
|
+
SKIPPED: :skipped
|
|
53
|
+
|
|
54
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsParams::status]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type monitor_list_account_runs_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data],
|
|
6
|
+
has_more: bool,
|
|
7
|
+
next_cursor: String?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class MonitorListAccountRunsResponse < ContextDev::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data]
|
|
12
|
+
|
|
13
|
+
attr_accessor has_more: bool
|
|
14
|
+
|
|
15
|
+
attr_accessor next_cursor: String?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data],
|
|
19
|
+
has_more: bool,
|
|
20
|
+
next_cursor: String?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
data: ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data],
|
|
25
|
+
has_more: bool,
|
|
26
|
+
next_cursor: String?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type data =
|
|
30
|
+
{
|
|
31
|
+
id: String,
|
|
32
|
+
baseline_created: bool,
|
|
33
|
+
change_detected: bool,
|
|
34
|
+
change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type,
|
|
35
|
+
credits_charged: Integer,
|
|
36
|
+
monitor_id: String,
|
|
37
|
+
run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type,
|
|
38
|
+
status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status,
|
|
39
|
+
target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type,
|
|
40
|
+
change_id: String?,
|
|
41
|
+
completed_at: Time?,
|
|
42
|
+
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?,
|
|
43
|
+
skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?,
|
|
44
|
+
started_at: Time?
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
48
|
+
attr_accessor id: String
|
|
49
|
+
|
|
50
|
+
attr_accessor baseline_created: bool
|
|
51
|
+
|
|
52
|
+
attr_accessor change_detected: bool
|
|
53
|
+
|
|
54
|
+
attr_accessor change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type
|
|
55
|
+
|
|
56
|
+
attr_accessor credits_charged: Integer
|
|
57
|
+
|
|
58
|
+
attr_accessor monitor_id: String
|
|
59
|
+
|
|
60
|
+
attr_accessor run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type
|
|
61
|
+
|
|
62
|
+
attr_accessor status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status
|
|
63
|
+
|
|
64
|
+
attr_accessor target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type
|
|
65
|
+
|
|
66
|
+
attr_accessor change_id: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor completed_at: Time?
|
|
69
|
+
|
|
70
|
+
attr_accessor error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?
|
|
71
|
+
|
|
72
|
+
attr_accessor skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?
|
|
73
|
+
|
|
74
|
+
attr_accessor started_at: Time?
|
|
75
|
+
|
|
76
|
+
def initialize: (
|
|
77
|
+
id: String,
|
|
78
|
+
baseline_created: bool,
|
|
79
|
+
change_detected: bool,
|
|
80
|
+
change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type,
|
|
81
|
+
credits_charged: Integer,
|
|
82
|
+
monitor_id: String,
|
|
83
|
+
run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type,
|
|
84
|
+
status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status,
|
|
85
|
+
target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type,
|
|
86
|
+
?change_id: String?,
|
|
87
|
+
?completed_at: Time?,
|
|
88
|
+
?error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?,
|
|
89
|
+
?skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?,
|
|
90
|
+
?started_at: Time?
|
|
91
|
+
) -> void
|
|
92
|
+
|
|
93
|
+
def to_hash: -> {
|
|
94
|
+
id: String,
|
|
95
|
+
baseline_created: bool,
|
|
96
|
+
change_detected: bool,
|
|
97
|
+
change_detection_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type,
|
|
98
|
+
credits_charged: Integer,
|
|
99
|
+
monitor_id: String,
|
|
100
|
+
run_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type,
|
|
101
|
+
status: ContextDev::Models::MonitorListAccountRunsResponse::Data::status,
|
|
102
|
+
target_type: ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type,
|
|
103
|
+
change_id: String?,
|
|
104
|
+
completed_at: Time?,
|
|
105
|
+
error: ContextDev::Models::MonitorListAccountRunsResponse::Data::Error?,
|
|
106
|
+
skip_reason: ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason?,
|
|
107
|
+
started_at: Time?
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
type change_detection_type = :exact | :semantic
|
|
111
|
+
|
|
112
|
+
module ChangeDetectionType
|
|
113
|
+
extend ContextDev::Internal::Type::Enum
|
|
114
|
+
|
|
115
|
+
EXACT: :exact
|
|
116
|
+
SEMANTIC: :semantic
|
|
117
|
+
|
|
118
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::change_detection_type]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
type run_type = :baseline | :scheduled
|
|
122
|
+
|
|
123
|
+
module RunType
|
|
124
|
+
extend ContextDev::Internal::Type::Enum
|
|
125
|
+
|
|
126
|
+
BASELINE: :baseline
|
|
127
|
+
SCHEDULED: :scheduled
|
|
128
|
+
|
|
129
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::run_type]
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
type status = :queued | :running | :completed | :failed | :skipped
|
|
133
|
+
|
|
134
|
+
module Status
|
|
135
|
+
extend ContextDev::Internal::Type::Enum
|
|
136
|
+
|
|
137
|
+
QUEUED: :queued
|
|
138
|
+
RUNNING: :running
|
|
139
|
+
COMPLETED: :completed
|
|
140
|
+
FAILED: :failed
|
|
141
|
+
SKIPPED: :skipped
|
|
142
|
+
|
|
143
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::status]
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
type target_type = :page | :sitemap | :extract
|
|
147
|
+
|
|
148
|
+
module TargetType
|
|
149
|
+
extend ContextDev::Internal::Type::Enum
|
|
150
|
+
|
|
151
|
+
PAGE: :page
|
|
152
|
+
SITEMAP: :sitemap
|
|
153
|
+
EXTRACT: :extract
|
|
154
|
+
|
|
155
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::target_type]
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
type error = { code: String, message: String }
|
|
159
|
+
|
|
160
|
+
class Error < ContextDev::Internal::Type::BaseModel
|
|
161
|
+
attr_accessor code: String
|
|
162
|
+
|
|
163
|
+
attr_accessor message: String
|
|
164
|
+
|
|
165
|
+
def initialize: (code: String, message: String) -> void
|
|
166
|
+
|
|
167
|
+
def to_hash: -> { code: String, message: String }
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
type skip_reason = :insufficient_credits | :monitor_paused | :superseded
|
|
171
|
+
|
|
172
|
+
module SkipReason
|
|
173
|
+
extend ContextDev::Internal::Type::Enum
|
|
174
|
+
|
|
175
|
+
INSUFFICIENT_CREDITS: :insufficient_credits
|
|
176
|
+
MONITOR_PAUSED: :monitor_paused
|
|
177
|
+
SUPERSEDED: :superseded
|
|
178
|
+
|
|
179
|
+
def self?.values: -> ::Array[ContextDev::Models::MonitorListAccountRunsResponse::Data::skip_reason]
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type monitor_list_changes_params =
|
|
4
|
+
{
|
|
5
|
+
monitor_id: String,
|
|
6
|
+
cursor: String,
|
|
7
|
+
limit: Integer,
|
|
8
|
+
since: Time,
|
|
9
|
+
tag: String,
|
|
10
|
+
until_: Time
|
|
11
|
+
}
|
|
12
|
+
& ContextDev::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class MonitorListChangesParams < ContextDev::Internal::Type::BaseModel
|
|
15
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor monitor_id: String
|
|
19
|
+
|
|
20
|
+
attr_reader cursor: String?
|
|
21
|
+
|
|
22
|
+
def cursor=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader limit: Integer?
|
|
25
|
+
|
|
26
|
+
def limit=: (Integer) -> Integer
|
|
27
|
+
|
|
28
|
+
attr_reader since: Time?
|
|
29
|
+
|
|
30
|
+
def since=: (Time) -> Time
|
|
31
|
+
|
|
32
|
+
attr_reader tag: String?
|
|
33
|
+
|
|
34
|
+
def tag=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader until_: Time?
|
|
37
|
+
|
|
38
|
+
def until_=: (Time) -> Time
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
monitor_id: String,
|
|
42
|
+
?cursor: String,
|
|
43
|
+
?limit: Integer,
|
|
44
|
+
?since: Time,
|
|
45
|
+
?tag: String,
|
|
46
|
+
?until_: Time,
|
|
47
|
+
?request_options: ContextDev::request_opts
|
|
48
|
+
) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> {
|
|
51
|
+
monitor_id: String,
|
|
52
|
+
cursor: String,
|
|
53
|
+
limit: Integer,
|
|
54
|
+
since: Time,
|
|
55
|
+
tag: String,
|
|
56
|
+
until_: Time,
|
|
57
|
+
request_options: ContextDev::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|