files.com 1.0.248 → 1.0.250

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Site.md +4 -0
  3. package/lib/models/AccountLineItem.js +14 -0
  4. package/lib/models/Action.js +13 -0
  5. package/lib/models/ActionNotificationExport.js +27 -0
  6. package/lib/models/ActionNotificationExportResult.js +15 -0
  7. package/lib/models/ActionWebhookFailure.js +1 -0
  8. package/lib/models/ApiKey.js +42 -0
  9. package/lib/models/App.js +26 -0
  10. package/lib/models/As2IncomingMessage.js +46 -0
  11. package/lib/models/As2OutgoingMessage.js +42 -0
  12. package/lib/models/As2Partner.js +29 -0
  13. package/lib/models/As2Station.js +31 -0
  14. package/lib/models/Auto.js +1 -0
  15. package/lib/models/Automation.js +72 -0
  16. package/lib/models/AutomationRun.js +20 -0
  17. package/lib/models/BandwidthSnapshot.js +19 -0
  18. package/lib/models/Behavior.js +57 -0
  19. package/lib/models/Bundle.js +98 -0
  20. package/lib/models/BundleDownload.js +16 -0
  21. package/lib/models/BundleNotification.js +20 -0
  22. package/lib/models/BundleRecipient.js +28 -0
  23. package/lib/models/BundleRegistration.js +18 -0
  24. package/lib/models/Clickwrap.js +23 -0
  25. package/lib/models/DnsRecord.js +7 -0
  26. package/lib/models/Errors.js +2 -0
  27. package/lib/models/ExternalEvent.js +26 -0
  28. package/lib/models/File.js +88 -0
  29. package/lib/models/FileAction.js +2 -0
  30. package/lib/models/FileComment.js +13 -0
  31. package/lib/models/FileCommentReaction.js +8 -0
  32. package/lib/models/FileMigration.js +11 -0
  33. package/lib/models/FileUploadPart.js +15 -0
  34. package/lib/models/Folder.js +33 -0
  35. package/lib/models/FormField.js +8 -0
  36. package/lib/models/FormFieldSet.js +27 -0
  37. package/lib/models/Group.js +29 -0
  38. package/lib/models/GroupUser.js +22 -0
  39. package/lib/models/History.js +57 -0
  40. package/lib/models/HistoryExport.js +51 -0
  41. package/lib/models/HistoryExportResult.js +29 -0
  42. package/lib/models/Image.js +2 -0
  43. package/lib/models/InboxRecipient.js +28 -0
  44. package/lib/models/InboxRegistration.js +15 -0
  45. package/lib/models/InboxUpload.js +15 -0
  46. package/lib/models/Invoice.js +19 -0
  47. package/lib/models/InvoiceLineItem.js +9 -0
  48. package/lib/models/IpAddress.js +13 -0
  49. package/lib/models/Lock.js +25 -0
  50. package/lib/models/Message.js +22 -0
  51. package/lib/models/MessageComment.js +16 -0
  52. package/lib/models/MessageCommentReaction.js +13 -0
  53. package/lib/models/MessageReaction.js +13 -0
  54. package/lib/models/Notification.js +70 -0
  55. package/lib/models/Payment.js +19 -0
  56. package/lib/models/PaymentLineItem.js +4 -0
  57. package/lib/models/Permission.js +29 -0
  58. package/lib/models/Preview.js +5 -0
  59. package/lib/models/Priority.js +6 -0
  60. package/lib/models/Project.js +11 -0
  61. package/lib/models/PublicIpAddress.js +4 -0
  62. package/lib/models/PublicKey.js +18 -0
  63. package/lib/models/RemoteBandwidthSnapshot.js +15 -0
  64. package/lib/models/RemoteServer.js +194 -0
  65. package/lib/models/RemoteServerConfigurationFile.js +12 -0
  66. package/lib/models/Request.js +25 -0
  67. package/lib/models/Session.js +13 -0
  68. package/lib/models/SettingsChange.js +15 -0
  69. package/lib/models/SftpHostKey.js +16 -0
  70. package/lib/models/Site.js +281 -0
  71. package/lib/models/SsoStrategy.js +49 -0
  72. package/lib/models/Status.js +7 -0
  73. package/lib/models/Style.js +9 -0
  74. package/lib/models/UsageDailySnapshot.js +21 -0
  75. package/lib/models/UsageSnapshot.js +18 -0
  76. package/lib/models/User.js +183 -0
  77. package/lib/models/UserCipherUse.js +10 -0
  78. package/lib/models/UserRequest.js +13 -0
  79. package/lib/models/WebhookTest.js +24 -0
  80. package/package.json +1 -1
  81. package/src/models/Site.js +4 -0
@@ -31,429 +31,575 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // string # Site name
34
35
  (0, _defineProperty2.default)(this, "getName", function () {
35
36
  return _this.attributes.name;
36
37
  });
38
+ // boolean # Is SMS two factor authentication allowed?
37
39
  (0, _defineProperty2.default)(this, "getAllowed2faMethodSms", function () {
38
40
  return _this.attributes.allowed_2fa_method_sms;
39
41
  });
42
+ // boolean # Is TOTP two factor authentication allowed?
40
43
  (0, _defineProperty2.default)(this, "getAllowed2faMethodTotp", function () {
41
44
  return _this.attributes.allowed_2fa_method_totp;
42
45
  });
