files.com 1.2.98 → 1.2.100

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 (43) hide show
  1. package/_VERSION +1 -1
  2. package/docs/Errors.md +2 -0
  3. package/docs/models/Action.md +2 -0
  4. package/docs/models/ApiRequestLog.md +3 -4
  5. package/docs/models/App.md +1 -5
  6. package/docs/models/AutomationLog.md +1 -4
  7. package/docs/models/BandwidthSnapshot.md +1 -8
  8. package/docs/models/Behavior.md +1 -5
  9. package/docs/models/BundleNotification.md +1 -4
  10. package/docs/models/EmailIncomingMessage.md +1 -9
  11. package/docs/models/EmailLog.md +1 -4
  12. package/docs/models/ExavaultApiRequestLog.md +1 -4
  13. package/docs/models/ExternalEvent.md +1 -9
  14. package/docs/models/FileMigrationLog.md +1 -4
  15. package/docs/models/FtpActionLog.md +1 -4
  16. package/docs/models/Group.md +1 -6
  17. package/docs/models/History.md +2 -0
  18. package/docs/models/HistoryExportResult.md +2 -0
  19. package/docs/models/OutboundConnectionLog.md +1 -4
  20. package/docs/models/PublicHostingRequestLog.md +1 -4
  21. package/docs/models/RemoteBandwidthSnapshot.md +1 -8
  22. package/docs/models/SettingsChange.md +3 -4
  23. package/docs/models/SftpActionLog.md +1 -4
  24. package/docs/models/Site.md +2 -1
  25. package/docs/models/SyncLog.md +1 -4
  26. package/docs/models/UsageDailySnapshot.md +1 -8
  27. package/docs/models/User.md +1 -11
  28. package/docs/models/WebDavActionLog.md +1 -4
  29. package/lib/Errors.js +546 -522
  30. package/lib/Files.js +1 -1
  31. package/lib/models/Action.js +4 -0
  32. package/lib/models/ApiRequestLog.js +4 -0
  33. package/lib/models/History.js +4 -0
  34. package/lib/models/HistoryExportResult.js +4 -0
  35. package/lib/models/SettingsChange.js +4 -0
  36. package/package.json +1 -1
  37. package/src/Errors.js +2 -0
  38. package/src/Files.js +1 -1
  39. package/src/models/Action.js +3 -0
  40. package/src/models/ApiRequestLog.js +3 -0
  41. package/src/models/History.js +3 -0
  42. package/src/models/HistoryExportResult.js +3 -0
  43. package/src/models/SettingsChange.js +3 -0
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.98
1
+ 1.2.100
package/docs/Errors.md CHANGED
@@ -94,6 +94,7 @@ These errors are derived from the error groups listed above.
94
94
  ### NotAuthenticated_InvalidCredentialsError
95
95
  ### NotAuthenticated_InvalidOauthError
96
96
  ### NotAuthenticated_InvalidOrExpiredCodeError
97
+ ### NotAuthenticated_InvalidSessionError
97
98
  ### NotAuthenticated_InvalidUsernameOrPasswordError
98
99
  ### NotAuthenticated_LockedOutError
99
100
  ### NotAuthenticated_LockoutRegionMismatchError
@@ -116,6 +117,7 @@ These errors are derived from the error groups listed above.
116
117
  ### NotAuthorized_FullPermissionRequiredError
117
118
  ### NotAuthorized_HistoryPermissionRequiredError
118
119
  ### NotAuthorized_InsufficientPermissionForParamsError
120
+ ### NotAuthorized_InsufficientPermissionForSiteError
119
121
  ### NotAuthorized_MustAuthenticateWithApiKeyError
120
122
  ### NotAuthorized_NeedAdminPermissionForInboxError
121
123
  ### NotAuthorized_NonAdminsMustQueryByFolderOrPathError
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "user_id": 1,
18
18
  "username": "user",
19
+ "user_is_from_parent_site": true,
19
20
  "action": "create",
20
21
  "failure_type": "none",
21
22
  "interface": "web"
