files.com 1.2.141 → 1.2.143

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.141
1
+ 1.2.143
@@ -112,7 +112,7 @@ await Automation.list
112
112
  * `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.
113
113
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
114
114
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
115
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, automation ]`.
115
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, last_modified_at ]`, `[ disabled, automation ]`, `[ last_modified_at, automation ]` or `[ disabled, last_modified_at, automation ]`.
116
116
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
117
117
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
118
118
  * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
@@ -40,7 +40,7 @@ await EmailIncomingMessage.list
40
40
  * `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.
41
41
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
42
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
43
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, sender ]`, `[ created_at, status ]`, `[ created_at, inbox_id ]`, `[ created_at, inbox_id, status ]` or `[ created_at, inbox_id, sender, status ]`.
43
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, inbox_id ]`, `[ created_at, sender ]`, `[ created_at, status ]`, `[ inbox_id, status ]`, `[ created_at, inbox_id, status ]`, `[ inbox_id, sender, status ]` or `[ created_at, inbox_id, sender, status ]`.
44
44
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
45
45
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
46
46
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
@@ -49,8 +49,8 @@ await ExternalEvent.list
49
49
 
50
50
  * `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.
51
51
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `event_type`, `created_at` or `status`.
53
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
52
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
53
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
54
54
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
55
55
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
56
56
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
@@ -56,7 +56,7 @@ await History.listForFile(path, {
56
56
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
57
57
  * `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.
58
58
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
59
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
59
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
60
60
  * `path` (string): Required - Path to operate on.
61
61
 
62
62
  ---