46
+ // boolean # Is U2F two factor authentication allowed?
43
47
  (0, _defineProperty2.default)(this, "getAllowed2faMethodU2f", function () {
44
48
  return _this.attributes.allowed_2fa_method_u2f;
45
49
  });
50
+ // boolean # Is WebAuthn two factor authentication allowed?
46
51
  (0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
47
52
  return _this.attributes.allowed_2fa_method_webauthn;
48
53
  });
54
+ // boolean # Is yubikey two factor authentication allowed?
49
55
  (0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
50
56
  return _this.attributes.allowed_2fa_method_yubi;
51
57
  });
58
+ // boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
52
59
  (0, _defineProperty2.default)(this, "getAllowed2faMethodBypassForFtpSftpDav", function () {
53
60
  return _this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav;
54
61
  });
62
+ // int64 # User ID for the main site administrator
55
63
  (0, _defineProperty2.default)(this, "getAdminUserId", function () {
56
64
  return _this.attributes.admin_user_id;
57
65
  });
66
+ // boolean # Are manual Bundle names allowed?
58
67
  (0, _defineProperty2.default)(this, "getAllowBundleNames", function () {
59
68
  return _this.attributes.allow_bundle_names;
60
69
  });
70
+ // string # Comma seperated list of allowed Country codes
61
71
  (0, _defineProperty2.default)(this, "getAllowedCountries", function () {
62
72
  return _this.attributes.allowed_countries;
63
73
  });
74
+ // string # List of allowed IP addresses
64
75
  (0, _defineProperty2.default)(this, "getAllowedIps", function () {
65
76
  return _this.attributes.allowed_ips;
66
77
  });
78
+ // boolean # If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
67
79
  (0, _defineProperty2.default)(this, "getAskAboutOverwrites", function () {
68
80
  return _this.attributes.ask_about_overwrites;
69
81
  });
82
+ // string # Do Bundle owners receive activity notifications?
70
83
  (0, _defineProperty2.default)(this, "getBundleActivityNotifications", function () {
71
84
  return _this.attributes.bundle_activity_notifications;
72
85
  });
86
+ // int64 # Site-wide Bundle expiration in days
73
87
  (0, _defineProperty2.default)(this, "getBundleExpiration", function () {
74
88
  return _this.attributes.bundle_expiration;
75
89
  });
90
+ // boolean # Do Bundles require password protection?
76
91
  (0, _defineProperty2.default)(this, "getBundlePasswordRequired", function () {
77
92
  return _this.attributes.bundle_password_required;
78
93
  });
94
+ // string # Do Bundle owners receive registration notification?
79
95
  (0, _defineProperty2.default)(this, "getBundleRegistrationNotifications", function () {
80
96
  return _this.attributes.bundle_registration_notifications;
81
97
  });
98
+ // boolean # Do Bundles require recipients for sharing?
82
99
  (0, _defineProperty2.default)(this, "getBundleRequireShareRecipient", function () {
83
100
  return _this.attributes.bundle_require_share_recipient;
84
101
  });
102
+ // string # Do Bundle uploaders receive upload confirmation notifications?
85
103
  (0, _defineProperty2.default)(this, "getBundleUploadReceiptNotifications", function () {
86
104
  return _this.attributes.bundle_upload_receipt_notifications;
87
105
  });
106
+ // Image # Preview watermark image applied to all bundle items.
88
107
  (0, _defineProperty2.default)(this, "getBundleWatermarkAttachment", function () {
89
108
  return _this.attributes.bundle_watermark_attachment;
90
109
  });
110
+ // object # Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
91
111
  (0, _defineProperty2.default)(this, "getBundleWatermarkValue", function () {
92
112
  return _this.attributes.bundle_watermark_value;
93
113
  });
114
+ // boolean # Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
115
+ (0, _defineProperty2.default)(this, "getUploadsViaEmailAuthentication", function () {
116
+ return _this.attributes.uploads_via_email_authentication;
117
+ });
118
+ // string # Page link and button color
94
119
  (0, _defineProperty2.default)(this, "getColor2Left", function () {
95
120
  return _this.attributes.color2_left;
96
121
  });
122
+ // string # Top bar link color
97
123
  (0, _defineProperty2.default)(this, "getColor2Link", function () {
98
124
  return _this.attributes.color2_link;
99
125
  });
126
+ // string # Page link and button color
100
127
  (0, _defineProperty2.default)(this, "getColor2Text", function () {
101
128
  return _this.attributes.color2_text;
102
129
  });
130
+ // string # Top bar background color
103
131
  (0, _defineProperty2.default)(this, "getColor2Top", function () {
104
132
  return _this.attributes.color2_top;
105
133
  });
134
+ // string # Top bar text color
106
135
  (0, _defineProperty2.default)(this, "getColor2TopText", function () {
107
136
  return _this.attributes.color2_top_text;
108
137
  });
138
+ // string # Site main contact name
109
139
  (0, _defineProperty2.default)(this, "getContactName", function () {
110
140
  return _this.attributes.contact_name;
111
141
  });
142
+ // date-time # Time this site was created
112
143
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
113
144
  return _this.attributes.created_at;
114
145
  });
146
+ // string # Preferred currency
115
147
  (0, _defineProperty2.default)(this, "getCurrency", function () {
116
148
  return _this.attributes.currency;
117
149
  });
150
+ // boolean # Is this site using a custom namespace for users?
118
151
  (0, _defineProperty2.default)(this, "getCustomNamespace", function () {
119
152
  return _this.attributes.custom_namespace;
120
153
  });
