context.dev 1.36.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.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +16 -9
  4. data/lib/context_dev/client.rb +7 -0
  5. data/lib/context_dev/models/brand_retrieve_params.rb +1036 -174
  6. data/lib/context_dev/models/monitor_create_params.rb +361 -0
  7. data/lib/context_dev/models/monitor_create_response.rb +484 -0
  8. data/lib/context_dev/models/monitor_delete_params.rb +20 -0
  9. data/lib/context_dev/models/monitor_delete_response.rb +22 -0
  10. data/lib/context_dev/models/monitor_list_account_changes_params.rb +93 -0
  11. data/lib/context_dev/models/monitor_list_account_changes_response.rb +199 -0
  12. data/lib/context_dev/models/monitor_list_account_runs_params.rb +55 -0
  13. data/lib/context_dev/models/monitor_list_account_runs_response.rb +227 -0
  14. data/lib/context_dev/models/monitor_list_changes_params.rb +57 -0
  15. data/lib/context_dev/models/monitor_list_changes_response.rb +198 -0
  16. data/lib/context_dev/models/monitor_list_params.rb +161 -0
  17. data/lib/context_dev/models/monitor_list_response.rb +507 -0
  18. data/lib/context_dev/models/monitor_list_runs_params.rb +62 -0
  19. data/lib/context_dev/models/monitor_list_runs_response.rb +227 -0
  20. data/lib/context_dev/models/monitor_retrieve_change_params.rb +20 -0
  21. data/lib/context_dev/models/monitor_retrieve_change_response.rb +271 -0
  22. data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
  23. data/lib/context_dev/models/monitor_retrieve_response.rb +484 -0
  24. data/lib/context_dev/models/monitor_run_params.rb +20 -0
  25. data/lib/context_dev/models/monitor_run_response.rb +35 -0
  26. data/lib/context_dev/models/monitor_update_params.rb +368 -0
  27. data/lib/context_dev/models/monitor_update_response.rb +484 -0
  28. data/lib/context_dev/models/utility_prefetch_params.rb +70 -6
  29. data/lib/context_dev/models/utility_prefetch_response.rb +23 -1
  30. data/lib/context_dev/models/web_extract_response.rb +17 -1
  31. data/lib/context_dev/models/web_web_crawl_md_params.rb +11 -1
  32. data/lib/context_dev/models/web_web_scrape_html_params.rb +11 -1
  33. data/lib/context_dev/models/web_web_scrape_html_response.rb +10 -2
  34. data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -1
  35. data/lib/context_dev/models/web_web_scrape_md_params.rb +11 -1
  36. data/lib/context_dev/models.rb +20 -12
  37. data/lib/context_dev/resources/ai.rb +0 -33
  38. data/lib/context_dev/resources/brand.rb +7 -204
  39. data/lib/context_dev/resources/monitors.rb +352 -0
  40. data/lib/context_dev/resources/utility.rb +9 -35
  41. data/lib/context_dev/resources/web.rb +14 -4
  42. data/lib/context_dev/version.rb +1 -1
  43. data/lib/context_dev.rb +23 -14
  44. data/rbi/context_dev/client.rbi +6 -0
  45. data/rbi/context_dev/models/brand_retrieve_params.rbi +3792 -679
  46. data/rbi/context_dev/models/monitor_create_params.rbi +640 -0
  47. data/rbi/context_dev/models/monitor_create_response.rbi +820 -0
  48. data/rbi/context_dev/models/monitor_delete_params.rbi +35 -0
  49. data/rbi/context_dev/models/monitor_delete_response.rbi +29 -0
  50. data/rbi/context_dev/models/monitor_list_account_changes_params.rbi +211 -0
  51. data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +376 -0
  52. data/rbi/context_dev/models/monitor_list_account_runs_params.rbi +125 -0
  53. data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +464 -0
  54. data/rbi/context_dev/models/monitor_list_changes_params.rbi +91 -0
  55. data/rbi/context_dev/models/monitor_list_changes_response.rbi +372 -0
  56. data/rbi/context_dev/models/monitor_list_params.rbi +332 -0
  57. data/rbi/context_dev/models/monitor_list_response.rbi +885 -0
  58. data/rbi/context_dev/models/monitor_list_runs_params.rbi +125 -0
  59. data/rbi/context_dev/models/monitor_list_runs_response.rbi +455 -0
  60. data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +38 -0
  61. data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +478 -0
  62. data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
  63. data/rbi/context_dev/models/monitor_retrieve_response.rbi +828 -0
  64. data/rbi/context_dev/models/monitor_run_params.rbi +35 -0
  65. data/rbi/context_dev/models/monitor_run_response.rbi +48 -0
  66. data/rbi/context_dev/models/monitor_update_params.rbi +680 -0
  67. data/rbi/context_dev/models/monitor_update_response.rbi +820 -0
  68. data/rbi/context_dev/models/utility_prefetch_params.rbi +129 -7
  69. data/rbi/context_dev/models/utility_prefetch_response.rbi +55 -3
  70. data/rbi/context_dev/models/web_extract_response.rbi +10 -0
  71. data/rbi/context_dev/models/web_web_crawl_md_params.rbi +15 -0
  72. data/rbi/context_dev/models/web_web_scrape_html_params.rbi +15 -0
  73. data/rbi/context_dev/models/web_web_scrape_html_response.rbi +29 -3
  74. data/rbi/context_dev/models/web_web_scrape_images_params.rbi +17 -0
  75. data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -0
  76. data/rbi/context_dev/models.rbi +23 -15
  77. data/rbi/context_dev/resources/ai.rbi +0 -28
  78. data/rbi/context_dev/resources/brand.rbi +13 -228
  79. data/rbi/context_dev/resources/monitors.rbi +286 -0
  80. data/rbi/context_dev/resources/utility.rbi +14 -29
  81. data/rbi/context_dev/resources/web.rbi +21 -0
  82. data/sig/context_dev/client.rbs +2 -0
  83. data/sig/context_dev/models/brand_retrieve_params.rbs +1560 -281
  84. data/sig/context_dev/models/monitor_create_params.rbs +311 -0
  85. data/sig/context_dev/models/monitor_create_response.rbs +369 -0
  86. data/sig/context_dev/models/monitor_delete_params.rbs +23 -0
  87. data/sig/context_dev/models/monitor_delete_response.rbs +15 -0
  88. data/sig/context_dev/models/monitor_list_account_changes_params.rbs +104 -0
  89. data/sig/context_dev/models/monitor_list_account_changes_response.rbs +176 -0
  90. data/sig/context_dev/models/monitor_list_account_runs_params.rbs +58 -0
  91. data/sig/context_dev/models/monitor_list_account_runs_response.rbs +184 -0
  92. data/sig/context_dev/models/monitor_list_changes_params.rbs +61 -0
  93. data/sig/context_dev/models/monitor_list_changes_response.rbs +176 -0
  94. data/sig/context_dev/models/monitor_list_params.rbs +160 -0
  95. data/sig/context_dev/models/monitor_list_response.rbs +396 -0
  96. data/sig/context_dev/models/monitor_list_runs_params.rbs +63 -0
  97. data/sig/context_dev/models/monitor_list_runs_response.rbs +184 -0
  98. data/sig/context_dev/models/monitor_retrieve_change_params.rbs +23 -0
  99. data/sig/context_dev/models/monitor_retrieve_change_response.rbs +228 -0
  100. data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
  101. data/sig/context_dev/models/monitor_retrieve_response.rbs +369 -0
  102. data/sig/context_dev/models/monitor_run_params.rbs +23 -0
  103. data/sig/context_dev/models/monitor_run_response.rbs +18 -0
  104. data/sig/context_dev/models/monitor_update_params.rbs +331 -0
  105. data/sig/context_dev/models/monitor_update_response.rbs +369 -0
  106. data/sig/context_dev/models/utility_prefetch_params.rbs +52 -4
  107. data/sig/context_dev/models/utility_prefetch_response.rbs +22 -3
  108. data/sig/context_dev/models/web_extract_response.rbs +5 -0
  109. data/sig/context_dev/models/web_web_crawl_md_params.rbs +7 -0
  110. data/sig/context_dev/models/web_web_scrape_html_params.rbs +7 -0
  111. data/sig/context_dev/models/web_web_scrape_html_response.rbs +8 -0
  112. data/sig/context_dev/models/web_web_scrape_images_params.rbs +7 -0
  113. data/sig/context_dev/models/web_web_scrape_md_params.rbs +7 -0
  114. data/sig/context_dev/models.rbs +20 -12
  115. data/sig/context_dev/resources/ai.rbs +0 -8
  116. data/sig/context_dev/resources/brand.rbs +1 -56
  117. data/sig/context_dev/resources/monitors.rbs +101 -0
  118. data/sig/context_dev/resources/utility.rbs +2 -7
  119. data/sig/context_dev/resources/web.rbs +4 -0
  120. metadata +71 -44
  121. data/lib/context_dev/models/ai_ai_query_params.rb +0 -235
  122. data/lib/context_dev/models/ai_ai_query_response.rb +0 -133
  123. data/lib/context_dev/models/brand_identify_from_transaction_params.rb +0 -474
  124. data/lib/context_dev/models/brand_identify_from_transaction_response.rb +0 -1074
  125. data/lib/context_dev/models/brand_retrieve_by_email_params.rb +0 -195
  126. data/lib/context_dev/models/brand_retrieve_by_email_response.rb +0 -1071
  127. data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +0 -195
  128. data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +0 -1070
  129. data/lib/context_dev/models/brand_retrieve_by_name_params.rb +0 -452
  130. data/lib/context_dev/models/brand_retrieve_by_name_response.rb +0 -1070
  131. data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +0 -283
  132. data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +0 -1072
  133. data/lib/context_dev/models/utility_prefetch_by_email_params.rb +0 -37
  134. data/lib/context_dev/models/utility_prefetch_by_email_response.rb +0 -68
  135. data/rbi/context_dev/models/ai_ai_query_params.rbi +0 -504
  136. data/rbi/context_dev/models/ai_ai_query_response.rbi +0 -267
  137. data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +0 -2020
  138. data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +0 -3515
  139. data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +0 -743
  140. data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +0 -3511
  141. data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +0 -743
  142. data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +0 -3510
  143. data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +0 -1982
  144. data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +0 -3510
  145. data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +0 -1153
  146. data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +0 -3512
  147. data/rbi/context_dev/models/utility_prefetch_by_email_params.rbi +0 -65
  148. data/rbi/context_dev/models/utility_prefetch_by_email_response.rbi +0 -132
  149. data/sig/context_dev/models/ai_ai_query_params.rbs +0 -218
  150. data/sig/context_dev/models/ai_ai_query_response.rbs +0 -121
  151. data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +0 -822
  152. data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +0 -1441
  153. data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +0 -305
  154. data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +0 -1441
  155. data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +0 -305
  156. data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +0 -1441
  157. data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +0 -801
  158. data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +0 -1441
  159. data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +0 -467
  160. data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +0 -1441
  161. data/sig/context_dev/models/utility_prefetch_by_email_params.rbs +0 -30
  162. data/sig/context_dev/models/utility_prefetch_by_email_response.rbs +0 -64