@@ -32,6 +33,7 @@
32
33
  * `targets` (array(object)): Targets
33
34
  * `user_id` (int64): User ID
34
35
  * `username` (string): Username
36
+ * `user_is_from_parent_site` (boolean): true if this change was performed by a user on a parent site.
35
37
  * `action` (string): Type of action
36
38
  * `failure_type` (string): Failure type. If action was a user login or session failure, why did it fail?
37
39
  * `interface` (string): Interface on which this action occurred.
@@ -9,6 +9,7 @@
9
9
  "api_key_prefix": "example",
10
10
  "user_id": 1,
11
11
  "username": "example",
12
+ "user_is_from_parent_site": true,
12
13
  "interface": "example",
13
14
  "request_method": "example",
14
15
  "request_path": "example",
@@ -30,6 +31,7 @@
30
31
  * `api_key_prefix` (string): API Key Prefix, if applicable
31
32
  * `user_id` (int64): User ID
32
33
  * `username` (string): Username
34
+ * `user_is_from_parent_site` (boolean): true if this change was performed by a user on a parent site.
33
35
  * `interface` (string): API Interface
34
36
  * `request_method` (string): HTTP Method
35
37
  * `request_path` (string): Request path
@@ -49,10 +51,7 @@
49
51
  ## List API Request Logs
50
52
 
51
53
  ```
52
- await ApiRequestLog.list({
53
- 'filter': "",
54
- 'filter_prefix': "",
55
- })
54
+ await ApiRequestLog.list
56
55
  ```
57
56
 
58
57
 
@@ -57,11 +57,7 @@
57
57
  ## List Apps
58
58
 
59
59
  ```
60
- await App.list({
61
- 'sort_by': "",
62
- 'filter': "",
63
- 'filter_prefix': "",
64
- })
60
+ await App.list
65
61
  ```
66
62
 
67
63
 
@@ -31,10 +31,7 @@
31
31
  ## List Automation Logs
32
32
 
33
33
  ```
34
- await AutomationLog.list({
35
- 'filter': "",
36
- 'filter_prefix': "",
37
- })
34
+ await AutomationLog.list
38
35
  ```
39
36
 
40
37
 
@@ -31,14 +31,7 @@
31
31
  ## List Bandwidth Snapshots
32
32
 
33
33
  ```
34
- await BandwidthSnapshot.list({
35
- 'sort_by': "",
36
- 'filter': "",
37
- 'filter_gt': "",
38
- 'filter_gteq': "",
39
- 'filter_lt': "",
40
- 'filter_lteq': "",
41
- })
34
+ await BandwidthSnapshot.list
42
35
  ```
43
36
 
44
37
 
@@ -35,11 +35,7 @@
35
35
  ## List Behaviors
36
36
 
37
37
  ```
38
- await Behavior.list({
39
- 'sort_by': "",
40
- 'filter': "",
41
- 'filter_prefix': "",
42
- })
38
+ await Behavior.list
43
39
  ```
44
40
 
45
41
 
@@ -23,10 +23,7 @@
23
23
  ## List Bundle Notifications
24
24
 
25
25
  ```
26
- await BundleNotification.list({
27
- 'sort_by': "",
28
- 'filter': "",
29
- })
26
+ await BundleNotification.list
30
27
  ```
31
28
 
32
29
 
@@ -31,15 +31,7 @@
31
31
  ## List Email Incoming Messages
32
32
 
33
33
  ```
34
- await EmailIncomingMessage.list({
35
- 'sort_by': "",
36
- 'filter': "",
37
- 'filter_gt': "",
38
- 'filter_gteq': "",
39
- 'filter_prefix': "",
40
- 'filter_lt': "",
41
- 'filter_lteq': "",
42
- })
34
+ await EmailIncomingMessage.list
43
35
  ```
44
36
 
45
37
 
@@ -31,10 +31,7 @@
31
31
  ## List Email Logs
32
32
 
33
33
  ```
34
- await EmailLog.list({
35
- 'filter': "",
36
- 'filter_prefix': "",
37
- })
34
+ await EmailLog.list
38
35
  ```