154
+ // int64 # Number of days to keep deleted files
121
155
  (0, _defineProperty2.default)(this, "getDaysToRetainBackups", function () {
122
156
  return _this.attributes.days_to_retain_backups;
123
157
  });
158
+ // string # Site default time zone
124
159
  (0, _defineProperty2.default)(this, "getDefaultTimeZone", function () {
125
160
  return _this.attributes.default_time_zone;
126
161
  });
162
+ // boolean # Is the desktop app enabled?
127
163
  (0, _defineProperty2.default)(this, "getDesktopApp", function () {
128
164
  return _this.attributes.desktop_app;
129
165
  });
166
+ // boolean # Is desktop app session IP pinning enabled?
130
167
  (0, _defineProperty2.default)(this, "getDesktopAppSessionIpPinning", function () {
131
168
  return _this.attributes.desktop_app_session_ip_pinning;
132
169
  });
170
+ // int64 # Desktop app session lifetime (in hours)
133
171
  (0, _defineProperty2.default)(this, "getDesktopAppSessionLifetime", function () {
134
172
  return _this.attributes.desktop_app_session_lifetime;
135
173
  });
174
+ // boolean # Is the mobile app enabled?
136
175
  (0, _defineProperty2.default)(this, "getMobileApp", function () {
137
176
  return _this.attributes.mobile_app;
138
177
  });
178
+ // boolean # Is mobile app session IP pinning enabled?
139
179
  (0, _defineProperty2.default)(this, "getMobileAppSessionIpPinning", function () {
140
180
  return _this.attributes.mobile_app_session_ip_pinning;
141
181
  });
182
+ // int64 # Mobile app session lifetime (in hours)
142
183
  (0, _defineProperty2.default)(this, "getMobileAppSessionLifetime", function () {
143
184
  return _this.attributes.mobile_app_session_lifetime;
144
185
  });
186
+ // string # Comma seperated list of disallowed Country codes
145
187
  (0, _defineProperty2.default)(this, "getDisallowedCountries", function () {
146
188
  return _this.attributes.disallowed_countries;
147
189
  });
190
+ // boolean # If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
148
191
  (0, _defineProperty2.default)(this, "getDisableFilesCertificateGeneration", function () {
149
192
  return _this.attributes.disable_files_certificate_generation;
150
193
  });
194
+ // boolean # Are notifications disabled?
151
195
  (0, _defineProperty2.default)(this, "getDisableNotifications", function () {
152
196
  return _this.attributes.disable_notifications;
153
197
  });
198
+ // boolean # Is password reset disabled?
154
199
  (0, _defineProperty2.default)(this, "getDisablePasswordReset", function () {
155
200
  return _this.attributes.disable_password_reset;
156
201
  });
202
+ // string # Custom domain
157
203
  (0, _defineProperty2.default)(this, "getDomain", function () {
158
204
  return _this.attributes.domain;
159
205
  });
206
+ // boolean # Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
160
207
  (0, _defineProperty2.default)(this, "getDomainHstsHeader", function () {
161
208
  return _this.attributes.domain_hsts_header;
162
209
  });
210
+ // string # Letsencrypt chain to use when registering SSL Certificate for domain.
163
211
  (0, _defineProperty2.default)(this, "getDomainLetsencryptChain", function () {
164
212
  return _this.attributes.domain_letsencrypt_chain;
165
213
  });
214
+ // email # Main email for this site
166
215
  (0, _defineProperty2.default)(this, "getEmail", function () {
167
216
  return _this.attributes.email;
168
217
  });
218
+ // boolean # Is FTP enabled?
169
219
  (0, _defineProperty2.default)(this, "getFtpEnabled", function () {
170
220
  return _this.attributes.ftp_enabled;
171
221
  });
222
+ // email # Reply-to email for this site
172
223
  (0, _defineProperty2.default)(this, "getReplyToEmail", function () {
173
224
  return _this.attributes.reply_to_email;
174
225
  });
226
+ // boolean # If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
175
227
  (0, _defineProperty2.default)(this, "getNonSsoGroupsAllowed", function () {
176
228
  return _this.attributes.non_sso_groups_allowed;
177
229
  });
230
+ // boolean # If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
178
231
  (0, _defineProperty2.default)(this, "getNonSsoUsersAllowed", function () {
179
232
  return _this.attributes.non_sso_users_allowed;
180
233
  });
234
+ // boolean # If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
181
235
  (0, _defineProperty2.default)(this, "getFolderPermissionsGroupsOnly", function () {
182
236
  return _this.attributes.folder_permissions_groups_only;
183
237
  });
238
+ // boolean # Is there a signed HIPAA BAA between Files.com and this site?
184
239
  (0, _defineProperty2.default)(this, "getHipaa", function () {
185
240
  return _this.attributes.hipaa;
186
241
  });
242
+ // Image # Branded icon 128x128
187
243
  (0, _defineProperty2.default)(this, "getIcon128", function () {
188
244
  return _this.attributes.icon128;
189
245
  });
246
+ // Image # Branded icon 16x16
190
247
  (0, _defineProperty2.default)(this, "getIcon16", function () {
191
248
  return _this.attributes.icon16;
192
249
  });
250
+ // Image # Branded icon 32x32
193
251
  (0, _defineProperty2.default)(this, "getIcon32", function () {
194
252
  return _this.attributes.icon32;
195
253
  });