@@ -0,0 +1,372 @@
1
+ # typed: strong
2
+
3
+ module ContextDev
4
+ module Models
5
+ class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ ContextDev::Models::MonitorListChangesResponse,
10
+ ContextDev::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig do
15
+ returns(T::Array[ContextDev::Models::MonitorListChangesResponse::Data])
16
+ end
17
+ attr_accessor :data
18
+
19
+ sig { returns(T::Boolean) }
20
+ attr_accessor :has_more
21
+
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :next_cursor
24
+
25
+ sig do
26
+ params(
27
+ data:
28
+ T::Array[
29
+ ContextDev::Models::MonitorListChangesResponse::Data::OrHash
30
+ ],
31
+ has_more: T::Boolean,
32
+ next_cursor: T.nilable(String)
33
+ ).returns(T.attached_class)
34
+ end
35
+ def self.new(data:, has_more:, next_cursor:)
36
+ end
37
+
38
+ sig do
39
+ override.returns(
40
+ {
41
+ data:
42
+ T::Array[ContextDev::Models::MonitorListChangesResponse::Data],
43
+ has_more: T::Boolean,
44
+ next_cursor: T.nilable(String)
45
+ }
46
+ )
47
+ end
48
+ def to_hash
49
+ end
50
+
51
+ class Data < ContextDev::Internal::Type::BaseModel
52
+ OrHash =
53
+ T.type_alias do
54
+ T.any(
55
+ ContextDev::Models::MonitorListChangesResponse::Data,
56
+ ContextDev::Internal::AnyHash
57
+ )
58
+ end
59
+
60
+ sig { returns(String) }
61
+ attr_accessor :id
62
+
63
+ sig do
64
+ returns(
65
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol
66
+ )
67
+ end
68
+ attr_accessor :change_detection_type
69
+
70
+ sig { returns(Time) }
71
+ attr_accessor :detected_at
72
+
73
+ # Top-level monitor category. Always `web` today; the concrete behavior is
74
+ # described by `target` and `change_detection`.
75
+ sig do
76
+ returns(
77
+ ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol
78
+ )
79
+ end
80
+ attr_accessor :mode
81
+
82
+ sig { returns(String) }
83
+ attr_accessor :monitor_id
84
+
85
+ sig { returns(String) }
86
+ attr_accessor :summary
87
+
88
+ sig do
89
+ returns(
90
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol
91
+ )
92
+ end
93
+ attr_accessor :target_type
94
+
95
+ sig { returns(String) }
96
+ attr_accessor :title
97
+
98
+ sig { returns(String) }
99
+ attr_accessor :url
100
+
101
+ sig { returns(T.nilable(Integer)) }
102
+ attr_reader :added_url_count
103
+
104
+ sig { params(added_url_count: Integer).void }
105
+ attr_writer :added_url_count
106
+
107
+ sig { returns(T.nilable(Float)) }
108
+ attr_reader :confidence
109
+
110
+ sig { params(confidence: Float).void }
111
+ attr_writer :confidence
112
+
113
+ sig do
114
+ returns(
115
+ T.nilable(
116
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol
117
+ )
118
+ )
119
+ end
120
+ attr_reader :importance
121
+
122
+ sig do
123
+ params(
124
+ importance:
125
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::OrSymbol
126
+ ).void
127
+ end
128
+ attr_writer :importance
129
+
130
+ sig { returns(T.nilable(Integer)) }
131
+ attr_reader :matched_url_count
132
+
133
+ sig { params(matched_url_count: Integer).void }
134
+ attr_writer :matched_url_count
135
+
136
+ sig { returns(T.nilable(Integer)) }
137
+ attr_reader :removed_url_count
138
+
139
+ sig { params(removed_url_count: Integer).void }
140
+ attr_writer :removed_url_count
141
+
142
+ # User-defined tags for grouping and filtering monitors and their changes.
143
+ sig { returns(T.nilable(T::Array[String])) }
144
+ attr_reader :tags
145
+
146
+ sig { params(tags: T::Array[String]).void }
147
+ attr_writer :tags
148
+
149
+ # A lightweight change summary. `mode` is the constant `web`; `target_type` and
150
+ # `change_detection_type` describe the change, and which optional fields are
151
+ # present depends on them (e.g. sitemap changes include
152
+ # `added_url_count`/`removed_url_count`; semantic changes include
153
+ # `confidence`/`importance`).
154
+ sig do
155
+ params(
156
+ id: String,
157
+ change_detection_type:
158
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::OrSymbol,
159
+ detected_at: Time,
160
+ mode:
161
+ ContextDev::Models::MonitorListChangesResponse::Data::Mode::OrSymbol,
162
+ monitor_id: String,
163
+ summary: String,
164
+ target_type:
165
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::OrSymbol,
166
+ title: String,
167
+ url: String,
168
+ added_url_count: Integer,
169
+ confidence: Float,
170
+ importance:
171
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::OrSymbol,
172
+ matched_url_count: Integer,
173
+ removed_url_count: Integer,
174
+ tags: T::Array[String]
175
+ ).returns(T.attached_class)
176
+ end
177
+ def self.new(
178
+ id:,
179
+ change_detection_type:,
180
+ detected_at:,
181
+ # Top-level monitor category. Always `web` today; the concrete behavior is
182
+ # described by `target` and `change_detection`.
183
+ mode:,
184
+ monitor_id:,
185
+ summary:,
186
+ target_type:,
187
+ title:,
188
+ url:,
189
+ added_url_count: nil,
190
+ confidence: nil,
191
+ importance: nil,
192
+ matched_url_count: nil,
193
+ removed_url_count: nil,
194
+ # User-defined tags for grouping and filtering monitors and their changes.
195
+ tags: nil
196
+ )
197
+ end
198
+
199
+ sig do
200
+ override.returns(
201
+ {
202
+ id: String,
203
+ change_detection_type:
204
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol,
205
+ detected_at: Time,
206
+ mode:
207
+ ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol,
208
+ monitor_id: String,
209
+ summary: String,
210
+ target_type:
211
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol,
212
+ title: String,
213
+ url: String,
214
+ added_url_count: Integer,
215
+ confidence: Float,
216
+ importance:
217
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol,
218
+ matched_url_count: Integer,
219
+ removed_url_count: Integer,
220
+ tags: T::Array[String]
221
+ }
222
+ )
223
+ end
224
+ def to_hash
225
+ end
226
+
227
+ module ChangeDetectionType
228
+ extend ContextDev::Internal::Type::Enum
229
+
230
+ TaggedSymbol =
231
+ T.type_alias do
232
+ T.all(
233
+ Symbol,
234
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType
235
+ )
236
+ end
237
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
238
+
239
+ EXACT =
240
+ T.let(
241
+ :exact,
242
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol
243
+ )
244
+ SEMANTIC =
245
+ T.let(
246
+ :semantic,
247
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol
248
+ )
249
+
250
+ sig do
251
+ override.returns(
252
+ T::Array[
253
+ ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType::TaggedSymbol
254
+ ]
255
+ )
256
+ end
257
+ def self.values
258
+ end
259
+ end
260
+
261
+ # Top-level monitor category. Always `web` today; the concrete behavior is
262
+ # described by `target` and `change_detection`.
263
+ module Mode
264
+ extend ContextDev::Internal::Type::Enum
265
+
266
+ TaggedSymbol =
267
+ T.type_alias do
268
+ T.all(
269
+ Symbol,
270
+ ContextDev::Models::MonitorListChangesResponse::Data::Mode
271
+ )
272
+ end
273
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
274
+
275
+ WEB =
276
+ T.let(
277
+ :web,
278
+ ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol
279
+ )
280
+
281
+ sig do
282
+ override.returns(
283
+ T::Array[
284
+ ContextDev::Models::MonitorListChangesResponse::Data::Mode::TaggedSymbol
285
+ ]
286
+ )
287
+ end
288
+ def self.values
289
+ end
290
+ end
291
+
292
+ module TargetType
293
+ extend ContextDev::Internal::Type::Enum
294
+
295
+ TaggedSymbol =
296
+ T.type_alias do
297
+ T.all(
298
+ Symbol,
299
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType
300
+ )
301
+ end
302
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
303
+
304
+ PAGE =
305
+ T.let(
306
+ :page,
307
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol
308
+ )
309
+ SITEMAP =
310
+ T.let(
311
+ :sitemap,
312
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol
313
+ )
314
+ EXTRACT =
315
+ T.let(
316
+ :extract,
317
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol
318
+ )
319
+
320
+ sig do
321
+ override.returns(
322
+ T::Array[
323
+ ContextDev::Models::MonitorListChangesResponse::Data::TargetType::TaggedSymbol
324
+ ]
325
+ )
326
+ end
327
+ def self.values
328
+ end
329
+ end
330
+
331
+ module Importance
332
+ extend ContextDev::Internal::Type::Enum
333
+
334
+ TaggedSymbol =
335
+ T.type_alias do
336
+ T.all(
337
+ Symbol,
338
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance
339
+ )
340
+ end
341
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
342
+
343
+ LOW =
344
+ T.let(
345
+ :low,
346
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol
347
+ )
348
+ MEDIUM =
349
+ T.let(
350
+ :medium,
351
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol
352
+ )
353
+ HIGH =
354
+ T.let(
355
+ :high,
356
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol
357
+ )
358
+
359
+ sig do
360
+ override.returns(
361
+ T::Array[
362
+ ContextDev::Models::MonitorListChangesResponse::Data::Importance::TaggedSymbol
363
+ ]
364
+ )
365
+ end
366
+ def self.values
367
+ end
368
+ end
369
+ end
370
+ end
371
+ end
372
+ end
@@ -0,0 +1,332 @@
1
+ # typed: strong
2
+
3
+ module ContextDev
4
+ module Models
5
+ class MonitorListParams < ContextDev::Internal::Type::BaseModel
6
+ extend ContextDev::Internal::Type::RequestParameters::Converter
7
+ include ContextDev::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(ContextDev::MonitorListParams, ContextDev::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ returns(
16
+ T.nilable(
17
+ ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol
18
+ )
19
+ )
20
+ end
21
+ attr_reader :change_detection_type
22
+
23
+ sig do
24
+ params(
25
+ change_detection_type:
26
+ ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol
27
+ ).void
28
+ end
29
+ attr_writer :change_detection_type
30
+
31
+ sig { returns(T.nilable(String)) }
32
+ attr_reader :cursor
33
+
34
+ sig { params(cursor: String).void }
35
+ attr_writer :cursor
36
+
37
+ sig { returns(T.nilable(Integer)) }
38
+ attr_reader :limit
39
+
40
+ sig { params(limit: Integer).void }
41
+ attr_writer :limit
42
+
43
+ # Free-text search term, matched against the fields named in `search_by`.
44
+ sig { returns(T.nilable(String)) }
45
+ attr_reader :q
46
+
47
+ sig { params(q: String).void }
48
+ attr_writer :q
49
+
50
+ # Comma-separated fields to search with `q`. Defaults to all of them. Note `query`
51
+ # only exists on semantic monitors.
52
+ sig do
53
+ returns(
54
+ T.nilable(T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol])
55
+ )
56
+ end
57
+ attr_reader :search_by
58
+
59
+ sig do
60
+ params(
61
+ search_by: T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol]
62
+ ).void
63
+ end
64
+ attr_writer :search_by
65
+
66
+ # `prefix` for as-you-type prefix matching (default), `exact` for full-token
67
+ # matching.
68
+ sig do
69
+ returns(T.nilable(ContextDev::MonitorListParams::SearchType::OrSymbol))
70
+ end
71
+ attr_reader :search_type
72
+
73
+ sig do
74
+ params(
75
+ search_type: ContextDev::MonitorListParams::SearchType::OrSymbol
76
+ ).void
77
+ end
78
+ attr_writer :search_type
79
+
80
+ # Monitor lifecycle status. `failed` means the most recent run failed (see the
81
+ # monitor's `last_error`); failed monitors keep running on schedule and flip back
82
+ # to `active` on the next successful run. Monitors are auto-`paused` after
83
+ # repeated consecutive failures or insufficient-credit skips; resume by PATCHing
84
+ # status to `active`.
85
+ sig do
86
+ returns(T.nilable(ContextDev::MonitorListParams::Status::OrSymbol))
87
+ end
88
+ attr_reader :status
89
+
90
+ sig do
91
+ params(status: ContextDev::MonitorListParams::Status::OrSymbol).void
92
+ end
93
+ attr_writer :status
94
+
95
+ # Filter to items that have this tag.
96
+ sig { returns(T.nilable(String)) }
97
+ attr_reader :tag
98
+
99
+ sig { params(tag: String).void }
100
+ attr_writer :tag
101
+
102
+ # Comma-separated list of tags to filter by (matches monitors having any of them).
103
+ sig { returns(T.nilable(T::Array[String])) }
104
+ attr_reader :tags
105
+
106
+ sig { params(tags: T::Array[String]).void }
107
+ attr_writer :tags
108
+
109
+ sig do
110
+ returns(T.nilable(ContextDev::MonitorListParams::TargetType::OrSymbol))
111
+ end
112
+ attr_reader :target_type
113
+
114
+ sig do
115
+ params(
116
+ target_type: ContextDev::MonitorListParams::TargetType::OrSymbol
117
+ ).void
118
+ end
119
+ attr_writer :target_type
120
+
121
+ sig do
122
+ params(
123
+ change_detection_type:
124
+ ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol,
125
+ cursor: String,
126
+ limit: Integer,
127
+ q: String,
128
+ search_by:
129
+ T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol],
130
+ search_type: ContextDev::MonitorListParams::SearchType::OrSymbol,
131
+ status: ContextDev::MonitorListParams::Status::OrSymbol,
132
+ tag: String,
133
+ tags: T::Array[String],
134
+ target_type: ContextDev::MonitorListParams::TargetType::OrSymbol,
135
+ request_options: ContextDev::RequestOptions::OrHash
136
+ ).returns(T.attached_class)
137
+ end
138
+ def self.new(
139
+ change_detection_type: nil,
140
+ cursor: nil,
141
+ limit: nil,
142
+ # Free-text search term, matched against the fields named in `search_by`.
143
+ q: nil,
144
+ # Comma-separated fields to search with `q`. Defaults to all of them. Note `query`
145
+ # only exists on semantic monitors.
146
+ search_by: nil,
147
+ # `prefix` for as-you-type prefix matching (default), `exact` for full-token
148
+ # matching.
149
+ search_type: nil,
150
+ # Monitor lifecycle status. `failed` means the most recent run failed (see the
151
+ # monitor's `last_error`); failed monitors keep running on schedule and flip back
152
+ # to `active` on the next successful run. Monitors are auto-`paused` after
153
+ # repeated consecutive failures or insufficient-credit skips; resume by PATCHing
154
+ # status to `active`.
155
+ status: nil,
156
+ # Filter to items that have this tag.
157
+ tag: nil,
158
+ # Comma-separated list of tags to filter by (matches monitors having any of them).
159
+ tags: nil,
160
+ target_type: nil,
161
+ request_options: {}
162
+ )
163
+ end
164
+
165
+ sig do
166
+ override.returns(
167
+ {
168
+ change_detection_type:
169
+ ContextDev::MonitorListParams::ChangeDetectionType::OrSymbol,
170
+ cursor: String,
171
+ limit: Integer,
172
+ q: String,
173
+ search_by:
174
+ T::Array[ContextDev::MonitorListParams::SearchBy::OrSymbol],
175
+ search_type: ContextDev::MonitorListParams::SearchType::OrSymbol,
176
+ status: ContextDev::MonitorListParams::Status::OrSymbol,
177
+ tag: String,
178
+ tags: T::Array[String],
179
+ target_type: ContextDev::MonitorListParams::TargetType::OrSymbol,
180
+ request_options: ContextDev::RequestOptions
181
+ }
182
+ )
183
+ end
184
+ def to_hash
185
+ end
186
+
187
+ module ChangeDetectionType
188
+ extend ContextDev::Internal::Type::Enum
189
+
190
+ TaggedSymbol =
191
+ T.type_alias do
192
+ T.all(Symbol, ContextDev::MonitorListParams::ChangeDetectionType)
193
+ end
194
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
195
+
196
+ EXACT =
197
+ T.let(
198
+ :exact,
199
+ ContextDev::MonitorListParams::ChangeDetectionType::TaggedSymbol
200
+ )
201
+ SEMANTIC =
202
+ T.let(
203
+ :semantic,
204
+ ContextDev::MonitorListParams::ChangeDetectionType::TaggedSymbol
205
+ )
206
+
207
+ sig do
208
+ override.returns(
209
+ T::Array[
210
+ ContextDev::MonitorListParams::ChangeDetectionType::TaggedSymbol
211
+ ]
212
+ )
213
+ end
214
+ def self.values
215
+ end
216
+ end
217
+
218
+ module SearchBy
219
+ extend ContextDev::Internal::Type::Enum
220
+
221
+ TaggedSymbol =
222
+ T.type_alias do
223
+ T.all(Symbol, ContextDev::MonitorListParams::SearchBy)
224
+ end
225
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
226
+
227
+ NAME =
228
+ T.let(:name, ContextDev::MonitorListParams::SearchBy::TaggedSymbol)
229
+ URL = T.let(:url, ContextDev::MonitorListParams::SearchBy::TaggedSymbol)
230
+ QUERY =
231
+ T.let(:query, ContextDev::MonitorListParams::SearchBy::TaggedSymbol)
232
+ TAGS =
233
+ T.let(:tags, ContextDev::MonitorListParams::SearchBy::TaggedSymbol)
234
+
235
+ sig do
236
+ override.returns(
237
+ T::Array[ContextDev::MonitorListParams::SearchBy::TaggedSymbol]
238
+ )
239
+ end
240
+ def self.values
241
+ end
242
+ end
243
+
244
+ # `prefix` for as-you-type prefix matching (default), `exact` for full-token
245
+ # matching.
246
+ module SearchType
247
+ extend ContextDev::Internal::Type::Enum
248
+
249
+ TaggedSymbol =
250
+ T.type_alias do
251
+ T.all(Symbol, ContextDev::MonitorListParams::SearchType)
252
+ end
253
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
254
+
255
+ EXACT =
256
+ T.let(:exact, ContextDev::MonitorListParams::SearchType::TaggedSymbol)
257
+ PREFIX =
258
+ T.let(
259
+ :prefix,
260
+ ContextDev::MonitorListParams::SearchType::TaggedSymbol
261
+ )
262
+
263
+ sig do
264
+ override.returns(
265
+ T::Array[ContextDev::MonitorListParams::SearchType::TaggedSymbol]
266
+ )
267
+ end
268
+ def self.values
269
+ end
270
+ end
271
+
272
+ # Monitor lifecycle status. `failed` means the most recent run failed (see the
273
+ # monitor's `last_error`); failed monitors keep running on schedule and flip back
274
+ # to `active` on the next successful run. Monitors are auto-`paused` after
275
+ # repeated consecutive failures or insufficient-credit skips; resume by PATCHing
276
+ # status to `active`.
277
+ module Status
278
+ extend ContextDev::Internal::Type::Enum
279
+
280
+ TaggedSymbol =
281
+ T.type_alias { T.all(Symbol, ContextDev::MonitorListParams::Status) }
282
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
283
+
284
+ ACTIVE =
285
+ T.let(:active, ContextDev::MonitorListParams::Status::TaggedSymbol)
286
+ PAUSED =
287
+ T.let(:paused, ContextDev::MonitorListParams::Status::TaggedSymbol)
288
+ FAILED =
289
+ T.let(:failed, ContextDev::MonitorListParams::Status::TaggedSymbol)
290
+
291
+ sig do
292
+ override.returns(
293
+ T::Array[ContextDev::MonitorListParams::Status::TaggedSymbol]
294
+ )
295
+ end
296
+ def self.values
297
+ end
298
+ end
299
+
300
+ module TargetType
301
+ extend ContextDev::Internal::Type::Enum
302
+
303
+ TaggedSymbol =
304
+ T.type_alias do
305
+ T.all(Symbol, ContextDev::MonitorListParams::TargetType)
306
+ end
307
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
308
+
309
+ PAGE =
310
+ T.let(:page, ContextDev::MonitorListParams::TargetType::TaggedSymbol)
311
+ SITEMAP =
312
+ T.let(
313
+ :sitemap,
314
+ ContextDev::MonitorListParams::TargetType::TaggedSymbol
315
+ )
316
+ EXTRACT =
317
+ T.let(
318
+ :extract,
319
+ ContextDev::MonitorListParams::TargetType::TaggedSymbol
320
+ )
321
+
322
+ sig do
323
+ override.returns(
324
+ T::Array[ContextDev::MonitorListParams::TargetType::TaggedSymbol]
325
+ )
326
+ end
327
+ def self.values
328
+ end
329
+ end
330
+ end
331
+ end
332
+ end