39
36
 
40
37
 
@@ -35,10 +35,7 @@
35
35
  ## List Exavault API Request Logs
36
36
 
37
37
  ```
38
- await ExavaultApiRequestLog.list({
39
- 'filter': "",
40
- 'filter_prefix': "",
41
- })
38
+ await ExavaultApiRequestLog.list
42
39
  ```
43
40
 
44
41
 
@@ -39,15 +39,7 @@
39
39
  ## List External Events
40
40
 
41
41
  ```
42
- await ExternalEvent.list({
43
- 'sort_by': "",
44
- 'filter': "",
45
- 'filter_gt': "",
46
- 'filter_gteq': "",
47
- 'filter_prefix': "",
48
- 'filter_lt': "",
49
- 'filter_lteq': "",
50
- })
42
+ await ExternalEvent.list
51
43
  ```
52
44
 
53
45
 
@@ -29,10 +29,7 @@
29
29
  ## List File Migration Logs
30
30
 
31
31
  ```
32
- await FileMigrationLog.list({
33
- 'filter': "",
34
- 'filter_prefix': "",
35
- })
32
+ await FileMigrationLog.list
36
33
  ```
37
34
 
38
35
 
@@ -49,10 +49,7 @@
49
49
  ## List FTP Action Logs
50
50
 
51
51
  ```
52
- await FtpActionLog.list({
53
- 'filter': "",
54
- 'filter_prefix': "",
55
- })
52
+ await FtpActionLog.list
56
53
  ```
57
54
 
58
55
 
@@ -35,12 +35,7 @@
35
35
  ## List Groups
36
36
 
37
37
  ```
38
- await Group.list({
39
- 'sort_by': "",
40
- 'filter': "",
41
- 'filter_prefix': "",
42
- 'ids': "",
43
- })
38
+ await Group.list
44
39
  ```
45
40
 
46
41
 
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "user_id": 1,
18
18
  "username": "user",
19
+ "user_is_from_parent_site": true,
19
20
  "action": "create",
20
21
  "failure_type": "none",
21
22
  "interface": "web"
@@ -32,6 +33,7 @@
32
33
  * `targets` (array(object)): Targets
33
34
  * `user_id` (int64): User ID
34
35
  * `username` (string): Username
36
+ * `user_is_from_parent_site` (boolean): true if this change was performed by a user on a parent site.
35
37
  * `action` (string): Type of action
36
38
  * `failure_type` (string): Failure type. If action was a user login or session failure, why did it fail?
37
39
  * `interface` (string): Interface on which this action occurred.
@@ -16,6 +16,7 @@
16
16
  "destination": "DestFolder",
17
17
  "ip": "127.0.0.1",
18
18
  "username": "jerry",
19
+ "user_is_from_parent_site": true,
19
20
  "action": "read",
20
21
  "failure_type": "bad_password",
21
22
  "interface": "ftp",
@@ -44,6 +45,7 @@
44
45
  * `destination` (string): File moved to this destination folder
45
46
  * `ip` (string): Client IP that performed the action
46
47
  * `username` (string): Username of the user that performed the action
48
+ * `user_is_from_parent_site` (boolean): true if this change was performed by a user on a parent site.
47
49
  * `action` (string): What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
48
50
  * `failure_type` (string): The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`, `insecure_ftp`, `insecure_cipher`, `rate_limited`
49
51
  * `interface` (string): Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
@@ -41,10 +41,7 @@
41
41
  ## List Outbound Connection Logs
42
42
 
43
43
  ```
44
- await OutboundConnectionLog.list({
45
- 'filter': "",
46
- 'filter_prefix': "",
47
- })
44
+ await OutboundConnectionLog.list
48
45
  ```
49
46
 
50
47
 
@@ -29,10 +29,7 @@
29
29
  ## List Public Hosting Request Logs
30
30
 
31
31
  ```
