files.com 1.2.249 → 1.2.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/User.md +4 -1
  3. package/lib/Api.js +72 -71
  4. package/lib/Files.js +1 -1
  5. package/lib/isomorphic/File.node.js +5 -5
  6. package/lib/models/ActionNotificationExport.js +38 -38
  7. package/lib/models/ActionNotificationExportResult.js +14 -14
  8. package/lib/models/ApiKey.js +100 -100
  9. package/lib/models/ApiRequestLog.js +8 -8
  10. package/lib/models/App.js +8 -8
  11. package/lib/models/As2IncomingMessage.js +10 -10
  12. package/lib/models/As2OutgoingMessage.js +10 -10
  13. package/lib/models/As2Partner.js +101 -101
  14. package/lib/models/As2Station.js +81 -81
  15. package/lib/models/Automation.js +167 -167
  16. package/lib/models/AutomationLog.js +8 -8
  17. package/lib/models/AutomationRun.js +24 -24
  18. package/lib/models/BandwidthSnapshot.js +8 -8
  19. package/lib/models/Behavior.js +106 -106
  20. package/lib/models/Bundle.js +143 -143
  21. package/lib/models/BundleAction.js +10 -10
  22. package/lib/models/BundleDownload.js +12 -12
  23. package/lib/models/BundleNotification.js +69 -69
  24. package/lib/models/BundleRecipient.js +40 -40
  25. package/lib/models/BundleRegistration.js +12 -12
  26. package/lib/models/Clickwrap.js +79 -79
  27. package/lib/models/DnsRecord.js +8 -8
  28. package/lib/models/EmailIncomingMessage.js +8 -8
  29. package/lib/models/EmailLog.js +8 -8
  30. package/lib/models/ExavaultApiRequestLog.js +8 -8
  31. package/lib/models/ExternalEvent.js +36 -36
  32. package/lib/models/File.js +269 -269
  33. package/lib/models/FileComment.js +70 -70
  34. package/lib/models/FileCommentReaction.js +34 -34
  35. package/lib/models/FileMigration.js +10 -10
  36. package/lib/models/FileMigrationLog.js +8 -8
  37. package/lib/models/Folder.js +36 -36
  38. package/lib/models/FormFieldSet.js +71 -71
  39. package/lib/models/FtpActionLog.js +8 -8
  40. package/lib/models/GpgKey.js +81 -81
  41. package/lib/models/Group.js +83 -83
  42. package/lib/models/GroupUser.js +89 -89
  43. package/lib/models/History.js +88 -88
  44. package/lib/models/HistoryExport.js +64 -64
  45. package/lib/models/HistoryExportResult.js +14 -14
  46. package/lib/models/InboxRecipient.js +36 -36
  47. package/lib/models/InboxRegistration.js +10 -10
  48. package/lib/models/InboxUpload.js +8 -8
  49. package/lib/models/Invoice.js +18 -18
  50. package/lib/models/IpAddress.js +32 -32
  51. package/lib/models/Lock.js +51 -51
  52. package/lib/models/Message.js +100 -100
  53. package/lib/models/MessageComment.js +78 -78
  54. package/lib/models/MessageCommentReaction.js +54 -54
  55. package/lib/models/MessageReaction.js +54 -54
  56. package/lib/models/Notification.js +91 -91
  57. package/lib/models/OutboundConnectionLog.js +8 -8
  58. package/lib/models/Payment.js +18 -18
  59. package/lib/models/Permission.js +54 -54
  60. package/lib/models/Priority.js +14 -14
  61. package/lib/models/Project.js +70 -70
  62. package/lib/models/PublicHostingRequestLog.js +8 -8
  63. package/lib/models/PublicKey.js +78 -78
  64. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  65. package/lib/models/RemoteServer.js +362 -362
  66. package/lib/models/Request.js +60 -60
  67. package/lib/models/Restore.js +24 -24
  68. package/lib/models/Session.js +21 -21
  69. package/lib/models/SettingsChange.js +8 -8
  70. package/lib/models/SftpActionLog.js +8 -8
  71. package/lib/models/SftpHostKey.js +67 -67
  72. package/lib/models/ShareGroup.js +79 -79
  73. package/lib/models/SiemHttpDestination.js +158 -158
  74. package/lib/models/Site.js +150 -150
  75. package/lib/models/Snapshot.js +85 -85
  76. package/lib/models/SsoStrategy.js +32 -32
  77. package/lib/models/Style.js +48 -48
  78. package/lib/models/SyncLog.js +8 -8
  79. package/lib/models/UsageDailySnapshot.js +8 -8
  80. package/lib/models/UsageSnapshot.js +8 -8
  81. package/lib/models/User.js +223 -215
  82. package/lib/models/UserCipherUse.js +10 -10
  83. package/lib/models/UserLifecycleRule.js +92 -92
  84. package/lib/models/UserRequest.js +56 -56
  85. package/lib/models/UserSftpClientUse.js +10 -10
  86. package/lib/models/WebDavActionLog.js +8 -8
  87. package/lib/models/WebhookTest.js +24 -24
  88. package/package.json +1 -1
  89. package/src/Files.js +1 -1
  90. package/src/models/User.js +6 -0
