files.com 1.0.270 → 1.0.272
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 +5 -1
- package/docs/models/User.md +1 -1
- package/lib/models/Site.js +5 -0
- package/lib/models/User.js +1 -1
- package/package.json +1 -1
- package/src/models/Site.js +4 -0
- package/src/models/User.js +1 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.272
|
package/docs/models/Site.md
CHANGED
@@ -213,7 +213,8 @@
|
|
213
213
|
"welcome_email_enabled": true,
|
214
214
|
"welcome_screen": "user_controlled",
|
215
215
|
"windows_mode_ftp": true,
|
216
|
-
"disable_users_from_inactivity_period_days": 1
|
216
|
+
"disable_users_from_inactivity_period_days": 1,
|
217
|
+
"group_admins_can_set_user_password": true
|
217
218
|
}
|
218
219
|
```
|
219
220
|
|
@@ -358,6 +359,7 @@
|
|
358
359
|
* `welcome_screen` (string): Does the welcome screen appear?
|
359
360
|
* `windows_mode_ftp` (boolean): Does FTP user Windows emulation mode?
|
360
361
|
* `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
|
362
|
+
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
361
363
|
|
362
364
|
---
|
363
365
|
|
@@ -461,6 +463,7 @@ await Site.update({
|
|
461
463
|
'sftp_host_key_type': "default",
|
462
464
|
'active_sftp_host_key_id': 1,
|
463
465
|
'bundle_watermark_value': {"key":"example value"},
|
466
|
+
'group_admins_can_set_user_password': true,
|
464
467
|
'allowed_2fa_method_sms': true,
|
465
468
|
'allowed_2fa_method_u2f': true,
|
466
469
|
'allowed_2fa_method_totp': true,
|
@@ -591,6 +594,7 @@ await Site.update({
|
|
591
594
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
592
595
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
593
596
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
597
|
+
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
594
598
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
595
599
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
596
600
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
package/docs/models/User.md
CHANGED
@@ -153,7 +153,7 @@ await User.list({
|
|
153
153
|
|
154
154
|
* `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.
|
155
155
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
156
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `
|
156
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
157
157
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
158
158
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
159
159
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
package/lib/models/Site.js
CHANGED
@@ -595,6 +595,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
595
595
|
(0, _defineProperty2.default)(this, "getDisableUsersFromInactivityPeriodDays", function () {
|
596
596
|
return _this.attributes.disable_users_from_inactivity_period_days;
|
597
597
|
});
|
598
|
+
// boolean # Allow group admins set password authentication method
|
599
|
+
(0, _defineProperty2.default)(this, "getGroupAdminsCanSetUserPassword", function () {
|
600
|
+
return _this.attributes.group_admins_can_set_user_password;
|
601
|
+
});
|
598
602
|
Object.entries(attributes).forEach(function (_ref) {
|
599
603
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
600
604
|
key = _ref2[0],
|
@@ -725,6 +729,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
725
729
|
// sftp_host_key_type - string - Sftp Host Key Type
|
726
730
|
// active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
727
731
|
// bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
732
|
+
// group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
728
733
|
// allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
729
734
|
// allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
730
735
|
// allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
package/lib/models/User.js
CHANGED
@@ -998,7 +998,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
998
998
|
// Parameters:
|
999
999
|
// 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.
|
1000
1000
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
1001
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `
|
1001
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
1002
1002
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
1003
1003
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
1004
1004
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
package/package.json
CHANGED
package/src/models/Site.js
CHANGED
@@ -446,6 +446,9 @@ class Site {
|
|
446
446
|
// int64 # If greater than zero, users will unable to login if they do not show activity within this number of days.
|
447
447
|
getDisableUsersFromInactivityPeriodDays = () => this.attributes.disable_users_from_inactivity_period_days
|
448
448
|
|
449
|
+
// boolean # Allow group admins set password authentication method
|
450
|
+
getGroupAdminsCanSetUserPassword = () => this.attributes.group_admins_can_set_user_password
|
451
|
+
|
449
452
|
|
450
453
|
static get = async (options = {}) => {
|
451
454
|
const response = await Api.sendRequest(`/site`, 'GET', {}, options)
|
@@ -538,6 +541,7 @@ class Site {
|
|
538
541
|
// sftp_host_key_type - string - Sftp Host Key Type
|
539
542
|
// active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
540
543
|
// bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
544
|
+
// group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
541
545
|
// allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
542
546
|
// allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
543
547
|
// allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
package/src/models/User.js
CHANGED
@@ -777,7 +777,7 @@ class User {
|
|
777
777
|
// Parameters:
|
778
778
|
// 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.
|
779
779
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
780
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `
|
780
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
781
781
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
782
782
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
783
783
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|