files.com 1.2.375 → 1.2.376
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 +1 -1
- package/docs/models/Bundle.md +1 -1
- package/docs/models/RemoteServer.md +7 -0
- package/lib/Files.js +1 -1
- package/lib/models/Bundle.js +1 -1
- package/lib/models/RemoteServer.js +132 -111
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Bundle.js +1 -1
- package/src/models/RemoteServer.js +17 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.376
|
package/docs/models/Bundle.md
CHANGED
|
@@ -152,7 +152,7 @@ await Bundle.list({
|
|
|
152
152
|
* `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.
|
|
153
153
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
154
154
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
155
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
155
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
156
156
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
157
157
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
158
158
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"files_agent_root": "example",
|
|
52
52
|
"files_agent_api_token": "example",
|
|
53
53
|
"files_agent_version": "example",
|
|
54
|
+
"outbound_agent_id": 1,
|
|
54
55
|
"filebase_bucket": "my-bucket",
|
|
55
56
|
"filebase_access_key": "example",
|
|
56
57
|
"cloudflare_bucket": "my-bucket",
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
* `files_agent_root` (string): Agent local root path
|
|
112
113
|
* `files_agent_api_token` (string): Files Agent API Token
|
|
113
114
|
* `files_agent_version` (string): Files Agent version
|
|
115
|
+
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
114
116
|
* `filebase_bucket` (string): Filebase: Bucket name
|
|
115
117
|
* `filebase_access_key` (string): Filebase: Access Key.
|
|
116
118
|
* `cloudflare_bucket` (string): Cloudflare: Bucket name
|
|
@@ -213,6 +215,7 @@ await RemoteServer.create({
|
|
|
213
215
|
'files_agent_permission_set': "read_write",
|
|
214
216
|
'files_agent_root': "example",
|
|
215
217
|
'files_agent_version': "example",
|
|
218
|
+
'outbound_agent_id': 1,
|
|
216
219
|
'google_cloud_storage_bucket': "my-bucket",
|
|
217
220
|
'google_cloud_storage_project_id': "my-project",
|
|
218
221
|
'google_cloud_storage_s3_compatible_access_key': "example",
|
|
@@ -286,6 +289,7 @@ await RemoteServer.create({
|
|
|
286
289
|
* `files_agent_permission_set` (string): Local permissions for files agent. read_only, write_only, or read_write
|
|
287
290
|
* `files_agent_root` (string): Agent local root path
|
|
288
291
|
* `files_agent_version` (string): Files Agent version
|
|
292
|
+
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
289
293
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
290
294
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
291
295
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -413,6 +417,7 @@ await remote_server.update({
|
|
|
413
417
|
'files_agent_permission_set': "read_write",
|
|
414
418
|
'files_agent_root': "example",
|
|
415
419
|
'files_agent_version': "example",
|
|
420
|
+
'outbound_agent_id': 1,
|
|
416
421
|
'google_cloud_storage_bucket': "my-bucket",
|
|
417
422
|
'google_cloud_storage_project_id': "my-project",
|
|
418
423
|
'google_cloud_storage_s3_compatible_access_key': "example",
|
|
@@ -486,6 +491,7 @@ await remote_server.update({
|
|
|
486
491
|
* `files_agent_permission_set` (string): Local permissions for files agent. read_only, write_only, or read_write
|
|
487
492
|
* `files_agent_root` (string): Agent local root path
|
|
488
493
|
* `files_agent_version` (string): Files Agent version
|
|
494
|
+
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
489
495
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
490
496
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
491
497
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -564,6 +570,7 @@ await remote_server.update({
|
|
|
564
570
|
"files_agent_root": "example",
|
|
565
571
|
"files_agent_api_token": "example",
|
|
566
572
|
"files_agent_version": "example",
|
|
573
|
+
"outbound_agent_id": 1,
|
|
567
574
|
"filebase_bucket": "my-bucket",
|
|
568
575
|
"filebase_access_key": "example",
|
|
569
576
|
"cloudflare_bucket": "my-bucket",
|
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.
|
|
15
|
+
var version = '1.2.376';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
package/lib/models/Bundle.js
CHANGED
|
@@ -684,7 +684,7 @@ _Bundle = Bundle;
|
|
|
684
684
|
// 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.
|
|
685
685
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
686
686
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
687
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
687
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
688
688
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
689
689
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
690
690
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -361,6 +361,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
361
361
|
(0, _defineProperty2.default)(this, "setFilesAgentVersion", function (value) {
|
|
362
362
|
_this.attributes.files_agent_version = value;
|
|
363
363
|
});
|
|
364
|
+
// int64 # Route traffic to outbound on a files-agent
|
|
365
|
+
(0, _defineProperty2.default)(this, "getOutboundAgentId", function () {
|
|
366
|
+
return _this.attributes.outbound_agent_id;
|
|
367
|
+
});
|
|
368
|
+
(0, _defineProperty2.default)(this, "setOutboundAgentId", function (value) {
|
|
369
|
+
_this.attributes.outbound_agent_id = value;
|
|
370
|
+
});
|
|
364
371
|
// string # Filebase: Bucket name
|
|
365
372
|
(0, _defineProperty2.default)(this, "getFilebaseBucket", function () {
|
|
366
373
|
return _this.attributes.filebase_bucket;
|
|
@@ -740,6 +747,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
740
747
|
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
741
748
|
// files_agent_root - string - Agent local root path
|
|
742
749
|
// files_agent_version - string - Files Agent version
|
|
750
|
+
// outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
743
751
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
744
752
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
745
753
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -1015,176 +1023,182 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
1015
1023
|
}
|
|
1016
1024
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
|
|
1017
1025
|
case 40:
|
|
1018
|
-
if (!(params.
|
|
1026
|
+
if (!(params.outbound_agent_id && !(0, _utils.isInt)(params.outbound_agent_id))) {
|
|
1019
1027
|
_context2.next = 41;
|
|
1020
1028
|
break;
|
|
1021
1029
|
}
|
|
1022
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1030
|
+
throw new errors.InvalidParameterError("Bad parameter: outbound_agent_id must be of type Int, received ".concat((0, _utils.getType)(params.outbound_agent_id)));
|
|
1023
1031
|
case 41:
|
|
1024
|
-
if (!(params.
|
|
1032
|
+
if (!(params.google_cloud_storage_bucket && !(0, _utils.isString)(params.google_cloud_storage_bucket))) {
|
|
1025
1033
|
_context2.next = 42;
|
|
1026
1034
|
break;
|
|
1027
1035
|
}
|
|
1028
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1036
|
+
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_bucket)));
|
|
1029
1037
|
case 42:
|
|
1030
|
-
if (!(params.
|
|
1038
|
+
if (!(params.google_cloud_storage_project_id && !(0, _utils.isString)(params.google_cloud_storage_project_id))) {
|
|
1031
1039
|
_context2.next = 43;
|
|
1032
1040
|
break;
|
|
1033
1041
|
}
|
|
1034
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1042
|
+
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)));
|
|
1035
1043
|
case 43:
|
|
1036
|
-
if (!(params.
|
|
1044
|
+
if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
|
|
1037
1045
|
_context2.next = 44;
|
|
1038
1046
|
break;
|
|
1039
1047
|
}
|
|
1040
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1048
|
+
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)));
|
|
1041
1049
|
case 44:
|
|
1042
|
-
if (!(params.
|
|
1050
|
+
if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
|
|
1043
1051
|
_context2.next = 45;
|
|
1044
1052
|
break;
|
|
1045
1053
|
}
|
|
1046
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1054
|
+
throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
|
|
1047
1055
|
case 45:
|
|
1048
|
-
if (!(params.
|
|
1056
|
+
if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
|
|
1049
1057
|
_context2.next = 46;
|
|
1050
1058
|
break;
|
|
1051
1059
|
}
|
|
1052
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1060
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
|
|
1053
1061
|
case 46:
|
|
1054
|
-
if (!(params.
|
|
1062
|
+
if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
|
|
1055
1063
|
_context2.next = 47;
|
|
1056
1064
|
break;
|
|
1057
1065
|
}
|
|
1058
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1066
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
|
|
1059
1067
|
case 47:
|
|
1060
|
-
if (!(params.
|
|
1068
|
+
if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
|
|
1061
1069
|
_context2.next = 48;
|
|
1062
1070
|
break;
|
|
1063
1071
|
}
|
|
1064
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1072
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
|
|
1065
1073
|
case 48:
|
|
1066
|
-
if (!(params.
|
|
1074
|
+
if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
|
|
1067
1075
|
_context2.next = 49;
|
|
1068
1076
|
break;
|
|
1069
1077
|
}
|
|
1070
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1078
|
+
throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
|
|
1071
1079
|
case 49:
|
|
1072
|
-
if (!(params.
|
|
1080
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
1073
1081
|
_context2.next = 50;
|
|
1074
1082
|
break;
|
|
1075
1083
|
}
|
|
1076
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1084
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
1077
1085
|
case 50:
|
|
1078
|
-
if (!(params.
|
|
1086
|
+
if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
|
|
1079
1087
|
_context2.next = 51;
|
|
1080
1088
|
break;
|
|
1081
1089
|
}
|
|
1082
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1090
|
+
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)));
|
|
1083
1091
|
case 51:
|
|
1084
|
-
if (!(params.
|
|
1092
|
+
if (!(params.port && !(0, _utils.isInt)(params.port))) {
|
|
1085
1093
|
_context2.next = 52;
|
|
1086
1094
|
break;
|
|
1087
1095
|
}
|
|
1088
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1096
|
+
throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
|
|
1089
1097
|
case 52:
|
|
1090
|
-
if (!(params.
|
|
1098
|
+
if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
|
|
1091
1099
|
_context2.next = 53;
|
|
1092
1100
|
break;
|
|
1093
1101
|
}
|
|
1094
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1102
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
|
|
1095
1103
|
case 53:
|
|
1096
|
-
if (!(params.
|
|
1104
|
+
if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
|
|
1097
1105
|
_context2.next = 54;
|
|
1098
1106
|
break;
|
|
1099
1107
|
}
|
|
1100
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1108
|
+
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)));
|
|
1101
1109
|
case 54:
|
|
1102
|
-
if (!(params.
|
|
1110
|
+
if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
|
|
1103
1111
|
_context2.next = 55;
|
|
1104
1112
|
break;
|
|
1105
1113
|
}
|
|
1106
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1114
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
|
|
1107
1115
|
case 55:
|
|
1108
|
-
if (!(params.
|
|
1116
|
+
if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
|
|
1109
1117
|
_context2.next = 56;
|
|
1110
1118
|
break;
|
|
1111
1119
|
}
|
|
1112
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1120
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
|
|
1113
1121
|
case 56:
|
|
1114
|
-
if (!(params.
|
|
1122
|
+
if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
|
|
1115
1123
|
_context2.next = 57;
|
|
1116
1124
|
break;
|
|
1117
1125
|
}
|
|
1118
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1126
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
|
|
1119
1127
|
case 57:
|
|
1120
|
-
if (!(params.
|
|
1128
|
+
if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
|
|
1121
1129
|
_context2.next = 58;
|
|
1122
1130
|
break;
|
|
1123
1131
|
}
|
|
1124
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1132
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
|
|
1125
1133
|
case 58:
|
|
1126
|
-
if (!(params.
|
|
1134
|
+
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
1127
1135
|
_context2.next = 59;
|
|
1128
1136
|
break;
|
|
1129
1137
|
}
|
|
1130
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1138
|
+
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
1131
1139
|
case 59:
|
|
1132
|
-
if (!(params.
|
|
1140
|
+
if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
|
|
1133
1141
|
_context2.next = 60;
|
|
1134
1142
|
break;
|
|
1135
1143
|
}
|
|
1136
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1144
|
+
throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
|
|
1137
1145
|
case 60:
|
|
1138
|
-
if (!(params.
|
|
1146
|
+
if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
|
|
1139
1147
|
_context2.next = 61;
|
|
1140
1148
|
break;
|
|
1141
1149
|
}
|
|
1142
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1150
|
+
throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
|
|
1143
1151
|
case 61:
|
|
1144
|
-
if (!(params.
|
|
1152
|
+
if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
|
|
1145
1153
|
_context2.next = 62;
|
|
1146
1154
|
break;
|
|
1147
1155
|
}
|
|
1148
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1156
|
+
throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
|
|
1149
1157
|
case 62:
|
|
1150
|
-
if (!(params.
|
|
1158
|
+
if (!(params.username && !(0, _utils.isString)(params.username))) {
|
|
1151
1159
|
_context2.next = 63;
|
|
1152
1160
|
break;
|
|
1153
1161
|
}
|
|
1154
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1162
|
+
throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
|
|
1155
1163
|
case 63:
|
|
1156
|
-
if (!(params.
|
|
1164
|
+
if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
|
|
1157
1165
|
_context2.next = 64;
|
|
1158
1166
|
break;
|
|
1159
1167
|
}
|
|
1160
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1168
|
+
throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
|
|
1161
1169
|
case 64:
|
|
1162
|
-
if (!(params.
|
|
1170
|
+
if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
|
|
1163
1171
|
_context2.next = 65;
|
|
1164
1172
|
break;
|
|
1165
1173
|
}
|
|
1166
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1174
|
+
throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
|
|
1167
1175
|
case 65:
|
|
1176
|
+
if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
|
|
1177
|
+
_context2.next = 66;
|
|
1178
|
+
break;
|
|
1179
|
+
}
|
|
1180
|
+
throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
|
|
1181
|
+
case 66:
|
|
1168
1182
|
if (params.id) {
|
|
1169
|
-
_context2.next =
|
|
1183
|
+
_context2.next = 68;
|
|
1170
1184
|
break;
|
|
1171
1185
|
}
|
|
1172
1186
|
if (!_this.attributes.id) {
|
|
1173
|
-
_context2.next =
|
|
1187
|
+
_context2.next = 67;
|
|
1174
1188
|
break;
|
|
1175
1189
|
}
|
|
1176
1190
|
params.id = _this.id;
|
|
1177
|
-
_context2.next =
|
|
1191
|
+
_context2.next = 68;
|
|
1178
1192
|
break;
|
|
1179
|
-
case 66:
|
|
1180
|
-
throw new errors.MissingParameterError('Parameter missing: id');
|
|
1181
1193
|
case 67:
|
|
1182
|
-
|
|
1183
|
-
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
1194
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
|
1184
1195
|
case 68:
|
|
1196
|
+
_context2.next = 69;
|
|
1197
|
+
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
1198
|
+
case 69:
|
|
1185
1199
|
response = _context2.sent;
|
|
1186
1200
|
return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
1187
|
-
case
|
|
1201
|
+
case 70:
|
|
1188
1202
|
case "end":
|
|
1189
1203
|
return _context2.stop();
|
|
1190
1204
|
}
|
|
@@ -1474,6 +1488,7 @@ _RemoteServer = RemoteServer;
|
|
|
1474
1488
|
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
1475
1489
|
// files_agent_root - string - Agent local root path
|
|
1476
1490
|
// files_agent_version - string - Files Agent version
|
|
1491
|
+
// outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
1477
1492
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1478
1493
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1479
1494
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -1732,162 +1747,168 @@ _RemoteServer = RemoteServer;
|
|
|
1732
1747
|
}
|
|
1733
1748
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
|
|
1734
1749
|
case 37:
|
|
1735
|
-
if (!(params.
|
|
1750
|
+
if (!(params.outbound_agent_id && !(0, _utils.isInt)(params.outbound_agent_id))) {
|
|
1736
1751
|
_context8.next = 38;
|
|
1737
1752
|
break;
|
|
1738
1753
|
}
|
|
1739
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1754
|
+
throw new errors.InvalidParameterError("Bad parameter: outbound_agent_id must be of type Int, received ".concat((0, _utils.getType)(params.outbound_agent_id)));
|
|
1740
1755
|
case 38:
|
|
1741
|
-
if (!(params.
|
|
1756
|
+
if (!(params.google_cloud_storage_bucket && !(0, _utils.isString)(params.google_cloud_storage_bucket))) {
|
|
1742
1757
|
_context8.next = 39;
|
|
1743
1758
|
break;
|
|
1744
1759
|
}
|
|
1745
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1760
|
+
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_bucket)));
|
|
1746
1761
|
case 39:
|
|
1747
|
-
if (!(params.
|
|
1762
|
+
if (!(params.google_cloud_storage_project_id && !(0, _utils.isString)(params.google_cloud_storage_project_id))) {
|
|
1748
1763
|
_context8.next = 40;
|
|
1749
1764
|
break;
|
|
1750
1765
|
}
|
|
1751
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1766
|
+
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)));
|
|
1752
1767
|
case 40:
|
|
1753
|
-
if (!(params.
|
|
1768
|
+
if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
|
|
1754
1769
|
_context8.next = 41;
|
|
1755
1770
|
break;
|
|
1756
1771
|
}
|
|
1757
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1772
|
+
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)));
|
|
1758
1773
|
case 41:
|
|
1759
|
-
if (!(params.
|
|
1774
|
+
if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
|
|
1760
1775
|
_context8.next = 42;
|
|
1761
1776
|
break;
|
|
1762
1777
|
}
|
|
1763
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1778
|
+
throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
|
|
1764
1779
|
case 42:
|
|
1765
|
-
if (!(params.
|
|
1780
|
+
if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
|
|
1766
1781
|
_context8.next = 43;
|
|
1767
1782
|
break;
|
|
1768
1783
|
}
|
|
1769
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1784
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
|
|
1770
1785
|
case 43:
|
|
1771
|
-
if (!(params.
|
|
1786
|
+
if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
|
|
1772
1787
|
_context8.next = 44;
|
|
1773
1788
|
break;
|
|
1774
1789
|
}
|
|
1775
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1790
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
|
|
1776
1791
|
case 44:
|
|
1777
|
-
if (!(params.
|
|
1792
|
+
if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
|
|
1778
1793
|
_context8.next = 45;
|
|
1779
1794
|
break;
|
|
1780
1795
|
}
|
|
1781
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1796
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
|
|
1782
1797
|
case 45:
|
|
1783
|
-
if (!(params.
|
|
1798
|
+
if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
|
|
1784
1799
|
_context8.next = 46;
|
|
1785
1800
|
break;
|
|
1786
1801
|
}
|
|
1787
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1802
|
+
throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
|
|
1788
1803
|
case 46:
|
|
1789
|
-
if (!(params.
|
|
1804
|
+
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
1790
1805
|
_context8.next = 47;
|
|
1791
1806
|
break;
|
|
1792
1807
|
}
|
|
1793
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1808
|
+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
1794
1809
|
case 47:
|
|
1795
|
-
if (!(params.
|
|
1810
|
+
if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
|
|
1796
1811
|
_context8.next = 48;
|
|
1797
1812
|
break;
|
|
1798
1813
|
}
|
|
1799
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1814
|
+
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)));
|
|
1800
1815
|
case 48:
|
|
1801
|
-
if (!(params.
|
|
1816
|
+
if (!(params.port && !(0, _utils.isInt)(params.port))) {
|
|
1802
1817
|
_context8.next = 49;
|
|
1803
1818
|
break;
|
|
1804
1819
|
}
|
|
1805
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1820
|
+
throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
|
|
1806
1821
|
case 49:
|
|
1807
|
-
if (!(params.
|
|
1822
|
+
if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
|
|
1808
1823
|
_context8.next = 50;
|
|
1809
1824
|
break;
|
|
1810
1825
|
}
|
|
1811
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1826
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
|
|
1812
1827
|
case 50:
|
|
1813
|
-
if (!(params.
|
|
1828
|
+
if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
|
|
1814
1829
|
_context8.next = 51;
|
|
1815
1830
|
break;
|
|
1816
1831
|
}
|
|
1817
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1832
|
+
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)));
|
|
1818
1833
|
case 51:
|
|
1819
|
-
if (!(params.
|
|
1834
|
+
if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
|
|
1820
1835
|
_context8.next = 52;
|
|
1821
1836
|
break;
|
|
1822
1837
|
}
|
|
1823
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1838
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
|
|
1824
1839
|
case 52:
|
|
1825
|
-
if (!(params.
|
|
1840
|
+
if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
|
|
1826
1841
|
_context8.next = 53;
|
|
1827
1842
|
break;
|
|
1828
1843
|
}
|
|
1829
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1844
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
|
|
1830
1845
|
case 53:
|
|
1831
|
-
if (!(params.
|
|
1846
|
+
if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
|
|
1832
1847
|
_context8.next = 54;
|
|
1833
1848
|
break;
|
|
1834
1849
|
}
|
|
1835
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1850
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
|
|
1836
1851
|
case 54:
|
|
1837
|
-
if (!(params.
|
|
1852
|
+
if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
|
|
1838
1853
|
_context8.next = 55;
|
|
1839
1854
|
break;
|
|
1840
1855
|
}
|
|
1841
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1856
|
+
throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
|
|
1842
1857
|
case 55:
|
|
1843
|
-
if (!(params.
|
|
1858
|
+
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
1844
1859
|
_context8.next = 56;
|
|
1845
1860
|
break;
|
|
1846
1861
|
}
|
|
1847
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1862
|
+
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
1848
1863
|
case 56:
|
|
1849
|
-
if (!(params.
|
|
1864
|
+
if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
|
|
1850
1865
|
_context8.next = 57;
|
|
1851
1866
|
break;
|
|
1852
1867
|
}
|
|
1853
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1868
|
+
throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
|
|
1854
1869
|
case 57:
|
|
1855
|
-
if (!(params.
|
|
1870
|
+
if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
|
|
1856
1871
|
_context8.next = 58;
|
|
1857
1872
|
break;
|
|
1858
1873
|
}
|
|
1859
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1874
|
+
throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
|
|
1860
1875
|
case 58:
|
|
1861
|
-
if (!(params.
|
|
1876
|
+
if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
|
|
1862
1877
|
_context8.next = 59;
|
|
1863
1878
|
break;
|
|
1864
1879
|
}
|
|
1865
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1880
|
+
throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
|
|
1866
1881
|
case 59:
|
|
1867
|
-
if (!(params.
|
|
1882
|
+
if (!(params.username && !(0, _utils.isString)(params.username))) {
|
|
1868
1883
|
_context8.next = 60;
|
|
1869
1884
|
break;
|
|
1870
1885
|
}
|
|
1871
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1886
|
+
throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
|
|
1872
1887
|
case 60:
|
|
1873
|
-
if (!(params.
|
|
1888
|
+
if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
|
|
1874
1889
|
_context8.next = 61;
|
|
1875
1890
|
break;
|
|
1876
1891
|
}
|
|
1877
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1892
|
+
throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
|
|
1878
1893
|
case 61:
|
|
1879
|
-
if (!(params.
|
|
1894
|
+
if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
|
|
1880
1895
|
_context8.next = 62;
|
|
1881
1896
|
break;
|
|
1882
1897
|
}
|
|
1883
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
|
1898
|
+
throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
|
|
1884
1899
|
case 62:
|
|
1885
|
-
|
|
1886
|
-
|
|
1900
|
+
if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
|
|
1901
|
+
_context8.next = 63;
|
|
1902
|
+
break;
|
|
1903
|
+
}
|
|
1904
|
+
throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
|
|
1887
1905
|
case 63:
|
|
1906
|
+
_context8.next = 64;
|
|
1907
|
+
return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
|
|
1908
|
+
case 64:
|
|
1888
1909
|
response = _context8.sent;
|
|
1889
1910
|
return _context8.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
|
|
1890
|
-
case
|
|
1911
|
+
case 65:
|
|
1891
1912
|
case "end":
|
|
1892
1913
|
return _context8.stop();
|
|
1893
1914
|
}
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Bundle.js
CHANGED
|
@@ -543,7 +543,7 @@ class Bundle {
|
|
|
543
543
|
// 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.
|
|
544
544
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
545
545
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
546
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
546
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
547
547
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
548
548
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
549
549
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -357,6 +357,13 @@ class RemoteServer {
|
|
|
357
357
|
this.attributes.files_agent_version = value
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
+
// int64 # Route traffic to outbound on a files-agent
|
|
361
|
+
getOutboundAgentId = () => this.attributes.outbound_agent_id
|
|
362
|
+
|
|
363
|
+
setOutboundAgentId = value => {
|
|
364
|
+
this.attributes.outbound_agent_id = value
|
|
365
|
+
}
|
|
366
|
+
|
|
360
367
|
// string # Filebase: Bucket name
|
|
361
368
|
getFilebaseBucket = () => this.attributes.filebase_bucket
|
|
362
369
|
|
|
@@ -688,6 +695,7 @@ class RemoteServer {
|
|
|
688
695
|
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
689
696
|
// files_agent_root - string - Agent local root path
|
|
690
697
|
// files_agent_version - string - Files Agent version
|
|
698
|
+
// outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
691
699
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
692
700
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
693
701
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -876,6 +884,10 @@ class RemoteServer {
|
|
|
876
884
|
throw new errors.InvalidParameterError(`Bad parameter: files_agent_version must be of type String, received ${getType(params.files_agent_version)}`)
|
|
877
885
|
}
|
|
878
886
|
|
|
887
|
+
if (params.outbound_agent_id && !isInt(params.outbound_agent_id)) {
|
|
888
|
+
throw new errors.InvalidParameterError(`Bad parameter: outbound_agent_id must be of type Int, received ${getType(params.outbound_agent_id)}`)
|
|
889
|
+
}
|
|
890
|
+
|
|
879
891
|
if (params.google_cloud_storage_bucket && !isString(params.google_cloud_storage_bucket)) {
|
|
880
892
|
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_bucket must be of type String, received ${getType(params.google_cloud_storage_bucket)}`)
|
|
881
893
|
}
|
|
@@ -1142,6 +1154,7 @@ class RemoteServer {
|
|
|
1142
1154
|
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
1143
1155
|
// files_agent_root - string - Agent local root path
|
|
1144
1156
|
// files_agent_version - string - Files Agent version
|
|
1157
|
+
// outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
1145
1158
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1146
1159
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1147
1160
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -1317,6 +1330,10 @@ class RemoteServer {
|
|
|
1317
1330
|
throw new errors.InvalidParameterError(`Bad parameter: files_agent_version must be of type String, received ${getType(params.files_agent_version)}`)
|
|
1318
1331
|
}
|
|
1319
1332
|
|
|
1333
|
+
if (params.outbound_agent_id && !isInt(params.outbound_agent_id)) {
|
|
1334
|
+
throw new errors.InvalidParameterError(`Bad parameter: outbound_agent_id must be of type Int, received ${getType(params.outbound_agent_id)}`)
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1320
1337
|
if (params.google_cloud_storage_bucket && !isString(params.google_cloud_storage_bucket)) {
|
|
1321
1338
|
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_bucket must be of type String, received ${getType(params.google_cloud_storage_bucket)}`)
|
|
1322
1339
|
}
|