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.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -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 +1079 -174
  6. data/lib/context_dev/models/monitor_create_params.rb +364 -0
  7. data/lib/context_dev/models/monitor_create_response.rb +608 -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 +631 -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 +264 -0
  22. data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
  23. data/lib/context_dev/models/monitor_retrieve_response.rb +608 -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 +371 -0
  27. data/lib/context_dev/models/monitor_update_response.rb +608 -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 +9 -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 +3858 -678
  46. data/rbi/context_dev/models/monitor_create_params.rbi +641 -0
  47. data/rbi/context_dev/models/monitor_create_response.rbi +1020 -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 +335 -0
  57. data/rbi/context_dev/models/monitor_list_response.rbi +1089 -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 +469 -0
  62. data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
  63. data/rbi/context_dev/models/monitor_retrieve_response.rbi +1028 -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 +681 -0
  67. data/rbi/context_dev/models/monitor_update_response.rbi +1020 -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 +16 -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 +1586 -281
  84. data/sig/context_dev/models/monitor_create_params.rbs +301 -0
  85. data/sig/context_dev/models/monitor_create_response.rbs +433 -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 +460 -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 +221 -0
  100. data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
  101. data/sig/context_dev/models/monitor_retrieve_response.rbs +433 -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 +321 -0
  105. data/sig/context_dev/models/monitor_update_response.rbs +433 -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,198 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ContextDev
