files.com 1.2.11 → 1.2.12

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.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.11
1
+ 1.2.12
@@ -10,6 +10,7 @@
10
10
  "allowed_2fa_method_u2f": true,
11
11
  "allowed_2fa_method_webauthn": true,
12
12
  "allowed_2fa_method_yubi": true,
13
+ "allowed_2fa_method_email": true,
13
14
  "allowed_2fa_method_bypass_for_ftp_sftp_dav": true,
14
15
  "admin_user_id": 1,
15
16
  "admins_bypass_locked_subfolders": true,
@@ -237,6 +238,7 @@
237
238
  * `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
238
239
  * `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
239
240
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
241
+ * `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
240
242
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
241
243
  * `admin_user_id` (int64): User ID for the main site administrator
242
244
  * `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
@@ -502,6 +504,7 @@ await Site.update({
502
504
  'allowed_2fa_method_totp': true,
503
505
  'allowed_2fa_method_webauthn': true,
504
506
  'allowed_2fa_method_yubi': true,
507
+ 'allowed_2fa_method_email': true,
505
508
  'allowed_2fa_method_bypass_for_ftp_sftp_dav': true,
506
509
  'require_2fa': true,
507
510
  'require_2fa_user_type': "`site_admins`",
@@ -644,6 +647,7 @@ await Site.update({
644
647
  * `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
645
648
  * `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
646
649
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
650
+ * `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
647
651
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
648
652
  * `require_2fa` (boolean): Require two-factor authentication for all users?
649
653
  * `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)?
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.11';
14
+ var version = '1.2.12';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -57,6 +57,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
57
57
  (0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
58
58
  return _this.attributes.allowed_2fa_method_yubi;
59
59
  });
60
+ // boolean # Is OTP via email two factor authentication allowed?
61
+ (0, _defineProperty2.default)(this, "getAllowed2faMethodEmail", function () {
62
+ return _this.attributes.allowed_2fa_method_email;
63
+ });
60
64
  // boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
61
65
  (0, _defineProperty2.default)(this, "getAllowed2faMethodBypassForFtpSftpDav", function () {
62
66
  return _this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav;
@@ -790,6 +794,7 @@ _Site = Site;
790
794
  // allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
791
795
  // allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
792
796
  // allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
797
+ // allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
793
798
  // allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
794
799
  // require_2fa - boolean - Require two-factor authentication for all users?
795
800
  // 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)?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
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.11'
8
+ const version = '1.2.12'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -46,6 +46,9 @@ class Site {
46
46
  // boolean # Is yubikey two factor authentication allowed?
47
47
  getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
48
48
 
49
+ // boolean # Is OTP via email two factor authentication allowed?
50
+ getAllowed2faMethodEmail = () => this.attributes.allowed_2fa_method_email
51
+
49
52
  // boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
50
53
  getAllowed2faMethodBypassForFtpSftpDav = () => this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav
51
54
 
@@ -592,6 +595,7 @@ class Site {
592
595
  // allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
593
596
  // allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
594
597
  // allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
598
+ // allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
595
599
  // allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
596
600
  // require_2fa - boolean - Require two-factor authentication for all users?
597
601
  // 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)?