254
+ // Image # Branded icon 48x48
196
255
  (0, _defineProperty2.default)(this, "getIcon48", function () {
197
256
  return _this.attributes.icon48;
198
257
  });
258
+ // date-time # Can files be modified?
199
259
  (0, _defineProperty2.default)(this, "getImmutableFilesSetAt", function () {
200
260
  return _this.attributes.immutable_files_set_at;
201
261
  });
262
+ // boolean # Include password in emails to new users?
202
263
  (0, _defineProperty2.default)(this, "getIncludePasswordInWelcomeEmail", function () {
203
264
  return _this.attributes.include_password_in_welcome_email;
204
265
  });
266
+ // string # Site default language
205
267
  (0, _defineProperty2.default)(this, "getLanguage", function () {
206
268
  return _this.attributes.language;
207
269
  });
270
+ // string # Base DN for looking up users in LDAP server
208
271
  (0, _defineProperty2.default)(this, "getLdapBaseDn", function () {
209
272
  return _this.attributes.ldap_base_dn;
210
273
  });
274
+ // string # Domain name that will be appended to usernames
211
275
  (0, _defineProperty2.default)(this, "getLdapDomain", function () {
212
276
  return _this.attributes.ldap_domain;
213
277
  });
278
+ // boolean # Main LDAP setting: is LDAP enabled?
214
279
  (0, _defineProperty2.default)(this, "getLdapEnabled", function () {
215
280
  return _this.attributes.ldap_enabled;
216
281
  });
282
+ // string # Should we sync groups from LDAP server?
217
283
  (0, _defineProperty2.default)(this, "getLdapGroupAction", function () {
218
284
  return _this.attributes.ldap_group_action;
219
285
  });
286
+ // string # Comma or newline separated list of group names (with optional wildcards) to exclude when syncing.
220
287
  (0, _defineProperty2.default)(this, "getLdapGroupExclusion", function () {
221
288
  return _this.attributes.ldap_group_exclusion;
222
289
  });
290
+ // string # Comma or newline separated list of group names (with optional wildcards) to include when syncing.
223
291
  (0, _defineProperty2.default)(this, "getLdapGroupInclusion", function () {
224
292
  return _this.attributes.ldap_group_inclusion;
225
293
  });
294
+ // string # LDAP host
226
295
  (0, _defineProperty2.default)(this, "getLdapHost", function () {
227
296
  return _this.attributes.ldap_host;
228
297
  });
298
+ // string # LDAP backup host
229
299
  (0, _defineProperty2.default)(this, "getLdapHost2", function () {
230
300
  return _this.attributes.ldap_host_2;
231
301
  });
302
+ // string # LDAP backup host
232
303
  (0, _defineProperty2.default)(this, "getLdapHost3", function () {
233
304
  return _this.attributes.ldap_host_3;
234
305
  });
306
+ // int64 # LDAP port
235
307
  (0, _defineProperty2.default)(this, "getLdapPort", function () {
236
308
  return _this.attributes.ldap_port;
237
309
  });
310
+ // boolean # Use secure LDAP?
238
311
  (0, _defineProperty2.default)(this, "getLdapSecure", function () {
239
312
  return _this.attributes.ldap_secure;
240
313
  });
314
+ // string # LDAP type
241
315
  (0, _defineProperty2.default)(this, "getLdapType", function () {
242
316
  return _this.attributes.ldap_type;
243
317
  });
318
+ // string # Should we sync users from LDAP server?
244
319
  (0, _defineProperty2.default)(this, "getLdapUserAction", function () {
245
320
  return _this.attributes.ldap_user_action;
246
321
  });
322
+ // string # Comma or newline separated list of group names (with optional wildcards) - if provided, only users in these groups will be added or synced.
247
323
  (0, _defineProperty2.default)(this, "getLdapUserIncludeGroups", function () {
248
324
  return _this.attributes.ldap_user_include_groups;
249
325
  });
326
+ // string # Username for signing in to LDAP server.
250
327
  (0, _defineProperty2.default)(this, "getLdapUsername", function () {
251
328
  return _this.attributes.ldap_username;
252
329
  });
330
+ // string # LDAP username field
253
331
  (0, _defineProperty2.default)(this, "getLdapUsernameField", function () {
254
332
  return _this.attributes.ldap_username_field;
255
333
  });
334
+ // string # Login help text
256
335
  (0, _defineProperty2.default)(this, "getLoginHelpText", function () {
257
336
  return _this.attributes.login_help_text;
258
337
  });
338
+ // Image # Branded logo
259
339
  (0, _defineProperty2.default)(this, "getLogo", function () {
260
340
  return _this.attributes.logo;
261
341
  });
342
+ // int64 # Number of prior passwords to disallow
262
343
  (0, _defineProperty2.default)(this, "getMaxPriorPasswords", function () {
263
344
  return _this.attributes.max_prior_passwords;
264
345
  });
346
+ // string # A message to show users when they connect via FTP or SFTP.
265
347
  (0, _defineProperty2.default)(this, "getMotdText", function () {
266
348
  return _this.attributes.motd_text;
267
349
  });
350
+ // boolean # Show message to users connecting via FTP
268
351
  (0, _defineProperty2.default)(this, "getMotdUseForFtp", function () {
269
352
  return _this.attributes.motd_use_for_ftp;
270
353
  });
