files.com 1.2.16 → 1.2.17

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.16
1
+ 1.2.17
@@ -137,6 +137,7 @@
137
137
  "phone": "555-555-5555",
138
138
  "pin_all_remote_servers_to_site_region": true,
139
139
  "prevent_root_permissions_for_non_site_admins": true,
140
+ "protocol_access_groups_only": true,
140
141
  "require_2fa": true,
141
142
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
142
143
  "require_2fa_user_type": "`site_admins`",
@@ -377,6 +378,7 @@
377
378
  * `phone` (string): Site phone number
378
379
  * `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
379
380
  * `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
381
+ * `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.
380
382
  * `require_2fa` (boolean): Require two-factor authentication for all users?
381
383
  * `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
382
384
  * `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -673,7 +675,7 @@ await Site.update({
673
675
  * `sftp_enabled` (boolean): Is SFTP enabled?
674
676
  * `sftp_host_key_type` (string): Sftp Host Key Type
675
677
  * `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
676
- * `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.
678
+ * `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.
677
679
  * `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
678
680
  * `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
679
681
  * `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
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.16';
14
+ var version = '1.2.17';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -465,6 +465,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
465
465
  (0, _defineProperty2.default)(this, "getPreventRootPermissionsForNonSiteAdmins", function () {
466
466
  return _this.attributes.prevent_root_permissions_for_non_site_admins;
467
467
  });
468
+ // 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.
469
+ (0, _defineProperty2.default)(this, "getProtocolAccessGroupsOnly", function () {
470
+ return _this.attributes.protocol_access_groups_only;
471
+ });
468
472
  // boolean # Require two-factor authentication for all users?
469
473
  (0, _defineProperty2.default)(this, "getRequire2fa", function () {
470
474
  return _this.attributes.require_2fa;
@@ -780,7 +784,7 @@ _Site = Site;
780
784
  // sftp_enabled - boolean - Is SFTP enabled?
781
785
  // sftp_host_key_type - string - Sftp Host Key Type
782
786
  // active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
783
- // 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.
787
+ // 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.
784
788
  // bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
785
789
  // group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
786
790
  // bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
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.16'
8
+ const version = '1.2.17'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -352,6 +352,9 @@ class Site {
352
352
  // boolean # If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
353
353
  getPreventRootPermissionsForNonSiteAdmins = () => this.attributes.prevent_root_permissions_for_non_site_admins
354
354
 
355
+ // 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.
356
+ getProtocolAccessGroupsOnly = () => this.attributes.protocol_access_groups_only
357
+
355
358
  // boolean # Require two-factor authentication for all users?
356
359
  getRequire2fa = () => this.attributes.require_2fa
357
360
 
@@ -582,7 +585,7 @@ class Site {
582
585
  // sftp_enabled - boolean - Is SFTP enabled?
583
586
  // sftp_host_key_type - string - Sftp Host Key Type
584
587
  // active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
585
- // 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.
588
+ // 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.
586
589
  // bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
587
590
  // group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
588
591
  // bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?