smplkit 3.0.28 → 3.0.30

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 (20) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/account_api.rb +15 -4
  3. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/users_api.rb +30 -8
  4. data/lib/smplkit/_generated/app/spec/api/account_api_spec.rb +1 -0
  5. data/lib/smplkit/_generated/app/spec/api/users_api_spec.rb +2 -0
  6. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/search_api.rb +12 -12
  7. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{search_events_list_links.rb → event_search_list_links.rb} +3 -3
  8. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{search_events_list_meta.rb → event_search_list_meta.rb} +4 -4
  9. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{search_events_request.rb → event_search_request.rb} +4 -4
  10. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{search_events_response.rb → event_search_response.rb} +6 -6
  11. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{search_scan_meta.rb → event_search_scan_meta.rb} +3 -3
  12. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_delivery.rb +1 -1
  13. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client.rb +5 -5
  14. data/lib/smplkit/_generated/audit/spec/api/search_api_spec.rb +2 -2
  15. data/lib/smplkit/_generated/audit/spec/models/{search_events_list_links_spec.rb → event_search_list_links_spec.rb} +6 -6
  16. data/lib/smplkit/_generated/audit/spec/models/{search_events_list_meta_spec.rb → event_search_list_meta_spec.rb} +6 -6
  17. data/lib/smplkit/_generated/audit/spec/models/{search_events_request_spec.rb → event_search_request_spec.rb} +6 -6
  18. data/lib/smplkit/_generated/audit/spec/models/{search_events_response_spec.rb → event_search_response_spec.rb} +6 -6
  19. data/lib/smplkit/_generated/audit/spec/models/{search_scan_meta_spec.rb → event_search_scan_meta_spec.rb} +6 -6
  20. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 110e4d02a789cb69cd750efd173574d92a4722f9b4dade4d211da0fbee858cdf
4
- data.tar.gz: 603f7d32887b5c63a5107230b88d9217fa55ad29bc8c2b8b3e66045b241af2e6
3
+ metadata.gz: 2525023986218faca8b2c9120bc728b5d3b3522387b25a7278f47985491bd474
4
+ data.tar.gz: 1e29788adcb15dbe4c5f2b8a5a4cf038a6823cb88163d8bb8675a65a52b27270
5
5
  SHA512:
6
- metadata.gz: c769faa07f7ff57c0ed02679484b94bd35bcf81ed61bcbe2ebb0ba2c878caf0cf6edf1f4c9d526c0cf120e5635016e890f7dcdfc50af21fce1d0fc9d2c94ce2d
7
- data.tar.gz: d285e151313b2925964b73e6ee811eb0bd91076a01bbc2da1b1f040d21517b34f9d10659ada3c5d68a4b5bb10d57a12c9a6cfa104102ceaa8edc379a7b5ad417
6
+ metadata.gz: 3b6ea094b4fd72a8dfd650932d4481edf6469d68b10baddb081329f152e223fb04afc241dd53cf18b5db2cedbe0fabc80668b6169088aa6caef6d1038d55c0ae
7
+ data.tar.gz: '0483b27f3a10f7a3c449dd3d8af1a75c6f489af8a008c002f84346256bc7e735a4be100b9704345a1c8a7546cc4322a661a28c4e76c12fb217b559e7b6dde5a4'
@@ -192,21 +192,27 @@ module SmplkitGeneratedClient::App
192
192
 
193
193
  # Update Account Settings
194
194
  # Replace the current account's settings with the provided JSON object. Requires admin role.
195
+ # @param request_body [Hash<String, Object>]
195
196
  # @param [Hash] opts the optional parameters
196
197
  # @return [Hash<String, Object>]
197
- def put_account_settings(opts = {})
198
- data, _status_code, _headers = put_account_settings_with_http_info(opts)
198
+ def put_account_settings(request_body, opts = {})
199
+ data, _status_code, _headers = put_account_settings_with_http_info(request_body, opts)
199
200
  data
200
201
  end
201
202
 
202
203
  # Update Account Settings
203
204
  # Replace the current account&#39;s settings with the provided JSON object. Requires admin role.
205
+ # @param request_body [Hash<String, Object>]
204
206
  # @param [Hash] opts the optional parameters
