files.com 1.2.108 → 1.2.110

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -48,9 +48,7 @@ const User = require("files.com/lib/models/User.js").default;
48
48
  const { LogLevel } = require("files.com/lib/Logger.js").default;
49
49
  ```
50
50
 
51
- <Note title="Repository">
52
51
  Explore the [files-sdk-javascript](https://github.com/Files-com/files-sdk-javascript) code on GitHub.
53
- </Note>
54
52
 
55
53
  ### Getting Support
56
54
 
@@ -84,9 +82,7 @@ const user = new User(params, { apiKey: 'YOUR_API_KEY' })
84
82
  await User.find(id, params, { apiKey: 'YOUR_API_KEY' })
85
83
  ```
86
84
 
87
- <Note>
88
85
  Don't forget to replace the placeholder, `YOUR_API_KEY`, with your actual API key.
89
- </Note>
90
86
 
91
87
  ### Authenticate with a Session
92
88
 
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.108
1
+ 1.2.110
@@ -298,7 +298,7 @@
298
298
  * `admin_user_id` (int64): User ID for the main site administrator
299
299
  * `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
300
300
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
301
- * `allowed_countries` (string): Comma seperated list of allowed Country codes
301
+ * `allowed_countries` (string): Comma separated list of allowed Country codes
302
302
  * `allowed_ips` (string): List of allowed IP addresses
303
303
  * `always_mkdir_parents` (boolean): Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
304
304
  * `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
@@ -335,7 +335,7 @@
335
335
  * `mobile_app` (boolean): Is the mobile app enabled?
336
336
  * `mobile_app_session_ip_pinning` (boolean): Is mobile app session IP pinning enabled?
337
337
  * `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
338
- * `disallowed_countries` (string): Comma seperated list of disallowed Country codes
338
+ * `disallowed_countries` (string): Comma separated list of disallowed Country codes
339
339
  * `disable_files_certificate_generation` (boolean): If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
340
340
  * `disable_notifications` (boolean): Are notifications disabled?
341
341
  * `disable_password_reset` (boolean): Is password reset disabled?
@@ -407,7 +407,7 @@
407
407
  * `sftp_enabled` (boolean): Is SFTP enabled?
408
408
  * `sftp_host_key_type` (string): Sftp Host Key Type
409
409
  * `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
410
- * `sftp_insecure_ciphers` (boolean): If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
410
+ * `sftp_insecure_ciphers` (boolean): If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
411
411
  * `sftp_insecure_diffie_hellman` (boolean): If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
412
412
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
413
413
  * `sharing_enabled` (boolean): Allow bundle creation