@@ -77,7 +77,7 @@ await History.listForFolder(path, {
77
77
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
78
78
  * `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.
79
79
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
80
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
80
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
81
81
  * `path` (string): Required - Path to operate on.
82
82
 
83
83
  ---
@@ -98,7 +98,7 @@ await History.listForUser(user_id, {
98
98
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
99
99
  * `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.
100
100
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
101
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
101
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
102
102
  * `user_id` (int64): Required - User ID.
103
103
 
104
104
  ---
@@ -119,7 +119,7 @@ await History.listLogins({
119
119
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
120
120
  * `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.
121
121
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
122
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
122
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
123
123
 
124
124
  ---
125
125
 
@@ -43,7 +43,7 @@ await Permission.list({
43
43
  * `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.
44
44
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
45
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path`, `user_id` or `permission`.
46
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ path, group_id, user_id ]`.
46
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
47
47
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
48
48
  * `path` (string): Permission path. If provided, will scope all permissions(including upward) to this path.
49
49
  * `include_groups` (boolean): If searching by user or group, also include user's permissions that are inherited from its groups?
@@ -181,6 +181,7 @@
181
181
  "sftp_insecure_diffie_hellman": true,
182
182
  "sftp_user_root_enabled": true,
183
183
  "sharing_enabled": true,
184
+ "show_user_notifications_log_in_link": true,
184
185
  "show_request_access_link": true,
185
186
  "site_footer": "example",
186
187
  "site_header": "example",
@@ -414,6 +415,7 @@
414
415
  * `sftp_insecure_diffie_hellman` (boolean): If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
415
416
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
416
417
  * `sharing_enabled` (boolean): Allow bundle creation
418
+ * `show_user_notifications_log_in_link` (boolean): Show log in link in user notifications?
417
419
  * `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
418
420
  * `site_footer` (string): Custom site footer text
419
421
  * `site_header` (string): Custom site header text
@@ -562,6 +564,7 @@ await Site.update({
562
564
  'sftp_enabled': true,
563
565
  'users_can_create_api_keys': true,
564
566
  'users_can_create_ssh_keys': true,
567
+ 'show_user_notifications_log_in_link': true,
565
568
  'sftp_host_key_type': "default",
566
569
  'active_sftp_host_key_id': 1,
567
570
  'protocol_access_groups_only': true,
@@ -714,6 +717,7 @@ await Site.update({
714
717
  * `sftp_enabled` (boolean): Is SFTP enabled?
715
718
  * `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
716
719
  * `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
720
+ * `show_user_notifications_log_in_link` (boolean): Show log in link in user notifications?
717
721
  * `sftp_host_key_type` (string): Sftp Host Key Type
718
722
  * `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
719
723
  * `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.141';
14
+ var version = '1.2.143';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -618,7 +618,7 @@ _Automation = Automation;
618
618
  // 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.
619
619
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
620
620
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
621
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, automation ]`.
621
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, last_modified_at ]`, `[ disabled, automation ]`, `[ last_modified_at, automation ]` or `[ disabled, last_modified_at, automation ]`.
622
622
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
623
623
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
624
624
  // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
@@ -87,7 +87,7 @@ _EmailIncomingMessage = EmailIncomingMessage;
87
87
  // 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.
88
88
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
89
89
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
90
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, sender ]`, `[ created_at, status ]`, `[ created_at, inbox_id ]`, `[ created_at, inbox_id, status ]` or `[ created_at, inbox_id, sender, status ]`.
90
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, inbox_id ]`, `[ created_at, sender ]`, `[ created_at, status ]`, `[ inbox_id, status ]`, `[ created_at, inbox_id, status ]`, `[ inbox_id, sender, status ]` or `[ created_at, inbox_id, sender, status ]`.
91
91
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
92
92
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
93
93
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
@@ -168,8 +168,8 @@ _ExternalEvent = ExternalEvent;
168
168
  // Parameters:
169
169
  // 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.
170
170
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
171
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `event_type`, `created_at` or `status`.
172
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
171
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
172
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
173
173
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
174
174
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
175
175
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
@@ -109,7 +109,7 @@ _History = History;
109
109
  // display - string - Display format. Leave blank or set to `full` or `parent`.
110
110
  // 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.
111
111
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
112
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
112
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
113
113
  // path (required) - string - Path to operate on.
114
114
  (0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
115
115
  var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(path) {
@@ -197,7 +197,7 @@ _History = History;
197
197
  // display - string - Display format. Leave blank or set to `full` or `parent`.
198
198
  // 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.
199
199
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
200
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
200
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
201
201
  // path (required) - string - Path to operate on.
202
202
  (0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
203
203
  var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
@@ -285,7 +285,7 @@ _History = History;
285
285
  // display - string - Display format. Leave blank or set to `full` or `parent`.
286
286
  // 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.
287
287
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
288
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
288
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
289
289
  // user_id (required) - int64 - User ID.
290
290
  (0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
291
291
  var _ref5 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(userId) {
@@ -373,7 +373,7 @@ _History = History;
373
373
  // display - string - Display format. Leave blank or set to `full` or `parent`.
374
374
  // 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.
375
375
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
376
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
376
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
377
377
  (0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
378
378
  var _response$data4;
379
379
  var params,
@@ -182,7 +182,7 @@ _Permission = Permission;
182
182
  // 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.
183
183
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
184
184
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path`, `user_id` or `permission`.
185
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ path, group_id, user_id ]`.
185
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
186
186
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
187
187
  // path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
188
188
  // include_groups - boolean - If searching by user or group, also include user's permissions that are inherited from its groups?
@@ -541,6 +541,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
541
541
  (0, _defineProperty2.default)(this, "getSharingEnabled", function () {
542
542
  return _this.attributes.sharing_enabled;
543
543
  });
544
+ // boolean # Show log in link in user notifications?
545
+ (0, _defineProperty2.default)(this, "getShowUserNotificationsLogInLink", function () {
546
+ return _this.attributes.show_user_notifications_log_in_link;
547
+ });
544
548
  // boolean # Show request access link for users without access? Currently unused.
545
549
  (0, _defineProperty2.default)(this, "getShowRequestAccessLink", function () {
546
550
  return _this.attributes.show_request_access_link;
@@ -825,6 +829,7 @@ _Site = Site;
825
829
  // sftp_enabled - boolean - Is SFTP enabled?
826
830
  // users_can_create_api_keys - boolean - Allow users to create their own API keys?
827
831
  // users_can_create_ssh_keys - boolean - Allow users to create their own SSH keys?
832
+ // show_user_notifications_log_in_link - boolean - Show log in link in user notifications?
828
833
  // sftp_host_key_type - string - Sftp Host Key Type
829
834
  // active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
830
835
  // protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.141",
3
+ "version": "1.2.143",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.141'
8
+ const version = '1.2.143'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -471,7 +471,7 @@ class Automation {
471
471
  // 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.
472
472
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
473
473
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
474
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, automation ]`.
474
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, last_modified_at ]`, `[ disabled, automation ]`, `[ last_modified_at, automation ]` or `[ disabled, last_modified_at, automation ]`.
475
475
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
476
476
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
477
477
  // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
@@ -59,7 +59,7 @@ class EmailIncomingMessage {
59
59
  // 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.
60
60
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
61
61
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
62
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, sender ]`, `[ created_at, status ]`, `[ created_at, inbox_id ]`, `[ created_at, inbox_id, status ]` or `[ created_at, inbox_id, sender, status ]`.
62
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, inbox_id ]`, `[ created_at, sender ]`, `[ created_at, status ]`, `[ inbox_id, status ]`, `[ created_at, inbox_id, status ]`, `[ inbox_id, sender, status ]` or `[ created_at, inbox_id, sender, status ]`.
63
63
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
64
64
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
65
65
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
@@ -135,8 +135,8 @@ class ExternalEvent {
135
135
  // Parameters:
136
136
  // 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.
137
137
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
138
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `event_type`, `created_at` or `status`.
139
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
138
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
139
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
140
140
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
141
141
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
142
142
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
@@ -76,7 +76,7 @@ class History {
76
76
  // display - string - Display format. Leave blank or set to `full` or `parent`.
77
77
  // 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.
78
78
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
79
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
79
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
80
80
  // path (required) - string - Path to operate on.
81
81
  static listForFile = async (path, params = {}, options = {}) => {
82
82
  if (!isObject(params)) {
@@ -125,7 +125,7 @@ class History {
125
125
  // display - string - Display format. Leave blank or set to `full` or `parent`.
126
126
  // 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.
127
127
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
128
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
128
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
129
129
  // path (required) - string - Path to operate on.
130
130
  static listForFolder = async (path, params = {}, options = {}) => {
131
131
  if (!isObject(params)) {
@@ -174,7 +174,7 @@ class History {
174
174
  // display - string - Display format. Leave blank or set to `full` or `parent`.
175
175
  // 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.
176
176
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
177
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
177
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
178
178
  // user_id (required) - int64 - User ID.
179
179
  static listForUser = async (userId, params = {}, options = {}) => {
180
180
  if (!isObject(params)) {
@@ -223,7 +223,7 @@ class History {
223
223
  // display - string - Display format. Leave blank or set to `full` or `parent`.
224
224
  // 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.
225
225
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
226
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
226
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
227
227
  static listLogins = async (params = {}, options = {}) => {
228
228
  if (params.start_at && !isString(params.start_at)) {
229
229
  throw new errors.InvalidParameterError(`Bad parameter: start_at must be of type String, received ${getType(params.start_at)}`)
@@ -126,7 +126,7 @@ class Permission {
126
126
  // 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.
127
127
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
128
128
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path`, `user_id` or `permission`.
129
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ path, group_id, user_id ]`.
129
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
130
130
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
131
131
  // path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
132
132
  // include_groups - boolean - If searching by user or group, also include user's permissions that are inherited from its groups?
@@ -409,6 +409,9 @@ class Site {
409
409
  // boolean # Allow bundle creation
410
410
  getSharingEnabled = () => this.attributes.sharing_enabled
411
411
 
412
+ // boolean # Show log in link in user notifications?
413
+ getShowUserNotificationsLogInLink = () => this.attributes.show_user_notifications_log_in_link
414
+
412
415
  // boolean # Show request access link for users without access? Currently unused.
413
416
  getShowRequestAccessLink = () => this.attributes.show_request_access_link
414
417
 
@@ -617,6 +620,7 @@ class Site {
617
620
  // sftp_enabled - boolean - Is SFTP enabled?
618
621
  // users_can_create_api_keys - boolean - Allow users to create their own API keys?
619
622
  // users_can_create_ssh_keys - boolean - Allow users to create their own SSH keys?
623
+ // show_user_notifications_log_in_link - boolean - Show log in link in user notifications?
620
624
  // sftp_host_key_type - string - Sftp Host Key Type
621
625
  // active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
622
626
  // protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.