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
@@ -90,73 +90,73 @@ var GpgKey = /*#__PURE__*/(0, _createClass2.default)(function GpgKey() {
90
90
  var params,
91
91
  response,
92
92
  _args = arguments;
93
- return _regenerator.default.wrap(function _callee$(_context) {
93
+ return _regenerator.default.wrap(function (_context) {
94
94
  while (1) switch (_context.prev = _context.next) {
95
95
  case 0:
96
96
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
97
97
  if (_this.attributes.id) {
98
- _context.next = 3;
98
+ _context.next = 1;
99
99
  break;
100
100
  }
101
101
  throw new errors.EmptyPropertyError('Current object has no id');
102
- case 3:
102
+ case 1:
103
103
  if ((0, _utils.isObject)(params)) {
104
- _context.next = 5;
104
+ _context.next = 2;
105
105
  break;
106
106
  }
107
107
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
108
- case 5:
108
+ case 2:
109
109
  params.id = _this.attributes.id;
110
110
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
111
- _context.next = 8;
111
+ _context.next = 3;
112
112
  break;
113
113
  }
114
114
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
115
- case 8:
115
+ case 3:
116
116
  if (!(params.public_key && !(0, _utils.isString)(params.public_key))) {
117
- _context.next = 10;
117
+ _context.next = 4;
118
118
  break;
119
119
  }
120
120
  throw new errors.InvalidParameterError("Bad parameter: public_key must be of type String, received ".concat((0, _utils.getType)(params.public_key)));
121
- case 10:
121
+ case 4:
122
122
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
123
- _context.next = 12;
123
+ _context.next = 5;
124
124
  break;
125
125
  }
126
126
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
127
- case 12:
127
+ case 5:
128
128
  if (!(params.private_key_password && !(0, _utils.isString)(params.private_key_password))) {
129
- _context.next = 14;
129
+ _context.next = 6;
130
130
  break;
131
131
  }
132
132
  throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params.private_key_password)));
133
- case 14:
133
+ case 6:
134
134
  if (!(params.name && !(0, _utils.isString)(params.name))) {
135
- _context.next = 16;
135
+ _context.next = 7;
136
136
  break;
137
137
  }
138
138
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
139
- case 16:
139
+ case 7:
140
140
  if (params.id) {
141
- _context.next = 22;
141
+ _context.next = 9;
142
142
  break;
143
143
  }
144
144
  if (!_this.attributes.id) {
145
- _context.next = 21;
145
+ _context.next = 8;
146
146
  break;
147
147
  }
148
148
  params.id = _this.id;
149
- _context.next = 22;
149
+ _context.next = 9;
150
150
  break;
151
- case 21:
151
+ case 8:
152
152
  throw new errors.MissingParameterError('Parameter missing: id');
153
- case 22:
154
- _context.next = 24;
153
+ case 9:
154
+ _context.next = 10;
155
155
  return _Api.default.sendRequest("/gpg_keys/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
156
- case 24:
156
+ case 10:
157
157
  response = _context.sent;
158
158
  return _context.abrupt("return", new GpgKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
159
- case 26:
159
+ case 11:
160
160
  case "end":
161
161
  return _context.stop();
162
162
  }
@@ -165,46 +165,46 @@ var GpgKey = /*#__PURE__*/(0, _createClass2.default)(function GpgKey() {
165
165
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
166
166
  var params,
167
167
  _args2 = arguments;
168
- return _regenerator.default.wrap(function _callee2$(_context2) {
168
+ return _regenerator.default.wrap(function (_context2) {
169
169
  while (1) switch (_context2.prev = _context2.next) {
170
170
  case 0:
171
171
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
172
172
  if (_this.attributes.id) {
173
- _context2.next = 3;
173
+ _context2.next = 1;
174
174
  break;
175
175
  }
176
176
  throw new errors.EmptyPropertyError('Current object has no id');
177
- case 3:
177
+ case 1:
178
178
  if ((0, _utils.isObject)(params)) {
179
- _context2.next = 5;
179
+ _context2.next = 2;
180
180
  break;
181
181
  }
182
182
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
183
- case 5:
183
+ case 2:
184
184
  params.id = _this.attributes.id;
185
185
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
186
- _context2.next = 8;
186
+ _context2.next = 3;
187
187
  break;
188
188
  }
189
189
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
190
- case 8:
190
+ case 3:
191
191
  if (params.id) {
192
- _context2.next = 14;
192
+ _context2.next = 5;
193
193
  break;
194
194
  }
195
195
  if (!_this.attributes.id) {
196
- _context2.next = 13;
196
+ _context2.next = 4;
197
197
  break;
198
198
  }
199
199
  params.id = _this.id;
200
- _context2.next = 14;
200
+ _context2.next = 5;
201
201
  break;
202
- case 13:
202
+ case 4:
203
203
  throw new errors.MissingParameterError('Parameter missing: id');
204
- case 14:
205
- _context2.next = 16;
204
+ case 5:
205
+ _context2.next = 6;
206
206
  return _Api.default.sendRequest("/gpg_keys/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
207
- case 16:
207
+ case 6:
208
208
  case "end":
209
209
  return _context2.stop();
210
210
  }
@@ -216,27 +216,27 @@ var GpgKey = /*#__PURE__*/(0, _createClass2.default)(function GpgKey() {
216
216
  });
217
217
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
218
218
  var _newObject, newObject;
219
- return _regenerator.default.wrap(function _callee3$(_context3) {
219
+ return _regenerator.default.wrap(function (_context3) {
220
220
  while (1) switch (_context3.prev = _context3.next) {
221
221
  case 0:
222
222
  if (!_this.attributes.id) {
223
- _context3.next = 6;
223
+ _context3.next = 2;
224
224
  break;
225
225
  }
226
- _context3.next = 3;
226
+ _context3.next = 1;
227
227
  return _this.update(_this.attributes);
228
- case 3:
228
+ case 1:
229
229
  _newObject = _context3.sent;
230
230
  _this.attributes = _objectSpread({}, _newObject.attributes);
231
231
  return _context3.abrupt("return", true);
232
- case 6:
233
- _context3.next = 8;
232
+ case 2:
233
+ _context3.next = 3;
234
234
  return GpgKey.create(_this.attributes, _this.options);
235
- case 8:
235
+ case 3:
236
236
  newObject = _context3.sent;
237
237
  _this.attributes = _objectSpread({}, newObject.attributes);
238
238
  return _context3.abrupt("return", true);
239
- case 11:
239
+ case 4:
240
240
  case "end":
241
241
  return _context3.stop();
242
242
  }
@@ -267,37 +267,37 @@ _GpgKey = GpgKey;
267
267
  options,
268
268
  response,
269
269
  _args4 = arguments;
270
- return _regenerator.default.wrap(function _callee4$(_context4) {
270
+ return _regenerator.default.wrap(function (_context4) {
271
271
  while (1) switch (_context4.prev = _context4.next) {
272
272
  case 0:
273
273
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
274
274
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
275
275
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
276
- _context4.next = 4;
276
+ _context4.next = 1;
277
277
  break;
278
278
  }
279
279
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
280
- case 4:
280
+ case 1:
281
281
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
282
- _context4.next = 6;
282
+ _context4.next = 2;
283
283
  break;
284
284
  }
285
285
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
286
- case 6:
286
+ case 2:
287
287
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
288
- _context4.next = 8;
288
+ _context4.next = 3;
289
289
  break;
290
290
  }
291
291
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
292
- case 8:
293
- _context4.next = 10;
292
+ case 3:
293
+ _context4.next = 4;
294
294
  return _Api.default.sendRequest('/gpg_keys', 'GET', params, options);
295
- case 10:
295
+ case 4:
296
296
  response = _context4.sent;
297
297
  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) {
298
298
  return new _GpgKey(obj, options);
299
299
  })) || []);
300
- case 12:
300
+ case 5:
301
301
  case "end":
302
302
  return _context4.stop();
303
303
  }
@@ -316,36 +316,36 @@ _GpgKey = GpgKey;
316
316
  options,
317
317
  response,
318
318
  _args5 = arguments;
319
- return _regenerator.default.wrap(function _callee5$(_context5) {
319
+ return _regenerator.default.wrap(function (_context5) {
320
320
  while (1) switch (_context5.prev = _context5.next) {
321
321
  case 0:
322
322
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
323
323
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
324
324
  if ((0, _utils.isObject)(params)) {
325
- _context5.next = 4;
325
+ _context5.next = 1;
326
326
  break;
327
327
  }
328
328
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
329
- case 4:
329
+ case 1:
330
330
  params.id = id;
331
331
  if (params.id) {
332
- _context5.next = 7;
332
+ _context5.next = 2;
333
333
  break;
334
334
  }
335
335
  throw new errors.MissingParameterError('Parameter missing: id');
336
- case 7:
336
+ case 2:
337
337
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
338
- _context5.next = 9;
338
+ _context5.next = 3;
339
339
  break;
340
340
  }
341
341
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
342
- case 9:
343
- _context5.next = 11;
342
+ case 3:
343
+ _context5.next = 4;
344
344
  return _Api.default.sendRequest("/gpg_keys/".concat(encodeURIComponent(params.id)), 'GET', params, options);
345
- case 11:
345
+ case 4:
346
346
  response = _context5.sent;
347
347
  return _context5.abrupt("return", new _GpgKey(response === null || response === void 0 ? void 0 : response.data, options));
348
- case 13:
348
+ case 5:
349
349
  case "end":
350
350
  return _context5.stop();
351
351
  }
@@ -371,53 +371,53 @@ _GpgKey = GpgKey;
371
371
  options,
372
372
  response,
373
373
  _args6 = arguments;
374
- return _regenerator.default.wrap(function _callee6$(_context6) {
374
+ return _regenerator.default.wrap(function (_context6) {
375
375
  while (1) switch (_context6.prev = _context6.next) {
376
376
  case 0:
377
377
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
378
378
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
379
379
  if (params.name) {
380
- _context6.next = 4;
380
+ _context6.next = 1;
381
381
  break;
382
382
  }
383
383
  throw new errors.MissingParameterError('Parameter missing: name');
384
- case 4:
384
+ case 1:
385
385
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
386
- _context6.next = 6;
386
+ _context6.next = 2;
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 6:
390
+ case 2:
391
391
  if (!(params.public_key && !(0, _utils.isString)(params.public_key))) {
392
- _context6.next = 8;
392
+ _context6.next = 3;
393
393
  break;
394
394
  }
395
395
  throw new errors.InvalidParameterError("Bad parameter: public_key must be of type String, received ".concat((0, _utils.getType)(params.public_key)));
396
- case 8:
396
+ case 3:
397
397
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
398
- _context6.next = 10;
398
+ _context6.next = 4;
399
399
  break;
400
400
  }
401
401
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
402
- case 10:
402
+ case 4:
403
403
  if (!(params.private_key_password && !(0, _utils.isString)(params.private_key_password))) {
404
- _context6.next = 12;
404
+ _context6.next = 5;
405
405
  break;
406
406
  }
407
407
  throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params.private_key_password)));
408
- case 12:
408
+ case 5:
409
409
  if (!(params.name && !(0, _utils.isString)(params.name))) {
410
- _context6.next = 14;
410
+ _context6.next = 6;
411
411
  break;
412
412
  }
413
413
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
414
- case 14:
415
- _context6.next = 16;
414
+ case 6:
415
+ _context6.next = 7;
416
416
  return _Api.default.sendRequest('/gpg_keys', 'POST', params, options);
417
- case 16:
417
+ case 7:
418
418
  response = _context6.sent;
419
419
  return _context6.abrupt("return", new _GpgKey(response === null || response === void 0 ? void 0 : response.data, options));
420
- case 18:
420
+ case 8:
421
421
  case "end":
422
422
  return _context6.stop();
423
423
  }