205
207
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
206
- def put_account_settings_with_http_info(opts = {})
208
+ def put_account_settings_with_http_info(request_body, opts = {})
207
209
  if @api_client.config.debugging
208
210
  @api_client.config.logger.debug 'Calling API: AccountApi.put_account_settings ...'
209
211
  end
212
+ # verify the required parameter 'request_body' is set
213
+ if @api_client.config.client_side_validation && request_body.nil?
214
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling AccountApi.put_account_settings"
215
+ end
210
216
  # resource path
211
217
  local_var_path = '/api/v1/accounts/current/settings'
212
218
 
@@ -217,12 +223,17 @@ module SmplkitGeneratedClient::App
217
223
  header_params = opts[:header_params] || {}
218
224
  # HTTP header 'Accept' (if needed)
219
225
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
226
+ # HTTP header 'Content-Type'
227
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
228
+ if !content_type.nil?
229
+ header_params['Content-Type'] = content_type
230
+ end
220
231
 
221
232
  # form parameters
222
233
  form_params = opts[:form_params] || {}
223
234
 
224
235
  # http body (model)
225
- post_body = opts[:debug_body]
236
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
226
237
 
227
238
  # return_type
228
239
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
@@ -280,21 +280,27 @@ module SmplkitGeneratedClient::App
280
280
 
281
281
  # Update User Settings
282
282
  # Replace the current user's settings with the provided JSON object.
283
+ # @param request_body [Hash<String, Object>]
283
284
  # @param [Hash] opts the optional parameters
284
285
  # @return [Hash<String, Object>]
285
- def put_user_settings(opts = {})
286
- data, _status_code, _headers = put_user_settings_with_http_info(opts)
286
+ def put_user_settings(request_body, opts = {})
287
+ data, _status_code, _headers = put_user_settings_with_http_info(request_body, opts)
287
288
  data
288
289
  end
289
290
 
290
291
  # Update User Settings
291
292
  # Replace the current user&#39;s settings with the provided JSON object.
293
+ # @param request_body [Hash<String, Object>]
292
294
  # @param [Hash] opts the optional parameters
293
295
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
294
- def put_user_settings_with_http_info(opts = {})
296
+ def put_user_settings_with_http_info(request_body, opts = {})
295
297
  if @api_client.config.debugging
296
298
  @api_client.config.logger.debug 'Calling API: UsersApi.put_user_settings ...'
297
299
  end
300
+ # verify the required parameter 'request_body' is set
301
+ if @api_client.config.client_side_validation && request_body.nil?
302
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling UsersApi.put_user_settings"
303
+ end
298
304
  # resource path
299
305
  local_var_path = '/api/v1/users/current/settings'
300
306
 
@@ -305,12 +311,17 @@ module SmplkitGeneratedClient::App
305
311
  header_params = opts[:header_params] || {}
306
312
  # HTTP header 'Accept' (if needed)
307
313
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
314
+ # HTTP header 'Content-Type'
315
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
316
+ if !content_type.nil?
317
+ header_params['Content-Type'] = content_type
318
+ end
308
319
 
309
320
  # form parameters
310
321
  form_params = opts[:form_params] || {}
311
322
 
312
323
  # http body (model)
313
- post_body = opts[:debug_body]
324
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
314
325
 
315
326
  # return_type
316
327
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
@@ -338,19 +349,21 @@ module SmplkitGeneratedClient::App
338
349
  # Update User Setting by Key
339
350
  # Set a single key in the current user's settings. The key is stored as a flat literal key (dot-notation is NOT expanded to nested paths). Returns the full updated settings object.
340
351
  # @param key [String]
352
+ # @param request_body [Hash<String, Object>]
341
353
  # @param [Hash] opts the optional parameters
342
354
  # @return [Hash<String, Object>]
343
- def put_user_settings_key(key, opts = {})
344
- data, _status_code, _headers = put_user_settings_key_with_http_info(key, opts)
355
+ def put_user_settings_key(key, request_body, opts = {})
356
+ data, _status_code, _headers = put_user_settings_key_with_http_info(key, request_body, opts)
345
357
  data
346
358
  end