354
+ // boolean # Show message to users connecting via SFTP
271
355
  (0, _defineProperty2.default)(this, "getMotdUseForSftp", function () {
272
356
  return _this.attributes.motd_use_for_sftp;
273
357
  });
358
+ // double # Next billing amount
274
359
  (0, _defineProperty2.default)(this, "getNextBillingAmount", function () {
275
360
  return _this.attributes.next_billing_amount;
276
361
  });
362
+ // string # Next billing date
277
363
  (0, _defineProperty2.default)(this, "getNextBillingDate", function () {
278
364
  return _this.attributes.next_billing_date;
279
365
  });
366
+ // boolean # Allow users to use Office for the web?
280
367
  (0, _defineProperty2.default)(this, "getOfficeIntegrationAvailable", function () {
281
368
  return _this.attributes.office_integration_available;
282
369
  });
370
+ // string # Office integration application used to edit and view the MS Office documents
283
371
  (0, _defineProperty2.default)(this, "getOfficeIntegrationType", function () {
284
372
  return _this.attributes.office_integration_type;
285
373
  });
374
+ // string # Link to scheduling a meeting with our Sales team
286
375
  (0, _defineProperty2.default)(this, "getOncehubLink", function () {
287
376
  return _this.attributes.oncehub_link;
288
377
  });
378
+ // boolean # Use servers in the USA only?
289
379
  (0, _defineProperty2.default)(this, "getOptOutGlobal", function () {
290
380
  return _this.attributes.opt_out_global;
291
381
  });
382
+ // date-time # Last time the site was notified about an overage
292
383
  (0, _defineProperty2.default)(this, "getOverageNotifiedAt", function () {
293
384
  return _this.attributes.overage_notified_at;
294
385
  });
386
+ // boolean # Notify site email of overages?
295
387
  (0, _defineProperty2.default)(this, "getOverageNotify", function () {
296
388
  return _this.attributes.overage_notify;
297
389
  });
390
+ // boolean # Is this site's billing overdue?
298
391
  (0, _defineProperty2.default)(this, "getOverdue", function () {
299
392
  return _this.attributes.overdue;
300
393
  });
394
+ // int64 # Shortest password length for users
301
395
  (0, _defineProperty2.default)(this, "getPasswordMinLength", function () {
302
396
  return _this.attributes.password_min_length;
303
397
  });
398
+ // boolean # Require a letter in passwords?
304
399
  (0, _defineProperty2.default)(this, "getPasswordRequireLetter", function () {
305
400
  return _this.attributes.password_require_letter;
306
401
  });
402
+ // boolean # Require lower and upper case letters in passwords?
307
403
  (0, _defineProperty2.default)(this, "getPasswordRequireMixed", function () {
308
404
  return _this.attributes.password_require_mixed;
309
405
  });
406
+ // boolean # Require a number in passwords?
310
407
  (0, _defineProperty2.default)(this, "getPasswordRequireNumber", function () {
311
408
  return _this.attributes.password_require_number;
312
409
  });
410
+ // boolean # Require special characters in password?
313
411
  (0, _defineProperty2.default)(this, "getPasswordRequireSpecial", function () {
314
412
  return _this.attributes.password_require_special;
315
413
  });
414
+ // boolean # Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
316
415
  (0, _defineProperty2.default)(this, "getPasswordRequireUnbreached", function () {
317
416
  return _this.attributes.password_require_unbreached;
318
417
  });
418
+ // boolean # Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
319
419
  (0, _defineProperty2.default)(this, "getPasswordRequirementsApplyToBundles", function () {
320
420
  return _this.attributes.password_requirements_apply_to_bundles;
321
421
  });
422
+ // int64 # Number of days password is valid
322
423
  (0, _defineProperty2.default)(this, "getPasswordValidityDays", function () {
323
424
  return _this.attributes.password_validity_days;
324
425
  });
426
+ // string # Site phone number
325
427
  (0, _defineProperty2.default)(this, "getPhone", function () {
326
428
  return _this.attributes.phone;
327
429
  });
430
+ // 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.
328
431
  (0, _defineProperty2.default)(this, "getPinAllRemoteServersToSiteRegion", function () {
329
432
  return _this.attributes.pin_all_remote_servers_to_site_region;
330
433
  });
434
+ // boolean # Require two-factor authentication for all users?
331
435
  (0, _defineProperty2.default)(this, "getRequire2fa", function () {
332
436
  return _this.attributes.require_2fa;
333
437
  });
438
+ // date-time # If set, requirement for two-factor authentication has been scheduled to end on this date-time.
334
439
  (0, _defineProperty2.default)(this, "getRequire2faStopTime", function () {
335
440
  return _this.attributes.require_2fa_stop_time;
336
441
  });
442
+ // string # What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
337
443
  (0, _defineProperty2.default)(this, "getRequire2faUserType", function () {
338
444
  return _this.attributes.require_2fa_user_type;
339
445
  });
446
+ // Session # Current session
340
447
  (0, _defineProperty2.default)(this, "getSession", function () {
341
448
  return _this.attributes.session;
342
449
  });
450
+ // boolean # Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
343
451
  (0, _defineProperty2.default)(this, "getSessionPinnedByIp", function () {
344
452
  return _this.attributes.session_pinned_by_ip;
345
453
  });
454
+ // boolean # Is SFTP enabled?
346
455
  (0, _defineProperty2.default)(this, "getSftpEnabled", function () {
347
456
  return _this.attributes.sftp_enabled;
348
457
  });
