files.com 1.1.621 → 1.1.623

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.
@@ -437,7 +437,7 @@ module Files
437
437
  @attributes[:public_keys_count] = value
438
438
  end
439
439
 
440
- # boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
440
+ # boolean - Deprecated. Use notify_on_all_site_warnings and granular failure notification preferences instead.
441
441
  def receive_admin_alerts
442
442
  @attributes[:receive_admin_alerts]
443
443
  end
@@ -446,6 +446,78 @@ module Files
446
446
  @attributes[:receive_admin_alerts] = value
447
447
  end
448
448
 
449
+ # boolean - Should the user receive site warnings via email?
450
+ def notify_on_all_site_warnings
451
+ @attributes[:notify_on_all_site_warnings]
452
+ end
453
+
454
+ def notify_on_all_site_warnings=(value)
455
+ @attributes[:notify_on_all_site_warnings] = value
456
+ end
457
+
458
+ # boolean - Should the user receive sso/scim/ldap configuration/sync failures via email?
459
+ def notify_on_all_sso_failures
460
+ @attributes[:notify_on_all_sso_failures]
461
+ end
462
+
463
+ def notify_on_all_sso_failures=(value)
464
+ @attributes[:notify_on_all_sso_failures] = value
465
+ end
466
+
467
+ # boolean - Should the user receive user security events via email?
468
+ def notify_on_all_user_security_events
469
+ @attributes[:notify_on_all_user_security_events]
470
+ end
471
+
472
+ def notify_on_all_user_security_events=(value)
473
+ @attributes[:notify_on_all_user_security_events] = value
474
+ end
475
+
476
+ # boolean - Should the user receive pending work failures via email?
477
+ def notify_on_all_pending_work_failures
478
+ @attributes[:notify_on_all_pending_work_failures]
479
+ end
480
+
481
+ def notify_on_all_pending_work_failures=(value)
482
+ @attributes[:notify_on_all_pending_work_failures] = value
483
+ end
484
+
485
+ # boolean - Should the user receive siem failures via email?
486
+ def notify_on_all_siem_http_destination_failures
487
+ @attributes[:notify_on_all_siem_http_destination_failures]
488
+ end
489
+
490
+ def notify_on_all_siem_http_destination_failures=(value)
491
+ @attributes[:notify_on_all_siem_http_destination_failures] = value
492
+ end
493
+
494
+ # boolean - Should the user receive sync failures via email?
495
+ def notify_on_all_sync_failures
496
+ @attributes[:notify_on_all_sync_failures]
497
+ end
498
+
499
+ def notify_on_all_sync_failures=(value)
500
+ @attributes[:notify_on_all_sync_failures] = value
501
+ end
502
+
503
+ # boolean - Should the user receive automation failures via email?
504
+ def notify_on_all_automation_failures
505
+ @attributes[:notify_on_all_automation_failures]
506
+ end
507
+
508
+ def notify_on_all_automation_failures=(value)
509
+ @attributes[:notify_on_all_automation_failures] = value
510
+ end
511
+
512
+ # boolean - Should the user receive expectation failures and misses via email?
513
+ def notify_on_all_expectation_failures
514
+ @attributes[:notify_on_all_expectation_failures]
515
+ end
516
+
517
+ def notify_on_all_expectation_failures=(value)
518
+ @attributes[:notify_on_all_expectation_failures] = value
519
+ end
520
+
449
521
  # string - 2FA required setting
450
522
  def require_2fa
451
523
  @attributes[:require_2fa]
@@ -858,7 +930,15 @@ module Files
858
930
  # password_validity_days - int64 - Number of days to allow user to use the same password
859
931
  # primary_group_id - int64 - Primary group ID for Group Admin scoping
860
932
  # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