347
359
 
348
360
  # Update User Setting by Key
349
361
  # Set a single key in the current user&#39;s settings. The key is stored as a flat literal key (dot-notation is NOT expanded to nested paths). Returns the full updated settings object.
350
362
  # @param key [String]
363
+ # @param request_body [Hash<String, Object>]
351
364
  # @param [Hash] opts the optional parameters
352
365
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
353
- def put_user_settings_key_with_http_info(key, opts = {})
366
+ def put_user_settings_key_with_http_info(key, request_body, opts = {})
354
367
  if @api_client.config.debugging
355
368
  @api_client.config.logger.debug 'Calling API: UsersApi.put_user_settings_key ...'
356
369
  end
@@ -358,6 +371,10 @@ module SmplkitGeneratedClient::App
358
371
  if @api_client.config.client_side_validation && key.nil?
359
372
  fail ArgumentError, "Missing the required parameter 'key' when calling UsersApi.put_user_settings_key"
360
373
  end
374
+ # verify the required parameter 'request_body' is set
375
+ if @api_client.config.client_side_validation && request_body.nil?
376
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling UsersApi.put_user_settings_key"
377
+ end
361
378
  # resource path
362
379
  local_var_path = '/api/v1/users/current/settings/{key}'.sub('{key}', CGI.escape(key.to_s))
363
380
 
@@ -368,12 +385,17 @@ module SmplkitGeneratedClient::App
368
385
  header_params = opts[:header_params] || {}
369
386
  # HTTP header 'Accept' (if needed)
370
387
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
388
+ # HTTP header 'Content-Type'
389
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
390
+ if !content_type.nil?
391
+ header_params['Content-Type'] = content_type
392
+ end
371
393
 
372
394
  # form parameters
373
395
  form_params = opts[:form_params] || {}
374
396
 
375
397
  # http body (model)
376
- post_body = opts[:debug_body]
398
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
377
399
 
378
400
  # return_type
379
401
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
@@ -68,6 +68,7 @@ describe 'AccountApi' do
68
68
  # unit tests for put_account_settings
69
69
  # Update Account Settings
70
70
  # Replace the current account&#39;s settings with the provided JSON object. Requires admin role.
71
+ # @param request_body
71
72
  # @param [Hash] opts the optional parameters
72
73
  # @return [Hash<String, Object>]
73
74
  describe 'put_account_settings test' do
@@ -87,6 +87,7 @@ describe 'UsersApi' do
87
87
  # unit tests for put_user_settings
88
88
  # Update User Settings
89
89
  # Replace the current user&#39;s settings with the provided JSON object.
90
+ # @param request_body
90
91
  # @param [Hash] opts the optional parameters
91
92
  # @return [Hash<String, Object>]
92
93
  describe 'put_user_settings test' do
@@ -99,6 +100,7 @@ describe 'UsersApi' do
99
100
  # Update User Setting by Key
100
101
  # Set a single key in the current user&#39;s settings. The key is stored as a flat literal key (dot-notation is NOT expanded to nested paths). Returns the full updated settings object.
101
102
  # @param key
103
+ # @param request_body
102
104
  # @param [Hash] opts the optional parameters
103
105
  # @return [Hash<String, Object>]
104
106
  describe 'put_user_settings_key test' do
@@ -21,26 +21,26 @@ module SmplkitGeneratedClient::Audit
21
21
  end
22
22
  # Search Events
23
23
  # Search audit events with column filters and an optional JSON Logic expression. Without a JSON Logic `filter`: behaves like `GET /api/v1/events` with the same column filters. With a JSON Logic `filter`: the search is silently capped to the last 30 days by `occurred_at` (intersected with any explicit `filter[occurred_at]` the caller supplied), the column filters narrow the candidate set in SQL, and the JSON Logic expression runs in memory against each candidate row using the same `json-logic-qubit` evaluator the forwarder pipeline uses. Up to 50,000 rows are scanned per request; the response's `meta.scan` block reports the scan stats so a selective filter doesn't look like \"0 matches\" when the truth is \"ceiling reached.\"