458
+ // string # Sftp Host Key Type
349
459
  (0, _defineProperty2.default)(this, "getSftpHostKeyType", function () {
350
460
  return _this.attributes.sftp_host_key_type;
351
461
  });
462
+ // int64 # Id of the currently selected custom SFTP Host Key
352
463
  (0, _defineProperty2.default)(this, "getActiveSftpHostKeyId", function () {
353
464
  return _this.attributes.active_sftp_host_key_id;
354
465
  });
466
+ // 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.
355
467
  (0, _defineProperty2.default)(this, "getSftpInsecureCiphers", function () {
356
468
  return _this.attributes.sftp_insecure_ciphers;
357
469
  });
470
+ // boolean # Use user FTP roots also for SFTP?
358
471
  (0, _defineProperty2.default)(this, "getSftpUserRootEnabled", function () {
359
472
  return _this.attributes.sftp_user_root_enabled;
360
473
  });
474
+ // boolean # Allow bundle creation
361
475
  (0, _defineProperty2.default)(this, "getSharingEnabled", function () {
362
476
  return _this.attributes.sharing_enabled;
363
477
  });
478
+ // boolean # Show request access link for users without access? Currently unused.
364
479
  (0, _defineProperty2.default)(this, "getShowRequestAccessLink", function () {
365
480
  return _this.attributes.show_request_access_link;
366
481
  });
482
+ // string # Custom site footer text
367
483
  (0, _defineProperty2.default)(this, "getSiteFooter", function () {
368
484
  return _this.attributes.site_footer;
369
485
  });
486
+ // string # Custom site header text
370
487
  (0, _defineProperty2.default)(this, "getSiteHeader", function () {
371
488
  return _this.attributes.site_header;
372
489
  });
490
+ // string # SMTP server hostname or IP
373
491
  (0, _defineProperty2.default)(this, "getSmtpAddress", function () {
374
492
  return _this.attributes.smtp_address;
375
493
  });
494
+ // string # SMTP server authentication type
376
495
  (0, _defineProperty2.default)(this, "getSmtpAuthentication", function () {
377
496
  return _this.attributes.smtp_authentication;
378
497
  });
498
+ // string # From address to use when mailing through custom SMTP
379
499
  (0, _defineProperty2.default)(this, "getSmtpFrom", function () {
380
500
  return _this.attributes.smtp_from;
381
501
  });
502
+ // int64 # SMTP server port
382
503
  (0, _defineProperty2.default)(this, "getSmtpPort", function () {
383
504
  return _this.attributes.smtp_port;
384
505
  });
506
+ // string # SMTP server username
385
507
  (0, _defineProperty2.default)(this, "getSmtpUsername", function () {
386
508
  return _this.attributes.smtp_username;
387
509
  });
510
+ // double # Session expiry in hours
388
511
  (0, _defineProperty2.default)(this, "getSessionExpiry", function () {
389
512
  return _this.attributes.session_expiry;
390
513
  });
514
+ // int64 # Session expiry in minutes
391
515
  (0, _defineProperty2.default)(this, "getSessionExpiryMinutes", function () {
392
516
  return _this.attributes.session_expiry_minutes;
393
517
  });
518
+ // boolean # Is SSL required? Disabling this is insecure.
394
519
  (0, _defineProperty2.default)(this, "getSslRequired", function () {
395
520
  return _this.attributes.ssl_required;
396
521
  });
522
+ // string # Site subdomain
397
523
  (0, _defineProperty2.default)(this, "getSubdomain", function () {
398
524
  return _this.attributes.subdomain;
399
525
  });
526
+ // date-time # If switching plans, when does the new plan take effect?
400
527
  (0, _defineProperty2.default)(this, "getSwitchToPlanDate", function () {
401
528
  return _this.attributes.switch_to_plan_date;
402
529
  });
530
+ // boolean # Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
403
531
  (0, _defineProperty2.default)(this, "getTlsDisabled", function () {
404
532
  return _this.attributes.tls_disabled;
405
533
  });
534
+ // int64 # Number of days left in trial
406
535
  (0, _defineProperty2.default)(this, "getTrialDaysLeft", function () {
407
536
  return _this.attributes.trial_days_left;
408
537
  });
538
+ // date-time # When does this Site trial expire?
409
539
  (0, _defineProperty2.default)(this, "getTrialUntil", function () {
410
540
  return _this.attributes.trial_until;
411
541
  });
542
+ // date-time # Last time this Site was updated
412
543
  (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
413
544
  return _this.attributes.updated_at;
414
545
  });
546
+ // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
415
547
  (0, _defineProperty2.default)(this, "getUseProvidedModifiedAt", function () {
416
548
  return _this.attributes.use_provided_modified_at;
417
549
  });
550
+ // User # User of current session
418
551
  (0, _defineProperty2.default)(this, "getUser", function () {
419
552
  return _this.attributes.user;
420
553
  });
554
+ // boolean # Will users be locked out after incorrect login attempts?
421
555
  (0, _defineProperty2.default)(this, "getUserLockout", function () {
422
556
  return _this.attributes.user_lockout;
423
557
  });
558
+ // int64 # How many hours to lock user out for failed password?
424
559
  (0, _defineProperty2.default)(this, "getUserLockoutLockPeriod", function () {
425
560
  return _this.attributes.user_lockout_lock_period;
426
561
  });
