files.com 1.0.218 → 1.0.220

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 +37 -115
  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 +43 -15
  48. package/docs/models/UserRequest.md +1 -1
  49. package/docs/models/WebhookTest.md +4 -4
  50. package/lib/models/User.js +48 -0
  51. package/package.json +1 -1
  52. package/src/models/User.js +59 -3
@@ -14,21 +14,29 @@
14
14
  "api_keys_count": 1,
15
15
  "authenticate_until": "2000-01-01T01:00:00Z",
16
16
  "authentication_method": "password",
17
- "avatar_url": "",
17
+ "avatar_url": "example",
18
18
  "billing_permission": true,
19
19
  "bypass_site_allowed_ips": true,
20
20
  "bypass_inactive_disable": true,
21
21
  "created_at": "2000-01-01T01:00:00Z",
22
22
  "dav_permission": true,
23
23
  "disabled": true,
24
- "email": "john.doe@files.com",
24
+ "email": "example",
25
25
  "first_login_at": "2000-01-01T01:00:00Z",
26
26
  "ftp_permission": true,
27
- "group_ids": "",
27
+ "group_ids": "example",
28
28
  "header_text": "User-specific message.",
29
29
  "language": "en",
30
30
  "last_login_at": "2000-01-01T01:00:00Z",
31
- "last_protocol_cipher": "",
31
+ "last_web_login_at": "2000-01-01T01:00:00Z",
32
+ "last_ftp_login_at": "2000-01-01T01:00:00Z",
33
+ "last_sftp_login_at": "2000-01-01T01:00:00Z",
34
+ "last_dav_login_at": "2000-01-01T01:00:00Z",
35
+ "last_desktop_login_at": "2000-01-01T01:00:00Z",
36
+ "last_restapi_login_at": "2000-01-01T01:00:00Z",
37
+ "last_api_use_at": "2000-01-01T01:00:00Z",
38
+ "last_active_at": "2000-01-01T01:00:00Z",
39
+ "last_protocol_cipher": "example",
32
40
  "lockout_expires": "2000-01-01T01:00:00Z",
33
41
  "name": "John Doe",
34
42
  "company": "ACME Corp.",
@@ -55,7 +63,7 @@
55
63
  "time_zone": "Pacific Time (US & Canada)",
56
64
  "type_of_2fa": "yubi",
57
65
  "updated_at": "2000-01-01T01:00:00Z",
58
- "user_root": ""
66
+ "user_root": "example"
59
67
  }
60
68
  ```
61
69
 
@@ -80,8 +88,16 @@
80
88
  * `group_ids` (string): Comma-separated list of group IDs of which this user is a member
81
89
  * `header_text` (string): Text to display to the user in the header of the UI
82
90
  * `language` (string): Preferred language
83
- * `last_login_at` (date-time): User's last login time
84
- * `last_protocol_cipher` (string): The last protocol and cipher used
91
+ * `last_login_at` (date-time): User's most recent login time via any protocol
92
+ * `last_web_login_at` (date-time): User's most recent login time via web
93
+ * `last_ftp_login_at` (date-time): User's most recent login time via FTP
94
+ * `last_sftp_login_at` (date-time): User's most recent login time via SFTP
95
+ * `last_dav_login_at` (date-time): User's most recent login time via WebDAV
96
+ * `last_desktop_login_at` (date-time): User's most recent login time via Desktop app
97
+ * `last_restapi_login_at` (date-time): User's most recent login time via Rest API
98
+ * `last_api_use_at` (date-time): User's most recent API use time
99
+ * `last_active_at` (date-time): User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
100
+ * `last_protocol_cipher` (string): The most recent protocol and cipher used
85
101
  * `lockout_expires` (date-time): Time in the future that the user will no longer be locked out if applicable
86
102
  * `name` (string): User's full name
87
103
  * `company` (string): User's company
@@ -107,7 +123,7 @@
107
123
  * `externally_managed` (boolean): Is this user managed by a SsoStrategy?
108
124
  * `time_zone` (string): User time zone
109
125
  * `type_of_2fa` (string): Type(s) of 2FA methods in use. Will be either `sms`, `totp`, `u2f`, `yubi`, or multiple values sorted alphabetically and joined by an underscore.
110
- * `updated_at` (date-time): User record last updated at. Note this may be incremented because of internal or external updates.
126
+ * `updated_at` (date-time): User record most recently updated at. Note this may be incremented because of internal or external updates.
111
127
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
112
128
  * `avatar_file` (file): An image file for your user avatar.
113
129
  * `avatar_delete` (boolean): If true, the avatar will be deleted.
@@ -172,8 +188,9 @@ await User.find(id)
172
188
  ```
