files.com 1.2.185 → 1.2.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.185
1
+ 1.2.187
@@ -16,6 +16,19 @@
16
16
  ],
17
17
  "disabled": true,
18
18
  "exclude_pattern": "path/to/exclude/*",
19
+ "import_urls": [
20
+ {
21
+ "name": "users.json",
22
+ "url": "http://example.com/users",
23
+ "method": "POST",
24
+ "headers": {
25
+ "Content-Type": "application/json"
26
+ },
27
+ "content": {
28
+ "group": "support"
29
+ }
30
+ }
31
+ ],
19
32
  "flatten_destination_structure": true,
20
33
  "group_ids": [
21
34
  1,
@@ -73,6 +86,7 @@
73
86
  * `destinations` (array(string)): Destination Paths
74
87
  * `disabled` (boolean): If true, this automation will not run.
75
88
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
89
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
76
90
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
77
91
  * `group_ids` (array(int64)): IDs of Groups for the Automation (i.e. who to Request File from)
78
92
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
@@ -153,6 +167,7 @@ await Automation.create({
153
167
  'description': "example",
154
168
  'disabled': true,
155
169
  'exclude_pattern': "path/to/exclude/*",
170
+ 'import_urls': [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
156
171
  'flatten_destination_structure': true,
157
172
  'ignore_locked_folders': true,
158
173
  'legacy_folder_matching': true,
@@ -186,6 +201,7 @@ await Automation.create({
186
201
  * `description` (string): Description for the this Automation.
187
202
  * `disabled` (boolean): If true, this automation will not run.
188
203
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
204
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
189
205
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
190
206
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
191
207
  * `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -237,6 +253,7 @@ await automation.update({
237
253
  'description': "example",
238
254
  'disabled': true,
239
255
  'exclude_pattern': "path/to/exclude/*",
256
+ 'import_urls': [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
240
257
  'flatten_destination_structure': true,
241
258
  'ignore_locked_folders': true,
242
259
  'legacy_folder_matching': true,
@@ -270,6 +287,7 @@ await automation.update({
270
287
  * `description` (string): Description for the this Automation.
271
288
  * `disabled` (boolean): If true, this automation will not run.
272
289
  * `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
290
+ * `import_urls` (array(object)): List of URLs to be imported and names to be used.
273
291
  * `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
274
292
  * `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
275
293
  * `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -298,6 +316,19 @@ await automation.update({
298
316
  ],
299
317
  "disabled": true,
300
318
  "exclude_pattern": "path/to/exclude/*",
319
+ "import_urls": [
320
+ {
321
+ "name": "users.json",
322
+ "url": "http://example.com/users",
323
+ "method": "POST",
324
+ "headers": {
325
+ "Content-Type": "application/json"
326
+ },
327
+ "content": {
328
+ "group": "support"
329
+ }
330
+ }
331
+ ],
301
332
  "flatten_destination_structure": true,
302
333
  "group_ids": [
303
334
  1,
@@ -49,7 +49,7 @@ await ExternalEvent.list
49
49
 
50
50
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
51
51
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
52
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
53
53
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ event_type, created_at ]`, `[ remote_server_type, created_at ]`, `[ status, created_at ]`, `[ event_type, status ]` or `[ event_type, status, created_at ]`.
54
54
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
55
55
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.185';
14
+ var version = '1.2.187';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -103,6 +103,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
103
103
  (0, _defineProperty2.default)(this, "setExcludePattern", function (value) {
104
104
  _this.attributes.exclude_pattern = value;
105
105
  });
106
+ // array(object) # List of URLs to be imported and names to be used.
107
+ (0, _defineProperty2.default)(this, "getImportUrls", function () {
108
+ return _this.attributes.import_urls;
109
+ });
110
+ (0, _defineProperty2.default)(this, "setImportUrls", function (value) {
111
+ _this.attributes.import_urls = value;
112
+ });
106
113
  // boolean # Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
107
114
  (0, _defineProperty2.default)(this, "getFlattenDestinationStructure", function () {
108
115
  return _this.attributes.flatten_destination_structure;
@@ -337,6 +344,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
337
344
  // description - string - Description for the this Automation.
338
345
  // disabled - boolean - If true, this automation will not run.
339
346
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
347
+ // import_urls - array(object) - List of URLs to be imported and names to be used.
340
348
  // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
341
349
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
342
350
  // legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -459,62 +467,68 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
459
467
  }
460
468
  throw new errors.InvalidParameterError("Bad parameter: exclude_pattern must be of type String, received ".concat((0, _utils.getType)(params.exclude_pattern)));
461
469
  case 36:
462
- if (!(params.name && !(0, _utils.isString)(params.name))) {
470
+ if (!(params.import_urls && !(0, _utils.isArray)(params.import_urls))) {
463
471
  _context2.next = 38;
464
472
  break;
465
473
  }
466
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
474
+ throw new errors.InvalidParameterError("Bad parameter: import_urls must be of type Array, received ".concat((0, _utils.getType)(params.import_urls)));
467
475
  case 38:
468
- if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
476
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
469
477
  _context2.next = 40;
470
478
  break;
471
479
  }
472
- throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
480
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
473
481
  case 40:
474
- if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
482
+ if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
475
483
  _context2.next = 42;
476
484
  break;
477
485
  }
478
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
486
+ throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
479
487
  case 42:
480
- if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
488
+ if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
481
489
  _context2.next = 44;
482
490
  break;
483
491
  }
484
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
492
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
485
493
  case 44:
486
- if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
494
+ if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
487
495
  _context2.next = 46;
488
496
  break;
489
497
  }
490
- throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
498
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
491
499
  case 46:
492
- if (!(params.automation && !(0, _utils.isString)(params.automation))) {
500
+ if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
493
501
  _context2.next = 48;
494
502
  break;
495
503
  }
496
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
504
+ throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
497
505
  case 48:
506
+ if (!(params.automation && !(0, _utils.isString)(params.automation))) {
507
+ _context2.next = 50;
508
+ break;
509
+ }
510
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
511
+ case 50:
498
512
  if (params.id) {
499
- _context2.next = 54;
513
+ _context2.next = 56;
500
514
  break;
501
515
  }
502
516
  if (!_this.attributes.id) {
503
- _context2.next = 53;
517
+ _context2.next = 55;
504
518
  break;
505
519
  }
506
520
  params.id = _this.id;
507
- _context2.next = 54;
521
+ _context2.next = 56;
508
522
  break;
509
- case 53:
523
+ case 55:
510
524
  throw new errors.MissingParameterError('Parameter missing: id');
511
- case 54:
512
- _context2.next = 56;
513
- return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
514
525
  case 56:
526
+ _context2.next = 58;
527
+ return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
528
+ case 58:
515
529
  response = _context2.sent;
516
530
  return _context2.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
517
- case 58:
531
+ case 60:
518
532
  case "end":
519
533
  return _context2.stop();
520
534
  }
@@ -733,6 +747,7 @@ _Automation = Automation;
733
747
  // description - string - Description for the this Automation.
734
748
  // disabled - boolean - If true, this automation will not run.
735
749
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
750
+ // import_urls - array(object) - List of URLs to be imported and names to be used.
736
751
  // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
737
752
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
738
753
  // legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -844,48 +859,54 @@ _Automation = Automation;
844
859
  }
845
860
  throw new errors.InvalidParameterError("Bad parameter: exclude_pattern must be of type String, received ".concat((0, _utils.getType)(params.exclude_pattern)));
846
861
  case 32:
847
- if (!(params.name && !(0, _utils.isString)(params.name))) {
862
+ if (!(params.import_urls && !(0, _utils.isArray)(params.import_urls))) {
848
863
  _context7.next = 34;
849
864
  break;
850
865
  }
851
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
866
+ throw new errors.InvalidParameterError("Bad parameter: import_urls must be of type Array, received ".concat((0, _utils.getType)(params.import_urls)));
852
867
  case 34:
853
- if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
868
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
854
869
  _context7.next = 36;
855
870
  break;
856
871
  }
857
- throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
872
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
858
873
  case 36:
859
- if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
874
+ if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
860
875
  _context7.next = 38;
861
876
  break;
862
877
  }
863
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
878
+ throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
864
879
  case 38:
865
- if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
880
+ if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
866
881
  _context7.next = 40;
867
882
  break;
868
883
  }
