files.com 1.2.58 → 1.2.59
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Site.md +4 -0
- package/lib/Files.js +1 -1
- package/lib/models/Site.js +5 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Site.js +4 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.59
|
package/docs/models/Site.md
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
"allowed_2fa_method_webauthn": true,
|
15
15
|
"allowed_2fa_method_yubi": true,
|
16
16
|
"allowed_2fa_method_email": true,
|
17
|
+
"allowed_2fa_method_static": true,
|
17
18
|
"allowed_2fa_method_bypass_for_ftp_sftp_dav": true,
|
18
19
|
"admin_user_id": 1,
|
19
20
|
"admins_bypass_locked_subfolders": true,
|
@@ -286,6 +287,7 @@
|
|
286
287
|
* `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
|
287
288
|
* `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
|
288
289
|
* `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
|
290
|
+
* `allowed_2fa_method_static` (boolean): Is OTP via static codes for two factor authentication allowed?
|
289
291
|
* `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?
|
290
292
|
* `admin_user_id` (int64): User ID for the main site administrator
|
291
293
|
* `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
|
@@ -559,6 +561,7 @@ await Site.update({
|
|
559
561
|
'allowed_2fa_method_webauthn': true,
|
560
562
|
'allowed_2fa_method_yubi': true,
|
561
563
|
'allowed_2fa_method_email': true,
|
564
|
+
'allowed_2fa_method_static': true,
|
562
565
|
'allowed_2fa_method_bypass_for_ftp_sftp_dav': true,
|
563
566
|
'require_2fa': true,
|
564
567
|
'require_2fa_user_type': "`site_admins`",
|
@@ -707,6 +710,7 @@ await Site.update({
|
|
707
710
|
* `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
|
708
711
|
* `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
|
709
712
|
* `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
|
713
|
+
* `allowed_2fa_method_static` (boolean): Is OTP via static codes for two factor authentication allowed?
|
710
714
|
* `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?
|
711
715
|
* `require_2fa` (boolean): Require two-factor authentication for all users?
|
712
716
|
* `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.
|
14
|
+
var version = '1.2.59';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/lib/models/Site.js
CHANGED
@@ -65,6 +65,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
65
65
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodEmail", function () {
|
66
66
|
return _this.attributes.allowed_2fa_method_email;
|
67
67
|
});
|
68
|
+
// boolean # Is OTP via static codes for two factor authentication allowed?
|
69
|
+
(0, _defineProperty2.default)(this, "getAllowed2faMethodStatic", function () {
|
70
|
+
return _this.attributes.allowed_2fa_method_static;
|
71
|
+
});
|
68
72
|
// boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
|
69
73
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodBypassForFtpSftpDav", function () {
|
70
74
|
return _this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav;
|
@@ -816,6 +820,7 @@ _Site = Site;
|
|
816
820
|
// allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
|
817
821
|
// allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
|
818
822
|
// allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
|
823
|
+
// allowed_2fa_method_static - boolean - Is OTP via static codes for two factor authentication allowed?
|
819
824
|
// 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?
|
820
825
|
// require_2fa - boolean - Require two-factor authentication for all users?
|
821
826
|
// 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
package/src/Files.js
CHANGED
package/src/models/Site.js
CHANGED
@@ -52,6 +52,9 @@ class Site {
|
|
52
52
|
// boolean # Is OTP via email two factor authentication allowed?
|
53
53
|
getAllowed2faMethodEmail = () => this.attributes.allowed_2fa_method_email
|
54
54
|
|
55
|
+
// boolean # Is OTP via static codes for two factor authentication allowed?
|
56
|
+
getAllowed2faMethodStatic = () => this.attributes.allowed_2fa_method_static
|
57
|
+
|
55
58
|
// boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
|
56
59
|
getAllowed2faMethodBypassForFtpSftpDav = () => this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav
|
57
60
|
|
@@ -613,6 +616,7 @@ class Site {
|
|
613
616
|
// allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
|
614
617
|
// allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
|
615
618
|
// allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
|
619
|
+
// allowed_2fa_method_static - boolean - Is OTP via static codes for two factor authentication allowed?
|
616
620
|
// 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?
|
617
621
|
// require_2fa - boolean - Require two-factor authentication for all users?
|
618
622
|
// 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)?
|