files.com 1.0.283 → 1.0.284

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.283
1
+ 1.0.284
@@ -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
 
@@ -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
 
@@ -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`.
@@ -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
- if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
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 10:
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 12:
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,
@@ -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
- if (!(params['behavior'] && !(0, _utils.isString)(params['behavior']))) {
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 10:
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 12:
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
- if (!(params['bundle_id'] && !(0, _utils.isString)(params['bundle_id']))) {
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 12:
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 14:
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['group_id'] && !(0, _utils.isString)(params['group_id']))) {
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: group_id must be of type String, received ".concat((0, _utils.getType)(params['group_id'])));
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['path'] && !(0, _utils.isString)(params['path']))) {
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: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
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);
@@ -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
- if (!(params['api_key_id'] && !(0, _utils.isString)(params['api_key_id']))) {
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 12:
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 14:
106
+ case 10:
117
107
  case "end":
118
108
  return _context.stop();
119
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.283",
3
+ "version": "1.0.284",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -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')
@@ -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)) || []
@@ -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)) || []