562
+ // int64 # Number of login tries within `user_lockout_within` hours before users are locked out
427
563
  (0, _defineProperty2.default)(this, "getUserLockoutTries", function () {
428
564
  return _this.attributes.user_lockout_tries;
429
565
  });
566
+ // int64 # Number of hours for user lockout window
430
567
  (0, _defineProperty2.default)(this, "getUserLockoutWithin", function () {
431
568
  return _this.attributes.user_lockout_within;
432
569
  });
570
+ // boolean # Enable User Requests feature
433
571
  (0, _defineProperty2.default)(this, "getUserRequestsEnabled", function () {
434
572
  return _this.attributes.user_requests_enabled;
435
573
  });
574
+ // boolean # Send email to site admins when a user request is received?
436
575
  (0, _defineProperty2.default)(this, "getUserRequestsNotifyAdmins", function () {
437
576
  return _this.attributes.user_requests_notify_admins;
438
577
  });
578
+ // string # Custom text send in user welcome email
439
579
  (0, _defineProperty2.default)(this, "getWelcomeCustomText", function () {
440
580
  return _this.attributes.welcome_custom_text;
441
581
  });
582
+ // email # Include this email in welcome emails if enabled
442
583
  (0, _defineProperty2.default)(this, "getWelcomeEmailCc", function () {
443
584
  return _this.attributes.welcome_email_cc;
444
585
  });
586
+ // string # Include this email subject in welcome emails if enabled
445
587
  (0, _defineProperty2.default)(this, "getWelcomeEmailSubject", function () {
446
588
  return _this.attributes.welcome_email_subject;
447
589
  });
590
+ // boolean # Will the welcome email be sent to new users?
448
591
  (0, _defineProperty2.default)(this, "getWelcomeEmailEnabled", function () {
449
592
  return _this.attributes.welcome_email_enabled;
450
593
  });
594
+ // string # Does the welcome screen appear?
451
595
  (0, _defineProperty2.default)(this, "getWelcomeScreen", function () {
452
596
  return _this.attributes.welcome_screen;
453
597
  });
598
+ // boolean # Does FTP user Windows emulation mode?
454
599
  (0, _defineProperty2.default)(this, "getWindowsModeFtp", function () {
455
600
  return _this.attributes.windows_mode_ftp;
456
601
  });
602
+ // int64 # If greater than zero, users will unable to login if they do not show activity within this number of days.
457
603
  (0, _defineProperty2.default)(this, "getDisableUsersFromInactivityPeriodDays", function () {
458
604
  return _this.attributes.disable_users_from_inactivity_period_days;
459
605
  });
@@ -508,6 +654,141 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
508
654
  }
509
655
  }, _callee2);
510
656
  })));