173
189
  await User.create({
174
190
  'avatar_delete': true,
175
- 'email': "john.doe@files.com",
191
+ 'email': "example",
176
192
  'group_id': 1,
193
+ 'group_ids': "example",
177
194
  'announcements_read': true,
178
195
  'allowed_ips': "127.0.0.1",
179
196
  'attachments_permission': true,
@@ -205,6 +222,7 @@ await User.create({
205
222
  'subscribe_to_newsletter': true,
206
223
  'require_2fa': "always_require",
207
224
  'time_zone': "Pacific Time (US & Canada)",
225
+ 'user_root': "example",
208
226
  'username': "user",
209
227
  })
210
228
  ```
@@ -311,8 +329,9 @@ const [user] = await User.list()
311
329
 
312
330
  await user.update({
313
331
  'avatar_delete': true,
314
- 'email': "john.doe@files.com",
332
+ 'email': "example",
315
333
  'group_id': 1,
334
+ 'group_ids': "example",
316
335
  'announcements_read': true,
317
336
  'allowed_ips': "127.0.0.1",
318
337
  'attachments_permission': true,
@@ -344,6 +363,7 @@ await user.update({
344
363
  'subscribe_to_newsletter': true,
345
364
  'require_2fa': "always_require",
346
365
  'time_zone': "Pacific Time (US & Canada)",
366
+ 'user_root': "example",
347
367
  'username': "user",
348
368
  })
349
369
  ```
@@ -410,21 +430,29 @@ await user.update({
410
430
  "api_keys_count": 1,
411
431
  "authenticate_until": "2000-01-01T01:00:00Z",
412
432
  "authentication_method": "password",
413
- "avatar_url": "",
433
+ "avatar_url": "example",
414
434
  "billing_permission": true,
415
435
  "bypass_site_allowed_ips": true,
416
436
  "bypass_inactive_disable": true,
417
437
  "created_at": "2000-01-01T01:00:00Z",
418
438
  "dav_permission": true,
419
439
  "disabled": true,
420
- "email": "john.doe@files.com",
440
+ "email": "example",
421
441
  "first_login_at": "2000-01-01T01:00:00Z",
422
442
  "ftp_permission": true,
423
- "group_ids": "",
443
+ "group_ids": "example",
424
444
  "header_text": "User-specific message.",
425
445
  "language": "en",
426
446
  "last_login_at": "2000-01-01T01:00:00Z",
427
- "last_protocol_cipher": "",
447
+ "last_web_login_at": "2000-01-01T01:00:00Z",
448
+ "last_ftp_login_at": "2000-01-01T01:00:00Z",
449
+ "last_sftp_login_at": "2000-01-01T01:00:00Z",
450
+ "last_dav_login_at": "2000-01-01T01:00:00Z",
451
+ "last_desktop_login_at": "2000-01-01T01:00:00Z",
452
+ "last_restapi_login_at": "2000-01-01T01:00:00Z",
453
+ "last_api_use_at": "2000-01-01T01:00:00Z",
454
+ "last_active_at": "2000-01-01T01:00:00Z",
455
+ "last_protocol_cipher": "example",
428
456
  "lockout_expires": "2000-01-01T01:00:00Z",
429
457
  "name": "John Doe",
430
458
  "company": "ACME Corp.",
@@ -451,7 +479,7 @@ await user.update({
451
479
  "time_zone": "Pacific Time (US & Canada)",
452
480
  "type_of_2fa": "yubi",
453
481
  "updated_at": "2000-01-01T01:00:00Z",
454
- "user_root": ""
482
+ "user_root": "example"
455
483
  }
456
484
  ```
457
485
 
@@ -6,7 +6,7 @@
6
6
  {
7
7
  "id": 1,
8
8
  "name": "John Doe",
9
- "email": "john.doe@files.com",
9
+ "email": "example",
10
10
  "details": "Changed Departments"
11
11
  }
12
12
  ```
@@ -7,7 +7,7 @@
7
7
  "code": 200,
8
8
  "message": "",
9
9
  "status": "",
10
- "data": "",
10
+ "data": "example",
11
11
  "success": true
12
12
  }
13
13
  ```
@@ -36,10 +36,10 @@ await WebhookTest.create({
36
36
  'url': "https://www.site.com/...",
37
37
  'method': "GET",
38
38
  'encoding': "RAW",
39
- 'headers': "x-test-header => testvalue",
40
- 'body': "test-param => testvalue",
39
+ 'headers': {"x-test-header":"testvalue"},
40
+ 'body': {"test-param":"testvalue"},
41
41
  'raw_body': "test body",
42
- 'file_as_body': "false",
42
+ 'file_as_body': true,
43
43
  'file_form_field': "upload_file_data",
44
44
  'action': "test",
45
45
  })
@@ -178,6 +178,54 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
178
178
  (0, _defineProperty2.default)(this, "setLastLoginAt", function (value) {
179
179
  _this.attributes.last_login_at = value;
180
180
  });
181
+ (0, _defineProperty2.default)(this, "getLastWebLoginAt", function () {
182
+ return _this.attributes.last_web_login_at;
183
+ });
184
+ (0, _defineProperty2.default)(this, "setLastWebLoginAt", function (value) {
185
+ _this.attributes.last_web_login_at = value;
186
+ });
187
+ (0, _defineProperty2.default)(this, "getLastFtpLoginAt", function () {
188
+ return _this.attributes.last_ftp_login_at;
189
+ });
190
+ (0, _defineProperty2.default)(this, "setLastFtpLoginAt", function (value) {
191
+ _this.attributes.last_ftp_login_at = value;
192
+ });
193
+ (0, _defineProperty2.default)(this, "getLastSftpLoginAt", function () {
194
+ return _this.attributes.last_sftp_login_at;
195
+ });
196
+ (0, _defineProperty2.default)(this, "setLastSftpLoginAt", function (value) {
197
+ _this.attributes.last_sftp_login_at = value;
198
+ });
199
+ (0, _defineProperty2.default)(this, "getLastDavLoginAt", function () {
200
+ return _this.attributes.last_dav_login_at;
201
+ });
202
+ (0, _defineProperty2.default)(this, "setLastDavLoginAt", function (value) {
203
+ _this.attributes.last_dav_login_at = value;
204
+ });
205
+ (0, _defineProperty2.default)(this, "getLastDesktopLoginAt", function () {
206
+ return _this.attributes.last_desktop_login_at;
207
+ });
208
+ (0, _defineProperty2.default)(this, "setLastDesktopLoginAt", function (value) {
209
+ _this.attributes.last_desktop_login_at = value;
210
+ });
211
+ (0, _defineProperty2.default)(this, "getLastRestapiLoginAt", function () {
212
+ return _this.attributes.last_restapi_login_at;
213
+ });
214
+ (0, _defineProperty2.default)(this, "setLastRestapiLoginAt", function (value) {
215
+ _this.attributes.last_restapi_login_at = value;
216
+ });
217
+ (0, _defineProperty2.default)(this, "getLastApiUseAt", function () {
218
+ return _this.attributes.last_api_use_at;
219
+ });
220
+ (0, _defineProperty2.default)(this, "setLastApiUseAt", function (value) {
221
+ _this.attributes.last_api_use_at = value;
222
+ });
223
+ (0, _defineProperty2.default)(this, "getLastActiveAt", function () {
224
+ return _this.attributes.last_active_at;
225
+ });
226
+ (0, _defineProperty2.default)(this, "setLastActiveAt", function (value) {
227
+ _this.attributes.last_active_at = value;
228
+ });
181
229
  (0, _defineProperty2.default)(this, "getLastProtocolCipher", function () {
182
230
  return _this.attributes.last_protocol_cipher;
183
231
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.218",
3
+ "version": "1.0.220",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -166,14 +166,70 @@ class User {
166
166
  this.attributes.language = value
167
167
  }
168
168
 
169
- // date-time # User's last login time
169
+ // date-time # User's most recent login time via any protocol
170
170
  getLastLoginAt = () => this.attributes.last_login_at
171
171
 
172
172
  setLastLoginAt = value => {
173
173
  this.attributes.last_login_at = value
174
174
  }
175
175
 
176
- // string # The last protocol and cipher used
176
+ // date-time # User's most recent login time via web
177
+ getLastWebLoginAt = () => this.attributes.last_web_login_at
178
+
179
+ setLastWebLoginAt = value => {
180
+ this.attributes.last_web_login_at = value
181
+ }
182
+
183
+ // date-time # User's most recent login time via FTP
184
+ getLastFtpLoginAt = () => this.attributes.last_ftp_login_at
185
+
186
+ setLastFtpLoginAt = value => {
187
+ this.attributes.last_ftp_login_at = value
188
+ }
189
+
190
+ // date-time # User's most recent login time via SFTP
191
+ getLastSftpLoginAt = () => this.attributes.last_sftp_login_at
192
+
193
+ setLastSftpLoginAt = value => {
194
+ this.attributes.last_sftp_login_at = value
195
+ }
196
+
197
+ // date-time # User's most recent login time via WebDAV
198
+ getLastDavLoginAt = () => this.attributes.last_dav_login_at
199
+
200
+ setLastDavLoginAt = value => {
201
+ this.attributes.last_dav_login_at = value
202
+ }
203
+
204
+ // date-time # User's most recent login time via Desktop app
205
+ getLastDesktopLoginAt = () => this.attributes.last_desktop_login_at
206
+
207
+ setLastDesktopLoginAt = value => {
208
+ this.attributes.last_desktop_login_at = value
209
+ }
210
+
211
+ // date-time # User's most recent login time via Rest API
212
+ getLastRestapiLoginAt = () => this.attributes.last_restapi_login_at
213
+
214
+ setLastRestapiLoginAt = value => {
215
+ this.attributes.last_restapi_login_at = value
216
+ }
217
+
218
+ // date-time # User's most recent API use time
219
+ getLastApiUseAt = () => this.attributes.last_api_use_at
220
+
221
+ setLastApiUseAt = value => {
222
+ this.attributes.last_api_use_at = value
223
+ }
224
+
225
+ // date-time # User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
226
+ getLastActiveAt = () => this.attributes.last_active_at
227
+
228
+ setLastActiveAt = value => {
229
+ this.attributes.last_active_at = value
230
+ }
231
+
232
+ // string # The most recent protocol and cipher used
177
233
  getLastProtocolCipher = () => this.attributes.last_protocol_cipher
178
234
 
179
235
  setLastProtocolCipher = value => {
@@ -355,7 +411,7 @@ class User {
355
411
  this.attributes.type_of_2fa = value
356
412
  }
357
413
 
358
- // date-time # User record last updated at. Note this may be incremented because of internal or external updates.
414
+ // date-time # User record most recently updated at. Note this may be incremented because of internal or external updates.
359
415
  getUpdatedAt = () => this.attributes.updated_at
360
416
 
361
417
  // string # Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.