4
+ module Models
5
+ # @see ContextDev::Resources::Monitors#list_changes
6
+ class MonitorListChangesResponse < ContextDev::Internal::Type::BaseModel
7
+ # @!attribute data
8
+ #
9
+ # @return [Array<ContextDev::Models::MonitorListChangesResponse::Data>]
10
+ required :data,
11
+ -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListChangesResponse::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::MonitorListChangesResponse::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 change_detection_type
35
+ #
36
+ # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType]
37
+ required :change_detection_type,
38
+ enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType }
39
+
40
+ # @!attribute detected_at
41
+ #
42
+ # @return [Time]
43
+ required :detected_at, Time
44
+
45
+ # @!attribute mode
46
+ # Top-level monitor category. Always `web` today; the concrete behavior is
47
+ # described by `target` and `change_detection`.
48
+ #
49
+ # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Mode]
50
+ required :mode, enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::Mode }
51
+
52
+ # @!attribute monitor_id
53
+ #
54
+ # @return [String]
55
+ required :monitor_id, String
56
+
57
+ # @!attribute summary
58
+ #
59
+ # @return [String]
60
+ required :summary, String
61
+
62
+ # @!attribute target_type
63
+ #
64
+ # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::TargetType]
65
+ required :target_type, enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::TargetType }
66
+
67
+ # @!attribute title
68
+ #
69
+ # @return [String]
70
+ required :title, String
71
+
72
+ # @!attribute url
73
+ #
74
+ # @return [String]
75
+ required :url, String
76
+
77
+ # @!attribute added_url_count
78
+ #
79
+ # @return [Integer, nil]
80
+ optional :added_url_count, Integer
81
+
82
+ # @!attribute confidence
83
+ #
84
+ # @return [Float, nil]
85
+ optional :confidence, Float
86
+
87
+ # @!attribute importance
88
+ #
89
+ # @return [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Importance, nil]
90
+ optional :importance, enum: -> { ContextDev::Models::MonitorListChangesResponse::Data::Importance }
91
+
92
+ # @!attribute matched_url_count
93
+ #
94
+ # @return [Integer, nil]
95
+ optional :matched_url_count, Integer
96
+
97
+ # @!attribute removed_url_count
98
+ #
99
+ # @return [Integer, nil]
100
+ optional :removed_url_count, Integer
101
+
102
+ # @!attribute tags
103
+ # User-defined tags for grouping and filtering monitors and their changes.
104
+ #
105
+ # @return [Array<String>, nil]
106
+ optional :tags, ContextDev::Internal::Type::ArrayOf[String]
107
+
108
+ # @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, summary:, target_type:, title:, url:, added_url_count: nil, confidence: nil, importance: nil, matched_url_count: nil, removed_url_count: nil, tags: nil)
109
+ # Some parameter documentations has been truncated, see
110
+ # {ContextDev::Models::MonitorListChangesResponse::Data} for more details.
111
+ #
112
+ # A lightweight change summary. `mode` is the constant `web`; `target_type` and
113
+ # `change_detection_type` describe the change, and which optional fields are
114
+ # present depends on them (e.g. sitemap changes include
115
+ # `added_url_count`/`removed_url_count`; semantic changes include
116
+ # `confidence`/`importance`).
117
+ #
118
+ # @param id [String]
119
+ #
120
+ # @param change_detection_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::ChangeDetectionType]
121
+ #
122
+ # @param detected_at [Time]
123
+ #
124
+ # @param mode [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ
125
+ #
126
+ # @param monitor_id [String]
127
+ #
128
+ # @param summary [String]
129
+ #
130
+ # @param target_type [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::TargetType]
131
+ #
132
+ # @param title [String]
133
+ #
134
+ # @param url [String]
135
+ #
136
+ # @param added_url_count [Integer]
137
+ #
138
+ # @param confidence [Float]
139
+ #
140
+ # @param importance [Symbol, ContextDev::Models::MonitorListChangesResponse::Data::Importance]
141
+ #
142
+ # @param matched_url_count [Integer]
143
+ #
144
+ # @param removed_url_count [Integer]
145
+ #
146
+ # @param tags [Array<String>] User-defined tags for grouping and filtering monitors and their changes.
147
+
148
+ # @see ContextDev::Models::MonitorListChangesResponse::Data#change_detection_type
149
+ module ChangeDetectionType
150
+ extend ContextDev::Internal::Type::Enum
151
+
152
+ EXACT = :exact
153
+ SEMANTIC = :semantic
154
+
155
+ # @!method self.values
156
+ # @return [Array<Symbol>]
157
+ end
158
+
159
+ # Top-level monitor category. Always `web` today; the concrete behavior is
160
+ # described by `target` and `change_detection`.
161
+ #
162
+ # @see ContextDev::Models::MonitorListChangesResponse::Data#mode
163
+ module Mode
164
+ extend ContextDev::Internal::Type::Enum
165
+
166
+ WEB = :web
167
+
168
+ # @!method self.values
169
+ # @return [Array<Symbol>]
170
+ end
171
+
172
+ # @see ContextDev::Models::MonitorListChangesResponse::Data#target_type
173
+ module TargetType
174
+ extend ContextDev::Internal::Type::Enum
175
+
176
+ PAGE = :page
177
+ SITEMAP = :sitemap
178
+ EXTRACT = :extract
179
+
180
+ # @!method self.values
181
+ # @return [Array<Symbol>]
182
+ end
183
+
184
+ # @see ContextDev::Models::MonitorListChangesResponse::Data#importance
185
+ module Importance
186
+ extend ContextDev::Internal::Type::Enum
187
+
188
+ LOW = :low
189
+ MEDIUM = :medium
190
+ HIGH = :high
191
+
192
+ # @!method self.values
193
+ # @return [Array<Symbol>]
194
+ end
195
+ end
196
+ end
197
+ end
198
+ end
@@ -0,0 +1,161 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ContextDev
4
+ module Models
5
+ # @see ContextDev::Resources::Monitors#list
6
+ class MonitorListParams < ContextDev::Internal::Type::BaseModel
7
+ extend ContextDev::Internal::Type::RequestParameters::Converter
8
+ include ContextDev::Internal::Type::RequestParameters
9
+
10
+ # @!attribute change_detection_type
11
+ #
12
+ # @return [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType, nil]
13
+ optional :change_detection_type, enum: -> { ContextDev::MonitorListParams::ChangeDetectionType }
14
+
15
+ # @!attribute cursor
16
+ #
17
+ # @return [String, nil]
18
+ optional :cursor, String
19
+
20
+ # @!attribute limit
21
+ #
22
+ # @return [Integer, nil]
23
+ optional :limit, Integer
24
+
25
+ # @!attribute q
26
+ # Free-text search term, matched against the fields named in `search_by`.
27
+ #
28
+ # @return [String, nil]
29
+ optional :q, String
30
+
31
+ # @!attribute search_by
32
+ # Comma-separated fields to search with `q`. Defaults to all of them. Note
33
+ # `instructions` only exists on extract monitors.
34
+ #
35
+ # @return [Array<Symbol, ContextDev::Models::MonitorListParams::SearchBy>, nil]
36
+ optional :search_by,
37
+ -> { ContextDev::Internal::Type::ArrayOf[enum: ContextDev::MonitorListParams::SearchBy] }
38
+
39
+ # @!attribute search_type
40
+ # `prefix` for as-you-type prefix matching (default), `exact` for full-token
41
+ # matching.
42
+ #
43
+ # @return [Symbol, ContextDev::Models::MonitorListParams::SearchType, nil]
44
+ optional :search_type, enum: -> { ContextDev::MonitorListParams::SearchType }
45
+
46
+ # @!attribute status
47
+ # Monitor lifecycle status. `failed` means the most recent run failed (see the
48
+ # monitor's `last_error`); failed monitors keep running on schedule and flip back
49
+ # to `active` on the next successful run. Monitors are auto-`paused` after
50
+ # repeated consecutive failures or insufficient-credit skips; resume by PATCHing
51
+ # status to `active`.
52
+ #
53
+ # @return [Symbol, ContextDev::Models::MonitorListParams::Status, nil]
54
+ optional :status, enum: -> { ContextDev::MonitorListParams::Status }
55
+
56
+ # @!attribute tag
57
+ # Filter to items that have this tag.
58
+ #
59
+ # @return [String, nil]
60
+ optional :tag, String
61
+
62
+ # @!attribute tags
63
+ # Comma-separated list of tags to filter by (matches monitors having any of them).
64
+ #
65
+ # @return [Array<String>, nil]
66
+ optional :tags, ContextDev::Internal::Type::ArrayOf[String]
67
+
68
+ # @!attribute target_type
69
+ #
70
+ # @return [Symbol, ContextDev::Models::MonitorListParams::TargetType, nil]
71
+ optional :target_type, enum: -> { ContextDev::MonitorListParams::TargetType }
72
+
73
+ # @!method initialize(change_detection_type: nil, cursor: nil, limit: nil, q: nil, search_by: nil, search_type: nil, status: nil, tag: nil, tags: nil, target_type: nil, request_options: {})
74
+ # Some parameter documentations has been truncated, see
75
+ # {ContextDev::Models::MonitorListParams} for more details.
76
+ #
77
+ # @param change_detection_type [Symbol, ContextDev::Models::MonitorListParams::ChangeDetectionType]
78
+ #
79
+ # @param cursor [String]
80
+ #
81
+ # @param limit [Integer]
82
+ #
83
+ # @param q [String] Free-text search term, matched against the fields named in `search_by`.
84
+ #
85
+ # @param search_by [Array<Symbol, ContextDev::Models::MonitorListParams::SearchBy>] Comma-separated fields to search with `q`. Defaults to all of them. Note `instru
86
+ #
87
+ # @param search_type [Symbol, ContextDev::Models::MonitorListParams::SearchType] `prefix` for as-you-type prefix matching (default), `exact` for full-token match
88
+ #
89
+ # @param status [Symbol, ContextDev::Models::MonitorListParams::Status] Monitor lifecycle status. `failed` means the most recent run failed (see the mon
90
+ #
91
+ # @param tag [String] Filter to items that have this tag.
92
+ #
93
+ # @param tags [Array<String>] Comma-separated list of tags to filter by (matches monitors having any of them).
94
+ #
95
+ # @param target_type [Symbol, ContextDev::Models::MonitorListParams::TargetType]
96
+ #
97
+ # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
98
+
99
+ module ChangeDetectionType
100
+ extend ContextDev::Internal::Type::Enum
101
+
102
+ EXACT = :exact
103
+ SEMANTIC = :semantic
104
+
105
+ # @!method self.values
106
+ # @return [Array<Symbol>]
107
+ end
108
+
109
+ module SearchBy
110
+ extend ContextDev::Internal::Type::Enum
111
+
112
+ NAME = :name
113
+ URL = :url
114
+ INSTRUCTIONS = :instructions
115
+ TAGS = :tags
116
+
117
+ # @!method self.values
118
+ # @return [Array<Symbol>]
119
+ end
120
+
121
+ # `prefix` for as-you-type prefix matching (default), `exact` for full-token
122
+ # matching.
123
+ module SearchType
124
+ extend ContextDev::Internal::Type::Enum
125
+
126
+ EXACT = :exact
127
+ PREFIX = :prefix
128
+
129
+ # @!method self.values
130
+ # @return [Array<Symbol>]
131
+ end
132
+
133
+ # Monitor lifecycle status. `failed` means the most recent run failed (see the
134
+ # monitor's `last_error`); failed monitors keep running on schedule and flip back
135
+ # to `active` on the next successful run. Monitors are auto-`paused` after
136
+ # repeated consecutive failures or insufficient-credit skips; resume by PATCHing
137
+ # status to `active`.
138
+ module Status
139
+ extend ContextDev::Internal::Type::Enum
140
+
141
+ ACTIVE = :active
142
+ PAUSED = :paused
143
+ FAILED = :failed
144
+
145
+ # @!method self.values
146
+ # @return [Array<Symbol>]
147
+ end
148
+
149
+ module TargetType
150
+ extend ContextDev::Internal::Type::Enum
151
+
152
+ PAGE = :page
153
+ SITEMAP = :sitemap
154
+ EXTRACT = :extract
155
+
156
+ # @!method self.values
157
+ # @return [Array<Symbol>]
158
+ end
159
+ end
160
+ end
161
+ end