24
- # @param search_events_request [SearchEventsRequest]
24
+ # @param event_search_request [EventSearchRequest]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [SearchEventsResponse]
27
- def search_events(search_events_request, opts = {})
28
- data, _status_code, _headers = search_events_with_http_info(search_events_request, opts)
26
+ # @return [EventSearchResponse]
27
+ def search_events(event_search_request, opts = {})
28
+ data, _status_code, _headers = search_events_with_http_info(event_search_request, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Search Events
33
33
  # Search audit events with column filters and an optional JSON Logic expression. Without a JSON Logic &#x60;filter&#x60;: behaves like &#x60;GET /api/v1/events&#x60; with the same column filters. With a JSON Logic &#x60;filter&#x60;: the search is silently capped to the last 30 days by &#x60;occurred_at&#x60; (intersected with any explicit &#x60;filter[occurred_at]&#x60; the caller supplied), the column filters narrow the candidate set in SQL, and the JSON Logic expression runs in memory against each candidate row using the same &#x60;json-logic-qubit&#x60; evaluator the forwarder pipeline uses. Up to 50,000 rows are scanned per request; the response&#39;s &#x60;meta.scan&#x60; block reports the scan stats so a selective filter doesn&#39;t look like \&quot;0 matches\&quot; when the truth is \&quot;ceiling reached.\&quot;
34
- # @param search_events_request [SearchEventsRequest]
34
+ # @param event_search_request [EventSearchRequest]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(SearchEventsResponse, Integer, Hash)>] SearchEventsResponse data, response status code and response headers
37
- def search_events_with_http_info(search_events_request, opts = {})
36
+ # @return [Array<(EventSearchResponse, Integer, Hash)>] EventSearchResponse data, response status code and response headers
37
+ def search_events_with_http_info(event_search_request, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: SearchApi.search_events ...'
40
40
  end
41
- # verify the required parameter 'search_events_request' is set
42
- if @api_client.config.client_side_validation && search_events_request.nil?
43
- fail ArgumentError, "Missing the required parameter 'search_events_request' when calling SearchApi.search_events"
41
+ # verify the required parameter 'event_search_request' is set
42
+ if @api_client.config.client_side_validation && event_search_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'event_search_request' when calling SearchApi.search_events"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/api/v1/search/events'
@@ -62,10 +62,10 @@ module SmplkitGeneratedClient::Audit
62
62
  form_params = opts[:form_params] || {}
63
63
 
64
64
  # http body (model)
65
- post_body = opts[:debug_body] || @api_client.object_to_http_body(search_events_request)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(event_search_request)
66
66
 
67
67
  # return_type
68
- return_type = opts[:debug_return_type] || 'SearchEventsResponse'
68
+ return_type = opts[:debug_return_type] || 'EventSearchResponse'
69
69
 
70
70
  # auth_names
71
71
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::Audit
17
- class SearchEventsListLinks < ApiModelBase
17
+ class EventSearchListLinks < ApiModelBase
18
18
  # Opaque cursor token for the next page. POST the same body with `page[after]` set to this value to fetch the next page. Unlike the URL-form `links.next` returned by `GET /api/v1/events`, this is a bare cursor token — the client must re-issue a POST with its body, which the URL form cannot capture.
19
19
  attr_accessor :_next
20
20
 
@@ -53,14 +53,14 @@ module SmplkitGeneratedClient::Audit
53
53
  # @param [Hash] attributes Model attributes in the form of hash
54
54
  def initialize(attributes = {})
55
55
  if (!attributes.is_a?(Hash))
56
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::SearchEventsListLinks` initialize method"
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::EventSearchListLinks` initialize method"
57
57
  end
58
58
 
59
59
  # check to see if the attribute exists and convert string to symbol for hash key
60
60
  acceptable_attribute_map = self.class.acceptable_attribute_map
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!acceptable_attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::SearchEventsListLinks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::EventSearchListLinks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::Audit
17
17
  # Cursor-pagination + scan meta for the search response. Mirrors `EventListMeta` (cursor pagination — `page_size` is the only pagination field) and adds the `scan` block above.
18
- class SearchEventsListMeta < ApiModelBase
18
+ class EventSearchListMeta < ApiModelBase
19
19
  attr_accessor :page_size
20
20
 
21
21
  attr_accessor :scan
@@ -42,7 +42,7 @@ module SmplkitGeneratedClient::Audit
42
42
  def self.openapi_types
43
43
  {
44
44
  :'page_size' => :'Integer',
45
- :'scan' => :'SearchScanMeta'
45
+ :'scan' => :'EventSearchScanMeta'
46
46
  }
47
47
  end
48
48
 
@@ -56,14 +56,14 @@ module SmplkitGeneratedClient::Audit
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
58
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::SearchEventsListMeta` initialize method"
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::EventSearchListMeta` initialize method"
60
60
  end
61
61
 
62
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
63
  acceptable_attribute_map = self.class.acceptable_attribute_map
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!acceptable_attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::SearchEventsListMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::EventSearchListMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -15,8 +15,8 @@ require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::Audit
17
17
  # Request body for ``POST /api/v1/search/events``. Mirrors every column filter accepted by ``GET /api/v1/events`` with identical semantics, and adds a top-level ``filter`` field carrying a JSON Logic expression. When ``filter`` is present the search is silently capped to the last 30 days by ``occurred_at``; the expression is then evaluated in memory against each row that passes the column filters using the same ``json-logic-qubit`` evaluator that runs in the forwarder pipeline (so search results match what would be forwarded). Filter-combination rules match ``GET /api/v1/events`` exactly: - ``filter[resource_id]`` must be accompanied by ``filter[resource_type]`` — the index is keyed on the pair. - ``filter[search]`` must be accompanied by either ``filter[occurred_at]`` or ``filter[resource_type]`` + ``filter[resource_id]`` — substring matching has no index, so an unbounded substring scan is rejected.
18
- class SearchEventsRequest < ApiModelBase
19
- # The HTTP request as it was sent to the destination. Header values are redacted.
18
+ class EventSearchRequest < ApiModelBase
19
+ # Optional JSON Logic expression evaluated against each row after column filters narrow the candidate set. Null, absent, or an empty object disables JSON Logic filtering. When present, the search is silently capped to the last 30 days by `occurred_at` (intersected with any explicit `filter[occurred_at]` the caller supplied).
20
20
  attr_accessor :filter
21
21
 
22
22
  # Exact match on the event's `action` field.
@@ -112,14 +112,14 @@ module SmplkitGeneratedClient::Audit
112
112
  # @param [Hash] attributes Model attributes in the form of hash
113
113
  def initialize(attributes = {})
114
114
  if (!attributes.is_a?(Hash))
115
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::SearchEventsRequest` initialize method"
115
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::EventSearchRequest` initialize method"
116
116
  end
117
117
 
118
118
  # check to see if the attribute exists and convert string to symbol for hash key
119
119
  acceptable_attribute_map = self.class.acceptable_attribute_map
120
120
  attributes = attributes.each_with_object({}) { |(k, v), h|
121
121
  if (!acceptable_attribute_map.key?(k.to_sym))
122
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::SearchEventsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
122
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::EventSearchRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
123
123
  end
124
124
  h[k.to_sym] = v
125
125
  }
@@ -14,8 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::Audit
17
- # JSON:API list envelope returned by the search endpoint. Structurally identical to ``EventListResponse`` from the list endpoint — the only difference is the extra `scan` block inside `meta` (`SearchEventsListMeta` vs `EventListMeta`).
18
- class SearchEventsResponse < ApiModelBase
17
+ # JSON:API list envelope returned by the search endpoint. Structurally identical to ``EventListResponse`` from the list endpoint — the only difference is the extra `scan` block inside `meta` (`EventSearchListMeta` vs `EventListMeta`).
18
+ class EventSearchResponse < ApiModelBase
19
19
  attr_accessor :data
20
20
 
21
21
  attr_accessor :meta
@@ -45,8 +45,8 @@ module SmplkitGeneratedClient::Audit
45
45
  def self.openapi_types
46
46
  {
47
47
  :'data' => :'Array<EventResource>',
48
- :'meta' => :'SearchEventsListMeta',
49
- :'links' => :'SearchEventsListLinks'
48
+ :'meta' => :'EventSearchListMeta',
49
+ :'links' => :'EventSearchListLinks'
50
50
  }
51
51
  end
52
52
 
@@ -61,14 +61,14 @@ module SmplkitGeneratedClient::Audit
61
61
  # @param [Hash] attributes Model attributes in the form of hash
62
62
  def initialize(attributes = {})
63
63
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::SearchEventsResponse` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::EventSearchResponse` initialize method"
65
65
  end
66
66
 
67
67
  # check to see if the attribute exists and convert string to symbol for hash key
68
68
  acceptable_attribute_map = self.class.acceptable_attribute_map
69
69
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
70
  if (!acceptable_attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::SearchEventsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::EventSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
72
  end
73
73
  h[k.to_sym] = v
74
74
  }
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::Audit
17
17
  # Scan statistics for a search response. Exposed so a selective JSON Logic filter doesn't silently look like \"0 matches\" when the truth is \"the scan ceiling was reached before the filter had a chance to find page[size] matches.\"
18
- class SearchScanMeta < ApiModelBase
18
+ class EventSearchScanMeta < ApiModelBase
19
19
  # Rows scanned after column filters narrowed the candidate set, before the JSON Logic expression was applied.
20
20
  attr_accessor :scanned
21
21
 
@@ -63,14 +63,14 @@ module SmplkitGeneratedClient::Audit
63
63
  # @param [Hash] attributes Model attributes in the form of hash
64
64
  def initialize(attributes = {})
65
65
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::SearchScanMeta` initialize method"
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Audit::EventSearchScanMeta` initialize method"
67
67
  end
68
68
 
69
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
70
  acceptable_attribute_map = self.class.acceptable_attribute_map
71
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
72
72
  if (!acceptable_attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::SearchScanMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Audit::EventSearchScanMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
74
  end
75
75
  h[k.to_sym] = v
76
76
  }
@@ -28,7 +28,7 @@ module SmplkitGeneratedClient::Audit
28
28
  # Delivery outcome. `SUCCEEDED` and `FAILED` are the live-delivery outcomes; `FILTERED_OUT` is recorded when the forwarder's filter rejected the event; `SKIPPED_DO_NOT_FORWARD` is recorded when the event was emitted with `do_not_forward=true`.
29
29
  attr_accessor :status
30
30
 
31
- # The HTTP request as it was sent to the destination. Header values are redacted.
31
+ # JSON Logic expression evaluated against each event. The event is delivered only if the expression returns truthy. Omit to deliver every event.
32
32
  attr_accessor :request
33
33
 
34
34
  # HTTP status code returned by the destination.
@@ -28,6 +28,11 @@ require 'smplkit_audit_client/models/event_list_response'
28
28
  require 'smplkit_audit_client/models/event_request'
29
29
  require 'smplkit_audit_client/models/event_resource'
30
30
  require 'smplkit_audit_client/models/event_response'
31
+ require 'smplkit_audit_client/models/event_search_list_links'
32
+ require 'smplkit_audit_client/models/event_search_list_meta'
33
+ require 'smplkit_audit_client/models/event_search_request'
34
+ require 'smplkit_audit_client/models/event_search_response'
35
+ require 'smplkit_audit_client/models/event_search_scan_meta'
31
36
  require 'smplkit_audit_client/models/forwarder'
32
37
  require 'smplkit_audit_client/models/forwarder_delivery'
33
38
  require 'smplkit_audit_client/models/forwarder_delivery_list_links'
@@ -48,11 +53,6 @@ require 'smplkit_audit_client/models/resource_type_attributes'
48
53
  require 'smplkit_audit_client/models/resource_type_list_response'
49
54
  require 'smplkit_audit_client/models/resource_type_resource'
50
55
  require 'smplkit_audit_client/models/retry_failed_deliveries_summary'
51
- require 'smplkit_audit_client/models/search_events_list_links'
52
- require 'smplkit_audit_client/models/search_events_list_meta'
53
- require 'smplkit_audit_client/models/search_events_request'
54
- require 'smplkit_audit_client/models/search_events_response'
55
- require 'smplkit_audit_client/models/search_scan_meta'
56
56
  require 'smplkit_audit_client/models/test_forwarder_request'
57
57
  require 'smplkit_audit_client/models/test_forwarder_response'
58
58
  require 'smplkit_audit_client/models/usage_attributes'
@@ -35,9 +35,9 @@ describe 'SearchApi' do
35
35
  # unit tests for search_events
36
36
  # Search Events
37
37
  # Search audit events with column filters and an optional JSON Logic expression. Without a JSON Logic &#x60;filter&#x60;: behaves like &#x60;GET /api/v1/events&#x60; with the same column filters. With a JSON Logic &#x60;filter&#x60;: the search is silently capped to the last 30 days by &#x60;occurred_at&#x60; (intersected with any explicit &#x60;filter[occurred_at]&#x60; the caller supplied), the column filters narrow the candidate set in SQL, and the JSON Logic expression runs in memory against each candidate row using the same &#x60;json-logic-qubit&#x60; evaluator the forwarder pipeline uses. Up to 50,000 rows are scanned per request; the response&#39;s &#x60;meta.scan&#x60; block reports the scan stats so a selective filter doesn&#39;t look like \&quot;0 matches\&quot; when the truth is \&quot;ceiling reached.\&quot;
38
- # @param search_events_request
38
+ # @param event_search_request
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [SearchEventsResponse]
40
+ # @return [EventSearchResponse]
41
41
  describe 'search_events test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::Audit::SearchEventsListLinks
17
+ # Unit tests for SmplkitGeneratedClient::Audit::EventSearchListLinks
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::SearchEventsListLinks do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::SearchEventsListLinks.new }
20
+ describe SmplkitGeneratedClient::Audit::EventSearchListLinks do
21
+ #let(:instance) { SmplkitGeneratedClient::Audit::EventSearchListLinks.new }
22
22
 
23
- describe 'test an instance of SearchEventsListLinks' do
24
- it 'should create an instance of SearchEventsListLinks' do
23
+ describe 'test an instance of EventSearchListLinks' do
24
+ it 'should create an instance of EventSearchListLinks' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::SearchEventsListLinks)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::EventSearchListLinks)
27
27
  end