657
+ // Parameters:
658
+ // name - string - Site name
659
+ // subdomain - string - Site subdomain
660
+ // domain - string - Custom domain
661
+ // domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
662
+ // domain_letsencrypt_chain - string - Letsencrypt chain to use when registering SSL Certificate for domain.
663
+ // email - string - Main email for this site
664
+ // reply_to_email - string - Reply-to email for this site
665
+ // allow_bundle_names - boolean - Are manual Bundle names allowed?
666
+ // bundle_expiration - int64 - Site-wide Bundle expiration in days
667
+ // overage_notify - boolean - Notify site email of overages?
668
+ // welcome_email_enabled - boolean - Will the welcome email be sent to new users?
669
+ // ask_about_overwrites - boolean - If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
670
+ // show_request_access_link - boolean - Show request access link for users without access? Currently unused.
671
+ // welcome_email_cc - string - Include this email in welcome emails if enabled
672
+ // welcome_email_subject - string - Include this email subject in welcome emails if enabled
673
+ // welcome_custom_text - string - Custom text send in user welcome email
674
+ // language - string - Site default language
675
+ // windows_mode_ftp - boolean - Does FTP user Windows emulation mode?
676
+ // default_time_zone - string - Site default time zone
677
+ // desktop_app - boolean - Is the desktop app enabled?
678
+ // desktop_app_session_ip_pinning - boolean - Is desktop app session IP pinning enabled?
679
+ // desktop_app_session_lifetime - int64 - Desktop app session lifetime (in hours)
680
+ // mobile_app - boolean - Is the mobile app enabled?
681
+ // mobile_app_session_ip_pinning - boolean - Is mobile app session IP pinning enabled?
682
+ // mobile_app_session_lifetime - int64 - Mobile app session lifetime (in hours)
683
+ // folder_permissions_groups_only - boolean - If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
684
+ // welcome_screen - string - Does the welcome screen appear?
685
+ // office_integration_available - boolean - Allow users to use Office for the web?
686
+ // office_integration_type - string - Office integration application used to edit and view the MS Office documents
687
+ // 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.
688
+ // motd_text - string - A message to show users when they connect via FTP or SFTP.
689
+ // motd_use_for_ftp - boolean - Show message to users connecting via FTP
690
+ // motd_use_for_sftp - boolean - Show message to users connecting via SFTP
691
+ // session_expiry - double - Session expiry in hours
692
+ // ssl_required - boolean - Is SSL required? Disabling this is insecure.
693
+ // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
694
+ // sftp_insecure_ciphers - 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.
695
+ // disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
696
+ // user_lockout - boolean - Will users be locked out after incorrect login attempts?
697
+ // user_lockout_tries - int64 - Number of login tries within `user_lockout_within` hours before users are locked out
698
+ // user_lockout_within - int64 - Number of hours for user lockout window
699
+ // user_lockout_lock_period - int64 - How many hours to lock user out for failed password?
700
+ // include_password_in_welcome_email - boolean - Include password in emails to new users?
701
+ // allowed_countries - string - Comma seperated list of allowed Country codes
702
+ // allowed_ips - string - List of allowed IP addresses
703
+ // disallowed_countries - string - Comma seperated list of disallowed Country codes
704
+ // days_to_retain_backups - int64 - Number of days to keep deleted files
705
+ // max_prior_passwords - int64 - Number of prior passwords to disallow
706
+ // password_validity_days - int64 - Number of days password is valid
707
+ // password_min_length - int64 - Shortest password length for users
708
+ // password_require_letter - boolean - Require a letter in passwords?
709
+ // password_require_mixed - boolean - Require lower and upper case letters in passwords?
710
+ // password_require_special - boolean - Require special characters in password?
711
+ // password_require_number - boolean - Require a number in passwords?
712
+ // password_require_unbreached - boolean - Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
713
+ // sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
714
+ // disable_password_reset - boolean - Is password reset disabled?
715
+ // immutable_files - boolean - Are files protected from modification?
716
+ // 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?)
717
+ // bundle_password_required - boolean - Do Bundles require password protection?
718
+ // bundle_require_share_recipient - boolean - Do Bundles require recipients for sharing?
719
+ // bundle_registration_notifications - string - Do Bundle owners receive registration notification?
720
+ // bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
721
+ // bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
722
+ // password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
723
+ // opt_out_global - boolean - Use servers in the USA only?
724
+ // use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
725
+ // custom_namespace - boolean - Is this site using a custom namespace for users?
726
+ // disable_users_from_inactivity_period_days - int64 - If greater than zero, users will unable to login if they do not show activity within this number of days.
727
+ // non_sso_groups_allowed - boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
728
+ // non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
729
+ // sharing_enabled - boolean - Allow bundle creation
730
+ // user_requests_enabled - boolean - Enable User Requests feature
731
+ // user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
732
+ // ftp_enabled - boolean - Is FTP enabled?
733
+ // sftp_enabled - boolean - Is SFTP enabled?
734
+ // sftp_host_key_type - string - Sftp Host Key Type
735
+ // active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
736
+ // bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
737
+ // allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
738
+ // allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
739
+ // allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
740
+ // allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
741
+ // allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
742
+ // allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
743
+ // require_2fa - boolean - Require two-factor authentication for all users?
744
+ // 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)?
745
+ // color2_top - string - Top bar background color
746
+ // color2_left - string - Page link and button color
747
+ // color2_link - string - Top bar link color
748
+ // color2_text - string - Page link and button color
749
+ // color2_top_text - string - Top bar text color
750
+ // site_header - string - Custom site header text
751
+ // site_footer - string - Custom site footer text
752
+ // login_help_text - string - Login help text
753
+ // smtp_address - string - SMTP server hostname or IP
754
+ // smtp_authentication - string - SMTP server authentication type
755
+ // smtp_from - string - From address to use when mailing through custom SMTP
756
+ // smtp_username - string - SMTP server username
757
+ // smtp_port - int64 - SMTP server port
758
+ // ldap_enabled - boolean - Main LDAP setting: is LDAP enabled?
759
+ // ldap_type - string - LDAP type
760
+ // ldap_host - string - LDAP host
761
+ // ldap_host_2 - string - LDAP backup host
762
+ // ldap_host_3 - string - LDAP backup host
763
+ // ldap_port - int64 - LDAP port
764
+ // ldap_secure - boolean - Use secure LDAP?
765
+ // ldap_username - string - Username for signing in to LDAP server.
766
+ // ldap_username_field - string - LDAP username field
767
+ // ldap_domain - string - Domain name that will be appended to usernames
768
+ // ldap_user_action - string - Should we sync users from LDAP server?
769
+ // ldap_group_action - string - Should we sync groups from LDAP server?
770
+ // ldap_user_include_groups - string - Comma or newline separated list of group names (with optional wildcards) - if provided, only users in these groups will be added or synced.
771
+ // ldap_group_exclusion - string - Comma or newline separated list of group names (with optional wildcards) to exclude when syncing.
772
+ // ldap_group_inclusion - string - Comma or newline separated list of group names (with optional wildcards) to include when syncing.
773
+ // ldap_base_dn - string - Base DN for looking up users in LDAP server
774
+ // uploads_via_email_authentication - boolean - Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
775
+ // icon16_file - file
776
+ // icon16_delete - boolean - If true, will delete the file stored in icon16
777
+ // icon32_file - file
778
+ // icon32_delete - boolean - If true, will delete the file stored in icon32
779
+ // icon48_file - file
780
+ // icon48_delete - boolean - If true, will delete the file stored in icon48
781
+ // icon128_file - file
782
+ // icon128_delete - boolean - If true, will delete the file stored in icon128
783
+ // logo_file - file
784
+ // logo_delete - boolean - If true, will delete the file stored in logo
785
+ // bundle_watermark_attachment_file - file
786
+ // bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
787
+ // disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
788
+ // ldap_password_change - string - New LDAP password.
789
+ // ldap_password_change_confirmation - string - Confirm new LDAP password.
790
+ // smtp_password - string - Password for SMTP server.
791
+ // session_expiry_minutes - int64 - Session expiry in minutes
511
792
  (0, _defineProperty2.default)(Site, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
512
793
  var params,
513
794
  options,