@@ -91,69 +91,69 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
91
91
  var params,
92
92
  response,
93
93
  _args = arguments;
94
- return _regenerator.default.wrap(function _callee$(_context) {
94
+ return _regenerator.default.wrap(function (_context) {
95
95
  while (1) switch (_context.prev = _context.next) {
96
96
  case 0:
97
97
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
98
98
  if (_this.attributes.id) {
99
- _context.next = 3;
99
+ _context.next = 1;
100
100
  break;
101
101
  }
102
102
  throw new errors.EmptyPropertyError('Current object has no id');
103
- case 3:
103
+ case 1:
104
104
  if ((0, _utils.isObject)(params)) {
105
- _context.next = 5;
105
+ _context.next = 2;
106
106
  break;
107
107
  }
108
108
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
109
- case 5:
109
+ case 2:
110
110
  params.id = _this.attributes.id;
111
111
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
112
- _context.next = 8;
112
+ _context.next = 3;
113
113
  break;
114
114
  }
115
115
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
116
- case 8:
116
+ case 3:
117
117
  if (!(params.title && !(0, _utils.isString)(params.title))) {
118
- _context.next = 10;
118
+ _context.next = 4;
119
119
  break;
120
120
  }
121
121
  throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params.title)));
122
- case 10:
122
+ case 4:
123
123
  if (params.id) {
124
- _context.next = 16;
124
+ _context.next = 6;
125
125
  break;
126
126
  }
127
127
  if (!_this.attributes.id) {
128
- _context.next = 15;
128
+ _context.next = 5;
129
129
  break;
130
130
  }
131
131
  params.id = _this.id;
132
- _context.next = 16;
132
+ _context.next = 6;
133
133
  break;
134
- case 15:
134
+ case 5:
135
135
  throw new errors.MissingParameterError('Parameter missing: id');
136
- case 16:
136
+ case 6:
137
137
  if (params.title) {
138
- _context.next = 22;
138
+ _context.next = 8;
139
139
  break;
140
140
  }
141
141
  if (!_this.attributes.title) {
142
- _context.next = 21;
142
+ _context.next = 7;
143
143
  break;
144
144
  }
145
145
  params.title = _this.title;
146
- _context.next = 22;
146
+ _context.next = 8;
147
147
  break;
148
- case 21:
148
+ case 7:
149
149
  throw new errors.MissingParameterError('Parameter missing: title');
150
- case 22:
151
- _context.next = 24;
150
+ case 8:
151
+ _context.next = 9;
152
152
  return _Api.default.sendRequest("/public_keys/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
153
- case 24:
153
+ case 9:
154
154
  response = _context.sent;
155
155
  return _context.abrupt("return", new PublicKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
156
- case 26:
156
+ case 10:
157
157
  case "end":
158
158
  return _context.stop();
159
159
  }
@@ -162,46 +162,46 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
162
162
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
163
163
  var params,
164
164
  _args2 = arguments;
165
- return _regenerator.default.wrap(function _callee2$(_context2) {
165
+ return _regenerator.default.wrap(function (_context2) {
166
166
  while (1) switch (_context2.prev = _context2.next) {
167
167
  case 0:
168
168
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
169
169
  if (_this.attributes.id) {
170
- _context2.next = 3;
170
+ _context2.next = 1;
171
171
  break;
172
172
  }
173
173
  throw new errors.EmptyPropertyError('Current object has no id');
174
- case 3:
174
+ case 1:
175
175
  if ((0, _utils.isObject)(params)) {
176
- _context2.next = 5;
176
+ _context2.next = 2;
177
177
  break;
178
178
  }
179
179
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
180
- case 5:
180
+ case 2:
181
181
  params.id = _this.attributes.id;
182
182
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
183
- _context2.next = 8;
183
+ _context2.next = 3;
184
184
  break;
185
185
  }
186
186
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
187
- case 8:
187
+ case 3:
188
188
  if (params.id) {
189
- _context2.next = 14;
189
+ _context2.next = 5;
190
190
  break;
191
191
  }
192
192
  if (!_this.attributes.id) {
193
- _context2.next = 13;
193
+ _context2.next = 4;
194
194
  break;
195
195
  }
196
196
  params.id = _this.id;
197
- _context2.next = 14;
197
+ _context2.next = 5;
198
198
  break;
199
- case 13:
199
+ case 4:
200
200
  throw new errors.MissingParameterError('Parameter missing: id');
201
- case 14:
202
- _context2.next = 16;
201
+ case 5:
202
+ _context2.next = 6;
203
203
  return _Api.default.sendRequest("/public_keys/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
204
- case 16:
204
+ case 6:
205
205
  case "end":
206
206
  return _context2.stop();
207
207
  }
@@ -213,27 +213,27 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
213
213
  });
214
214
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
215
215
  var _newObject, newObject;
216
- return _regenerator.default.wrap(function _callee3$(_context3) {
216
+ return _regenerator.default.wrap(function (_context3) {
217
217
  while (1) switch (_context3.prev = _context3.next) {
218
218
  case 0:
219
219
  if (!_this.attributes.id) {
220
- _context3.next = 6;
220
+ _context3.next = 2;
221
221
  break;
222
222
  }
223
- _context3.next = 3;
223
+ _context3.next = 1;
224
224
  return _this.update(_this.attributes);
225
- case 3:
225
+ case 1:
226
226
  _newObject = _context3.sent;
227
227
  _this.attributes = _objectSpread({}, _newObject.attributes);
228
228
  return _context3.abrupt("return", true);
229
- case 6:
230
- _context3.next = 8;
229
+ case 2:
230
+ _context3.next = 3;
231
231
  return PublicKey.create(_this.attributes, _this.options);
232
- case 8:
232
+ case 3:
233
233
  newObject = _context3.sent;
234
234
  _this.attributes = _objectSpread({}, newObject.attributes);
235
235
  return _context3.abrupt("return", true);
236
- case 11:
236
+ case 4:
237
237
  case "end":
238
238
  return _context3.stop();
239
239
  }
@@ -263,37 +263,37 @@ _PublicKey = PublicKey;
263
263
  options,
264
264
  response,
265
265
  _args4 = arguments;
266
- return _regenerator.default.wrap(function _callee4$(_context4) {
266
+ return _regenerator.default.wrap(function (_context4) {
267
267
  while (1) switch (_context4.prev = _context4.next) {
268
268
  case 0:
269
269
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
270
270
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
271
271
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
272
- _context4.next = 4;
272
+ _context4.next = 1;
273
273
  break;
274
274
  }
275
275
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
276
- case 4:
276
+ case 1:
277
277
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
278
- _context4.next = 6;
278
+ _context4.next = 2;
279
279
  break;
280
280
  }
281
281
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
282
- case 6:
282
+ case 2:
283
283
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
284
- _context4.next = 8;
284
+ _context4.next = 3;
285
285
  break;
286
286
  }
287
287
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
288
- case 8:
289
- _context4.next = 10;
288
+ case 3:
289
+ _context4.next = 4;
290
290
  return _Api.default.sendRequest('/public_keys', 'GET', params, options);
291
- case 10:
291
+ case 4:
292
292
  response = _context4.sent;
293
293
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
294
294
  return new _PublicKey(obj, options);
295
295
  })) || []);
296
- case 12:
296
+ case 5:
297
297
  case "end":
298
298
  return _context4.stop();
299
299
  }
@@ -312,36 +312,36 @@ _PublicKey = PublicKey;
312
312
  options,
313
313
  response,
314
314
  _args5 = arguments;
315
- return _regenerator.default.wrap(function _callee5$(_context5) {
315
+ return _regenerator.default.wrap(function (_context5) {
316
316
  while (1) switch (_context5.prev = _context5.next) {
317
317
  case 0:
318
318
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
319
319
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
320
320
  if ((0, _utils.isObject)(params)) {
321
- _context5.next = 4;
321
+ _context5.next = 1;
322
322
  break;
323
323
  }
324
324
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
325
- case 4:
325
+ case 1:
326
326
  params.id = id;
327
327
  if (params.id) {
328
- _context5.next = 7;
328
+ _context5.next = 2;
329
329
  break;
330
330
  }
331
331
  throw new errors.MissingParameterError('Parameter missing: id');
332
- case 7:
332
+ case 2:
333
333
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
334
- _context5.next = 9;
334
+ _context5.next = 3;
335
335
  break;
336
336
  }
337
337
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
338
- case 9:
339
- _context5.next = 11;
338
+ case 3:
339
+ _context5.next = 4;
340
340
  return _Api.default.sendRequest("/public_keys/".concat(encodeURIComponent(params.id)), 'GET', params, options);
341
- case 11:
341
+ case 4:
342
342
  response = _context5.sent;
343
343
  return _context5.abrupt("return", new _PublicKey(response === null || response === void 0 ? void 0 : response.data, options));
344
- case 13:
344
+ case 5:
345
345
  case "end":
346
346
  return _context5.stop();
347
347
  }
@@ -365,47 +365,47 @@ _PublicKey = PublicKey;
365
365
  options,
366
366
  response,
367
367
  _args6 = arguments;
368
- return _regenerator.default.wrap(function _callee6$(_context6) {
368
+ return _regenerator.default.wrap(function (_context6) {
369
369
  while (1) switch (_context6.prev = _context6.next) {
370
370
  case 0:
371
371
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
372
372
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
373
373
  if (params.title) {
374
- _context6.next = 4;
374
+ _context6.next = 1;
375
375
  break;
376
376
  }
377
377
  throw new errors.MissingParameterError('Parameter missing: title');
378
- case 4:
378
+ case 1:
379
379
  if (params.public_key) {
380
- _context6.next = 6;
380
+ _context6.next = 2;
381
381
  break;
382
382
  }
383
383
  throw new errors.MissingParameterError('Parameter missing: public_key');
384
- case 6:
384
+ case 2:
385
385
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
386
- _context6.next = 8;
386
+ _context6.next = 3;
387
387
  break;
388
388
  }
389
389
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
390
- case 8:
390
+ case 3:
391
391
  if (!(params.title && !(0, _utils.isString)(params.title))) {
392
- _context6.next = 10;
392
+ _context6.next = 4;
393
393
  break;
394
394
  }
395
395
  throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params.title)));
396
- case 10:
396
+ case 4:
397
397
  if (!(params.public_key && !(0, _utils.isString)(params.public_key))) {
398
- _context6.next = 12;
398
+ _context6.next = 5;
399
399
  break;
400
400
  }
401
401
  throw new errors.InvalidParameterError("Bad parameter: public_key must be of type String, received ".concat((0, _utils.getType)(params.public_key)));
402
- case 12:
403
- _context6.next = 14;
402
+ case 5:
403
+ _context6.next = 6;
404
404
  return _Api.default.sendRequest('/public_keys', 'POST', params, options);
405
- case 14:
405
+ case 6:
406
406
  response = _context6.sent;
407
407
  return _context6.abrupt("return", new _PublicKey(response === null || response === void 0 ? void 0 : response.data, options));
408
- case 16:
408
+ case 7:
409
409
  case "end":
410
410
  return _context6.stop();
411
411
  }
@@ -81,31 +81,31 @@ _RemoteBandwidthSnapshot = RemoteBandwidthSnapshot;
81
81
  options,
82
82
  response,
83
83
  _args = arguments;
84
- return _regenerator.default.wrap(function _callee$(_context) {
84
+ return _regenerator.default.wrap(function (_context) {
85
85
  while (1) switch (_context.prev = _context.next) {
86
86
  case 0:
87
87
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
88
88
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
89
89
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
90
- _context.next = 4;
90
+ _context.next = 1;
91
91
  break;
92
92
  }
93
93
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
94
- case 4:
94
+ case 1:
95
95
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
96
- _context.next = 6;
96
+ _context.next = 2;
97
97
  break;
98
98
  }
99
99
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
100
- case 6:
101
- _context.next = 8;
100
+ case 2:
101
+ _context.next = 3;
102
102
  return _Api.default.sendRequest('/remote_bandwidth_snapshots', 'GET', params, options);
103
- case 8:
103
+ case 3:
104
104
  response = _context.sent;
105
105
  return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
106
106
  return new _RemoteBandwidthSnapshot(obj, options);
107
107
  })) || []);
108
- case 10:
108
+ case 4:
109
109
  case "end":
110
110
  return _context.stop();
111
111
  }