869
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
884
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
870
885
  case 40:
871
- if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
886
+ if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
872
887
  _context7.next = 42;
873
888
  break;
874
889
  }
875
- throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
890
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
876
891
  case 42:
877
- if (!(params.automation && !(0, _utils.isString)(params.automation))) {
892
+ if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
878
893
  _context7.next = 44;
879
894
  break;
880
895
  }
881
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
896
+ throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
882
897
  case 44:
883
- _context7.next = 46;
884
- return _Api.default.sendRequest('/automations', 'POST', params, options);
898
+ if (!(params.automation && !(0, _utils.isString)(params.automation))) {
899
+ _context7.next = 46;
900
+ break;
901
+ }
902
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
885
903
  case 46:
904
+ _context7.next = 48;
905
+ return _Api.default.sendRequest('/automations', 'POST', params, options);
906
+ case 48:
886
907
  response = _context7.sent;
887
908
  return _context7.abrupt("return", new _Automation(response === null || response === void 0 ? void 0 : response.data, options));
888
- case 48:
909
+ case 50:
889
910
  case "end":
890
911
  return _context7.stop();
891
912
  }
@@ -168,7 +168,7 @@ _ExternalEvent = ExternalEvent;
168
168
  // Parameters:
169
169
  // 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.
170
170
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
171
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
171
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
172
172
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ event_type, created_at ]`, `[ remote_server_type, created_at ]`, `[ status, created_at ]`, `[ event_type, status ]` or `[ event_type, status, created_at ]`.
173
173
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
174
174
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.185",
3
+ "version": "1.2.187",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.185'
8
+ const version = '1.2.187'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -98,6 +98,13 @@ class Automation {
98
98
  this.attributes.exclude_pattern = value
99
99
  }
100
100
 
101
+ // array(object) # List of URLs to be imported and names to be used.
102
+ getImportUrls = () => this.attributes.import_urls
103
+
104
+ setImportUrls = value => {
105
+ this.attributes.import_urls = value
106
+ }
107
+
101
108
  // boolean # Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
102
109
  getFlattenDestinationStructure = () => this.attributes.flatten_destination_structure
103
110
 
@@ -309,6 +316,7 @@ class Automation {
309
316
  // description - string - Description for the this Automation.
310
317
  // disabled - boolean - If true, this automation will not run.
311
318
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
319
+ // import_urls - array(object) - List of URLs to be imported and names to be used.
312
320
  // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
313
321
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
314
322
  // legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -390,6 +398,10 @@ class Automation {
390
398
  throw new errors.InvalidParameterError(`Bad parameter: exclude_pattern must be of type String, received ${getType(params.exclude_pattern)}`)
391
399
  }
392
400
 
401
+ if (params.import_urls && !isArray(params.import_urls)) {
402
+ throw new errors.InvalidParameterError(`Bad parameter: import_urls must be of type Array, received ${getType(params.import_urls)}`)
403
+ }
404
+
393
405
  if (params.name && !isString(params.name)) {
394
406
  throw new errors.InvalidParameterError(`Bad parameter: name must be of type String, received ${getType(params.name)}`)
395
407
  }
@@ -535,6 +547,7 @@ class Automation {
535
547
  // description - string - Description for the this Automation.
536
548
  // disabled - boolean - If true, this automation will not run.
537
549
  // exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
550
+ // import_urls - array(object) - List of URLs to be imported and names to be used.
538
551
  // flatten_destination_structure - boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
539
552
  // ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
540
553
  // legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
@@ -607,6 +620,10 @@ class Automation {
607
620
  throw new errors.InvalidParameterError(`Bad parameter: exclude_pattern must be of type String, received ${getType(params.exclude_pattern)}`)
608
621
  }
609
622
 
623
+ if (params.import_urls && !isArray(params.import_urls)) {
624
+ throw new errors.InvalidParameterError(`Bad parameter: import_urls must be of type Array, received ${getType(params.import_urls)}`)
625
+ }
626
+
610
627
  if (params.name && !isString(params.name)) {
611
628
  throw new errors.InvalidParameterError(`Bad parameter: name must be of type String, received ${getType(params.name)}`)
612
629
  }
@@ -135,7 +135,7 @@ class ExternalEvent {
135
135
  // Parameters:
136
136
  // 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.
137
137
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
138
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
138
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
139
139
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ event_type, created_at ]`, `[ remote_server_type, created_at ]`, `[ status, created_at ]`, `[ event_type, status ]` or `[ event_type, status, created_at ]`.
140
140
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
141
141
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.