28
28
  end
29
29
 
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::Audit::SearchEventsListMeta
17
+ # Unit tests for SmplkitGeneratedClient::Audit::EventSearchListMeta
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::SearchEventsListMeta do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::SearchEventsListMeta.new }
20
+ describe SmplkitGeneratedClient::Audit::EventSearchListMeta do
21
+ #let(:instance) { SmplkitGeneratedClient::Audit::EventSearchListMeta.new }
22
22
 
23
- describe 'test an instance of SearchEventsListMeta' do
24
- it 'should create an instance of SearchEventsListMeta' do
23
+ describe 'test an instance of EventSearchListMeta' do
24
+ it 'should create an instance of EventSearchListMeta' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::SearchEventsListMeta)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::EventSearchListMeta)
27
27
  end
28
28
  end
29
29
 
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::Audit::SearchEventsRequest
17
+ # Unit tests for SmplkitGeneratedClient::Audit::EventSearchRequest
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::SearchEventsRequest do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::SearchEventsRequest.new }
20
+ describe SmplkitGeneratedClient::Audit::EventSearchRequest do
21
+ #let(:instance) { SmplkitGeneratedClient::Audit::EventSearchRequest.new }
22
22
 
23
- describe 'test an instance of SearchEventsRequest' do
24
- it 'should create an instance of SearchEventsRequest' do
23
+ describe 'test an instance of EventSearchRequest' do
24
+ it 'should create an instance of EventSearchRequest' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::SearchEventsRequest)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::EventSearchRequest)
27
27
  end