@@ -661,7 +661,7 @@ await Site.update({
661
661
  * `session_expiry` (double): Session expiry in hours
662
662
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
663
663
  * `tls_disabled` (boolean): DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
664
- * `sftp_insecure_ciphers` (boolean): If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
664
+ * `sftp_insecure_ciphers` (boolean): If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
665
665
  * `sftp_insecure_diffie_hellman` (boolean): If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
666
666
  * `disable_files_certificate_generation` (boolean): If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
667
667
  * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
@@ -669,9 +669,9 @@ await Site.update({
669
669
  * `user_lockout_within` (int64): Number of hours for user lockout window
670
670
  * `user_lockout_lock_period` (int64): How many hours to lock user out for failed password?
671
671
  * `include_password_in_welcome_email` (boolean): Include password in emails to new users?
672
- * `allowed_countries` (string): Comma seperated list of allowed Country codes
672
+ * `allowed_countries` (string): Comma separated list of allowed Country codes
673
673
  * `allowed_ips` (string): List of allowed IP addresses
674
- * `disallowed_countries` (string): Comma seperated list of disallowed Country codes
674
+ * `disallowed_countries` (string): Comma separated list of disallowed Country codes
675
675
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
676
676
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
677
677
  * `password_validity_days` (int64): Number of days password is valid
@@ -141,7 +141,7 @@
141
141
  * `change_password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `change_password`.
142
142
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
143
143
  * `group_id` (int64): Group ID to associate this user with.
144
- * `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
144
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
145
145
  * `password` (string): User password.
146
146
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
147
147
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
@@ -241,7 +241,7 @@ await User.create({
241
241
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
242
242
  * `group_id` (int64): Group ID to associate this user with.
243
243
  * `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
244
- * `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
244
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
245
245
  * `password` (string): User password.
246
246
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
247
247
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
@@ -386,7 +386,7 @@ await user.update({
386
386
  * `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
387
387
  * `group_id` (int64): Group ID to associate this user with.
388
388
  * `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
389
- * `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
389
+ * `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
390
390
  * `password` (string): User password.
391
391
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
392
392
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
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.108';
14
+ var version = '1.2.110';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -85,7 +85,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
85
85
  (0, _defineProperty2.default)(this, "getAllowBundleNames", function () {
86
86
  return _this.attributes.allow_bundle_names;
87
87
  });
88
- // string # Comma seperated list of allowed Country codes
88
+ // string # Comma separated list of allowed Country codes
89
89
  (0, _defineProperty2.default)(this, "getAllowedCountries", function () {
90
90
  return _this.attributes.allowed_countries;
91
91
  });
@@ -233,7 +233,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
233
233
  (0, _defineProperty2.default)(this, "getMobileAppSessionLifetime", function () {
234
234
  return _this.attributes.mobile_app_session_lifetime;
235
235
  });
236
- // string # Comma seperated list of disallowed Country codes
236
+ // string # Comma separated list of disallowed Country codes
237
237
  (0, _defineProperty2.default)(this, "getDisallowedCountries", function () {
238
238
  return _this.attributes.disallowed_countries;
239
239
  });
@@ -521,7 +521,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
521
521
  (0, _defineProperty2.default)(this, "getActiveSftpHostKeyId", function () {
522
522
  return _this.attributes.active_sftp_host_key_id;
523
523
  });
524
- // boolean # If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
524
+ // boolean # If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
525
525
  (0, _defineProperty2.default)(this, "getSftpInsecureCiphers", function () {
526
526
  return _this.attributes.sftp_insecure_ciphers;
527
527
  });
@@ -771,7 +771,7 @@ _Site = Site;
771
771
  // session_expiry - double - Session expiry in hours
772
772
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
773
773
  // tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
774
- // sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
774
+ // sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
775
775
  // sftp_insecure_diffie_hellman - boolean - If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
776
776
  // disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
777
777
  // user_lockout - boolean - Will users be locked out after incorrect login attempts?
@@ -779,9 +779,9 @@ _Site = Site;
779
779
  // user_lockout_within - int64 - Number of hours for user lockout window
780
780
  // user_lockout_lock_period - int64 - How many hours to lock user out for failed password?
781
781
  // include_password_in_welcome_email - boolean - Include password in emails to new users?
782
- // allowed_countries - string - Comma seperated list of allowed Country codes
782
+ // allowed_countries - string - Comma separated list of allowed Country codes
783
783
  // allowed_ips - string - List of allowed IP addresses
784
- // disallowed_countries - string - Comma seperated list of disallowed Country codes
784
+ // disallowed_countries - string - Comma separated list of disallowed Country codes
785
785
  // days_to_retain_backups - int64 - Number of days to keep deleted files
786
786
  // max_prior_passwords - int64 - Number of prior passwords to disallow
787
787
  // password_validity_days - int64 - Number of days password is valid
@@ -513,7 +513,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
513
513
  (0, _defineProperty2.default)(this, "setGroupId", function (value) {
514
514
  _this.attributes.group_id = value;
515
515
  });
516
- // string # Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
516
+ // string # Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
517
517
  (0, _defineProperty2.default)(this, "getImportedPasswordHash", function () {
518
518
  return _this.attributes.imported_password_hash;
519
519
  });
@@ -697,7 +697,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
697
697
  // grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
698
698
  // group_id - int64 - Group ID to associate this user with.
699
699
  // group_ids - string - A list of group ids to associate this user with. Comma delimited.
700
- // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
700
+ // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
701
701
  // password - string - User password.
702
702
  // password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
703
703
  // announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
@@ -1163,7 +1163,7 @@ _User = User;
1163
1163
  // grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
1164
1164
  // group_id - int64 - Group ID to associate this user with.
1165
1165
  // group_ids - string - A list of group ids to associate this user with. Comma delimited.
1166
- // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
1166
+ // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
1167
1167
  // password - string - User password.
1168
1168
  // password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
1169
1169
  // announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.108",
3
+ "version": "1.2.110",
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.108'
8
+ const version = '1.2.110'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -67,7 +67,7 @@ class Site {
67
67
  // boolean # Are manual Bundle names allowed?
68
68
  getAllowBundleNames = () => this.attributes.allow_bundle_names
69
69
 
70
- // string # Comma seperated list of allowed Country codes
70
+ // string # Comma separated list of allowed Country codes
71
71
  getAllowedCountries = () => this.attributes.allowed_countries
72
72
 
73
73
  // string # List of allowed IP addresses
@@ -178,7 +178,7 @@ class Site {
178
178
  // int64 # Mobile app session lifetime (in hours)
179
179
  getMobileAppSessionLifetime = () => this.attributes.mobile_app_session_lifetime
180
180
 
181
- // string # Comma seperated list of disallowed Country codes
181
+ // string # Comma separated list of disallowed Country codes
182
182
  getDisallowedCountries = () => this.attributes.disallowed_countries
183
183
 
184
184
  // boolean # If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
@@ -394,7 +394,7 @@ class Site {
394
394
  // int64 # Id of the currently selected custom SFTP Host Key
395
395
  getActiveSftpHostKeyId = () => this.attributes.active_sftp_host_key_id
396
396
 
397
- // boolean # If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
397
+ // boolean # If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
398
398
  getSftpInsecureCiphers = () => this.attributes.sftp_insecure_ciphers
399
399
 
400
400
  // boolean # If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
@@ -564,7 +564,7 @@ class Site {
564
564
  // session_expiry - double - Session expiry in hours
565
565
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
566
566
  // tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
567
- // sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severly weakens the security of your site and it is not recommend, except as a last resort for compatibility.
567
+ // sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
568
568
  // sftp_insecure_diffie_hellman - boolean - If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
569
569
  // disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
570
570
  // user_lockout - boolean - Will users be locked out after incorrect login attempts?
@@ -572,9 +572,9 @@ class Site {
572
572
  // user_lockout_within - int64 - Number of hours for user lockout window
573
573
  // user_lockout_lock_period - int64 - How many hours to lock user out for failed password?
574
574
  // include_password_in_welcome_email - boolean - Include password in emails to new users?
575
- // allowed_countries - string - Comma seperated list of allowed Country codes
575
+ // allowed_countries - string - Comma separated list of allowed Country codes
576
576
  // allowed_ips - string - List of allowed IP addresses
577
- // disallowed_countries - string - Comma seperated list of disallowed Country codes
577
+ // disallowed_countries - string - Comma separated list of disallowed Country codes
578
578
  // days_to_retain_backups - int64 - Number of days to keep deleted files
579
579
  // max_prior_passwords - int64 - Number of prior passwords to disallow
580
580
  // password_validity_days - int64 - Number of days password is valid
@@ -507,7 +507,7 @@ class User {
507
507
  this.attributes.group_id = value
508
508
  }
509
509
 
510
- // string # Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
510
+ // string # Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
511
511
  getImportedPasswordHash = () => this.attributes.imported_password_hash
512
512
 
513
513
  setImportedPasswordHash = value => {
@@ -622,7 +622,7 @@ class User {
622
622
  // grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
623
623
  // group_id - int64 - Group ID to associate this user with.
624
624
  // group_ids - string - A list of group ids to associate this user with. Comma delimited.
625
- // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
625
+ // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
626
626
  // password - string - User password.
627
627
  // password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
628
628
  // announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
@@ -902,7 +902,7 @@ class User {
902
902
  // grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, `read+write`, or `list+write`
903
903
  // group_id - int64 - Group ID to associate this user with.
904
904
  // group_ids - string - A list of group ids to associate this user with. Comma delimited.
905
- // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
905
+ // imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash methods are MD5, SHA1, and SHA256.
906
906
  // password - string - User password.
907
907
  // password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
908
908
  // announcements_read - boolean - Signifies that the user has read all the announcements in the UI.