861
- # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
933
+ # receive_admin_alerts - boolean - Deprecated. Use notify_on_all_site_warnings and granular failure notification preferences instead.
934
+ # notify_on_all_site_warnings - boolean - Should the user receive site warnings via email?
935
+ # notify_on_all_sso_failures - boolean - Should the user receive sso/scim/ldap configuration/sync failures via email?
936
+ # notify_on_all_user_security_events - boolean - Should the user receive user security events via email?
937
+ # notify_on_all_pending_work_failures - boolean - Should the user receive pending work failures via email?
938
+ # notify_on_all_siem_http_destination_failures - boolean - Should the user receive siem failures via email?
939
+ # notify_on_all_sync_failures - boolean - Should the user receive sync failures via email?
940
+ # notify_on_all_automation_failures - boolean - Should the user receive automation failures via email?
941
+ # notify_on_all_expectation_failures - boolean - Should the user receive expectation failures and misses via email?
862
942
  # require_login_by - string - Require user to login by specified date otherwise it will be disabled.
863
943
  # require_password_change - boolean - Is a password change required upon next user login?
864
944
  # restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
@@ -1037,7 +1117,15 @@ module Files
1037
1117
  # password_validity_days - int64 - Number of days to allow user to use the same password
1038
1118
  # primary_group_id - int64 - Primary group ID for Group Admin scoping
1039
1119
  # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
1040
- # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
1120
+ # receive_admin_alerts - boolean - Deprecated. Use notify_on_all_site_warnings and granular failure notification preferences instead.
1121
+ # notify_on_all_site_warnings - boolean - Should the user receive site warnings via email?
1122
+ # notify_on_all_sso_failures - boolean - Should the user receive sso/scim/ldap configuration/sync failures via email?
1123
+ # notify_on_all_user_security_events - boolean - Should the user receive user security events via email?
1124
+ # notify_on_all_pending_work_failures - boolean - Should the user receive pending work failures via email?
1125
+ # notify_on_all_siem_http_destination_failures - boolean - Should the user receive siem failures via email?
1126
+ # notify_on_all_sync_failures - boolean - Should the user receive sync failures via email?
1127
+ # notify_on_all_automation_failures - boolean - Should the user receive automation failures via email?
1128
+ # notify_on_all_expectation_failures - boolean - Should the user receive expectation failures and misses via email?
1041
1129
  # require_login_by - string - Require user to login by specified date otherwise it will be disabled.
1042
1130
  # require_password_change - boolean - Is a password change required upon next user login?
1043
1131
  # restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
@@ -1166,7 +1254,15 @@ module Files
1166
1254
  # password_validity_days - int64 - Number of days to allow user to use the same password
1167
1255
  # primary_group_id - int64 - Primary group ID for Group Admin scoping
1168
1256
  # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
1169
- # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
1257
+ # receive_admin_alerts - boolean - Deprecated. Use notify_on_all_site_warnings and granular failure notification preferences instead.
1258
+ # notify_on_all_site_warnings - boolean - Should the user receive site warnings via email?
1259
+ # notify_on_all_sso_failures - boolean - Should the user receive sso/scim/ldap configuration/sync failures via email?
1260
+ # notify_on_all_user_security_events - boolean - Should the user receive user security events via email?
1261
+ # notify_on_all_pending_work_failures - boolean - Should the user receive pending work failures via email?
1262
+ # notify_on_all_siem_http_destination_failures - boolean - Should the user receive siem failures via email?
1263
+ # notify_on_all_sync_failures - boolean - Should the user receive sync failures via email?
1264
+ # notify_on_all_automation_failures - boolean - Should the user receive automation failures via email?
1265
+ # notify_on_all_expectation_failures - boolean - Should the user receive expectation failures and misses via email?
1170
1266
  # require_login_by - string - Require user to login by specified date otherwise it will be disabled.
1171
1267
  # require_password_change - boolean - Is a password change required upon next user login?
1172
1268
  # restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