28
28
  end
29
29
 
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::Audit::SearchEventsResponse
17
+ # Unit tests for SmplkitGeneratedClient::Audit::EventSearchResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::SearchEventsResponse do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::SearchEventsResponse.new }
20
+ describe SmplkitGeneratedClient::Audit::EventSearchResponse do
21
+ #let(:instance) { SmplkitGeneratedClient::Audit::EventSearchResponse.new }
22
22
 
23
- describe 'test an instance of SearchEventsResponse' do
24
- it 'should create an instance of SearchEventsResponse' do
23
+ describe 'test an instance of EventSearchResponse' do
24
+ it 'should create an instance of EventSearchResponse' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::SearchEventsResponse)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::EventSearchResponse)
27
27
  end
28
28
  end
29
29
 
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::Audit::SearchScanMeta
17
+ # Unit tests for SmplkitGeneratedClient::Audit::EventSearchScanMeta
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::SearchScanMeta do
21
- #let(:instance) { SmplkitGeneratedClient::Audit::SearchScanMeta.new }
20
+ describe SmplkitGeneratedClient::Audit::EventSearchScanMeta do
21
+ #let(:instance) { SmplkitGeneratedClient::Audit::EventSearchScanMeta.new }
22
22
 
23
- describe 'test an instance of SearchScanMeta' do
24
- it 'should create an instance of SearchScanMeta' do
23
+ describe 'test an instance of EventSearchScanMeta' do
24
+ it 'should create an instance of EventSearchScanMeta' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::SearchScanMeta)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Audit::EventSearchScanMeta)
27
27
  end
