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,199 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ContextDev
4
+ module Models
5
+ # @see ContextDev::Resources::Monitors#list_account_changes
6
+ class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel
7
+ # @!attribute data
8
+ #
9
+ # @return [Array<ContextDev::Models::MonitorListAccountChangesResponse::Data>]
10
+ required :data,
11
+ -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountChangesResponse::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::MonitorListAccountChangesResponse::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::MonitorListAccountChangesResponse::Data::ChangeDetectionType]
37
+ required :change_detection_type,
38
+ enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::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::MonitorListAccountChangesResponse::Data::Mode]
50
+ required :mode, enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::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::MonitorListAccountChangesResponse::Data::TargetType]
65
+ required :target_type,
66
+ enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType }
67
+
68
+ # @!attribute title
69
+ #
70
+ # @return [String]
71
+ required :title, String
72
+
73
+ # @!attribute url
74
+ #
75
+ # @return [String]
76
+ required :url, String
77
+
78
+ # @!attribute added_url_count
79
+ #
80
+ # @return [Integer, nil]
81
+ optional :added_url_count, Integer
82
+
83
+ # @!attribute confidence
84
+ #
85
+ # @return [Float, nil]
86
+ optional :confidence, Float
87
+
88
+ # @!attribute importance
89
+ #
90
+ # @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance, nil]
91
+ optional :importance, enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance }
92
+
93
+ # @!attribute matched_url_count
94
+ #
95
+ # @return [Integer, nil]
96
+ optional :matched_url_count, Integer
97
+
98
+ # @!attribute removed_url_count
99
+ #
100
+ # @return [Integer, nil]
101
+ optional :removed_url_count, Integer
102
+
103
+ # @!attribute tags
104
+ # User-defined tags for grouping and filtering monitors and their changes.
105
+ #
106
+ # @return [Array<String>, nil]
107
+ optional :tags, ContextDev::Internal::Type::ArrayOf[String]
108
+
109
+ # @!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)
110
+ # Some parameter documentations has been truncated, see
111
+ # {ContextDev::Models::MonitorListAccountChangesResponse::Data} for more details.
112
+ #
113
+ # A lightweight change summary. `mode` is the constant `web`; `target_type` and
114
+ # `change_detection_type` describe the change, and which optional fields are
115
+ # present depends on them (e.g. sitemap changes include
116
+ # `added_url_count`/`removed_url_count`; semantic changes include
117
+ # `confidence`/`importance`).
118
+ #
119
+ # @param id [String]
120
+ #
121
+ # @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType]
122
+ #
123
+ # @param detected_at [Time]
124
+ #
125
+ # @param mode [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ
126
+ #
127
+ # @param monitor_id [String]
128
+ #
129
+ # @param summary [String]
130
+ #
131
+ # @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType]
132
+ #
133
+ # @param title [String]
134
+ #
135
+ # @param url [String]
136
+ #
137
+ # @param added_url_count [Integer]
138
+ #
139
+ # @param confidence [Float]
140
+ #
141
+ # @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance]
142
+ #
143
+ # @param matched_url_count [Integer]
144
+ #
145
+ # @param removed_url_count [Integer]
146
+ #
147
+ # @param tags [Array<String>] User-defined tags for grouping and filtering monitors and their changes.
148
+
149
+ # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#change_detection_type
150
+ module ChangeDetectionType
151
+ extend ContextDev::Internal::Type::Enum
152
+
153
+ EXACT = :exact
154
+ SEMANTIC = :semantic
155
+
156
+ # @!method self.values
157
+ # @return [Array<Symbol>]
158
+ end
159
+
160
+ # Top-level monitor category. Always `web` today; the concrete behavior is
161
+ # described by `target` and `change_detection`.
162
+ #
163
+ # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#mode
164
+ module Mode
165
+ extend ContextDev::Internal::Type::Enum
166
+
167
+ WEB = :web
168
+
169
+ # @!method self.values
170
+ # @return [Array<Symbol>]
171
+ end
172
+
173
+ # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#target_type
174
+ module TargetType
175
+ extend ContextDev::Internal::Type::Enum
176
+
177
+ PAGE = :page
178
+ SITEMAP = :sitemap
179
+ EXTRACT = :extract
180
+
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
183
+ end
184
+
185
+ # @see ContextDev::Models::MonitorListAccountChangesResponse::Data#importance
186
+ module Importance
187
+ extend ContextDev::Internal::Type::Enum
188
+
189
+ LOW = :low
190
+ MEDIUM = :medium
191
+ HIGH = :high
192
+
193
+ # @!method self.values
194
+ # @return [Array<Symbol>]
195
+ end
196
+ end
197
+ end
198
+ end
199
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ContextDev
4
+ module Models
5
+ # @see ContextDev::Resources::Monitors#list_account_runs
6
+ class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel
7
+ extend ContextDev::Internal::Type::RequestParameters::Converter
8
+ include ContextDev::Internal::Type::RequestParameters
9
+
10
+ # @!attribute cursor
11
+ #
12
+ # @return [String, nil]
13
+ optional :cursor, String
14
+
15
+ # @!attribute limit
16
+ #
17
+ # @return [Integer, nil]
18
+ optional :limit, Integer
19
+
20
+ # @!attribute status
21
+ # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
22
+ # (insufficient credits, monitor paused, or superseded by a concurrent run).
23
+ #
24
+ # @return [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status, nil]
25
+ optional :status, enum: -> { ContextDev::MonitorListAccountRunsParams::Status }
26
+
27
+ # @!method initialize(cursor: nil, limit: nil, status: nil, request_options: {})
28
+ # Some parameter documentations has been truncated, see
29
+ # {ContextDev::Models::MonitorListAccountRunsParams} for more details.
30
+ #
31
+ # @param cursor [String]
32
+ #
33
+ # @param limit [Integer]
34
+ #
35
+ # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in
36
+ #
37
+ # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
38
+
39
+ # Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
40
+ # (insufficient credits, monitor paused, or superseded by a concurrent run).
41
+ module Status
42
+ extend ContextDev::Internal::Type::Enum
43
+
44
+ QUEUED = :queued
45
+ RUNNING = :running
46
+ COMPLETED = :completed
47
+ FAILED = :failed
48
+ SKIPPED = :skipped
49
+
50
+ # @!method self.values
51
+ # @return [Array<Symbol>]
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,227 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ContextDev
4
+ module Models
5
+ # @see ContextDev::Resources::Monitors#list_account_runs
6
+ class MonitorListAccountRunsResponse < ContextDev::Internal::Type::BaseModel
7
+ # @!attribute data
8
+ #
9
+ # @return [Array<ContextDev::Models::MonitorListAccountRunsResponse::Data>]
10
+ required :data,
11
+ -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::Data::ChangeDetectionType]
49
+ required :change_detection_type,
50
+ enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::Data::RunType]
67
+ required :run_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::Data::Status]
74
+ required :status, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Status }
75
+
76
+ # @!attribute target_type
77
+ #
78
+ # @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType]
79
+ required :target_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::Data::Error, nil]
94
+ optional :error, -> { ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::Data::SkipReason, nil]
100
+ optional :skip_reason,
101
+ enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::Data::RunType] The first run after monitor creation is a baseline run.
126
+ #
127
+ # @param status [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in
128
+ #
129
+ # @param target_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType]
130
+ #
131
+ # @param change_id [String, nil]
132
+ #
133
+ # @param completed_at [Time, nil]
134
+ #
135
+ # @param error [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil]
136
+ #
137
+ # @param skip_reason [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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::MonitorListAccountRunsResponse::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,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ContextDev
4
+ module Models
5
+ # @see ContextDev::Resources::Monitors#list_changes
6
+ class MonitorListChangesParams < 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
+ # @!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 since
26
+ #
27
+ # @return [Time, nil]
28
+ optional :since, Time
29
+
30
+ # @!attribute tag
31
+ # Filter to items that have this tag.
32
+ #
33
+ # @return [String, nil]
34
+ optional :tag, String
35
+
36
+ # @!attribute until_
37
+ #
38
+ # @return [Time, nil]
39
+ optional :until_, Time
40
+
41
+ # @!method initialize(monitor_id:, cursor: nil, limit: nil, since: nil, tag: nil, until_: nil, request_options: {})
42
+ # @param monitor_id [String]
43
+ #
44
+ # @param cursor [String]
45
+ #
46
+ # @param limit [Integer]
47
+ #
48
+ # @param since [Time]
49
+ #
50
+ # @param tag [String] Filter to items that have this tag.
51
+ #
52
+ # @param until_ [Time]
53
+ #
54
+ # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
55
+ end
56
+ end
57
+ end