@@ -0,0 +1,91 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class UserSecurityEvent
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Event ID
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ # string - Type of user security event being recorded.
18
+ def event_type
19
+ @attributes[:event_type]
20
+ end
21
+
22
+ # string - Event body.
23
+ def body
24
+ @attributes[:body]
25
+ end
26
+
27
+ # array(string) - Event errors.
28
+ def event_errors
29
+ @attributes[:event_errors]
30
+ end
31
+
32
+ # date-time - Event create date/time.
33
+ def created_at
34
+ @attributes[:created_at]
35
+ end
36
+
37
+ # string - Link to log file.
38
+ def body_url
39
+ @attributes[:body_url]
40
+ end
41
+
42
+ # int64 - User ID.
43
+ def user_id
44
+ @attributes[:user_id]
45
+ end
46
+
47
+ # Parameters:
48
+ # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
49
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
50
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `user_id`.
51
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at` and `user_id`. Valid field combinations are `[ user_id, created_at ]`.
52
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
53
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
54
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
55
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
56
+ def self.list(params = {}, options = {})
57
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
58
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
59
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
60
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
61
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
62
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
63
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
64
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
65
+
66
+ List.new(UserSecurityEvent, params) do
67
+ Api.send_request("/user_security_events", :get, params, options)
68
+ end
69
+ end
70
+
71
+ def self.all(params = {}, options = {})
72
+ list(params, options)
73
+ end
74
+
75
+ # Parameters:
76
+ # id (required) - int64 - User Security Event ID.
77
+ def self.find(id, params = {}, options = {})
78
+ params ||= {}
79
+ params[:id] = id
80
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
81
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
82
+
83
+ response, options = Api.send_request("/user_security_events/#{params[:id]}", :get, params, options)
84
+ UserSecurityEvent.new(response.data, options)
85
+ end
86
+
87
+ def self.get(id, params = {}, options = {})
88
+ find(id, params, options)
89
+ end
90
+ end
91
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.621"
4
+ VERSION = "1.1.623"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -65,6 +65,11 @@ require "files.com/models/dns_record"
65
65
  require "files.com/models/email_incoming_message"
66
66
  require "files.com/models/email_log"
67
67
  require "files.com/models/errors"
68
+ require "files.com/models/event_channel"
69
+ require "files.com/models/event_delivery_attempt"
70
+ require "files.com/models/event_record"
71
+ require "files.com/models/event_subscription"
72
+ require "files.com/models/event_target"
68
73
  require "files.com/models/exavault_api_request_log"
69
74
  require "files.com/models/expectation"
70
75
  require "files.com/models/expectation_evaluation"
@@ -110,6 +115,7 @@ require "files.com/models/partner_site"
110
115
  require "files.com/models/partner_site_request"
111
116
  require "files.com/models/payment"
112
117
  require "files.com/models/payment_line_item"
118
+ require "files.com/models/pending_work_event"
113
119
  require "files.com/models/permission"
114
120
  require "files.com/models/preview"
115
121
  require "files.com/models/project"
@@ -131,9 +137,11 @@ require "files.com/models/sftp_host_key"
131
137
  require "files.com/models/share_group"
132
138
  require "files.com/models/share_group_member"
133
139
  require "files.com/models/siem_http_destination"
140
+ require "files.com/models/siem_http_destination_event"
134
141
  require "files.com/models/site"
135
142
  require "files.com/models/site_subdomain_redirect"
136
143
  require "files.com/models/snapshot"
144
+ require "files.com/models/sso_event"
137
145
  require "files.com/models/sso_strategy"
138
146
  require "files.com/models/status"
139
147
  require "files.com/models/style"
@@ -148,6 +156,7 @@ require "files.com/models/user"
148
156
  require "files.com/models/user_cipher_use"
149
157
  require "files.com/models/user_lifecycle_rule"
150
158
  require "files.com/models/user_request"
159
+ require "files.com/models/user_security_event"
151
160
  require "files.com/models/user_sftp_client_use"
152
161
  require "files.com/models/web_dav_action_log"
153
162
  require "files.com/models/webhook_test"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.621
4
+ version: 1.1.623
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-17 00:00:00.000000000 Z
11
+ date: 2026-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -203,6 +203,11 @@ files:
203
203
  - docs/email_incoming_message.md
204
204
  - docs/email_log.md
205
205
  - docs/errors.md
206
+ - docs/event_channel.md
207
+ - docs/event_delivery_attempt.md
208
+ - docs/event_record.md
209
+ - docs/event_subscription.md
210
+ - docs/event_target.md
206
211
  - docs/exavault_api_request_log.md
207
212
  - docs/expectation.md
208
213
  - docs/expectation_evaluation.md
@@ -249,6 +254,7 @@ files:
249
254
  - docs/partner_site_request.md
250
255
  - docs/payment.md
251
256
  - docs/payment_line_item.md
257
+ - docs/pending_work_event.md
252
258
  - docs/permission.md
253
259
  - docs/preview.md
254
260
  - docs/project.md
@@ -270,9 +276,11 @@ files:
270
276
  - docs/share_group.md
271
277
  - docs/share_group_member.md
272
278
  - docs/siem_http_destination.md
279
+ - docs/siem_http_destination_event.md
273
280
  - docs/site.md
274
281
  - docs/site_subdomain_redirect.md
275
282
  - docs/snapshot.md
283
+ - docs/sso_event.md
276
284
  - docs/sso_strategy.md
277
285
  - docs/status.md
278
286
  - docs/style.md
@@ -287,6 +295,7 @@ files:
287
295
  - docs/user_cipher_use.md
288
296
  - docs/user_lifecycle_rule.md
289
297
  - docs/user_request.md
298
+ - docs/user_security_event.md
290
299
  - docs/user_sftp_client_use.md
291
300
  - docs/web_dav_action_log.md
292
301
  - docs/webhook_test.md
@@ -332,6 +341,11 @@ files:
332
341
  - lib/files.com/models/email_incoming_message.rb
333
342
  - lib/files.com/models/email_log.rb
334
343
  - lib/files.com/models/errors.rb
344
+ - lib/files.com/models/event_channel.rb
345
+ - lib/files.com/models/event_delivery_attempt.rb
346
+ - lib/files.com/models/event_record.rb
347
+ - lib/files.com/models/event_subscription.rb
348
+ - lib/files.com/models/event_target.rb
335
349
  - lib/files.com/models/exavault_api_request_log.rb
336
350
  - lib/files.com/models/expectation.rb
337
351
  - lib/files.com/models/expectation_evaluation.rb
@@ -378,6 +392,7 @@ files:
378
392
  - lib/files.com/models/partner_site_request.rb
379
393
  - lib/files.com/models/payment.rb
380
394
  - lib/files.com/models/payment_line_item.rb
395
+ - lib/files.com/models/pending_work_event.rb
381
396
  - lib/files.com/models/permission.rb
382
397
  - lib/files.com/models/preview.rb
383
398
  - lib/files.com/models/project.rb
@@ -399,9 +414,11 @@ files:
399
414
  - lib/files.com/models/share_group.rb
400
415
  - lib/files.com/models/share_group_member.rb
401
416
  - lib/files.com/models/siem_http_destination.rb
417
+ - lib/files.com/models/siem_http_destination_event.rb
402
418
  - lib/files.com/models/site.rb
403
419
  - lib/files.com/models/site_subdomain_redirect.rb
404
420
  - lib/files.com/models/snapshot.rb
421
+ - lib/files.com/models/sso_event.rb
405
422
  - lib/files.com/models/sso_strategy.rb
406
423
  - lib/files.com/models/status.rb
407
424
  - lib/files.com/models/style.rb
@@ -416,6 +433,7 @@ files:
416
433
  - lib/files.com/models/user_cipher_use.rb
417
434
  - lib/files.com/models/user_lifecycle_rule.rb
418
435
  - lib/files.com/models/user_request.rb
436
+ - lib/files.com/models/user_security_event.rb
419
437
  - lib/files.com/models/user_sftp_client_use.rb
420
438
  - lib/files.com/models/web_dav_action_log.rb
421
439
  - lib/files.com/models/webhook_test.rb