files.com 1.0.220 → 1.0.222

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/ApiKey.md +3 -0
  3. package/docs/models/Site.md +8 -0
  4. package/lib/Api.js +15 -82
  5. package/lib/Errors.js +9 -962
  6. package/lib/Files.js +0 -11
  7. package/lib/Logger.js +0 -24
  8. package/lib/index.js +0 -5
  9. package/lib/isomorphic/File.node.js +0 -19
  10. package/lib/models/AccountLineItem.js +3 -21
  11. package/lib/models/Action.js +3 -21
  12. package/lib/models/ActionNotificationExport.js +9 -61
  13. package/lib/models/ActionNotificationExportResult.js +6 -40
  14. package/lib/models/ActionWebhookFailure.js +5 -39
  15. package/lib/models/ApiKey.js +29 -128
  16. package/lib/models/App.js +6 -34
  17. package/lib/models/As2IncomingMessage.js +6 -36
  18. package/lib/models/As2OutgoingMessage.js +6 -36
  19. package/lib/models/As2Partner.js +16 -112
  20. package/lib/models/As2Station.js +16 -108
  21. package/lib/models/Auto.js +3 -21
  22. package/lib/models/Automation.js +16 -146
  23. package/lib/models/AutomationRun.js +9 -54
  24. package/lib/models/BandwidthSnapshot.js +6 -34
  25. package/lib/models/Behavior.js +22 -151
  26. package/lib/models/Bundle.js +18 -158
  27. package/lib/models/BundleDownload.js +6 -38
  28. package/lib/models/BundleRecipient.js +9 -62
  29. package/lib/models/BundleRegistration.js +6 -38
  30. package/lib/models/Clickwrap.js +16 -106
  31. package/lib/models/DnsRecord.js +6 -34
  32. package/lib/models/Errors.js +3 -21
  33. package/lib/models/ExternalEvent.js +12 -62
  34. package/lib/models/File.js +21 -271
  35. package/lib/models/FileAction.js +3 -21
  36. package/lib/models/FileComment.js +13 -94
  37. package/lib/models/FileCommentReaction.js +8 -55
  38. package/lib/models/FileMigration.js +6 -37
  39. package/lib/models/FileUploadPart.js +3 -21
  40. package/lib/models/Folder.js +9 -63
  41. package/lib/models/FormField.js +3 -21
  42. package/lib/models/FormFieldSet.js +16 -98
  43. package/lib/models/Group.js +16 -104
  44. package/lib/models/GroupUser.js +13 -108
  45. package/lib/models/History.js +18 -132
  46. package/lib/models/HistoryExport.js +9 -87
  47. package/lib/models/HistoryExportResult.js +6 -40
  48. package/lib/models/Image.js +3 -21
  49. package/lib/models/InboxRecipient.js +9 -62
  50. package/lib/models/InboxRegistration.js +6 -36
  51. package/lib/models/InboxUpload.js +6 -38
  52. package/lib/models/Invoice.js +9 -48
  53. package/lib/models/InvoiceLineItem.js +3 -21
  54. package/lib/models/IpAddress.js +9 -45
  55. package/lib/models/Lock.js +11 -82
  56. package/lib/models/Message.js +16 -124
  57. package/lib/models/MessageComment.js +16 -104
  58. package/lib/models/MessageCommentReaction.js +14 -82
  59. package/lib/models/MessageReaction.js +14 -82
  60. package/lib/models/Notification.js +16 -120
  61. package/lib/models/Payment.js +9 -48
  62. package/lib/models/PaymentLineItem.js +3 -21
  63. package/lib/models/Permission.js +11 -72
  64. package/lib/models/Preview.js +3 -21
  65. package/lib/models/Priority.js +6 -42
  66. package/lib/models/Project.js +16 -96
  67. package/lib/models/PublicIpAddress.js +3 -21
  68. package/lib/models/PublicKey.js +16 -104
  69. package/lib/models/RemoteBandwidthSnapshot.js +6 -34
  70. package/lib/models/RemoteServer.js +16 -270
  71. package/lib/models/Request.js +14 -89
  72. package/lib/models/Session.js +8 -41
  73. package/lib/models/SettingsChange.js +6 -34
  74. package/lib/models/SftpHostKey.js +16 -94
  75. package/lib/models/Site.js +93 -218
  76. package/lib/models/SsoStrategy.js +11 -64
  77. package/lib/models/Status.js +3 -21
  78. package/lib/models/Style.js +10 -73
  79. package/lib/models/UsageDailySnapshot.js +6 -34
  80. package/lib/models/UsageSnapshot.js +6 -34
  81. package/lib/models/User.js +22 -238
  82. package/lib/models/UserCipherUse.js +6 -36
  83. package/lib/models/UserRequest.js +14 -82
  84. package/lib/models/WebhookTest.js +6 -43
  85. package/lib/utils.js +0 -16
  86. package/package.json +1 -1
  87. package/src/models/ApiKey.js +7 -0
  88. package/src/models/Site.js +16 -0
@@ -326,6 +326,12 @@ class Site {
326
326
  // boolean # Is SFTP enabled?
327
327
  getSftpEnabled = () => this.attributes.sftp_enabled
328
328
 
329
+ // string # Sftp Host Key Type
330
+ getSftpHostKeyType = () => this.attributes.sftp_host_key_type
331
+
332
+ // int64 # Id of the currently selected custom SFTP Host Key
333
+ getActiveSftpHostKeyId = () => this.attributes.active_sftp_host_key_id
334
+
329
335
  // boolean # Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
330
336
  getSftpInsecureCiphers = () => this.attributes.sftp_insecure_ciphers
331
337
 
@@ -514,6 +520,8 @@ class Site {
514
520
  // user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
515
521
  // ftp_enabled - boolean - Is FTP enabled?
516
522
  // sftp_enabled - boolean - Is SFTP enabled?
523
+ // sftp_host_key_type - string - Sftp Host Key Type
524
+ // active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
517
525
  // bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
518
526
  // allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
519
527
  // allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
@@ -677,6 +685,14 @@ class Site {
677
685
  throw new errors.InvalidParameterError(`Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ${getType(params['disable_users_from_inactivity_period_days'])}`)
678
686
  }
679
687
 
688
+ if (params['sftp_host_key_type'] && !isString(params['sftp_host_key_type'])) {
689
+ throw new errors.InvalidParameterError(`Bad parameter: sftp_host_key_type must be of type String, received ${getType(params['sftp_host_key_type'])}`)
690
+ }
691
+
692
+ if (params['active_sftp_host_key_id'] && !isInt(params['active_sftp_host_key_id'])) {
693
+ throw new errors.InvalidParameterError(`Bad parameter: active_sftp_host_key_id must be of type Int, received ${getType(params['active_sftp_host_key_id'])}`)
694
+ }
695
+
680
696
  if (params['require_2fa_user_type'] && !isString(params['require_2fa_user_type'])) {
681
697
  throw new errors.InvalidParameterError(`Bad parameter: require_2fa_user_type must be of type String, received ${getType(params['require_2fa_user_type'])}`)
682
698
  }