32
- await PublicHostingRequestLog.list({
33
- 'filter': "",
34
- 'filter_prefix': "",
35
- })
32
+ await PublicHostingRequestLog.list
36
33
  ```
37
34
 
38
35
 
@@ -23,14 +23,7 @@
23
23
  ## List Remote Bandwidth Snapshots
24
24
 
25
25
  ```
26
- await RemoteBandwidthSnapshot.list({
27
- 'sort_by': "",
28
- 'filter': "",
29
- 'filter_gt': "",
30
- 'filter_gteq': "",
31
- 'filter_lt': "",
32
- 'filter_lteq': "",
33
- })
26
+ await RemoteBandwidthSnapshot.list
34
27
  ```
35
28
 
36
29
 
@@ -11,6 +11,7 @@
11
11
  "user_id": 1,
12
12
  "api_key_id": 1,
13
13
  "user_is_files_support": true,
14
+ "user_is_from_parent_site": true,
14
15
  "username": "some_user"
15
16
  }
16
17
  ```
@@ -20,6 +21,7 @@
20
21
  * `user_id` (int64): The user id responsible for this change
21
22
  * `api_key_id` (int64): The API key id responsible for this change
22
23
  * `user_is_files_support` (boolean): true if this change was performed by Files.com support.
24
+ * `user_is_from_parent_site` (boolean): true if this change was performed by a user on a parent site.
23
25
  * `username` (string): The username of the user responsible for this change
24
26
 
25
27
  ---
@@ -27,10 +29,7 @@
27
29
  ## List Settings Changes
28
30
 
29
31
  ```
30
- await SettingsChange.list({
31
- 'sort_by': "",
32
- 'filter': "",
33
- })
32
+ await SettingsChange.list
34
33
  ```
35
34
 
36
35
 
@@ -53,10 +53,7 @@
53
53
  ## List SFTP Action Logs
54
54
 
55
55
  ```
56
- await SftpActionLog.list({
57
- 'filter': "",
58
- 'filter_prefix': "",
59
- })
56
+ await SftpActionLog.list
60
57
  ```
61
58
 
62
59
 
@@ -169,7 +169,8 @@
169
169
  "allowed_2fa_method_webauthn": true,
170
170
  "allowed_2fa_method_yubi": true,
171
171
  "use_provided_modified_at": true,
172
- "windows_mode_ftp": false
172
+ "windows_mode_ftp": false,
173
+ "user_belongs_to_parent_site": false
173
174
  },
174
175
  "session_pinned_by_ip": true,
175
176
  "sftp_enabled": true,
@@ -33,10 +33,7 @@
33
33
  ## List Sync Logs
34
34
 
35
35
  ```
36
- await SyncLog.list({
37
- 'filter': "",
38
- 'filter_prefix': "",
39
- })
36
+ await SyncLog.list
40
37
  ```
41
38
 
42
39
 
@@ -37,14 +37,7 @@
37
37
  ## List Usage Daily Snapshots
38
38
 
39
39
  ```
40
- await UsageDailySnapshot.list({
41
- 'sort_by': "",
42
- 'filter': "",
43
- 'filter_gt': "",
44
- 'filter_gteq': "",
45
- 'filter_lt': "",
46
- 'filter_lteq': "",
47
- })
40
+ await UsageDailySnapshot.list
48
41
  ```
49
42
 
50
43
 
@@ -149,17 +149,7 @@
149
149
  ## List Users
150
150
 
151
151
  ```
152
- await User.list({
153
- 'sort_by': "",
154
- 'filter': "",
155
- 'filter_gt': "",
156
- 'filter_gteq': "",
157
- 'filter_prefix': "",
158
- 'filter_lt': "",
159
- 'filter_lteq': "",
160
- 'ids': "",
161
- 'search': "",
162
- })
152
+ await User.list
163
153
  ```
164
154
 
165
155
 
@@ -45,10 +45,7 @@
45
45
  ## List WebDAV Action Logs
46
46
 
47
47
  ```
48
- await WebDavActionLog.list({
49
- 'filter': "",
50
- 'filter_prefix': "",
51
- })
48
+ await WebDavActionLog.list
52
49
  ```
53
50
 
54
51