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.
- package/_VERSION +1 -1
- package/docs/models/ApiKey.md +3 -0
- package/docs/models/Site.md +8 -0
- package/lib/Api.js +15 -82
- package/lib/Errors.js +9 -962
- package/lib/Files.js +0 -11
- package/lib/Logger.js +0 -24
- package/lib/index.js +0 -5
- package/lib/isomorphic/File.node.js +0 -19
- package/lib/models/AccountLineItem.js +3 -21
- package/lib/models/Action.js +3 -21
- package/lib/models/ActionNotificationExport.js +9 -61
- package/lib/models/ActionNotificationExportResult.js +6 -40
- package/lib/models/ActionWebhookFailure.js +5 -39
- package/lib/models/ApiKey.js +29 -128
- package/lib/models/App.js +6 -34
- package/lib/models/As2IncomingMessage.js +6 -36
- package/lib/models/As2OutgoingMessage.js +6 -36
- package/lib/models/As2Partner.js +16 -112
- package/lib/models/As2Station.js +16 -108
- package/lib/models/Auto.js +3 -21
- package/lib/models/Automation.js +16 -146
- package/lib/models/AutomationRun.js +9 -54
- package/lib/models/BandwidthSnapshot.js +6 -34
- package/lib/models/Behavior.js +22 -151
- package/lib/models/Bundle.js +18 -158
- package/lib/models/BundleDownload.js +6 -38
- package/lib/models/BundleRecipient.js +9 -62
- package/lib/models/BundleRegistration.js +6 -38
- package/lib/models/Clickwrap.js +16 -106
- package/lib/models/DnsRecord.js +6 -34
- package/lib/models/Errors.js +3 -21
- package/lib/models/ExternalEvent.js +12 -62
- package/lib/models/File.js +21 -271
- package/lib/models/FileAction.js +3 -21
- package/lib/models/FileComment.js +13 -94
- package/lib/models/FileCommentReaction.js +8 -55
- package/lib/models/FileMigration.js +6 -37
- package/lib/models/FileUploadPart.js +3 -21
- package/lib/models/Folder.js +9 -63
- package/lib/models/FormField.js +3 -21
- package/lib/models/FormFieldSet.js +16 -98
- package/lib/models/Group.js +16 -104
- package/lib/models/GroupUser.js +13 -108
- package/lib/models/History.js +18 -132
- package/lib/models/HistoryExport.js +9 -87
- package/lib/models/HistoryExportResult.js +6 -40
- package/lib/models/Image.js +3 -21
- package/lib/models/InboxRecipient.js +9 -62
- package/lib/models/InboxRegistration.js +6 -36
- package/lib/models/InboxUpload.js +6 -38
- package/lib/models/Invoice.js +9 -48
- package/lib/models/InvoiceLineItem.js +3 -21
- package/lib/models/IpAddress.js +9 -45
- package/lib/models/Lock.js +11 -82
- package/lib/models/Message.js +16 -124
- package/lib/models/MessageComment.js +16 -104
- package/lib/models/MessageCommentReaction.js +14 -82
- package/lib/models/MessageReaction.js +14 -82
- package/lib/models/Notification.js +16 -120
- package/lib/models/Payment.js +9 -48
- package/lib/models/PaymentLineItem.js +3 -21
- package/lib/models/Permission.js +11 -72
- package/lib/models/Preview.js +3 -21
- package/lib/models/Priority.js +6 -42
- package/lib/models/Project.js +16 -96
- package/lib/models/PublicIpAddress.js +3 -21
- package/lib/models/PublicKey.js +16 -104
- package/lib/models/RemoteBandwidthSnapshot.js +6 -34
- package/lib/models/RemoteServer.js +16 -270
- package/lib/models/Request.js +14 -89
- package/lib/models/Session.js +8 -41
- package/lib/models/SettingsChange.js +6 -34
- package/lib/models/SftpHostKey.js +16 -94
- package/lib/models/Site.js +93 -218
- package/lib/models/SsoStrategy.js +11 -64
- package/lib/models/Status.js +3 -21
- package/lib/models/Style.js +10 -73
- package/lib/models/UsageDailySnapshot.js +6 -34
- package/lib/models/UsageSnapshot.js +6 -34
- package/lib/models/User.js +22 -238
- package/lib/models/UserCipherUse.js +6 -36
- package/lib/models/UserRequest.js +14 -82
- package/lib/models/WebhookTest.js +6 -43
- package/lib/utils.js +0 -16
- package/package.json +1 -1
- package/src/models/ApiKey.js +7 -0
- package/src/models/Site.js +16 -0
package/src/models/Site.js
CHANGED
@@ -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
|
}
|