context.dev 1.36.0 → 2.1.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 +16 -9
- data/lib/context_dev/client.rb +7 -0
- data/lib/context_dev/models/brand_retrieve_params.rb +1079 -174
- data/lib/context_dev/models/monitor_create_params.rb +364 -0
- data/lib/context_dev/models/monitor_create_response.rb +608 -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 +631 -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 +264 -0
- data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_response.rb +608 -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 +371 -0
- data/lib/context_dev/models/monitor_update_response.rb +608 -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_web_crawl_md_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +11 -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 +11 -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 +9 -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 +14 -4
- 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 +3858 -678
- data/rbi/context_dev/models/monitor_create_params.rbi +641 -0
- data/rbi/context_dev/models/monitor_create_response.rbi +1020 -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 +335 -0
- data/rbi/context_dev/models/monitor_list_response.rbi +1089 -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 +469 -0
- data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +1028 -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 +681 -0
- data/rbi/context_dev/models/monitor_update_response.rbi +1020 -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_web_crawl_md_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +15 -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 +15 -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 +16 -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 +21 -0
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/brand_retrieve_params.rbs +1586 -281
- data/sig/context_dev/models/monitor_create_params.rbs +301 -0
- data/sig/context_dev/models/monitor_create_response.rbs +433 -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 +460 -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 +221 -0
- data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_response.rbs +433 -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 +321 -0
- data/sig/context_dev/models/monitor_update_response.rbs +433 -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_web_crawl_md_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +7 -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 +7 -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 +4 -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,227 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#list_runs
|
|
6
|
+
class MonitorListRunsResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<ContextDev::Models::MonitorListRunsResponse::Data>]
|
|
10
|
+
required :data,
|
|
11
|
+
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListRunsResponse::Data] }
|
|
12
|
+
|
|
13
|
+
# @!attribute has_more
|
|
14
|
+
#
|
|
15
|
+
# @return [Boolean]
|
|
16
|
+
required :has_more, ContextDev::Internal::Type::Boolean
|
|
17
|
+
|
|
18
|
+
# @!attribute next_cursor
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
required :next_cursor, String, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!method initialize(data:, has_more:, next_cursor:)
|
|
24
|
+
# @param data [Array<ContextDev::Models::MonitorListRunsResponse::Data>]
|
|
25
|
+
# @param has_more [Boolean]
|
|
26
|
+
# @param next_cursor [String, nil]
|
|
27
|
+
|
|
28
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
29
|
+
# @!attribute id
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :id, String
|
|
33
|
+
|
|
34
|
+
# @!attribute baseline_created
|
|
35
|
+
# True when this run established the monitor's initial baseline; baseline runs
|
|
36
|
+
# perform no change detection.
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean]
|
|
39
|
+
required :baseline_created, ContextDev::Internal::Type::Boolean
|
|
40
|
+
|
|
41
|
+
# @!attribute change_detected
|
|
42
|
+
#
|
|
43
|
+
# @return [Boolean]
|
|
44
|
+
required :change_detected, ContextDev::Internal::Type::Boolean
|
|
45
|
+
|
|
46
|
+
# @!attribute change_detection_type
|
|
47
|
+
#
|
|
48
|
+
# @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType]
|
|
49
|
+
required :change_detection_type,
|
|
50
|
+
enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType }
|
|
51
|
+
|
|
52
|
+
# @!attribute credits_charged
|
|
53
|
+
# Credits charged for this run (0 for skipped/failed runs).
|
|
54
|
+
#
|
|
55
|
+
# @return [Integer]
|
|
56
|
+
required :credits_charged, Integer
|
|
57
|
+
|
|
58
|
+
# @!attribute monitor_id
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
required :monitor_id, String
|
|
62
|
+
|
|
63
|
+
# @!attribute run_type
|
|
64
|
+
# The first run after monitor creation is a baseline run.
|
|
65
|
+
#
|
|
66
|
+
# @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::RunType]
|
|
67
|
+
required :run_type, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::RunType }
|
|
68
|
+
|
|
69
|
+
# @!attribute status
|
|
70
|
+
# Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
|
|
71
|
+
# (insufficient credits, monitor paused, or superseded by a concurrent run).
|
|
72
|
+
#
|
|
73
|
+
# @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status]
|
|
74
|
+
required :status, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::Status }
|
|
75
|
+
|
|
76
|
+
# @!attribute target_type
|
|
77
|
+
#
|
|
78
|
+
# @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::TargetType]
|
|
79
|
+
required :target_type, enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::TargetType }
|
|
80
|
+
|
|
81
|
+
# @!attribute change_id
|
|
82
|
+
#
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
optional :change_id, String, nil?: true
|
|
85
|
+
|
|
86
|
+
# @!attribute completed_at
|
|
87
|
+
#
|
|
88
|
+
# @return [Time, nil]
|
|
89
|
+
optional :completed_at, Time, nil?: true
|
|
90
|
+
|
|
91
|
+
# @!attribute error
|
|
92
|
+
#
|
|
93
|
+
# @return [ContextDev::Models::MonitorListRunsResponse::Data::Error, nil]
|
|
94
|
+
optional :error, -> { ContextDev::Models::MonitorListRunsResponse::Data::Error }, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute skip_reason
|
|
97
|
+
# Why a skipped run never executed; null unless status is `skipped`.
|
|
98
|
+
#
|
|
99
|
+
# @return [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::SkipReason, nil]
|
|
100
|
+
optional :skip_reason,
|
|
101
|
+
enum: -> { ContextDev::Models::MonitorListRunsResponse::Data::SkipReason },
|
|
102
|
+
nil?: true
|
|
103
|
+
|
|
104
|
+
# @!attribute started_at
|
|
105
|
+
#
|
|
106
|
+
# @return [Time, nil]
|
|
107
|
+
optional :started_at, Time, nil?: true
|
|
108
|
+
|
|
109
|
+
# @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, credits_charged:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, skip_reason: nil, started_at: nil)
|
|
110
|
+
# Some parameter documentations has been truncated, see
|
|
111
|
+
# {ContextDev::Models::MonitorListRunsResponse::Data} for more details.
|
|
112
|
+
#
|
|
113
|
+
# @param id [String]
|
|
114
|
+
#
|
|
115
|
+
# @param baseline_created [Boolean] True when this run established the monitor's initial baseline; baseline runs per
|
|
116
|
+
#
|
|
117
|
+
# @param change_detected [Boolean]
|
|
118
|
+
#
|
|
119
|
+
# @param change_detection_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::ChangeDetectionType]
|
|
120
|
+
#
|
|
121
|
+
# @param credits_charged [Integer] Credits charged for this run (0 for skipped/failed runs).
|
|
122
|
+
#
|
|
123
|
+
# @param monitor_id [String]
|
|
124
|
+
#
|
|
125
|
+
# @param run_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::RunType] The first run after monitor creation is a baseline run.
|
|
126
|
+
#
|
|
127
|
+
# @param status [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in
|
|
128
|
+
#
|
|
129
|
+
# @param target_type [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::TargetType]
|
|
130
|
+
#
|
|
131
|
+
# @param change_id [String, nil]
|
|
132
|
+
#
|
|
133
|
+
# @param completed_at [Time, nil]
|
|
134
|
+
#
|
|
135
|
+
# @param error [ContextDev::Models::MonitorListRunsResponse::Data::Error, nil]
|
|
136
|
+
#
|
|
137
|
+
# @param skip_reason [Symbol, ContextDev::Models::MonitorListRunsResponse::Data::SkipReason, nil] Why a skipped run never executed; null unless status is `skipped`.
|
|
138
|
+
#
|
|
139
|
+
# @param started_at [Time, nil]
|
|
140
|
+
|
|
141
|
+
# @see ContextDev::Models::MonitorListRunsResponse::Data#change_detection_type
|
|
142
|
+
module ChangeDetectionType
|
|
143
|
+
extend ContextDev::Internal::Type::Enum
|
|
144
|
+
|
|
145
|
+
EXACT = :exact
|
|
146
|
+
SEMANTIC = :semantic
|
|
147
|
+
|
|
148
|
+
# @!method self.values
|
|
149
|
+
# @return [Array<Symbol>]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# The first run after monitor creation is a baseline run.
|
|
153
|
+
#
|
|
154
|
+
# @see ContextDev::Models::MonitorListRunsResponse::Data#run_type
|
|
155
|
+
module RunType
|
|
156
|
+
extend ContextDev::Internal::Type::Enum
|
|
157
|
+
|
|
158
|
+
BASELINE = :baseline
|
|
159
|
+
SCHEDULED = :scheduled
|
|
160
|
+
|
|
161
|
+
# @!method self.values
|
|
162
|
+
# @return [Array<Symbol>]
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
|
|
166
|
+
# (insufficient credits, monitor paused, or superseded by a concurrent run).
|
|
167
|
+
#
|
|
168
|
+
# @see ContextDev::Models::MonitorListRunsResponse::Data#status
|
|
169
|
+
module Status
|
|
170
|
+
extend ContextDev::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
QUEUED = :queued
|
|
173
|
+
RUNNING = :running
|
|
174
|
+
COMPLETED = :completed
|
|
175
|
+
FAILED = :failed
|
|
176
|
+
SKIPPED = :skipped
|
|
177
|
+
|
|
178
|
+
# @!method self.values
|
|
179
|
+
# @return [Array<Symbol>]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# @see ContextDev::Models::MonitorListRunsResponse::Data#target_type
|
|
183
|
+
module TargetType
|
|
184
|
+
extend ContextDev::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
PAGE = :page
|
|
187
|
+
SITEMAP = :sitemap
|
|
188
|
+
EXTRACT = :extract
|
|
189
|
+
|
|
190
|
+
# @!method self.values
|
|
191
|
+
# @return [Array<Symbol>]
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# @see ContextDev::Models::MonitorListRunsResponse::Data#error
|
|
195
|
+
class Error < ContextDev::Internal::Type::BaseModel
|
|
196
|
+
# @!attribute code
|
|
197
|
+
#
|
|
198
|
+
# @return [String]
|
|
199
|
+
required :code, String
|
|
200
|
+
|
|
201
|
+
# @!attribute message
|
|
202
|
+
#
|
|
203
|
+
# @return [String]
|
|
204
|
+
required :message, String
|
|
205
|
+
|
|
206
|
+
# @!method initialize(code:, message:)
|
|
207
|
+
# @param code [String]
|
|
208
|
+
# @param message [String]
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Why a skipped run never executed; null unless status is `skipped`.
|
|
212
|
+
#
|
|
213
|
+
# @see ContextDev::Models::MonitorListRunsResponse::Data#skip_reason
|
|
214
|
+
module SkipReason
|
|
215
|
+
extend ContextDev::Internal::Type::Enum
|
|
216
|
+
|
|
217
|
+
INSUFFICIENT_CREDITS = :insufficient_credits
|
|
218
|
+
MONITOR_PAUSED = :monitor_paused
|
|
219
|
+
SUPERSEDED = :superseded
|
|
220
|
+
|
|
221
|
+
# @!method self.values
|
|
222
|
+
# @return [Array<Symbol>]
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#retrieve_change
|
|
6
|
+
class MonitorRetrieveChangeParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute change_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :change_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(change_id:, request_options: {})
|
|
16
|
+
# @param change_id [String]
|
|
17
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#retrieve_change
|
|
6
|
+
class MonitorRetrieveChangeResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute change_detection_type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType]
|
|
15
|
+
required :change_detection_type,
|
|
16
|
+
enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType }
|
|
17
|
+
|
|
18
|
+
# @!attribute detected_at
|
|
19
|
+
#
|
|
20
|
+
# @return [Time]
|
|
21
|
+
required :detected_at, Time
|
|
22
|
+
|
|
23
|
+
# @!attribute mode
|
|
24
|
+
# Top-level monitor category. Always `web` today; the concrete behavior is
|
|
25
|
+
# described by `target` and `change_detection`.
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Mode]
|
|
28
|
+
required :mode, enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::Mode }
|
|
29
|
+
|
|
30
|
+
# @!attribute monitor_id
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
required :monitor_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute run_id
|
|
36
|
+
# The run that detected this change.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :run_id, String
|
|
40
|
+
|
|
41
|
+
# @!attribute summary
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :summary, String
|
|
45
|
+
|
|
46
|
+
# @!attribute target_type
|
|
47
|
+
#
|
|
48
|
+
# @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::TargetType]
|
|
49
|
+
required :target_type, enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::TargetType }
|
|
50
|
+
|
|
51
|
+
# @!attribute title
|
|
52
|
+
#
|
|
53
|
+
# @return [String]
|
|
54
|
+
required :title, String
|
|
55
|
+
|
|
56
|
+
# @!attribute url
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :url, String
|
|
60
|
+
|
|
61
|
+
# @!attribute added_url_count
|
|
62
|
+
#
|
|
63
|
+
# @return [Integer, nil]
|
|
64
|
+
optional :added_url_count, Integer
|
|
65
|
+
|
|
66
|
+
# @!attribute added_urls
|
|
67
|
+
# At most 500 URLs are included; the corresponding count field is always exact.
|
|
68
|
+
#
|
|
69
|
+
# @return [Array<String>, nil]
|
|
70
|
+
optional :added_urls, ContextDev::Internal::Type::ArrayOf[String]
|
|
71
|
+
|
|
72
|
+
# @!attribute after_text_excerpt
|
|
73
|
+
#
|
|
74
|
+
# @return [String, nil]
|
|
75
|
+
optional :after_text_excerpt, String
|
|
76
|
+
|
|
77
|
+
# @!attribute before_text_excerpt
|
|
78
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
optional :before_text_excerpt, String
|
|
81
|
+
|
|
82
|
+
# @!attribute confidence
|
|
83
|
+
#
|
|
84
|
+
# @return [Float, nil]
|
|
85
|
+
optional :confidence, Float
|
|
86
|
+
|
|
87
|
+
# @!attribute diff
|
|
88
|
+
# Text diff between the previous and current page baseline (page targets).
|
|
89
|
+
#
|
|
90
|
+
# @return [String, nil]
|
|
91
|
+
optional :diff, String
|
|
92
|
+
|
|
93
|
+
# @!attribute evidence
|
|
94
|
+
#
|
|
95
|
+
# @return [Array<ContextDev::Models::MonitorRetrieveChangeResponse::Evidence>, nil]
|
|
96
|
+
optional :evidence,
|
|
97
|
+
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorRetrieveChangeResponse::Evidence] }
|
|
98
|
+
|
|
99
|
+
# @!attribute importance
|
|
100
|
+
#
|
|
101
|
+
# @return [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Importance, nil]
|
|
102
|
+
optional :importance, enum: -> { ContextDev::Models::MonitorRetrieveChangeResponse::Importance }
|
|
103
|
+
|
|
104
|
+
# @!attribute matched_url_count
|
|
105
|
+
#
|
|
106
|
+
# @return [Integer, nil]
|
|
107
|
+
optional :matched_url_count, Integer
|
|
108
|
+
|
|
109
|
+
# @!attribute matched_urls
|
|
110
|
+
# At most 500 URLs are included; the corresponding count field is always exact.
|
|
111
|
+
#
|
|
112
|
+
# @return [Array<String>, nil]
|
|
113
|
+
optional :matched_urls, ContextDev::Internal::Type::ArrayOf[String]
|
|
114
|
+
|
|
115
|
+
# @!attribute removed_url_count
|
|
116
|
+
#
|
|
117
|
+
# @return [Integer, nil]
|
|
118
|
+
optional :removed_url_count, Integer
|
|
119
|
+
|
|
120
|
+
# @!attribute removed_urls
|
|
121
|
+
# At most 500 URLs are included; the corresponding count field is always exact.
|
|
122
|
+
#
|
|
123
|
+
# @return [Array<String>, nil]
|
|
124
|
+
optional :removed_urls, ContextDev::Internal::Type::ArrayOf[String]
|
|
125
|
+
|
|
126
|
+
# @!attribute tags
|
|
127
|
+
# User-defined tags for grouping and filtering monitors and their changes.
|
|
128
|
+
#
|
|
129
|
+
# @return [Array<String>, nil]
|
|
130
|
+
optional :tags, ContextDev::Internal::Type::ArrayOf[String]
|
|
131
|
+
|
|
132
|
+
# @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, run_id:, summary:, target_type:, title:, url:, added_url_count: nil, added_urls: nil, after_text_excerpt: nil, before_text_excerpt: nil, confidence: nil, diff: nil, evidence: nil, importance: nil, matched_url_count: nil, matched_urls: nil, removed_url_count: nil, removed_urls: nil, tags: nil)
|
|
133
|
+
# Some parameter documentations has been truncated, see
|
|
134
|
+
# {ContextDev::Models::MonitorRetrieveChangeResponse} for more details.
|
|
135
|
+
#
|
|
136
|
+
# A detected change. `mode` is the constant `web`; `target_type` and
|
|
137
|
+
# `change_detection_type` describe the change, and which optional fields are
|
|
138
|
+
# present depends on them (page: `diff` + excerpts; sitemap:
|
|
139
|
+
# `added_urls`/`removed_urls`; semantic:
|
|
140
|
+
# `query`/`confidence`/`importance`/`evidence`/`matched_urls`).
|
|
141
|
+
#
|
|
142
|
+
# @param id [String]
|
|
143
|
+
#
|
|
144
|
+
# @param change_detection_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::ChangeDetectionType]
|
|
145
|
+
#
|
|
146
|
+
# @param detected_at [Time]
|
|
147
|
+
#
|
|
148
|
+
# @param mode [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ
|
|
149
|
+
#
|
|
150
|
+
# @param monitor_id [String]
|
|
151
|
+
#
|
|
152
|
+
# @param run_id [String] The run that detected this change.
|
|
153
|
+
#
|
|
154
|
+
# @param summary [String]
|
|
155
|
+
#
|
|
156
|
+
# @param target_type [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::TargetType]
|
|
157
|
+
#
|
|
158
|
+
# @param title [String]
|
|
159
|
+
#
|
|
160
|
+
# @param url [String]
|
|
161
|
+
#
|
|
162
|
+
# @param added_url_count [Integer]
|
|
163
|
+
#
|
|
164
|
+
# @param added_urls [Array<String>] At most 500 URLs are included; the corresponding count field is always exact.
|
|
165
|
+
#
|
|
166
|
+
# @param after_text_excerpt [String]
|
|
167
|
+
#
|
|
168
|
+
# @param before_text_excerpt [String]
|
|
169
|
+
#
|
|
170
|
+
# @param confidence [Float]
|
|
171
|
+
#
|
|
172
|
+
# @param diff [String] Text diff between the previous and current page baseline (page targets).
|
|
173
|
+
#
|
|
174
|
+
# @param evidence [Array<ContextDev::Models::MonitorRetrieveChangeResponse::Evidence>]
|
|
175
|
+
#
|
|
176
|
+
# @param importance [Symbol, ContextDev::Models::MonitorRetrieveChangeResponse::Importance]
|
|
177
|
+
#
|
|
178
|
+
# @param matched_url_count [Integer]
|
|
179
|
+
#
|
|
180
|
+
# @param matched_urls [Array<String>] At most 500 URLs are included; the corresponding count field is always exact.
|
|
181
|
+
#
|
|
182
|
+
# @param removed_url_count [Integer]
|
|
183
|
+
#
|
|
184
|
+
# @param removed_urls [Array<String>] At most 500 URLs are included; the corresponding count field is always exact.
|
|
185
|
+
#
|
|
186
|
+
# @param tags [Array<String>] User-defined tags for grouping and filtering monitors and their changes.
|
|
187
|
+
|
|
188
|
+
# @see ContextDev::Models::MonitorRetrieveChangeResponse#change_detection_type
|
|
189
|
+
module ChangeDetectionType
|
|
190
|
+
extend ContextDev::Internal::Type::Enum
|
|
191
|
+
|
|
192
|
+
EXACT = :exact
|
|
193
|
+
SEMANTIC = :semantic
|
|
194
|
+
|
|
195
|
+
# @!method self.values
|
|
196
|
+
# @return [Array<Symbol>]
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Top-level monitor category. Always `web` today; the concrete behavior is
|
|
200
|
+
# described by `target` and `change_detection`.
|
|
201
|
+
#
|
|
202
|
+
# @see ContextDev::Models::MonitorRetrieveChangeResponse#mode
|
|
203
|
+
module Mode
|
|
204
|
+
extend ContextDev::Internal::Type::Enum
|
|
205
|
+
|
|
206
|
+
WEB = :web
|
|
207
|
+
|
|
208
|
+
# @!method self.values
|
|
209
|
+
# @return [Array<Symbol>]
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# @see ContextDev::Models::MonitorRetrieveChangeResponse#target_type
|
|
213
|
+
module TargetType
|
|
214
|
+
extend ContextDev::Internal::Type::Enum
|
|
215
|
+
|
|
216
|
+
PAGE = :page
|
|
217
|
+
SITEMAP = :sitemap
|
|
218
|
+
EXTRACT = :extract
|
|
219
|
+
|
|
220
|
+
# @!method self.values
|
|
221
|
+
# @return [Array<Symbol>]
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
class Evidence < ContextDev::Internal::Type::BaseModel
|
|
225
|
+
# @!attribute after
|
|
226
|
+
# Snapshot of the content after the change.
|
|
227
|
+
#
|
|
228
|
+
# @return [String]
|
|
229
|
+
required :after, String
|
|
230
|
+
|
|
231
|
+
# @!attribute before
|
|
232
|
+
# Snapshot of the content before the change.
|
|
233
|
+
#
|
|
234
|
+
# @return [String]
|
|
235
|
+
required :before, String
|
|
236
|
+
|
|
237
|
+
# @!attribute url
|
|
238
|
+
# Optional URL the evidence relates to. Absent for whole-target diffs.
|
|
239
|
+
#
|
|
240
|
+
# @return [String, nil]
|
|
241
|
+
optional :url, String
|
|
242
|
+
|
|
243
|
+
# @!method initialize(after:, before:, url: nil)
|
|
244
|
+
# @param after [String] Snapshot of the content after the change.
|
|
245
|
+
#
|
|
246
|
+
# @param before [String] Snapshot of the content before the change.
|
|
247
|
+
#
|
|
248
|
+
# @param url [String] Optional URL the evidence relates to. Absent for whole-target diffs.
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# @see ContextDev::Models::MonitorRetrieveChangeResponse#importance
|
|
252
|
+
module Importance
|
|
253
|
+
extend ContextDev::Internal::Type::Enum
|
|
254
|
+
|
|
255
|
+
LOW = :low
|
|
256
|
+
MEDIUM = :medium
|
|
257
|
+
HIGH = :high
|
|
258
|
+
|
|
259
|
+
# @!method self.values
|
|
260
|
+
# @return [Array<Symbol>]
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#retrieve
|
|
6
|
+
class MonitorRetrieveParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute monitor_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :monitor_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(monitor_id:, request_options: {})
|
|
16
|
+
# @param monitor_id [String]
|
|
17
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|