28
28
  end
29
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.28
4
+ version: 3.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC
@@ -439,6 +439,11 @@ files:
439
439
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_request.rb
440
440
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_resource.rb
441
441
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_response.rb
442
+ - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_list_links.rb
443
+ - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_list_meta.rb
444
+ - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_request.rb
445
+ - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_response.rb
446
+ - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_scan_meta.rb
442
447
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder.rb
443
448
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_delivery.rb
444
449
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_delivery_list_links.rb
@@ -459,11 +464,6 @@ files:
459
464
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_list_response.rb
460
465
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/resource_type_resource.rb
461
466
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/retry_failed_deliveries_summary.rb
462
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/search_events_list_links.rb
463
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/search_events_list_meta.rb
464
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/search_events_request.rb
465
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/search_events_response.rb
466
- - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/search_scan_meta.rb
467
467
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb
468
468
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_response.rb
469
469
  - lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/usage_attributes.rb
@@ -485,6 +485,11 @@ files:
485
485
  - lib/smplkit/_generated/audit/spec/models/event_request_spec.rb
486
486
  - lib/smplkit/_generated/audit/spec/models/event_resource_spec.rb
487
487
  - lib/smplkit/_generated/audit/spec/models/event_response_spec.rb
488
+ - lib/smplkit/_generated/audit/spec/models/event_search_list_links_spec.rb
489
+ - lib/smplkit/_generated/audit/spec/models/event_search_list_meta_spec.rb
490
+ - lib/smplkit/_generated/audit/spec/models/event_search_request_spec.rb
491
+ - lib/smplkit/_generated/audit/spec/models/event_search_response_spec.rb
492
+ - lib/smplkit/_generated/audit/spec/models/event_search_scan_meta_spec.rb
488
493
  - lib/smplkit/_generated/audit/spec/models/event_spec.rb
