files.com 1.0.229 → 1.0.231

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.229
1
+ 1.0.231
@@ -38,7 +38,7 @@
38
38
  * `end_at` (date-time): End date/time of export range.
39
39
  * `status` (string): Status of export. Will be: `building`, `ready`, or `failed`
40
40
  * `query_action` (string): Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
41
- * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`
41
+ * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
42
42
  * `query_user_id` (string): Return results that are actions performed by the user indiciated by this User ID
43
43
  * `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
44
44
  * `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
@@ -110,7 +110,7 @@ await HistoryExport.create({
110
110
  * `start_at` (string): Start date/time of export range.
111
111
  * `end_at` (string): End date/time of export range.
112
112
  * `query_action` (string): Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
113
- * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`
113
+ * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
114
114
  * `query_user_id` (string): Return results that are actions performed by the user indiciated by this User ID
115
115
  * `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
116
116
  * `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
@@ -43,7 +43,7 @@
43
43
  * `username` (string): Username of the user that performed the action
44
44
  * `action` (string): What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
45
45
  * `failure_type` (string): The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
46
- * `interface` (string): Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`
46
+ * `interface` (string): Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
47
47
  * `target_id` (int64): ID of the object (such as Users, or API Keys) on which the action was taken
48
48
  * `target_name` (string): Name of the User, Group or other object with a name related to this action
49
49
  * `target_permission` (string): Permission level of the action
@@ -275,6 +275,7 @@ await remote_server.configuration_file({
275
275
  'config_version': "example",
276
276
  'private_key': "example",
277
277
  'public_key': "example",
278
+ 'server_host_key': "example",
278
279
  })
279
280
  ```
280
281
 
@@ -290,6 +291,7 @@ await remote_server.configuration_file({
290
291
  * `config_version` (string): agent config version
291
292
  * `private_key` (string): private key
292
293
  * `public_key` (string): public key
294
+ * `server_host_key` (string):
293
295
 
294
296
  ### Example Response
295
297
 
@@ -304,7 +306,8 @@ await remote_server.configuration_file({
304
306
  "public_key": "example",
305
307
  "private_key": "example",
306
308
  "status": "example",
307
- "config_version": "example"
309
+ "config_version": "example",
310
+ "server_host_key": "example"
308
311
  }
309
312
  ```
310
313
 
@@ -13,7 +13,8 @@
13
13
  "public_key": "example",
14
14
  "private_key": "example",
15
15
  "status": "example",
16
- "config_version": "example"
16
+ "config_version": "example",
17
+ "server_host_key": "example"
17
18
  }
18
19
  ```
19
20
 
@@ -27,3 +28,4 @@
27
28
  * `private_key` (string): private key
28
29
  * `status` (string): either running or shutdown
29
30
  * `config_version` (string): agent config version
31
+ * `server_host_key` (string):
@@ -473,26 +473,32 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
473
473
  }
474
474
  throw new errors.InvalidParameterError("Bad parameter: public_key must be of type String, received ".concat((0, _utils.getType)(public_key)));
475
475
  case 26:
476
+ if (!(params['server_host_key'] && !(0, _utils.isString)(params['server_host_key']))) {
477
+ _context.next = 28;
478
+ break;
479
+ }
480
+ throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(server_host_key)));
481
+ case 28:
476
482
  if (params['id']) {
477
- _context.next = 32;
483
+ _context.next = 34;
478
484
  break;
479
485
  }
480
486
  if (!_this.attributes.id) {
481
- _context.next = 31;
487
+ _context.next = 33;
482
488
  break;
483
489
  }
484
490
  params['id'] = _this.id;
485
- _context.next = 32;
491
+ _context.next = 34;
486
492
  break;
487
- case 31:
493
+ case 33:
488
494
  throw new errors.MissingParameterError('Parameter missing: id');
489
- case 32:
490
- _context.next = 34;
491
- return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id']), "/configuration_file"), 'POST', params, _this.options);
492
495
  case 34:
496
+ _context.next = 36;
497
+ return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id']), "/configuration_file"), 'POST', params, _this.options);
498
+ case 36:
493
499
  response = _context.sent;
494
500
  return _context.abrupt("return", new RemoteServerConfigurationFile(response === null || response === void 0 ? void 0 : response.data, _this.options));
495
- case 36:
501
+ case 38:
496
502
  case "end":
497
503
  return _context.stop();
498
504
  }
@@ -59,6 +59,9 @@ var RemoteServerConfigurationFile = /*#__PURE__*/(0, _createClass2.default)(func
59
59
  (0, _defineProperty2.default)(this, "getConfigVersion", function () {
60
60
  return _this.attributes.config_version;
61
61
  });
62
+ (0, _defineProperty2.default)(this, "getServerHostKey", function () {
63
+ return _this.attributes.server_host_key;
64
+ });
62
65
  Object.entries(attributes).forEach(function (_ref) {
63
66
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
64
67
  key = _ref2[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -65,7 +65,7 @@ class HistoryExport {
65
65
  this.attributes.query_action = value
66
66
  }
67
67
 
68
- // string # Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`
68
+ // string # Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
69
69
  getQueryInterface = () => this.attributes.query_interface
70
70
 
71
71
  setQueryInterface = value => {
@@ -246,7 +246,7 @@ class HistoryExport {
246
246
  // start_at - string - Start date/time of export range.
247
247
  // end_at - string - End date/time of export range.
248
248
  // query_action - string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
249
- // query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`
249
+ // query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
250
250
  // query_user_id - string - Return results that are actions performed by the user indiciated by this User ID
251
251
  // query_file_id - string - Return results that are file actions related to the file indicated by this File ID
252
252
  // query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -62,7 +62,7 @@ class HistoryExportResult {
62
62
  // string # The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`
63
63
  getFailureType = () => this.attributes.failure_type
64
64
 
65
- // string # Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`
65
+ // string # Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
66
66
  getInterface = () => this.attributes.interface
67
67
 
68
68
  // int64 # ID of the object (such as Users, or API Keys) on which the action was taken
@@ -456,6 +456,7 @@ class RemoteServer {
456
456
  // config_version - string - agent config version
457
457
  // private_key - string - private key
458
458
  // public_key - string - public key
459
+ // server_host_key - string
459
460
  configurationFile = async (params = {}) => {
460
461
  if (!this.attributes.id) {
461
462
  throw new errors.EmptyPropertyError('Current object has no id')
@@ -496,6 +497,9 @@ class RemoteServer {
496
497
  if (params['public_key'] && !isString(params['public_key'])) {
497
498
  throw new errors.InvalidParameterError(`Bad parameter: public_key must be of type String, received ${getType(public_key)}`)
498
499
  }
500
+ if (params['server_host_key'] && !isString(params['server_host_key'])) {
501
+ throw new errors.InvalidParameterError(`Bad parameter: server_host_key must be of type String, received ${getType(server_host_key)}`)
502
+ }
499
503
 
500
504
  if (!params['id']) {
501
505
  if (this.attributes.id) {
@@ -53,6 +53,9 @@ class RemoteServerConfigurationFile {
53
53
  // string # agent config version
54
54
  getConfigVersion = () => this.attributes.config_version
55
55
 
56
+ // string
57
+ getServerHostKey = () => this.attributes.server_host_key
58
+
56
59
  }
57
60
 
58
61
  export default RemoteServerConfigurationFile