files.com 1.0.275 → 1.0.277

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.0.275
1
+ 1.0.277
@@ -108,6 +108,7 @@
108
108
  "require_2fa": true,
109
109
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
110
110
  "require_2fa_user_type": "`site_admins`",
111
+ "require_logout_from_bundles_and_inboxes": true,
111
112
  "session": {
112
113
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
113
114
  "language": "en",
@@ -321,6 +322,7 @@
321
322
  * `require_2fa` (boolean): Require two-factor authentication for all users?
322
323
  * `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
323
324
  * `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)?
325
+ * `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.
324
326
  * `session` (Session): Current session
325
327
  * `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
326
328
  * `sftp_enabled` (boolean): Is SFTP enabled?
@@ -441,6 +443,7 @@ await Site.update({
441
443
  'password_require_special': true,
442
444
  'password_require_number': true,
443
445
  'password_require_unbreached': true,
446
+ 'require_logout_from_bundles_and_inboxes': true,
444
447
  'sftp_user_root_enabled': true,
445
448
  'disable_password_reset': true,
446
449
  'immutable_files': true,
@@ -573,6 +576,7 @@ await Site.update({
573
576
  * `password_require_special` (boolean): Require special characters in password?
574
577
  * `password_require_number` (boolean): Require a number in passwords?
575
578
  * `password_require_unbreached` (boolean): Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
579
+ * `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.
576
580
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
577
581
  * `disable_password_reset` (boolean): Is password reset disabled?
578
582
  * `immutable_files` (boolean): Are files protected from modification?
@@ -4,6 +4,7 @@
4
4
 
5
5
  ```
6
6
  {
7
+ "id": 1,
7
8
  "expires_at": "2000-01-01T01:00:00Z",
8
9
  "finalized_at": "2000-01-01T01:00:00Z",
9
10
  "name": "My Snapshot",
@@ -12,13 +13,13 @@
12
13
  }
13
14
  ```
14
15
 
16
+ * `id` (int64): The snapshot's unique ID.
15
17
  * `expires_at` (date-time): When the snapshot expires.
16
18
  * `finalized_at` (date-time): When the snapshot was finalized.
17
19
  * `name` (string): A name for the snapshot.
18
20
  * `user_id` (int64): The user that created this snapshot, if applicable.
19
21
  * `bundle_id` (int64): The bundle using this snapshot, if applicable.
20
22
  * `paths` (array(string)): An array of paths to add to the snapshot.
21
- * `id` (int64): Snapshot ID.
22
23
 
23
24
  ---
24
25
 
@@ -91,6 +92,7 @@ await snapshot.update({
91
92
 
92
93
  ```json
93
94
  {
95
+ "id": 1,
94
96
  "expires_at": "2000-01-01T01:00:00Z",
95
97
  "finalized_at": "2000-01-01T01:00:00Z",
96
98
  "name": "My Snapshot",
@@ -31,6 +31,7 @@
31
31
  "provision_group_required": "example",
32
32
  "provision_email_signup_groups": "Employees",
33
33
  "provision_site_admin_groups": "Employees",
34
+ "provision_group_admin_groups": "Employees",
34
35
  "provision_attachments_permission": true,
35
36
  "provision_dav_permission": true,
36
37
  "provision_ftp_permission": true,
@@ -77,6 +78,7 @@
77
78
  * `provision_group_required` (string): Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
78
79
  * `provision_email_signup_groups` (string): Comma-separated list of group names whose members will be created with email_signup authentication.
79
80
  * `provision_site_admin_groups` (string): Comma-separated list of group names whose members will be created as Site Admins.
81
+ * `provision_group_admin_groups` (string): Comma-separated list of group names whose members will be provisioned as Group Admins.
80
82
  * `provision_attachments_permission` (boolean): DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
81
83
  * `provision_dav_permission` (boolean): Auto-provisioned users get WebDAV permission?
82
84
  * `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
@@ -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?
@@ -31,6 +31,13 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # The snapshot's unique ID.
35
+ (0, _defineProperty2.default)(this, "getId", function () {
36
+ return _this.attributes.id;
37
+ });
38
+ (0, _defineProperty2.default)(this, "setId", function (value) {
39
+ _this.attributes.id = value;
40
+ });
34
41
  // date-time # When the snapshot expires.
35
42
  (0, _defineProperty2.default)(this, "getExpiresAt", function () {
36
43
  return _this.attributes.expires_at;
@@ -73,13 +80,6 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
73
80
  (0, _defineProperty2.default)(this, "setPaths", function (value) {
74
81
  _this.attributes.paths = value;
75
82
  });
76
- // int64 # Snapshot ID.
77
- (0, _defineProperty2.default)(this, "getId", function () {
78
- return _this.attributes.id;
79
- });
80
- (0, _defineProperty2.default)(this, "setId", function (value) {
81
- _this.attributes.id = value;
82
- });
83
83
  // Parameters:
84
84
  // expires_at - string - When the snapshot expires.
85
85
  // name - string - A name for the snapshot.
@@ -139,6 +139,10 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
139
139
  (0, _defineProperty2.default)(this, "getProvisionSiteAdminGroups", function () {
140
140
  return _this.attributes.provision_site_admin_groups;
141
141
  });
142
+ // string # Comma-separated list of group names whose members will be provisioned as Group Admins.
143
+ (0, _defineProperty2.default)(this, "getProvisionGroupAdminGroups", function () {
144
+ return _this.attributes.provision_group_admin_groups;
145
+ });
142
146
  // boolean # DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
143
147
  (0, _defineProperty2.default)(this, "getProvisionAttachmentsPermission", function () {
144
148
  return _this.attributes.provision_attachments_permission;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.275",
3
+ "version": "1.0.277",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -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?
@@ -23,6 +23,13 @@ class Snapshot {
23
23
  }
24
24
 
25
25
  isLoaded = () => !!this.attributes.id
26
+ // int64 # The snapshot's unique ID.
27
+ getId = () => this.attributes.id
28
+
29
+ setId = value => {
30
+ this.attributes.id = value
31
+ }
32
+
26
33
  // date-time # When the snapshot expires.
27
34
  getExpiresAt = () => this.attributes.expires_at
28
35
 
@@ -65,13 +72,6 @@ class Snapshot {
65
72
  this.attributes.paths = value
66
73
  }
67
74
 
68
- // int64 # Snapshot ID.
69
- getId = () => this.attributes.id
70
-
71
- setId = value => {
72
- this.attributes.id = value
73
- }
74
-
75
75
 
76
76
  // Parameters:
77
77
  // expires_at - string - When the snapshot expires.
@@ -104,6 +104,9 @@ class SsoStrategy {
104
104
  // string # Comma-separated list of group names whose members will be created as Site Admins.
105
105
  getProvisionSiteAdminGroups = () => this.attributes.provision_site_admin_groups
106
106
 
107
+ // string # Comma-separated list of group names whose members will be provisioned as Group Admins.
108
+ getProvisionGroupAdminGroups = () => this.attributes.provision_group_admin_groups
109
+
107
110
  // boolean # DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
108
111
  getProvisionAttachmentsPermission = () => this.attributes.provision_attachments_permission
109
112