489
494
  - lib/smplkit/_generated/audit/spec/models/forwarder_delivery_list_links_spec.rb
490
495
  - lib/smplkit/_generated/audit/spec/models/forwarder_delivery_list_meta_spec.rb
@@ -506,11 +511,6 @@ files:
506
511
  - lib/smplkit/_generated/audit/spec/models/resource_type_list_response_spec.rb
507
512
  - lib/smplkit/_generated/audit/spec/models/resource_type_resource_spec.rb
508
513
  - lib/smplkit/_generated/audit/spec/models/retry_failed_deliveries_summary_spec.rb
509
- - lib/smplkit/_generated/audit/spec/models/search_events_list_links_spec.rb
510
- - lib/smplkit/_generated/audit/spec/models/search_events_list_meta_spec.rb
511
- - lib/smplkit/_generated/audit/spec/models/search_events_request_spec.rb
512
- - lib/smplkit/_generated/audit/spec/models/search_events_response_spec.rb
513
- - lib/smplkit/_generated/audit/spec/models/search_scan_meta_spec.rb
514
514
  - lib/smplkit/_generated/audit/spec/models/test_forwarder_request_spec.rb
515
515
  - lib/smplkit/_generated/audit/spec/models/test_forwarder_response_spec.rb
516
516
  - lib/smplkit/_generated/audit/spec/models/usage_attributes_spec.rb