files.com 1.0.217 → 1.0.219

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/AccountLineItem.md +3 -19
  3. package/docs/models/ActionNotificationExport.md +1 -1
  4. package/docs/models/ApiKey.md +4 -2
  5. package/docs/models/App.md +17 -15
  6. package/docs/models/As2IncomingMessage.md +29 -25
  7. package/docs/models/As2OutgoingMessage.md +24 -20
  8. package/docs/models/As2Partner.md +15 -14
  9. package/docs/models/As2Station.md +18 -18
  10. package/docs/models/Automation.md +28 -40
  11. package/docs/models/Behavior.md +17 -12
  12. package/docs/models/Bundle.md +8 -66
  13. package/docs/models/BundleDownload.md +2 -2
  14. package/docs/models/BundleRegistration.md +5 -3
  15. package/docs/models/Clickwrap.md +12 -6
  16. package/docs/models/DnsRecord.md +1 -1
  17. package/docs/models/ExternalEvent.md +7 -7
  18. package/docs/models/File.md +16 -28
  19. package/docs/models/FileAction.md +1 -1
  20. package/docs/models/FileComment.md +2 -8
  21. package/docs/models/FileUploadPart.md +11 -5
  22. package/docs/models/Folder.md +1 -7
  23. package/docs/models/FormFieldSet.md +4 -30
  24. package/docs/models/Group.md +6 -4
  25. package/docs/models/GroupUser.md +2 -2
  26. package/docs/models/HistoryExport.md +1 -1
  27. package/docs/models/InboxRegistration.md +5 -3
  28. package/docs/models/InboxUpload.md +2 -2
  29. package/docs/models/Invoice.md +3 -19
  30. package/docs/models/Lock.md +1 -1
  31. package/docs/models/Message.md +2 -20
  32. package/docs/models/MessageComment.md +2 -8
  33. package/docs/models/Notification.md +4 -4
  34. package/docs/models/Payment.md +3 -19
  35. package/docs/models/Permission.md +4 -2
  36. package/docs/models/PublicIpAddress.md +2 -2
  37. package/docs/models/RemoteServer.md +12 -6
  38. package/docs/models/Request.md +6 -5
  39. package/docs/models/SettingsChange.md +1 -1
  40. package/docs/models/SftpHostKey.md +8 -10
  41. package/docs/models/Site.md +47 -114
  42. package/docs/models/SsoStrategy.md +12 -12
  43. package/docs/models/Status.md +4 -11
  44. package/docs/models/Style.md +4 -4
  45. package/docs/models/UsageDailySnapshot.md +11 -9
  46. package/docs/models/UsageSnapshot.md +3 -1
  47. package/docs/models/User.md +16 -12
  48. package/docs/models/UserRequest.md +1 -1
  49. package/docs/models/WebhookTest.md +4 -4
  50. package/lib/models/Site.js +104 -87
  51. package/package.json +1 -1
  52. package/src/models/Site.js +16 -0
@@ -245,6 +245,15 @@ class Site {
245
245
  // int64 # Number of prior passwords to disallow
246
246
  getMaxPriorPasswords = () => this.attributes.max_prior_passwords
247
247
 
248
+ // string # A message to show users when they connect via FTP or SFTP.
249
+ getMotdText = () => this.attributes.motd_text
250
+
251
+ // boolean # Show message to users connecting via FTP
252
+ getMotdUseForFtp = () => this.attributes.motd_use_for_ftp
253
+
254
+ // boolean # Show message to users connecting via SFTP
255
+ getMotdUseForSftp = () => this.attributes.motd_use_for_sftp
256
+
248
257
  // double # Next billing amount
249
258
  getNextBillingAmount = () => this.attributes.next_billing_amount
250
259
 
@@ -462,6 +471,9 @@ class Site {
462
471
  // welcome_screen - string - Does the welcome screen appear?
463
472
  // office_integration_available - boolean - Allow users to use Office for the web?
464
473
  // pin_all_remote_servers_to_site_region - boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
474
+ // motd_text - string - A message to show users when they connect via FTP or SFTP.
475
+ // motd_use_for_ftp - boolean - Show message to users connecting via FTP
476
+ // motd_use_for_sftp - boolean - Show message to users connecting via SFTP
465
477
  // session_expiry - double - Session expiry in hours
466
478
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
467
479
  // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -617,6 +629,10 @@ class Site {
617
629
  throw new errors.InvalidParameterError(`Bad parameter: welcome_screen must be of type String, received ${getType(params['welcome_screen'])}`)
618
630
  }
619
631
 
632
+ if (params['motd_text'] && !isString(params['motd_text'])) {
633
+ throw new errors.InvalidParameterError(`Bad parameter: motd_text must be of type String, received ${getType(params['motd_text'])}`)
634
+ }
635
+
620
636
  if (params['user_lockout_tries'] && !isInt(params['user_lockout_tries'])) {
621
637
  throw new errors.InvalidParameterError(`Bad parameter: user_lockout_tries must be of type Int, received ${getType(params['user_lockout_tries'])}`)
622
638
  }