files.com 1.2.239 → 1.2.241

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.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.239
1
+ 1.2.241
@@ -40,6 +40,7 @@
40
40
 
41
41
  ```
42
42
  await AutomationRun.list({
43
+ 'user_id': 1,
43
44
  'automation_id': 1,
44
45
  })
45
46
  ```
@@ -47,6 +48,7 @@ await AutomationRun.list({
47
48
 
48
49
  ### Parameters
49
50
 
51
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
50
52
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
51
53
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
54
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
@@ -41,12 +41,15 @@
41
41
  ## List Bundle Actions
42
42
 
43
43
  ```
44
- await BundleAction.list
44
+ await BundleAction.list({
45
+ 'user_id': 1,
46
+ })
45
47
  ```
46
48
 
47
49
 
48
50
  ### Parameters
49
51
 
52
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
50
53
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
51
54
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
55
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
@@ -42,6 +42,7 @@
42
42
 
43
43
  ```
44
44
  await BundleRegistration.list({
45
+ 'user_id': 1,
45
46
  'bundle_id': 1,
46
47
  })
47
48
  ```
@@ -49,6 +50,7 @@ await BundleRegistration.list({
49
50
 
50
51
  ### Parameters
51
52
 
53
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
52
54
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
53
55
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
54
56
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
@@ -24,7 +24,6 @@
24
24
  "username": "user",
25
25
  "google_cloud_storage_bucket": "my-bucket",
26
26
  "google_cloud_storage_project_id": "my-project",
27
- "google_cloud_storage_region": "us-east-1",
28
27
  "google_cloud_storage_s3_compatible_access_key": "example",
29
28
  "backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
30
29
  "backblaze_b2_bucket": "my-bucket",
@@ -86,7 +85,6 @@
86
85
  * `username` (string): Remote server username. Not needed for S3 buckets.
87
86
  * `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
88
87
  * `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
89
- * `google_cloud_storage_region` (string): Google Cloud Storage: Region
90
88
  * `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
91
89
  * `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage: S3 Endpoint
92
90
  * `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage: Bucket name
@@ -218,7 +216,6 @@ await RemoteServer.create({
218
216
  'files_agent_version': "example",
219
217
  'google_cloud_storage_bucket': "my-bucket",
220
218
  'google_cloud_storage_project_id': "my-project",
221
- 'google_cloud_storage_region': "us-east-1",
222
219
  'google_cloud_storage_s3_compatible_access_key': "example",
223
220
  'hostname': "remote-server.com",
224
221
  'linode_access_key': "example",
@@ -294,7 +291,6 @@ await RemoteServer.create({
294
291
  * `files_agent_version` (string): Files Agent version
295
292
  * `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
296
293
  * `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
297
- * `google_cloud_storage_region` (string): Google Cloud Storage: Region
298
294
  * `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
299
295
  * `hostname` (string): Hostname or IP address
300
296
  * `linode_access_key` (string): Linode: Access Key
@@ -422,7 +418,6 @@ await remote_server.update({
422
418
  'files_agent_version': "example",
423
419
  'google_cloud_storage_bucket': "my-bucket",
424
420
  'google_cloud_storage_project_id': "my-project",
425
- 'google_cloud_storage_region': "us-east-1",
426
421
  'google_cloud_storage_s3_compatible_access_key': "example",
427
422
  'hostname': "remote-server.com",
428
423
  'linode_access_key': "example",
@@ -498,7 +493,6 @@ await remote_server.update({
498
493
  * `files_agent_version` (string): Files Agent version
499
494
  * `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
500
495
  * `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
501
- * `google_cloud_storage_region` (string): Google Cloud Storage: Region
502
496
  * `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
503
497
  * `hostname` (string): Hostname or IP address
504
498
  * `linode_access_key` (string): Linode: Access Key
@@ -551,7 +545,6 @@ await remote_server.update({
551
545
  "username": "user",
552
546
  "google_cloud_storage_bucket": "my-bucket",
553
547
  "google_cloud_storage_project_id": "my-project",
554
- "google_cloud_storage_region": "us-east-1",
555
548
  "google_cloud_storage_s3_compatible_access_key": "example",
556
549
  "backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
557
550
  "backblaze_b2_bucket": "my-bucket",
@@ -35,6 +35,6 @@ await UserCipherUse.list({
35
35
 
36
36
  ### Parameters
37
37
 
38
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
38
+ * `user_id` (int64): User ID. If provided, will return uses for this user.
39
39
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
40
40
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -31,6 +31,6 @@ await UserSftpClientUse.list({
31
31
 
32
32
  ### Parameters
33
33
 
34
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
34
+ * `user_id` (int64): User ID. If provided, will return uses for this user.
35
35
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
36
36
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.239';
15
+ var version = '1.2.241';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -99,6 +99,7 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
99
99
  });
100
100
  _AutomationRun = AutomationRun;
101
101
  // Parameters:
102
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
102
103
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
103
104
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
104
105
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
@@ -121,32 +122,38 @@ _AutomationRun = AutomationRun;
121
122
  }
122
123
  throw new errors.MissingParameterError('Parameter missing: automation_id');
123
124
  case 4:
124
- if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
125
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
125
126
  _context.next = 6;
126
127
  break;
127
128
  }
128
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
129
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
129
130
  case 6:
130
- if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
131
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
131
132
  _context.next = 8;
132
133
  break;
133
134
  }
134
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
135
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
135
136
  case 8:
136
- if (!(params.automation_id && !(0, _utils.isInt)(params.automation_id))) {
137
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
137
138
  _context.next = 10;
138
139
  break;
139
140
  }
140
- throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params.automation_id)));
141
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
141
142
  case 10:
142
- _context.next = 12;
143
- return _Api.default.sendRequest('/automation_runs', 'GET', params, options);
143
+ if (!(params.automation_id && !(0, _utils.isInt)(params.automation_id))) {
144
+ _context.next = 12;
145
+ break;
146
+ }
147
+ throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params.automation_id)));
144
148
  case 12:
149
+ _context.next = 14;
150
+ return _Api.default.sendRequest('/automation_runs', 'GET', params, options);
151
+ case 14:
145
152
  response = _context.sent;
146
153
  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) {
147
154
  return new _AutomationRun(obj, options);
148
155
  })) || []);
149
- case 14:
156
+ case 16:
150
157
  case "end":
151
158
  return _context.stop();
152
159
  }
@@ -71,6 +71,7 @@ var BundleAction = /*#__PURE__*/(0, _createClass2.default)(function BundleAction
71
71
  });
72
72
  _BundleAction = BundleAction;
73
73
  // Parameters:
74
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
74
75
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
75
76
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
76
77
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
@@ -90,26 +91,32 @@ _BundleAction = BundleAction;
90
91
  case 0:
91
92
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
92
93
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
93
- if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
94
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
94
95
  _context.next = 4;
95
96
  break;
96
97
  }
97
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
98
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
98
99
  case 4:
99
- if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
100
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
100
101
  _context.next = 6;
101
102
  break;
102
103
  }
103
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
104
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
104
105
  case 6:
105
- _context.next = 8;
106
- return _Api.default.sendRequest('/bundle_actions', 'GET', params, options);
106
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
107
+ _context.next = 8;
108
+ break;
109
+ }
110
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
107
111
  case 8:
112
+ _context.next = 10;
113
+ return _Api.default.sendRequest('/bundle_actions', 'GET', params, options);
114
+ case 10:
108
115
  response = _context.sent;
109
116
  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) {
110
117
  return new _BundleAction(obj, options);
111
118
  })) || []);
112
- case 10:
119
+ case 12:
113
120
  case "end":
114
121
  return _context.stop();
115
122
  }
@@ -99,6 +99,7 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
99
99
  });
100
100
  _BundleRegistration = BundleRegistration;
101
101
  // Parameters:
102
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
102
103
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
103
104
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
104
105
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
@@ -114,32 +115,38 @@ _BundleRegistration = BundleRegistration;
114
115
  case 0:
115
116
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
116
117
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
117
- if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
118
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
118
119
  _context.next = 4;
119
120
  break;
120
121
  }
121
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
122
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
122
123
  case 4:
123
- if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
124
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
124
125
  _context.next = 6;
125
126
  break;
126
127
  }
127
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
128
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
128
129
  case 6:
129
- if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
130
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
130
131
  _context.next = 8;
131
132
  break;
132
133
  }
133
- throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
134
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
134
135
  case 8:
135
- _context.next = 10;
136
- return _Api.default.sendRequest('/bundle_registrations', 'GET', params, options);
136
+ if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
137
+ _context.next = 10;
138
+ break;
139
+ }
140
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
137
141
  case 10:
142
+ _context.next = 12;
143
+ return _Api.default.sendRequest('/bundle_registrations', 'GET', params, options);
144
+ case 12:
138
145
  response = _context.sent;
139
146
  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) {
140
147
  return new _BundleRegistration(obj, options);
141
148
  })) || []);
142
- case 12:
149
+ case 14:
143
150
  case "end":
144
151
  return _context.stop();
145
152
  }
@@ -172,13 +172,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
172
172
  (0, _defineProperty2.default)(this, "setGoogleCloudStorageProjectId", function (value) {
173
173
  _this.attributes.google_cloud_storage_project_id = value;
174
174
  });
175
- // string # Google Cloud Storage: Region
176
- (0, _defineProperty2.default)(this, "getGoogleCloudStorageRegion", function () {
177
- return _this.attributes.google_cloud_storage_region;
178
- });
179
- (0, _defineProperty2.default)(this, "setGoogleCloudStorageRegion", function (value) {
180
- _this.attributes.google_cloud_storage_region = value;
181
- });
182
175
  // string # Google Cloud Storage: S3-compatible Access Key.
183
176
  (0, _defineProperty2.default)(this, "getGoogleCloudStorageS3CompatibleAccessKey", function () {
184
177
  return _this.attributes.google_cloud_storage_s3_compatible_access_key;
@@ -762,7 +755,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
762
755
  // files_agent_version - string - Files Agent version
763
756
  // google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
764
757
  // google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
765
- // google_cloud_storage_region - string - Google Cloud Storage: Region
766
758
  // google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
767
759
  // hostname - string - Hostname or IP address
768
760
  // linode_access_key - string - Linode: Access Key
@@ -1045,188 +1037,182 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1045
1037
  }
1046
1038
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_project_id)));
1047
1039
  case 84:
1048
- if (!(params.google_cloud_storage_region && !(0, _utils.isString)(params.google_cloud_storage_region))) {
1049
- _context2.next = 86;
1050
- break;
1051
- }
1052
- throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_region must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_region)));
1053
- case 86:
1054
1040
  if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
1055
- _context2.next = 88;
1041
+ _context2.next = 86;
1056
1042
  break;
1057
1043
  }
1058
1044
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_access_key)));
1059
- case 88:
1045
+ case 86:
1060
1046
  if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
1061
- _context2.next = 90;
1047
+ _context2.next = 88;
1062
1048
  break;
1063
1049
  }
1064
1050
  throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
1065
- case 90:
1051
+ case 88:
1066
1052
  if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1067
- _context2.next = 92;
1053
+ _context2.next = 90;
1068
1054
  break;
1069
1055
  }
1070
1056
  throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1071
- case 92:
1057
+ case 90:
1072
1058
  if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1073
- _context2.next = 94;
1059
+ _context2.next = 92;
1074
1060
  break;
1075
1061
  }
1076
1062
  throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1077
- case 94:
1063
+ case 92:
1078
1064
  if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1079
- _context2.next = 96;
1065
+ _context2.next = 94;
1080
1066
  break;
1081
1067
  }
1082
1068
  throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1083
- case 96:
1069
+ case 94:
1084
1070
  if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
1085
- _context2.next = 98;
1071
+ _context2.next = 96;
1086
1072
  break;
1087
1073
  }
1088
1074
  throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
1089
- case 98:
1075
+ case 96:
1090
1076
  if (!(params.name && !(0, _utils.isString)(params.name))) {
1091
- _context2.next = 100;
1077
+ _context2.next = 98;
1092
1078
  break;
1093
1079
  }
1094
1080
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
1095
- case 100:
1081
+ case 98:
1096
1082
  if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
1097
- _context2.next = 102;
1083
+ _context2.next = 100;
1098
1084
  break;
1099
1085
  }
1100
1086
  throw new errors.InvalidParameterError("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(params.one_drive_account_type)));
1101
- case 102:
1087
+ case 100:
1102
1088
  if (!(params.port && !(0, _utils.isInt)(params.port))) {
1103
- _context2.next = 104;
1089
+ _context2.next = 102;
1104
1090
  break;
1105
1091
  }
1106
1092
  throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
1107
- case 104:
1093
+ case 102:
1108
1094
  if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
1109
- _context2.next = 106;
1095
+ _context2.next = 104;
1110
1096
  break;
1111
1097
  }
1112
1098
  throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
1113
- case 106:
1099
+ case 104:
1114
1100
  if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
1115
- _context2.next = 108;
1101
+ _context2.next = 106;
1116
1102
  break;
1117
1103
  }
1118
1104
  throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
1119
- case 108:
1105
+ case 106:
1120
1106
  if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
1121
- _context2.next = 110;
1107
+ _context2.next = 108;
1122
1108
  break;
1123
1109
  }
1124
1110
  throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
1125
- case 110:
1111
+ case 108:
1126
1112
  if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
1127
- _context2.next = 112;
1113
+ _context2.next = 110;
1128
1114
  break;
1129
1115
  }
1130
1116
  throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
1131
- case 112:
1117
+ case 110:
1132
1118
  if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1133
- _context2.next = 114;
1119
+ _context2.next = 112;
1134
1120
  break;
1135
1121
  }
1136
1122
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_access_key)));
1137
- case 114:
1123
+ case 112:
1138
1124
  if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1139
- _context2.next = 116;
1125
+ _context2.next = 114;
1140
1126
  break;
1141
1127
  }
1142
1128
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1143
- case 116:
1129
+ case 114:
1144
1130
  if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1145
- _context2.next = 118;
1131
+ _context2.next = 116;
1146
1132
  break;
1147
1133
  }
1148
1134
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1149
- case 118:
1135
+ case 116:
1150
1136
  if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1151
- _context2.next = 120;
1137
+ _context2.next = 118;
1152
1138
  break;
1153
1139
  }
1154
1140
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1155
- case 120:
1141
+ case 118:
1156
1142
  if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
1157
- _context2.next = 122;
1143
+ _context2.next = 120;
1158
1144
  break;
1159
1145
  }
1160
1146
  throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
1161
- case 122:
1147
+ case 120:
1162
1148
  if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
1163
- _context2.next = 124;
1149
+ _context2.next = 122;
1164
1150
  break;
1165
1151
  }
1166
1152
  throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
1167
- case 124:
1153
+ case 122:
1168
1154
  if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
1169
- _context2.next = 126;
1155
+ _context2.next = 124;
1170
1156
  break;
1171
1157
  }
1172
1158
  throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
1173
- case 126:
1159
+ case 124:
1174
1160
  if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
1175
- _context2.next = 128;
1161
+ _context2.next = 126;
1176
1162
  break;
1177
1163
  }
1178
1164
  throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
1179
- case 128:
1165
+ case 126:
1180
1166
  if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
1181
- _context2.next = 130;
1167
+ _context2.next = 128;
1182
1168
  break;
1183
1169
  }
1184
1170
  throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
1185
- case 130:
1171
+ case 128:
1186
1172
  if (!(params.username && !(0, _utils.isString)(params.username))) {
1187
- _context2.next = 132;
1173
+ _context2.next = 130;
1188
1174
  break;
1189
1175
  }
1190
1176
  throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
1191
- case 132:
1177
+ case 130:
1192
1178
  if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
1193
- _context2.next = 134;
1179
+ _context2.next = 132;
1194
1180
  break;
1195
1181
  }
1196
1182
  throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
1197
- case 134:
1183
+ case 132:
1198
1184
  if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
1199
- _context2.next = 136;
1185
+ _context2.next = 134;
1200
1186
  break;
1201
1187
  }
1202
1188
  throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
1203
- case 136:
1189
+ case 134:
1204
1190
  if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
1205
- _context2.next = 138;
1191
+ _context2.next = 136;
1206
1192
  break;
1207
1193
  }
1208
1194
  throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
1209
- case 138:
1195
+ case 136:
1210
1196
  if (params.id) {
1211
- _context2.next = 144;
1197
+ _context2.next = 142;
1212
1198
  break;
1213
1199
  }
1214
1200
  if (!_this.attributes.id) {
1215
- _context2.next = 143;
1201
+ _context2.next = 141;
1216
1202
  break;
1217
1203
  }
1218
1204
  params.id = _this.id;
1219
- _context2.next = 144;
1205
+ _context2.next = 142;
1220
1206
  break;
1221
- case 143:
1207
+ case 141:
1222
1208
  throw new errors.MissingParameterError('Parameter missing: id');
1223
- case 144:
1224
- _context2.next = 146;
1209
+ case 142:
1210
+ _context2.next = 144;
1225
1211
  return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
1226
- case 146:
1212
+ case 144:
1227
1213
  response = _context2.sent;
1228
1214
  return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
1229
- case 148:
1215
+ case 146:
1230
1216
  case "end":
1231
1217
  return _context2.stop();
1232
1218
  }
@@ -1517,7 +1503,6 @@ _RemoteServer = RemoteServer;
1517
1503
  // files_agent_version - string - Files Agent version
1518
1504
  // google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
1519
1505
  // google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
1520
- // google_cloud_storage_region - string - Google Cloud Storage: Region
1521
1506
  // google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
1522
1507
  // hostname - string - Hostname or IP address
1523
1508
  // linode_access_key - string - Linode: Access Key
@@ -1783,174 +1768,168 @@ _RemoteServer = RemoteServer;
1783
1768
  }
1784
1769
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_project_id)));
1785
1770
  case 78:
1786
- if (!(params.google_cloud_storage_region && !(0, _utils.isString)(params.google_cloud_storage_region))) {
1787
- _context8.next = 80;
1788
- break;
1789
- }
1790
- throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_region must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_region)));
1791
- case 80:
1792
1771
  if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
1793
- _context8.next = 82;
1772
+ _context8.next = 80;
1794
1773
  break;
1795
1774
  }
1796
1775
  throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_access_key)));
1797
- case 82:
1776
+ case 80:
1798
1777
  if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
1799
- _context8.next = 84;
1778
+ _context8.next = 82;
1800
1779
  break;
1801
1780
  }
1802
1781
  throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
1803
- case 84:
1782
+ case 82:
1804
1783
  if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1805
- _context8.next = 86;
1784
+ _context8.next = 84;
1806
1785
  break;
1807
1786
  }
1808
1787
  throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1809
- case 86:
1788
+ case 84:
1810
1789
  if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1811
- _context8.next = 88;
1790
+ _context8.next = 86;
1812
1791
  break;
1813
1792
  }
1814
1793
  throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1815
- case 88:
1794
+ case 86:
1816
1795
  if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1817
- _context8.next = 90;
1796
+ _context8.next = 88;
1818
1797
  break;
1819
1798
  }
1820
1799
  throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1821
- case 90:
1800
+ case 88:
1822
1801
  if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
1823
- _context8.next = 92;
1802
+ _context8.next = 90;
1824
1803
  break;
1825
1804
  }
1826
1805
  throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
1827
- case 92:
1806
+ case 90:
1828
1807
  if (!(params.name && !(0, _utils.isString)(params.name))) {
1829
- _context8.next = 94;
1808
+ _context8.next = 92;
1830
1809
  break;
1831
1810
  }
1832
1811
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
1833
- case 94:
1812
+ case 92:
1834
1813
  if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
1835
- _context8.next = 96;
1814
+ _context8.next = 94;
1836
1815
  break;
1837
1816
  }
1838
1817
  throw new errors.InvalidParameterError("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(params.one_drive_account_type)));
1839
- case 96:
1818
+ case 94:
1840
1819
  if (!(params.port && !(0, _utils.isInt)(params.port))) {
1841
- _context8.next = 98;
1820
+ _context8.next = 96;
1842
1821
  break;
1843
1822
  }
1844
1823
  throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
1845
- case 98:
1824
+ case 96:
1846
1825
  if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
1847
- _context8.next = 100;
1826
+ _context8.next = 98;
1848
1827
  break;
1849
1828
  }
1850
1829
  throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
1851
- case 100:
1830
+ case 98:
1852
1831
  if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
1853
- _context8.next = 102;
1832
+ _context8.next = 100;
1854
1833
  break;
1855
1834
  }
1856
1835
  throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
1857
- case 102:
1836
+ case 100:
1858
1837
  if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
1859
- _context8.next = 104;
1838
+ _context8.next = 102;
1860
1839
  break;
1861
1840
  }
1862
1841
  throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
1863
- case 104:
1842
+ case 102:
1864
1843
  if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
1865
- _context8.next = 106;
1844
+ _context8.next = 104;
1866
1845
  break;
1867
1846
  }
1868
1847
  throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
1869
- case 106:
1848
+ case 104:
1870
1849
  if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1871
- _context8.next = 108;
1850
+ _context8.next = 106;
1872
1851
  break;
1873
1852
  }
1874
1853
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_access_key)));
1875
- case 108:
1854
+ case 106:
1876
1855
  if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1877
- _context8.next = 110;
1856
+ _context8.next = 108;
1878
1857
  break;
1879
1858
  }
1880
1859
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1881
- case 110:
1860
+ case 108:
1882
1861
  if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1883
- _context8.next = 112;
1862
+ _context8.next = 110;
1884
1863
  break;
1885
1864
  }
1886
1865
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1887
- case 112:
1866
+ case 110:
1888
1867
  if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1889
- _context8.next = 114;
1868
+ _context8.next = 112;
1890
1869
  break;
1891
1870
  }
1892
1871
  throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1893
- case 114:
1872
+ case 112:
1894
1873
  if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
1895
- _context8.next = 116;
1874
+ _context8.next = 114;
1896
1875
  break;
1897
1876
  }
1898
1877
  throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
1899
- case 116:
1878
+ case 114:
1900
1879
  if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
1901
- _context8.next = 118;
1880
+ _context8.next = 116;
1902
1881
  break;
1903
1882
  }
1904
1883
  throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
1905
- case 118:
1884
+ case 116:
1906
1885
  if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
1907
- _context8.next = 120;
1886
+ _context8.next = 118;
1908
1887
  break;
1909
1888
  }
1910
1889
  throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
1911
- case 120:
1890
+ case 118:
1912
1891
  if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
1913
- _context8.next = 122;
1892
+ _context8.next = 120;
1914
1893
  break;
1915
1894
  }
1916
1895
  throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
1917
- case 122:
1896
+ case 120:
1918
1897
  if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
1919
- _context8.next = 124;
1898
+ _context8.next = 122;
1920
1899
  break;
1921
1900
  }
1922
1901
  throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
1923
- case 124:
1902
+ case 122:
1924
1903
  if (!(params.username && !(0, _utils.isString)(params.username))) {
1925
- _context8.next = 126;
1904
+ _context8.next = 124;
1926
1905
  break;
1927
1906
  }
1928
1907
  throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
1929
- case 126:
1908
+ case 124:
1930
1909
  if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
1931
- _context8.next = 128;
1910
+ _context8.next = 126;
1932
1911
  break;
1933
1912
  }
1934
1913
  throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
1935
- case 128:
1914
+ case 126:
1936
1915
  if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
1937
- _context8.next = 130;
1916
+ _context8.next = 128;
1938
1917
  break;
1939
1918
  }
1940
1919
  throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
1941
- case 130:
1920
+ case 128:
1942
1921
  if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
1943
- _context8.next = 132;
1922
+ _context8.next = 130;
1944
1923
  break;
1945
1924
  }
1946
1925
  throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
1947
- case 132:
1948
- _context8.next = 134;
1926
+ case 130:
1927
+ _context8.next = 132;
1949
1928
  return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
1950
- case 134:
1929
+ case 132:
1951
1930
  response = _context8.sent;
1952
1931
  return _context8.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
1953
- case 136:
1932
+ case 134:
1954
1933
  case "end":
1955
1934
  return _context8.stop();
1956
1935
  }
@@ -75,7 +75,7 @@ var UserCipherUse = /*#__PURE__*/(0, _createClass2.default)(function UserCipherU
75
75
  });
76
76
  _UserCipherUse = UserCipherUse;
77
77
  // Parameters:
78
- // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
78
+ // user_id - int64 - User ID. If provided, will return uses for this user.
79
79
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
80
80
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
81
81
  (0, _defineProperty2.default)(UserCipherUse, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -67,7 +67,7 @@ var UserSftpClientUse = /*#__PURE__*/(0, _createClass2.default)(function UserSft
67
67
  });
68
68
  _UserSftpClientUse = UserSftpClientUse;
69
69
  // Parameters:
70
- // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
70
+ // user_id - int64 - User ID. If provided, will return uses for this user.
71
71
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
72
72
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
73
73
  (0, _defineProperty2.default)(UserSftpClientUse, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.239",
3
+ "version": "1.2.241",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.239'
9
+ const version = '1.2.241'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -68,6 +68,7 @@ class AutomationRun {
68
68
  getStatusMessagesUrl = () => this.attributes.status_messages_url
69
69
 
70
70
  // Parameters:
71
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
71
72
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
72
73
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
73
74
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
@@ -78,6 +79,10 @@ class AutomationRun {
78
79
  throw new errors.MissingParameterError('Parameter missing: automation_id')
79
80
  }
80
81
 
82
+ if (params.user_id && !isInt(params.user_id)) {
83
+ throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
84
+ }
85
+
81
86
  if (params.cursor && !isString(params.cursor)) {
82
87
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
83
88
  }
@@ -47,6 +47,7 @@ class BundleAction {
47
47
  getSource = () => this.attributes.source
48
48
 
49
49
  // Parameters:
50
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
50
51
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
51
52
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
53
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
@@ -56,6 +57,10 @@ class BundleAction {
56
57
  // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
57
58
  // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
58
59
  static list = async (params = {}, options = {}) => {
60
+ if (params.user_id && !isInt(params.user_id)) {
61
+ throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
62
+ }
63
+
59
64
  if (params.cursor && !isString(params.cursor)) {
60
65
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
61
66
  }
@@ -68,11 +68,16 @@ class BundleRegistration {
68
68
  getCreatedAt = () => this.attributes.created_at
69
69
 
70
70
  // Parameters:
71
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
71
72
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
72
73
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
73
74
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
74
75
  // bundle_id - int64 - ID of the associated Bundle
75
76
  static list = async (params = {}, options = {}) => {
77
+ if (params.user_id && !isInt(params.user_id)) {
78
+ throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
79
+ }
80
+
76
81
  if (params.cursor && !isString(params.cursor)) {
77
82
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
78
83
  }
@@ -168,13 +168,6 @@ class RemoteServer {
168
168
  this.attributes.google_cloud_storage_project_id = value
169
169
  }
170
170
 
171
- // string # Google Cloud Storage: Region
172
- getGoogleCloudStorageRegion = () => this.attributes.google_cloud_storage_region
173
-
174
- setGoogleCloudStorageRegion = value => {
175
- this.attributes.google_cloud_storage_region = value
176
- }
177
-
178
171
  // string # Google Cloud Storage: S3-compatible Access Key.
179
172
  getGoogleCloudStorageS3CompatibleAccessKey = () => this.attributes.google_cloud_storage_s3_compatible_access_key
180
173
 
@@ -710,7 +703,6 @@ class RemoteServer {
710
703
  // files_agent_version - string - Files Agent version
711
704
  // google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
712
705
  // google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
713
- // google_cloud_storage_region - string - Google Cloud Storage: Region
714
706
  // google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
715
707
  // hostname - string - Hostname or IP address
716
708
  // linode_access_key - string - Linode: Access Key
@@ -904,10 +896,6 @@ class RemoteServer {
904
896
  throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_project_id must be of type String, received ${getType(params.google_cloud_storage_project_id)}`)
905
897
  }
906
898
 
907
- if (params.google_cloud_storage_region && !isString(params.google_cloud_storage_region)) {
908
- throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_region must be of type String, received ${getType(params.google_cloud_storage_region)}`)
909
- }
910
-
911
899
  if (params.google_cloud_storage_s3_compatible_access_key && !isString(params.google_cloud_storage_s3_compatible_access_key)) {
912
900
  throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ${getType(params.google_cloud_storage_s3_compatible_access_key)}`)
913
901
  }
@@ -1179,7 +1167,6 @@ class RemoteServer {
1179
1167
  // files_agent_version - string - Files Agent version
1180
1168
  // google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
1181
1169
  // google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
1182
- // google_cloud_storage_region - string - Google Cloud Storage: Region
1183
1170
  // google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
1184
1171
  // hostname - string - Hostname or IP address
1185
1172
  // linode_access_key - string - Linode: Access Key
@@ -1360,10 +1347,6 @@ class RemoteServer {
1360
1347
  throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_project_id must be of type String, received ${getType(params.google_cloud_storage_project_id)}`)
1361
1348
  }
1362
1349
 
1363
- if (params.google_cloud_storage_region && !isString(params.google_cloud_storage_region)) {
1364
- throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_region must be of type String, received ${getType(params.google_cloud_storage_region)}`)
1365
- }
1366
-
1367
1350
  if (params.google_cloud_storage_s3_compatible_access_key && !isString(params.google_cloud_storage_s3_compatible_access_key)) {
1368
1351
  throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ${getType(params.google_cloud_storage_s3_compatible_access_key)}`)
1369
1352
  }
@@ -50,7 +50,7 @@ class UserCipherUse {
50
50
  getUserId = () => this.attributes.user_id
51
51
 
52
52
  // Parameters:
53
- // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
53
+ // user_id - int64 - User ID. If provided, will return uses for this user.
54
54
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
55
55
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
56
  static list = async (params = {}, options = {}) => {
@@ -44,7 +44,7 @@ class UserSftpClientUse {
44
44
  getUserId = () => this.attributes.user_id
45
45
 
46
46
  // Parameters:
47
- // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
47
+ // user_id - int64 - User ID. If provided, will return uses for this user.
48
48
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
49
49
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
50
50
  static list = async (params = {}, options = {}) => {