files.com 1.0.274 → 1.0.276
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/docs/models/Site.md +4 -0
- package/lib/Errors.js +329 -315
- package/lib/models/Site.js +5 -0
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/models/Site.js +4 -0
package/lib/models/Site.js
CHANGED
@@ -439,6 +439,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
439
439
|
(0, _defineProperty2.default)(this, "getRequire2faUserType", function () {
|
440
440
|
return _this.attributes.require_2fa_user_type;
|
441
441
|
});
|
442
|
+
// boolean # If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
|
443
|
+
(0, _defineProperty2.default)(this, "getRequireLogoutFromBundlesAndInboxes", function () {
|
444
|
+
return _this.attributes.require_logout_from_bundles_and_inboxes;
|
445
|
+
});
|
442
446
|
// Session # Current session
|
443
447
|
(0, _defineProperty2.default)(this, "getSession", function () {
|
444
448
|
return _this.attributes.session;
|
@@ -709,6 +713,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
709
713
|
// password_require_special - boolean - Require special characters in password?
|
710
714
|
// password_require_number - boolean - Require a number in passwords?
|
711
715
|
// password_require_unbreached - boolean - Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
|
716
|
+
// require_logout_from_bundles_and_inboxes - boolean - If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
|
712
717
|
// sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
|
713
718
|
// disable_password_reset - boolean - Is password reset disabled?
|
714
719
|
// immutable_files - boolean - Are files protected from modification?
|
package/package.json
CHANGED
package/src/Errors.js
CHANGED
@@ -169,6 +169,7 @@ export class NotAuthorized_SiteAdminRequiredError extends NotAuthorizedError { c
|
|
169
169
|
export class NotAuthorized_SiteFilesAreImmutableError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_SiteFilesAreImmutableError' } } errorClasses.NotAuthorized_SiteFilesAreImmutableError = NotAuthorized_SiteFilesAreImmutableError
|
170
170
|
export class NotAuthorized_TwoFactorAuthenticationRequiredError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_TwoFactorAuthenticationRequiredError' } } errorClasses.NotAuthorized_TwoFactorAuthenticationRequiredError = NotAuthorized_TwoFactorAuthenticationRequiredError
|
171
171
|
export class NotAuthorized_UserIdWithoutSiteAdminError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_UserIdWithoutSiteAdminError' } } errorClasses.NotAuthorized_UserIdWithoutSiteAdminError = NotAuthorized_UserIdWithoutSiteAdminError
|
172
|
+
export class NotAuthorized_WriteAndBundlePermissionRequiredError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_WriteAndBundlePermissionRequiredError' } } errorClasses.NotAuthorized_WriteAndBundlePermissionRequiredError = NotAuthorized_WriteAndBundlePermissionRequiredError
|
172
173
|
export class NotAuthorized_WritePermissionRequiredError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_WritePermissionRequiredError' } } errorClasses.NotAuthorized_WritePermissionRequiredError = NotAuthorized_WritePermissionRequiredError
|
173
174
|
export class NotAuthorized_ZipDownloadIpMismatchError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_ZipDownloadIpMismatchError' } } errorClasses.NotAuthorized_ZipDownloadIpMismatchError = NotAuthorized_ZipDownloadIpMismatchError
|
174
175
|
export class NotFound_ApiKeyNotFoundError extends NotFoundError { constructor(message, code) { super(message, code); this.name = 'NotFound_ApiKeyNotFoundError' } } errorClasses.NotFound_ApiKeyNotFoundError = NotFound_ApiKeyNotFoundError
|
package/src/models/Site.js
CHANGED
@@ -329,6 +329,9 @@ class Site {
|
|
329
329
|
// string # What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
330
330
|
getRequire2faUserType = () => this.attributes.require_2fa_user_type
|
331
331
|
|
332
|
+
// boolean # If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
|
333
|
+
getRequireLogoutFromBundlesAndInboxes = () => this.attributes.require_logout_from_bundles_and_inboxes
|
334
|
+
|
332
335
|
// Session # Current session
|
333
336
|
getSession = () => this.attributes.session
|
334
337
|
|
@@ -520,6 +523,7 @@ class Site {
|
|
520
523
|
// password_require_special - boolean - Require special characters in password?
|
521
524
|
// password_require_number - boolean - Require a number in passwords?
|
522
525
|
// password_require_unbreached - boolean - Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
|
526
|
+
// require_logout_from_bundles_and_inboxes - boolean - If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
|
523
527
|
// sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
|
524
528
|
// disable_password_reset - boolean - Is password reset disabled?
|
525
529
|
// immutable_files - boolean - Are files protected from modification?
|