files.com 1.0.283 → 1.0.285
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/Automation.md +0 -2
- package/docs/models/AutomationRun.md +1 -1
- package/docs/models/Behavior.md +0 -2
- package/docs/models/BundleNotification.md +0 -2
- package/docs/models/Notification.md +2 -2
- package/docs/models/RemoteServer.md +26 -2
- package/docs/models/SettingsChange.md +2 -3
- package/lib/models/Automation.js +3 -10
- package/lib/models/AutomationRun.js +1 -1
- package/lib/models/Behavior.js +3 -10
- package/lib/models/BundleNotification.js +3 -10
- package/lib/models/Notification.js +5 -5
- package/lib/models/RemoteServer.js +95 -11
- package/lib/models/SettingsChange.js +7 -17
- package/package.json +1 -1
- package/src/models/Automation.js +0 -5
- package/src/models/AutomationRun.js +1 -1
- package/src/models/Behavior.js +0 -5
- package/src/models/BundleNotification.js +0 -5
- package/src/models/Notification.js +5 -5
- package/src/models/RemoteServer.js +64 -0
- package/src/models/SettingsChange.js +3 -10
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.285
|
@@ -77,7 +77,6 @@
|
|
77
77
|
```
|
78
78
|
await Automation.list({
|
79
79
|
'per_page': 1,
|
80
|
-
'automation': "create_folder",
|
81
80
|
'with_deleted': true,
|
82
81
|
})
|
83
82
|
```
|
@@ -88,7 +87,6 @@ await Automation.list({
|
|
88
87
|
* `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.
|
89
88
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
90
89
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
91
|
-
* `automation` (string): If set, return records where the specified field is equal to the supplied value.
|
92
90
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
93
91
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
94
92
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
@@ -39,8 +39,8 @@ await AutomationRun.list({
|
|
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).
|
41
41
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
42
|
-
* `automation_id` (int64): Required - ID of the associated Automation.
|
43
42
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
43
|
+
* `automation_id` (int64): Required - ID of the associated Automation.
|
44
44
|
|
45
45
|
---
|
46
46
|
|
package/docs/models/Behavior.md
CHANGED
@@ -33,7 +33,6 @@
|
|
33
33
|
```
|
34
34
|
await Behavior.list({
|
35
35
|
'per_page': 1,
|
36
|
-
'behavior': "webhook",
|
37
36
|
})
|
38
37
|
```
|
39
38
|
|
@@ -43,7 +42,6 @@ await Behavior.list({
|
|
43
42
|
* `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.
|
44
43
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
44
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
46
|
-
* `behavior` (string): If set, return records where the specified field is equal to the supplied value.
|
47
45
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
48
46
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
49
47
|
|
@@ -26,7 +26,6 @@
|
|
26
26
|
await BundleNotification.list({
|
27
27
|
'user_id': 1,
|
28
28
|
'per_page': 1,
|
29
|
-
'bundle_id': 1,
|
30
29
|
})
|
31
30
|
```
|
32
31
|
|
@@ -37,7 +36,6 @@ await BundleNotification.list({
|
|
37
36
|
* `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.
|
38
37
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
39
38
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
40
|
-
* `bundle_id` (string): If set, return records where the specified field is equal to the supplied value.
|
41
39
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
42
40
|
|
43
41
|
---
|
@@ -67,8 +67,8 @@
|
|
67
67
|
await Notification.list({
|
68
68
|
'user_id': 1,
|
69
69
|
'per_page': 1,
|
70
|
-
'group_id': 1,
|
71
70
|
'include_ancestors': true,
|
71
|
+
'group_id': 1,
|
72
72
|
})
|
73
73
|
```
|
74
74
|
|
@@ -79,11 +79,11 @@ await Notification.list({
|
|
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
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
82
|
-
* `group_id` (string): If set, return records where the specified field is equal to the supplied value.
|
83
82
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
84
83
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
85
84
|
* `path` (string): Show notifications for this Path.
|
86
85
|
* `include_ancestors` (boolean): If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
86
|
+
* `group_id` (string):
|
87
87
|
|
88
88
|
---
|
89
89
|
|
@@ -55,7 +55,10 @@
|
|
55
55
|
"cloudflare_bucket": "my-bucket",
|
56
56
|
"cloudflare_access_key": "example",
|
57
57
|
"cloudflare_endpoint": "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
58
|
-
"dropbox_teams": true
|
58
|
+
"dropbox_teams": true,
|
59
|
+
"linode_bucket": "my-bucket",
|
60
|
+
"linode_access_key": "example",
|
61
|
+
"linode_region": "us-east-1"
|
59
62
|
}
|
60
63
|
```
|
61
64
|
|
@@ -111,6 +114,9 @@
|
|
111
114
|
* `cloudflare_access_key` (string): Cloudflare Access Key.
|
112
115
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
113
116
|
* `dropbox_teams` (boolean): List Team folders in root
|
117
|
+
* `linode_bucket` (string): Linode Bucket name
|
118
|
+
* `linode_access_key` (string): Linode Access Key.
|
119
|
+
* `linode_region` (string): Linode region
|
114
120
|
* `aws_secret_key` (string): AWS secret key.
|
115
121
|
* `password` (string): Password if needed.
|
116
122
|
* `private_key` (string): Private key if needed.
|
@@ -127,6 +133,7 @@
|
|
127
133
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
128
134
|
* `filebase_secret_key` (string): Filebase secret key
|
129
135
|
* `cloudflare_secret_key` (string): Cloudflare secret key
|
136
|
+
* `linode_secret_key` (string): Linode secret key
|
130
137
|
|
131
138
|
---
|
132
139
|
|
@@ -220,6 +227,9 @@ await RemoteServer.create({
|
|
220
227
|
'cloudflare_bucket': "my-bucket",
|
221
228
|
'cloudflare_endpoint': "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
222
229
|
'dropbox_teams': true,
|
230
|
+
'linode_access_key': "example",
|
231
|
+
'linode_bucket': "my-bucket",
|
232
|
+
'linode_region': "us-east-1",
|
223
233
|
})
|
224
234
|
```
|
225
235
|
|
@@ -285,6 +295,10 @@ await RemoteServer.create({
|
|
285
295
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
286
296
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
287
297
|
* `dropbox_teams` (boolean): List Team folders in root
|
298
|
+
* `linode_access_key` (string): Linode Access Key.
|
299
|
+
* `linode_secret_key` (string): Linode secret key
|
300
|
+
* `linode_bucket` (string): Linode Bucket name
|
301
|
+
* `linode_region` (string): Linode region
|
288
302
|
|
289
303
|
---
|
290
304
|
|
@@ -394,6 +408,9 @@ await remote_server.update({
|
|
394
408
|
'cloudflare_bucket': "my-bucket",
|
395
409
|
'cloudflare_endpoint': "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
396
410
|
'dropbox_teams': true,
|
411
|
+
'linode_access_key': "example",
|
412
|
+
'linode_bucket': "my-bucket",
|
413
|
+
'linode_region': "us-east-1",
|
397
414
|
})
|
398
415
|
```
|
399
416
|
|
@@ -459,6 +476,10 @@ await remote_server.update({
|
|
459
476
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
460
477
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
461
478
|
* `dropbox_teams` (boolean): List Team folders in root
|
479
|
+
* `linode_access_key` (string): Linode Access Key.
|
480
|
+
* `linode_secret_key` (string): Linode secret key
|
481
|
+
* `linode_bucket` (string): Linode Bucket name
|
482
|
+
* `linode_region` (string): Linode region
|
462
483
|
|
463
484
|
### Example Response
|
464
485
|
|
@@ -515,7 +536,10 @@ await remote_server.update({
|
|
515
536
|
"cloudflare_bucket": "my-bucket",
|
516
537
|
"cloudflare_access_key": "example",
|
517
538
|
"cloudflare_endpoint": "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
518
|
-
"dropbox_teams": true
|
539
|
+
"dropbox_teams": true,
|
540
|
+
"linode_bucket": "my-bucket",
|
541
|
+
"linode_access_key": "example",
|
542
|
+
"linode_region": "us-east-1"
|
519
543
|
}
|
520
544
|
```
|
521
545
|
|
@@ -9,6 +9,7 @@
|
|
9
9
|
],
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
11
|
"user_id": 1,
|
12
|
+
"api_key_id": 1,
|
12
13
|
"user_is_files_support": true,
|
13
14
|
"username": "some_user"
|
14
15
|
}
|
@@ -17,6 +18,7 @@
|
|
17
18
|
* `changes` (array): Markdown-formatted change messages.
|
18
19
|
* `created_at` (date-time): The time this change was made
|
19
20
|
* `user_id` (int64): The user id responsible for this change
|
21
|
+
* `api_key_id` (int64): The api key id responsible for this change
|
20
22
|
* `user_is_files_support` (boolean): true if this change was performed by Files.com support.
|
21
23
|
* `username` (string): The username of the user responsible for this change
|
22
24
|
|
@@ -27,7 +29,6 @@
|
|
27
29
|
```
|
28
30
|
await SettingsChange.list({
|
29
31
|
'per_page': 1,
|
30
|
-
'user_id': 1,
|
31
32
|
})
|
32
33
|
```
|
33
34
|
|
@@ -37,6 +38,4 @@ await SettingsChange.list({
|
|
37
38
|
* `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.
|
38
39
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
39
40
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
|
40
|
-
* `api_key_id` (string): If set, return records where the specified field is equal to the supplied value.
|
41
|
-
* `user_id` (string): If set, return records where the specified field is equal to the supplied value.
|
42
41
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
package/lib/models/Automation.js
CHANGED
@@ -449,7 +449,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
449
449
|
// 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.
|
450
450
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
451
451
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
452
|
-
// automation - string - If set, return records where the specified field is equal to the supplied value.
|
453
452
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
454
453
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
455
454
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
@@ -479,20 +478,14 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
479
478
|
}
|
480
479
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
481
480
|
case 6:
|
482
|
-
|
483
|
-
_context3.next = 8;
|
484
|
-
break;
|
485
|
-
}
|
486
|
-
throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params['automation'])));
|
487
|
-
case 8:
|
488
|
-
_context3.next = 10;
|
481
|
+
_context3.next = 8;
|
489
482
|
return _Api.default.sendRequest("/automations", 'GET', params, options);
|
490
|
-
case
|
483
|
+
case 8:
|
491
484
|
response = _context3.sent;
|
492
485
|
return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
493
486
|
return new Automation(obj, options);
|
494
487
|
})) || []);
|
495
|
-
case
|
488
|
+
case 10:
|
496
489
|
case "end":
|
497
490
|
return _context3.stop();
|
498
491
|
}
|
@@ -73,8 +73,8 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
|
|
73
73
|
// 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.
|
74
74
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
75
75
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
76
|
-
// automation_id (required) - int64 - ID of the associated Automation.
|
77
76
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
77
|
+
// automation_id (required) - int64 - ID of the associated Automation.
|
78
78
|
(0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
79
79
|
var _response$data;
|
80
80
|
var params,
|
package/lib/models/Behavior.js
CHANGED
@@ -266,7 +266,6 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
266
266
|
// 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.
|
267
267
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
268
268
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
269
|
-
// behavior - string - If set, return records where the specified field is equal to the supplied value.
|
270
269
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
271
270
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
272
271
|
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
@@ -292,20 +291,14 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
292
291
|
}
|
293
292
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
294
293
|
case 6:
|
295
|
-
|
296
|
-
_context3.next = 8;
|
297
|
-
break;
|
298
|
-
}
|
299
|
-
throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(params['behavior'])));
|
300
|
-
case 8:
|
301
|
-
_context3.next = 10;
|
294
|
+
_context3.next = 8;
|
302
295
|
return _Api.default.sendRequest("/behaviors", 'GET', params, options);
|
303
|
-
case
|
296
|
+
case 8:
|
304
297
|
response = _context3.sent;
|
305
298
|
return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
306
299
|
return new Behavior(obj, options);
|
307
300
|
})) || []);
|
308
|
-
case
|
301
|
+
case 10:
|
309
302
|
case "end":
|
310
303
|
return _context3.stop();
|
311
304
|
}
|
@@ -204,7 +204,6 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
204
204
|
// 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.
|
205
205
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
206
206
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
207
|
-
// bundle_id - string - If set, return records where the specified field is equal to the supplied value.
|
208
207
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
209
208
|
(0, _defineProperty2.default)(BundleNotification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
210
209
|
var _response$data;
|
@@ -235,20 +234,14 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
235
234
|
}
|
236
235
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
237
236
|
case 8:
|
238
|
-
|
239
|
-
_context3.next = 10;
|
240
|
-
break;
|
241
|
-
}
|
242
|
-
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type String, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
243
|
-
case 10:
|
244
|
-
_context3.next = 12;
|
237
|
+
_context3.next = 10;
|
245
238
|
return _Api.default.sendRequest("/bundle_notifications", 'GET', params, options);
|
246
|
-
case
|
239
|
+
case 10:
|
247
240
|
response = _context3.sent;
|
248
241
|
return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
249
242
|
return new BundleNotification(obj, options);
|
250
243
|
})) || []);
|
251
|
-
case
|
244
|
+
case 12:
|
252
245
|
case "end":
|
253
246
|
return _context3.stop();
|
254
247
|
}
|
@@ -364,11 +364,11 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
|
|
364
364
|
// 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.
|
365
365
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
366
366
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
367
|
-
// group_id - string - If set, return records where the specified field is equal to the supplied value.
|
368
367
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
369
368
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
370
369
|
// path - string - Show notifications for this Path.
|
371
370
|
// include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
371
|
+
// group_id - string
|
372
372
|
(0, _defineProperty2.default)(Notification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
373
373
|
var _response$data;
|
374
374
|
var params,
|
@@ -398,17 +398,17 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
|
|
398
398
|
}
|
399
399
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
400
400
|
case 8:
|
401
|
-
if (!(params['
|
401
|
+
if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
|
402
402
|
_context3.next = 10;
|
403
403
|
break;
|
404
404
|
}
|
405
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
405
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
|
406
406
|
case 10:
|
407
|
-
if (!(params['
|
407
|
+
if (!(params['group_id'] && !(0, _utils.isString)(params['group_id']))) {
|
408
408
|
_context3.next = 12;
|
409
409
|
break;
|
410
410
|
}
|
411
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
411
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params['group_id'])));
|
412
412
|
case 12:
|
413
413
|
_context3.next = 14;
|
414
414
|
return _Api.default.sendRequest("/notifications", 'GET', params, options);
|
@@ -395,6 +395,27 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
395
395
|
(0, _defineProperty2.default)(this, "setDropboxTeams", function (value) {
|
396
396
|
_this.attributes.dropbox_teams = value;
|
397
397
|
});
|
398
|
+
// string # Linode Bucket name
|
399
|
+
(0, _defineProperty2.default)(this, "getLinodeBucket", function () {
|
400
|
+
return _this.attributes.linode_bucket;
|
401
|
+
});
|
402
|
+
(0, _defineProperty2.default)(this, "setLinodeBucket", function (value) {
|
403
|
+
_this.attributes.linode_bucket = value;
|
404
|
+
});
|
405
|
+
// string # Linode Access Key.
|
406
|
+
(0, _defineProperty2.default)(this, "getLinodeAccessKey", function () {
|
407
|
+
return _this.attributes.linode_access_key;
|
408
|
+
});
|
409
|
+
(0, _defineProperty2.default)(this, "setLinodeAccessKey", function (value) {
|
410
|
+
_this.attributes.linode_access_key = value;
|
411
|
+
});
|
412
|
+
// string # Linode region
|
413
|
+
(0, _defineProperty2.default)(this, "getLinodeRegion", function () {
|
414
|
+
return _this.attributes.linode_region;
|
415
|
+
});
|
416
|
+
(0, _defineProperty2.default)(this, "setLinodeRegion", function (value) {
|
417
|
+
_this.attributes.linode_region = value;
|
418
|
+
});
|
398
419
|
// string # AWS secret key.
|
399
420
|
(0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
|
400
421
|
return _this.attributes.aws_secret_key;
|
@@ -507,6 +528,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
507
528
|
(0, _defineProperty2.default)(this, "setCloudflareSecretKey", function (value) {
|
508
529
|
_this.attributes.cloudflare_secret_key = value;
|
509
530
|
});
|
531
|
+
// string # Linode secret key
|
532
|
+
(0, _defineProperty2.default)(this, "getLinodeSecretKey", function () {
|
533
|
+
return _this.attributes.linode_secret_key;
|
534
|
+
});
|
535
|
+
(0, _defineProperty2.default)(this, "setLinodeSecretKey", function (value) {
|
536
|
+
_this.attributes.linode_secret_key = value;
|
537
|
+
});
|
510
538
|
// Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
511
539
|
//
|
512
540
|
// Parameters:
|
@@ -699,6 +727,10 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
699
727
|
// cloudflare_bucket - string - Cloudflare Bucket name
|
700
728
|
// cloudflare_endpoint - string - Cloudflare endpoint
|
701
729
|
// dropbox_teams - boolean - List Team folders in root
|
730
|
+
// linode_access_key - string - Linode Access Key.
|
731
|
+
// linode_secret_key - string - Linode secret key
|
732
|
+
// linode_bucket - string - Linode Bucket name
|
733
|
+
// linode_region - string - Linode region
|
702
734
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
703
735
|
var params,
|
704
736
|
response,
|
@@ -1056,26 +1088,50 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1056
1088
|
}
|
1057
1089
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(cloudflare_endpoint)));
|
1058
1090
|
case 118:
|
1059
|
-
if (params['
|
1091
|
+
if (!(params['linode_access_key'] && !(0, _utils.isString)(params['linode_access_key']))) {
|
1092
|
+
_context2.next = 120;
|
1093
|
+
break;
|
1094
|
+
}
|
1095
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(linode_access_key)));
|
1096
|
+
case 120:
|
1097
|
+
if (!(params['linode_secret_key'] && !(0, _utils.isString)(params['linode_secret_key']))) {
|
1098
|
+
_context2.next = 122;
|
1099
|
+
break;
|
1100
|
+
}
|
1101
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(linode_secret_key)));
|
1102
|
+
case 122:
|
1103
|
+
if (!(params['linode_bucket'] && !(0, _utils.isString)(params['linode_bucket']))) {
|
1060
1104
|
_context2.next = 124;
|
1061
1105
|
break;
|
1062
1106
|
}
|
1107
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(linode_bucket)));
|
1108
|
+
case 124:
|
1109
|
+
if (!(params['linode_region'] && !(0, _utils.isString)(params['linode_region']))) {
|
1110
|
+
_context2.next = 126;
|
1111
|
+
break;
|
1112
|
+
}
|
1113
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(linode_region)));
|
1114
|
+
case 126:
|
1115
|
+
if (params['id']) {
|
1116
|
+
_context2.next = 132;
|
1117
|
+
break;
|
1118
|
+
}
|
1063
1119
|
if (!_this.attributes.id) {
|
1064
|
-
_context2.next =
|
1120
|
+
_context2.next = 131;
|
1065
1121
|
break;
|
1066
1122
|
}
|
1067
1123
|
params['id'] = _this.id;
|
1068
|
-
_context2.next =
|
1124
|
+
_context2.next = 132;
|
1069
1125
|
break;
|
1070
|
-
case
|
1126
|
+
case 131:
|
1071
1127
|
throw new errors.MissingParameterError('Parameter missing: id');
|
1072
|
-
case
|
1073
|
-
_context2.next =
|
1128
|
+
case 132:
|
1129
|
+
_context2.next = 134;
|
1074
1130
|
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
1075
|
-
case
|
1131
|
+
case 134:
|
1076
1132
|
response = _context2.sent;
|
1077
1133
|
return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
1078
|
-
case
|
1134
|
+
case 136:
|
1079
1135
|
case "end":
|
1080
1136
|
return _context2.stop();
|
1081
1137
|
}
|
@@ -1362,6 +1418,10 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1362
1418
|
// cloudflare_bucket - string - Cloudflare Bucket name
|
1363
1419
|
// cloudflare_endpoint - string - Cloudflare endpoint
|
1364
1420
|
// dropbox_teams - boolean - List Team folders in root
|
1421
|
+
// linode_access_key - string - Linode Access Key.
|
1422
|
+
// linode_secret_key - string - Linode secret key
|
1423
|
+
// linode_bucket - string - Linode Bucket name
|
1424
|
+
// linode_region - string - Linode region
|
1365
1425
|
(0, _defineProperty2.default)(RemoteServer, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
1366
1426
|
var params,
|
1367
1427
|
options,
|
@@ -1702,12 +1762,36 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1702
1762
|
}
|
1703
1763
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params['cloudflare_endpoint'])));
|
1704
1764
|
case 112:
|
1705
|
-
|
1706
|
-
|
1765
|
+
if (!(params['linode_access_key'] && !(0, _utils.isString)(params['linode_access_key']))) {
|
1766
|
+
_context7.next = 114;
|
1767
|
+
break;
|
1768
|
+
}
|
1769
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params['linode_access_key'])));
|
1707
1770
|
case 114:
|
1771
|
+
if (!(params['linode_secret_key'] && !(0, _utils.isString)(params['linode_secret_key']))) {
|
1772
|
+
_context7.next = 116;
|
1773
|
+
break;
|
1774
|
+
}
|
1775
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params['linode_secret_key'])));
|
1776
|
+
case 116:
|
1777
|
+
if (!(params['linode_bucket'] && !(0, _utils.isString)(params['linode_bucket']))) {
|
1778
|
+
_context7.next = 118;
|
1779
|
+
break;
|
1780
|
+
}
|
1781
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params['linode_bucket'])));
|
1782
|
+
case 118:
|
1783
|
+
if (!(params['linode_region'] && !(0, _utils.isString)(params['linode_region']))) {
|
1784
|
+
_context7.next = 120;
|
1785
|
+
break;
|
1786
|
+
}
|
1787
|
+
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params['linode_region'])));
|
1788
|
+
case 120:
|
1789
|
+
_context7.next = 122;
|
1790
|
+
return _Api.default.sendRequest("/remote_servers", 'POST', params, options);
|
1791
|
+
case 122:
|
1708
1792
|
response = _context7.sent;
|
1709
1793
|
return _context7.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
|
1710
|
-
case
|
1794
|
+
case 124:
|
1711
1795
|
case "end":
|
1712
1796
|
return _context7.stop();
|
1713
1797
|
}
|
@@ -43,6 +43,10 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
|
|
43
43
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
44
44
|
return _this.attributes.user_id;
|
45
45
|
});
|
46
|
+
// int64 # The api key id responsible for this change
|
47
|
+
(0, _defineProperty2.default)(this, "getApiKeyId", function () {
|
48
|
+
return _this.attributes.api_key_id;
|
49
|
+
});
|
46
50
|
// boolean # true if this change was performed by Files.com support.
|
47
51
|
(0, _defineProperty2.default)(this, "getUserIsFilesSupport", function () {
|
48
52
|
return _this.attributes.user_is_files_support;
|
@@ -68,8 +72,6 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
|
|
68
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.
|
69
73
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
70
74
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
|
71
|
-
// api_key_id - string - If set, return records where the specified field is equal to the supplied value.
|
72
|
-
// user_id - string - If set, return records where the specified field is equal to the supplied value.
|
73
75
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
74
76
|
(0, _defineProperty2.default)(SettingsChange, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
75
77
|
var _response$data;
|
@@ -94,26 +96,14 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
|
|
94
96
|
}
|
95
97
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
96
98
|
case 6:
|
97
|
-
|
98
|
-
_context.next = 8;
|
99
|
-
break;
|
100
|
-
}
|
101
|
-
throw new errors.InvalidParameterError("Bad parameter: api_key_id must be of type String, received ".concat((0, _utils.getType)(params['api_key_id'])));
|
102
|
-
case 8:
|
103
|
-
if (!(params['user_id'] && !(0, _utils.isString)(params['user_id']))) {
|
104
|
-
_context.next = 10;
|
105
|
-
break;
|
106
|
-
}
|
107
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type String, received ".concat((0, _utils.getType)(params['user_id'])));
|
108
|
-
case 10:
|
109
|
-
_context.next = 12;
|
99
|
+
_context.next = 8;
|
110
100
|
return _Api.default.sendRequest("/settings_changes", 'GET', params, options);
|
111
|
-
case
|
101
|
+
case 8:
|
112
102
|
response = _context.sent;
|
113
103
|
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
114
104
|
return new SettingsChange(obj, options);
|
115
105
|
})) || []);
|
116
|
-
case
|
106
|
+
case 10:
|
117
107
|
case "end":
|
118
108
|
return _context.stop();
|
119
109
|
}
|
package/package.json
CHANGED
package/src/models/Automation.js
CHANGED
@@ -331,7 +331,6 @@ class Automation {
|
|
331
331
|
// 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.
|
332
332
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
333
333
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
334
|
-
// automation - string - If set, return records where the specified field is equal to the supplied value.
|
335
334
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
336
335
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
337
336
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
@@ -347,10 +346,6 @@ class Automation {
|
|
347
346
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
348
347
|
}
|
349
348
|
|
350
|
-
if (params['automation'] && !isString(params['automation'])) {
|
351
|
-
throw new errors.InvalidParameterError(`Bad parameter: automation must be of type String, received ${getType(params['automation'])}`)
|
352
|
-
}
|
353
|
-
|
354
349
|
const response = await Api.sendRequest(`/automations`, 'GET', params, options)
|
355
350
|
|
356
351
|
return response?.data?.map(obj => new Automation(obj, options)) || []
|
@@ -47,8 +47,8 @@ class AutomationRun {
|
|
47
47
|
// 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.
|
48
48
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
49
49
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
50
|
-
// automation_id (required) - int64 - ID of the associated Automation.
|
51
50
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
51
|
+
// automation_id (required) - int64 - ID of the associated Automation.
|
52
52
|
static list = async (params = {}, options = {}) => {
|
53
53
|
if (!params['automation_id']) {
|
54
54
|
throw new errors.MissingParameterError('Parameter missing: automation_id')
|
package/src/models/Behavior.js
CHANGED
@@ -181,7 +181,6 @@ class Behavior {
|
|
181
181
|
// 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.
|
182
182
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
183
183
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
184
|
-
// behavior - string - If set, return records where the specified field is equal to the supplied value.
|
185
184
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
186
185
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
187
186
|
static list = async (params = {}, options = {}) => {
|
@@ -193,10 +192,6 @@ class Behavior {
|
|
193
192
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
194
193
|
}
|
195
194
|
|
196
|
-
if (params['behavior'] && !isString(params['behavior'])) {
|
197
|
-
throw new errors.InvalidParameterError(`Bad parameter: behavior must be of type String, received ${getType(params['behavior'])}`)
|
198
|
-
}
|
199
|
-
|
200
195
|
const response = await Api.sendRequest(`/behaviors`, 'GET', params, options)
|
201
196
|
|
202
197
|
return response?.data?.map(obj => new Behavior(obj, options)) || []
|
@@ -134,7 +134,6 @@ class BundleNotification {
|
|
134
134
|
// 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.
|
135
135
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
136
136
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
137
|
-
// bundle_id - string - If set, return records where the specified field is equal to the supplied value.
|
138
137
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
139
138
|
static list = async (params = {}, options = {}) => {
|
140
139
|
if (params['user_id'] && !isInt(params['user_id'])) {
|
@@ -149,10 +148,6 @@ class BundleNotification {
|
|
149
148
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
150
149
|
}
|
151
150
|
|
152
|
-
if (params['bundle_id'] && !isString(params['bundle_id'])) {
|
153
|
-
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type String, received ${getType(params['bundle_id'])}`)
|
154
|
-
}
|
155
|
-
|
156
151
|
const response = await Api.sendRequest(`/bundle_notifications`, 'GET', params, options)
|
157
152
|
|
158
153
|
return response?.data?.map(obj => new BundleNotification(obj, options)) || []
|
@@ -279,11 +279,11 @@ class Notification {
|
|
279
279
|
// 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.
|
280
280
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
281
281
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
282
|
-
// group_id - string - If set, return records where the specified field is equal to the supplied value.
|
283
282
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
284
283
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
285
284
|
// path - string - Show notifications for this Path.
|
286
285
|
// include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
286
|
+
// group_id - string
|
287
287
|
static list = async (params = {}, options = {}) => {
|
288
288
|
if (params['user_id'] && !isInt(params['user_id'])) {
|
289
289
|
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
@@ -297,14 +297,14 @@ class Notification {
|
|
297
297
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
298
298
|
}
|
299
299
|
|
300
|
-
if (params['group_id'] && !isString(params['group_id'])) {
|
301
|
-
throw new errors.InvalidParameterError(`Bad parameter: group_id must be of type String, received ${getType(params['group_id'])}`)
|
302
|
-
}
|
303
|
-
|
304
300
|
if (params['path'] && !isString(params['path'])) {
|
305
301
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
|
306
302
|
}
|
307
303
|
|
304
|
+
if (params['group_id'] && !isString(params['group_id'])) {
|
305
|
+
throw new errors.InvalidParameterError(`Bad parameter: group_id must be of type String, received ${getType(params['group_id'])}`)
|
306
|
+
}
|
307
|
+
|
308
308
|
const response = await Api.sendRequest(`/notifications`, 'GET', params, options)
|
309
309
|
|
310
310
|
return response?.data?.map(obj => new Notification(obj, options)) || []
|
@@ -387,6 +387,27 @@ class RemoteServer {
|
|
387
387
|
this.attributes.dropbox_teams = value
|
388
388
|
}
|
389
389
|
|
390
|
+
// string # Linode Bucket name
|
391
|
+
getLinodeBucket = () => this.attributes.linode_bucket
|
392
|
+
|
393
|
+
setLinodeBucket = value => {
|
394
|
+
this.attributes.linode_bucket = value
|
395
|
+
}
|
396
|
+
|
397
|
+
// string # Linode Access Key.
|
398
|
+
getLinodeAccessKey = () => this.attributes.linode_access_key
|
399
|
+
|
400
|
+
setLinodeAccessKey = value => {
|
401
|
+
this.attributes.linode_access_key = value
|
402
|
+
}
|
403
|
+
|
404
|
+
// string # Linode region
|
405
|
+
getLinodeRegion = () => this.attributes.linode_region
|
406
|
+
|
407
|
+
setLinodeRegion = value => {
|
408
|
+
this.attributes.linode_region = value
|
409
|
+
}
|
410
|
+
|
390
411
|
// string # AWS secret key.
|
391
412
|
getAwsSecretKey = () => this.attributes.aws_secret_key
|
392
413
|
|
@@ -499,6 +520,13 @@ class RemoteServer {
|
|
499
520
|
this.attributes.cloudflare_secret_key = value
|
500
521
|
}
|
501
522
|
|
523
|
+
// string # Linode secret key
|
524
|
+
getLinodeSecretKey = () => this.attributes.linode_secret_key
|
525
|
+
|
526
|
+
setLinodeSecretKey = value => {
|
527
|
+
this.attributes.linode_secret_key = value
|
528
|
+
}
|
529
|
+
|
502
530
|
|
503
531
|
// Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
504
532
|
//
|
@@ -634,6 +662,10 @@ class RemoteServer {
|
|
634
662
|
// cloudflare_bucket - string - Cloudflare Bucket name
|
635
663
|
// cloudflare_endpoint - string - Cloudflare endpoint
|
636
664
|
// dropbox_teams - boolean - List Team folders in root
|
665
|
+
// linode_access_key - string - Linode Access Key.
|
666
|
+
// linode_secret_key - string - Linode secret key
|
667
|
+
// linode_bucket - string - Linode Bucket name
|
668
|
+
// linode_region - string - Linode region
|
637
669
|
update = async (params = {}) => {
|
638
670
|
if (!this.attributes.id) {
|
639
671
|
throw new errors.EmptyPropertyError('Current object has no id')
|
@@ -812,6 +844,18 @@ class RemoteServer {
|
|
812
844
|
if (params['cloudflare_endpoint'] && !isString(params['cloudflare_endpoint'])) {
|
813
845
|
throw new errors.InvalidParameterError(`Bad parameter: cloudflare_endpoint must be of type String, received ${getType(cloudflare_endpoint)}`)
|
814
846
|
}
|
847
|
+
if (params['linode_access_key'] && !isString(params['linode_access_key'])) {
|
848
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_access_key must be of type String, received ${getType(linode_access_key)}`)
|
849
|
+
}
|
850
|
+
if (params['linode_secret_key'] && !isString(params['linode_secret_key'])) {
|
851
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_secret_key must be of type String, received ${getType(linode_secret_key)}`)
|
852
|
+
}
|
853
|
+
if (params['linode_bucket'] && !isString(params['linode_bucket'])) {
|
854
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_bucket must be of type String, received ${getType(linode_bucket)}`)
|
855
|
+
}
|
856
|
+
if (params['linode_region'] && !isString(params['linode_region'])) {
|
857
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_region must be of type String, received ${getType(linode_region)}`)
|
858
|
+
}
|
815
859
|
|
816
860
|
if (!params['id']) {
|
817
861
|
if (this.attributes.id) {
|
@@ -993,6 +1037,10 @@ class RemoteServer {
|
|
993
1037
|
// cloudflare_bucket - string - Cloudflare Bucket name
|
994
1038
|
// cloudflare_endpoint - string - Cloudflare endpoint
|
995
1039
|
// dropbox_teams - boolean - List Team folders in root
|
1040
|
+
// linode_access_key - string - Linode Access Key.
|
1041
|
+
// linode_secret_key - string - Linode secret key
|
1042
|
+
// linode_bucket - string - Linode Bucket name
|
1043
|
+
// linode_region - string - Linode region
|
996
1044
|
static create = async (params = {}, options = {}) => {
|
997
1045
|
if (params['aws_access_key'] && !isString(params['aws_access_key'])) {
|
998
1046
|
throw new errors.InvalidParameterError(`Bad parameter: aws_access_key must be of type String, received ${getType(params['aws_access_key'])}`)
|
@@ -1214,6 +1262,22 @@ class RemoteServer {
|
|
1214
1262
|
throw new errors.InvalidParameterError(`Bad parameter: cloudflare_endpoint must be of type String, received ${getType(params['cloudflare_endpoint'])}`)
|
1215
1263
|
}
|
1216
1264
|
|
1265
|
+
if (params['linode_access_key'] && !isString(params['linode_access_key'])) {
|
1266
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_access_key must be of type String, received ${getType(params['linode_access_key'])}`)
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
if (params['linode_secret_key'] && !isString(params['linode_secret_key'])) {
|
1270
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_secret_key must be of type String, received ${getType(params['linode_secret_key'])}`)
|
1271
|
+
}
|
1272
|
+
|
1273
|
+
if (params['linode_bucket'] && !isString(params['linode_bucket'])) {
|
1274
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_bucket must be of type String, received ${getType(params['linode_bucket'])}`)
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
if (params['linode_region'] && !isString(params['linode_region'])) {
|
1278
|
+
throw new errors.InvalidParameterError(`Bad parameter: linode_region must be of type String, received ${getType(params['linode_region'])}`)
|
1279
|
+
}
|
1280
|
+
|
1217
1281
|
const response = await Api.sendRequest(`/remote_servers`, 'POST', params, options)
|
1218
1282
|
|
1219
1283
|
return new RemoteServer(response?.data, options)
|
@@ -32,6 +32,9 @@ class SettingsChange {
|
|
32
32
|
// int64 # The user id responsible for this change
|
33
33
|
getUserId = () => this.attributes.user_id
|
34
34
|
|
35
|
+
// int64 # The api key id responsible for this change
|
36
|
+
getApiKeyId = () => this.attributes.api_key_id
|
37
|
+
|
35
38
|
// boolean # true if this change was performed by Files.com support.
|
36
39
|
getUserIsFilesSupport = () => this.attributes.user_is_files_support
|
37
40
|
|
@@ -43,8 +46,6 @@ class SettingsChange {
|
|
43
46
|
// 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.
|
44
47
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
48
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
|
46
|
-
// api_key_id - string - If set, return records where the specified field is equal to the supplied value.
|
47
|
-
// user_id - string - If set, return records where the specified field is equal to the supplied value.
|
48
49
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
49
50
|
static list = async (params = {}, options = {}) => {
|
50
51
|
if (params['cursor'] && !isString(params['cursor'])) {
|
@@ -55,14 +56,6 @@ class SettingsChange {
|
|
55
56
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
56
57
|
}
|
57
58
|
|
58
|
-
if (params['api_key_id'] && !isString(params['api_key_id'])) {
|
59
|
-
throw new errors.InvalidParameterError(`Bad parameter: api_key_id must be of type String, received ${getType(params['api_key_id'])}`)
|
60
|
-
}
|
61
|
-
|
62
|
-
if (params['user_id'] && !isString(params['user_id'])) {
|
63
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type String, received ${getType(params['user_id'])}`)
|
64
|
-
}
|
65
|
-
|
66
59
|
const response = await Api.sendRequest(`/settings_changes`, 'GET', params, options)
|
67
60
|
|
68
61
|
return response?.data?.map(obj => new SettingsChange(obj, options)) || []
|