files.com 1.2.249 → 1.2.251
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/User.md +4 -1
- package/lib/Api.js +72 -71
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +5 -5
- package/lib/models/ActionNotificationExport.js +38 -38
- package/lib/models/ActionNotificationExportResult.js +14 -14
- package/lib/models/ApiKey.js +100 -100
- package/lib/models/ApiRequestLog.js +8 -8
- package/lib/models/App.js +8 -8
- package/lib/models/As2IncomingMessage.js +10 -10
- package/lib/models/As2OutgoingMessage.js +10 -10
- package/lib/models/As2Partner.js +101 -101
- package/lib/models/As2Station.js +81 -81
- package/lib/models/Automation.js +167 -167
- package/lib/models/AutomationLog.js +8 -8
- package/lib/models/AutomationRun.js +24 -24
- package/lib/models/BandwidthSnapshot.js +8 -8
- package/lib/models/Behavior.js +106 -106
- package/lib/models/Bundle.js +143 -143
- package/lib/models/BundleAction.js +10 -10
- package/lib/models/BundleDownload.js +12 -12
- package/lib/models/BundleNotification.js +69 -69
- package/lib/models/BundleRecipient.js +40 -40
- package/lib/models/BundleRegistration.js +12 -12
- package/lib/models/Clickwrap.js +79 -79
- package/lib/models/DnsRecord.js +8 -8
- package/lib/models/EmailIncomingMessage.js +8 -8
- package/lib/models/EmailLog.js +8 -8
- package/lib/models/ExavaultApiRequestLog.js +8 -8
- package/lib/models/ExternalEvent.js +36 -36
- package/lib/models/File.js +269 -269
- package/lib/models/FileComment.js +70 -70
- package/lib/models/FileCommentReaction.js +34 -34
- package/lib/models/FileMigration.js +10 -10
- package/lib/models/FileMigrationLog.js +8 -8
- package/lib/models/Folder.js +36 -36
- package/lib/models/FormFieldSet.js +71 -71
- package/lib/models/FtpActionLog.js +8 -8
- package/lib/models/GpgKey.js +81 -81
- package/lib/models/Group.js +83 -83
- package/lib/models/GroupUser.js +89 -89
- package/lib/models/History.js +88 -88
- package/lib/models/HistoryExport.js +64 -64
- package/lib/models/HistoryExportResult.js +14 -14
- package/lib/models/InboxRecipient.js +36 -36
- package/lib/models/InboxRegistration.js +10 -10
- package/lib/models/InboxUpload.js +8 -8
- package/lib/models/Invoice.js +18 -18
- package/lib/models/IpAddress.js +32 -32
- package/lib/models/Lock.js +51 -51
- package/lib/models/Message.js +100 -100
- package/lib/models/MessageComment.js +78 -78
- package/lib/models/MessageCommentReaction.js +54 -54
- package/lib/models/MessageReaction.js +54 -54
- package/lib/models/Notification.js +91 -91
- package/lib/models/OutboundConnectionLog.js +8 -8
- package/lib/models/Payment.js +18 -18
- package/lib/models/Permission.js +54 -54
- package/lib/models/Priority.js +14 -14
- package/lib/models/Project.js +70 -70
- package/lib/models/PublicHostingRequestLog.js +8 -8
- package/lib/models/PublicKey.js +78 -78
- package/lib/models/RemoteBandwidthSnapshot.js +8 -8
- package/lib/models/RemoteServer.js +362 -362
- package/lib/models/Request.js +60 -60
- package/lib/models/Restore.js +24 -24
- package/lib/models/Session.js +21 -21
- package/lib/models/SettingsChange.js +8 -8
- package/lib/models/SftpActionLog.js +8 -8
- package/lib/models/SftpHostKey.js +67 -67
- package/lib/models/ShareGroup.js +79 -79
- package/lib/models/SiemHttpDestination.js +158 -158
- package/lib/models/Site.js +150 -150
- package/lib/models/Snapshot.js +85 -85
- package/lib/models/SsoStrategy.js +32 -32
- package/lib/models/Style.js +48 -48
- package/lib/models/SyncLog.js +8 -8
- package/lib/models/UsageDailySnapshot.js +8 -8
- package/lib/models/UsageSnapshot.js +8 -8
- package/lib/models/User.js +223 -215
- package/lib/models/UserCipherUse.js +10 -10
- package/lib/models/UserLifecycleRule.js +92 -92
- package/lib/models/UserRequest.js +56 -56
- package/lib/models/UserSftpClientUse.js +10 -10
- package/lib/models/WebDavActionLog.js +8 -8
- package/lib/models/WebhookTest.js +24 -24
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/User.js +6 -0
|
@@ -450,139 +450,139 @@ var SiemHttpDestination = /*#__PURE__*/(0, _createClass2.default)(function SiemH
|
|
|
450
450
|
var params,
|
|
451
451
|
response,
|
|
452
452
|
_args = arguments;
|
|
453
|
-
return _regenerator.default.wrap(function
|
|
453
|
+
return _regenerator.default.wrap(function (_context) {
|
|
454
454
|
while (1) switch (_context.prev = _context.next) {
|
|
455
455
|
case 0:
|
|
456
456
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
457
457
|
if (_this.attributes.id) {
|
|
458
|
-
_context.next =
|
|
458
|
+
_context.next = 1;
|
|
459
459
|
break;
|
|
460
460
|
}
|
|
461
461
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
462
|
-
case
|
|
462
|
+
case 1:
|
|
463
463
|
if ((0, _utils.isObject)(params)) {
|
|
464
|
-
_context.next =
|
|
464
|
+
_context.next = 2;
|
|
465
465
|
break;
|
|
466
466
|
}
|
|
467
467
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
468
|
-
case
|
|
468
|
+
case 2:
|
|
469
469
|
params.id = _this.attributes.id;
|
|
470
470
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
471
|
-
_context.next =
|
|
471
|
+
_context.next = 3;
|
|
472
472
|
break;
|
|
473
473
|
}
|
|
474
474
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
475
|
-
case
|
|
475
|
+
case 3:
|
|
476
476
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
477
|
-
_context.next =
|
|
477
|
+
_context.next = 4;
|
|
478
478
|
break;
|
|
479
479
|
}
|
|
480
480
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
481
|
-
case
|
|
481
|
+
case 4:
|
|
482
482
|
if (!(params.generic_payload_type && !(0, _utils.isString)(params.generic_payload_type))) {
|
|
483
|
-
_context.next =
|
|
483
|
+
_context.next = 5;
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
486
|
throw new errors.InvalidParameterError("Bad parameter: generic_payload_type must be of type String, received ".concat((0, _utils.getType)(params.generic_payload_type)));
|
|
487
|
-
case
|
|
487
|
+
case 5:
|
|
488
488
|
if (!(params.splunk_token && !(0, _utils.isString)(params.splunk_token))) {
|
|
489
|
-
_context.next =
|
|
489
|
+
_context.next = 6;
|
|
490
490
|
break;
|
|
491
491
|
}
|
|
492
492
|
throw new errors.InvalidParameterError("Bad parameter: splunk_token must be of type String, received ".concat((0, _utils.getType)(params.splunk_token)));
|
|
493
|
-
case
|
|
493
|
+
case 6:
|
|
494
494
|
if (!(params.azure_dcr_immutable_id && !(0, _utils.isString)(params.azure_dcr_immutable_id))) {
|
|
495
|
-
_context.next =
|
|
495
|
+
_context.next = 7;
|
|
496
496
|
break;
|
|
497
497
|
}
|
|
498
498
|
throw new errors.InvalidParameterError("Bad parameter: azure_dcr_immutable_id must be of type String, received ".concat((0, _utils.getType)(params.azure_dcr_immutable_id)));
|
|
499
|
-
case
|
|
499
|
+
case 7:
|
|
500
500
|
if (!(params.azure_stream_name && !(0, _utils.isString)(params.azure_stream_name))) {
|
|
501
|
-
_context.next =
|
|
501
|
+
_context.next = 8;
|
|
502
502
|
break;
|
|
503
503
|
}
|
|
504
504
|
throw new errors.InvalidParameterError("Bad parameter: azure_stream_name must be of type String, received ".concat((0, _utils.getType)(params.azure_stream_name)));
|
|
505
|
-
case
|
|
505
|
+
case 8:
|
|
506
506
|
if (!(params.azure_oauth_client_credentials_tenant_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_tenant_id))) {
|
|
507
|
-
_context.next =
|
|
507
|
+
_context.next = 9;
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_tenant_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_tenant_id)));
|
|
511
|
-
case
|
|
511
|
+
case 9:
|
|
512
512
|
if (!(params.azure_oauth_client_credentials_client_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_id))) {
|
|
513
|
-
_context.next =
|
|
513
|
+
_context.next = 10;
|
|
514
514
|
break;
|
|
515
515
|
}
|
|
516
516
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_id)));
|
|
517
|
-
case
|
|
517
|
+
case 10:
|
|
518
518
|
if (!(params.azure_oauth_client_credentials_client_secret && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_secret))) {
|
|
519
|
-
_context.next =
|
|
519
|
+
_context.next = 11;
|
|
520
520
|
break;
|
|
521
521
|
}
|
|
522
522
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_secret must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_secret)));
|
|
523
|
-
case
|
|
523
|
+
case 11:
|
|
524
524
|
if (!(params.qradar_username && !(0, _utils.isString)(params.qradar_username))) {
|
|
525
|
-
_context.next =
|
|
525
|
+
_context.next = 12;
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
throw new errors.InvalidParameterError("Bad parameter: qradar_username must be of type String, received ".concat((0, _utils.getType)(params.qradar_username)));
|
|
529
|
-
case
|
|
529
|
+
case 12:
|
|
530
530
|
if (!(params.qradar_password && !(0, _utils.isString)(params.qradar_password))) {
|
|
531
|
-
_context.next =
|
|
531
|
+
_context.next = 13;
|
|
532
532
|
break;
|
|
533
533
|
}
|
|
534
534
|
throw new errors.InvalidParameterError("Bad parameter: qradar_password must be of type String, received ".concat((0, _utils.getType)(params.qradar_password)));
|
|
535
|
-
case
|
|
535
|
+
case 13:
|
|
536
536
|
if (!(params.solar_winds_token && !(0, _utils.isString)(params.solar_winds_token))) {
|
|
537
|
-
_context.next =
|
|
537
|
+
_context.next = 14;
|
|
538
538
|
break;
|
|
539
539
|
}
|
|
540
540
|
throw new errors.InvalidParameterError("Bad parameter: solar_winds_token must be of type String, received ".concat((0, _utils.getType)(params.solar_winds_token)));
|
|
541
|
-
case
|
|
541
|
+
case 14:
|
|
542
542
|
if (!(params.new_relic_api_key && !(0, _utils.isString)(params.new_relic_api_key))) {
|
|
543
|
-
_context.next =
|
|
543
|
+
_context.next = 15;
|
|
544
544
|
break;
|
|
545
545
|
}
|
|
546
546
|
throw new errors.InvalidParameterError("Bad parameter: new_relic_api_key must be of type String, received ".concat((0, _utils.getType)(params.new_relic_api_key)));
|
|
547
|
-
case
|
|
547
|
+
case 15:
|
|
548
548
|
if (!(params.datadog_api_key && !(0, _utils.isString)(params.datadog_api_key))) {
|
|
549
|
-
_context.next =
|
|
549
|
+
_context.next = 16;
|
|
550
550
|
break;
|
|
551
551
|
}
|
|
552
552
|
throw new errors.InvalidParameterError("Bad parameter: datadog_api_key must be of type String, received ".concat((0, _utils.getType)(params.datadog_api_key)));
|
|
553
|
-
case
|
|
553
|
+
case 16:
|
|
554
554
|
if (!(params.destination_type && !(0, _utils.isString)(params.destination_type))) {
|
|
555
|
-
_context.next =
|
|
555
|
+
_context.next = 17;
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
558
|
throw new errors.InvalidParameterError("Bad parameter: destination_type must be of type String, received ".concat((0, _utils.getType)(params.destination_type)));
|
|
559
|
-
case
|
|
559
|
+
case 17:
|
|
560
560
|
if (!(params.destination_url && !(0, _utils.isString)(params.destination_url))) {
|
|
561
|
-
_context.next =
|
|
561
|
+
_context.next = 18;
|
|
562
562
|
break;
|
|
563
563
|
}
|
|
564
564
|
throw new errors.InvalidParameterError("Bad parameter: destination_url must be of type String, received ".concat((0, _utils.getType)(params.destination_url)));
|
|
565
|
-
case
|
|
565
|
+
case 18:
|
|
566
566
|
if (params.id) {
|
|
567
|
-
_context.next =
|
|
567
|
+
_context.next = 20;
|
|
568
568
|
break;
|
|
569
569
|
}
|
|
570
570
|
if (!_this.attributes.id) {
|
|
571
|
-
_context.next =
|
|
571
|
+
_context.next = 19;
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
params.id = _this.id;
|
|
575
|
-
_context.next =
|
|
575
|
+
_context.next = 20;
|
|
576
576
|
break;
|
|
577
|
-
case
|
|
577
|
+
case 19:
|
|
578
578
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
579
|
-
case
|
|
580
|
-
_context.next =
|
|
579
|
+
case 20:
|
|
580
|
+
_context.next = 21;
|
|
581
581
|
return _Api.default.sendRequest("/siem_http_destinations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
582
|
-
case
|
|
582
|
+
case 21:
|
|
583
583
|
response = _context.sent;
|
|
584
584
|
return _context.abrupt("return", new SiemHttpDestination(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
585
|
-
case
|
|
585
|
+
case 22:
|
|
586
586
|
case "end":
|
|
587
587
|
return _context.stop();
|
|
588
588
|
}
|
|
@@ -591,46 +591,46 @@ var SiemHttpDestination = /*#__PURE__*/(0, _createClass2.default)(function SiemH
|
|
|
591
591
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
592
592
|
var params,
|
|
593
593
|
_args2 = arguments;
|
|
594
|
-
return _regenerator.default.wrap(function
|
|
594
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
595
595
|
while (1) switch (_context2.prev = _context2.next) {
|
|
596
596
|
case 0:
|
|
597
597
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
598
598
|
if (_this.attributes.id) {
|
|
599
|
-
_context2.next =
|
|
599
|
+
_context2.next = 1;
|
|
600
600
|
break;
|
|
601
601
|
}
|
|
602
602
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
603
|
-
case
|
|
603
|
+
case 1:
|
|
604
604
|
if ((0, _utils.isObject)(params)) {
|
|
605
|
-
_context2.next =
|
|
605
|
+
_context2.next = 2;
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
609
|
-
case
|
|
609
|
+
case 2:
|
|
610
610
|
params.id = _this.attributes.id;
|
|
611
611
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
612
|
-
_context2.next =
|
|
612
|
+
_context2.next = 3;
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
615
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
616
|
-
case
|
|
616
|
+
case 3:
|
|
617
617
|
if (params.id) {
|
|
618
|
-
_context2.next =
|
|
618
|
+
_context2.next = 5;
|
|
619
619
|
break;
|
|
620
620
|
}
|
|
621
621
|
if (!_this.attributes.id) {
|
|
622
|
-
_context2.next =
|
|
622
|
+
_context2.next = 4;
|
|
623
623
|
break;
|
|
624
624
|
}
|
|
625
625
|
params.id = _this.id;
|
|
626
|
-
_context2.next =
|
|
626
|
+
_context2.next = 5;
|
|
627
627
|
break;
|
|
628
|
-
case
|
|
628
|
+
case 4:
|
|
629
629
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
630
|
-
case
|
|
631
|
-
_context2.next =
|
|
630
|
+
case 5:
|
|
631
|
+
_context2.next = 6;
|
|
632
632
|
return _Api.default.sendRequest("/siem_http_destinations/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
633
|
-
case
|
|
633
|
+
case 6:
|
|
634
634
|
case "end":
|
|
635
635
|
return _context2.stop();
|
|
636
636
|
}
|
|
@@ -642,27 +642,27 @@ var SiemHttpDestination = /*#__PURE__*/(0, _createClass2.default)(function SiemH
|
|
|
642
642
|
});
|
|
643
643
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
644
644
|
var _newObject, newObject;
|
|
645
|
-
return _regenerator.default.wrap(function
|
|
645
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
646
646
|
while (1) switch (_context3.prev = _context3.next) {
|
|
647
647
|
case 0:
|
|
648
648
|
if (!_this.attributes.id) {
|
|
649
|
-
_context3.next =
|
|
649
|
+
_context3.next = 2;
|
|
650
650
|
break;
|
|
651
651
|
}
|
|
652
|
-
_context3.next =
|
|
652
|
+
_context3.next = 1;
|
|
653
653
|
return _this.update(_this.attributes);
|
|
654
|
-
case
|
|
654
|
+
case 1:
|
|
655
655
|
_newObject = _context3.sent;
|
|
656
656
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
657
657
|
return _context3.abrupt("return", true);
|
|
658
|
-
case
|
|
659
|
-
_context3.next =
|
|
658
|
+
case 2:
|
|
659
|
+
_context3.next = 3;
|
|
660
660
|
return SiemHttpDestination.create(_this.attributes, _this.options);
|
|
661
|
-
case
|
|
661
|
+
case 3:
|
|
662
662
|
newObject = _context3.sent;
|
|
663
663
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
664
664
|
return _context3.abrupt("return", true);
|
|
665
|
-
case
|
|
665
|
+
case 4:
|
|
666
666
|
case "end":
|
|
667
667
|
return _context3.stop();
|
|
668
668
|
}
|
|
@@ -691,31 +691,31 @@ _SiemHttpDestination = SiemHttpDestination;
|
|
|
691
691
|
options,
|
|
692
692
|
response,
|
|
693
693
|
_args4 = arguments;
|
|
694
|
-
return _regenerator.default.wrap(function
|
|
694
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
695
695
|
while (1) switch (_context4.prev = _context4.next) {
|
|
696
696
|
case 0:
|
|
697
697
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
698
698
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
699
699
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
700
|
-
_context4.next =
|
|
700
|
+
_context4.next = 1;
|
|
701
701
|
break;
|
|
702
702
|
}
|
|
703
703
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
704
|
-
case
|
|
704
|
+
case 1:
|
|
705
705
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
706
|
-
_context4.next =
|
|
706
|
+
_context4.next = 2;
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
709
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
710
|
-
case
|
|
711
|
-
_context4.next =
|
|
710
|
+
case 2:
|
|
711
|
+
_context4.next = 3;
|
|
712
712
|
return _Api.default.sendRequest('/siem_http_destinations', 'GET', params, options);
|
|
713
|
-
case
|
|
713
|
+
case 3:
|
|
714
714
|
response = _context4.sent;
|
|
715
715
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
716
716
|
return new _SiemHttpDestination(obj, options);
|
|
717
717
|
})) || []);
|
|
718
|
-
case
|
|
718
|
+
case 4:
|
|
719
719
|
case "end":
|
|
720
720
|
return _context4.stop();
|
|
721
721
|
}
|
|
@@ -734,36 +734,36 @@ _SiemHttpDestination = SiemHttpDestination;
|
|
|
734
734
|
options,
|
|
735
735
|
response,
|
|
736
736
|
_args5 = arguments;
|
|
737
|
-
return _regenerator.default.wrap(function
|
|
737
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
738
738
|
while (1) switch (_context5.prev = _context5.next) {
|
|
739
739
|
case 0:
|
|
740
740
|
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
741
741
|
options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
|
|
742
742
|
if ((0, _utils.isObject)(params)) {
|
|
743
|
-
_context5.next =
|
|
743
|
+
_context5.next = 1;
|
|
744
744
|
break;
|
|
745
745
|
}
|
|
746
746
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
747
|
-
case
|
|
747
|
+
case 1:
|
|
748
748
|
params.id = id;
|
|
749
749
|
if (params.id) {
|
|
750
|
-
_context5.next =
|
|
750
|
+
_context5.next = 2;
|
|
751
751
|
break;
|
|
752
752
|
}
|
|
753
753
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
754
|
-
case
|
|
754
|
+
case 2:
|
|
755
755
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
756
|
-
_context5.next =
|
|
756
|
+
_context5.next = 3;
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
760
|
-
case
|
|
761
|
-
_context5.next =
|
|
760
|
+
case 3:
|
|
761
|
+
_context5.next = 4;
|
|
762
762
|
return _Api.default.sendRequest("/siem_http_destinations/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
763
|
-
case
|
|
763
|
+
case 4:
|
|
764
764
|
response = _context5.sent;
|
|
765
765
|
return _context5.abrupt("return", new _SiemHttpDestination(response === null || response === void 0 ? void 0 : response.data, options));
|
|
766
|
-
case
|
|
766
|
+
case 5:
|
|
767
767
|
case "end":
|
|
768
768
|
return _context5.stop();
|
|
769
769
|
}
|
|
@@ -812,119 +812,119 @@ _SiemHttpDestination = SiemHttpDestination;
|
|
|
812
812
|
options,
|
|
813
813
|
response,
|
|
814
814
|
_args6 = arguments;
|
|
815
|
-
return _regenerator.default.wrap(function
|
|
815
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
816
816
|
while (1) switch (_context6.prev = _context6.next) {
|
|
817
817
|
case 0:
|
|
818
818
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
819
819
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
820
820
|
if (params.destination_type) {
|
|
821
|
-
_context6.next =
|
|
821
|
+
_context6.next = 1;
|
|
822
822
|
break;
|
|
823
823
|
}
|
|
824
824
|
throw new errors.MissingParameterError('Parameter missing: destination_type');
|
|
825
|
-
case
|
|
825
|
+
case 1:
|
|
826
826
|
if (params.destination_url) {
|
|
827
|
-
_context6.next =
|
|
827
|
+
_context6.next = 2;
|
|
828
828
|
break;
|
|
829
829
|
}
|
|
830
830
|
throw new errors.MissingParameterError('Parameter missing: destination_url');
|
|
831
|
-
case
|
|
831
|
+
case 2:
|
|
832
832
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
833
|
-
_context6.next =
|
|
833
|
+
_context6.next = 3;
|
|
834
834
|
break;
|
|
835
835
|
}
|
|
836
836
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
837
|
-
case
|
|
837
|
+
case 3:
|
|
838
838
|
if (!(params.generic_payload_type && !(0, _utils.isString)(params.generic_payload_type))) {
|
|
839
|
-
_context6.next =
|
|
839
|
+
_context6.next = 4;
|
|
840
840
|
break;
|
|
841
841
|
}
|
|
842
842
|
throw new errors.InvalidParameterError("Bad parameter: generic_payload_type must be of type String, received ".concat((0, _utils.getType)(params.generic_payload_type)));
|
|
843
|
-
case
|
|
843
|
+
case 4:
|
|
844
844
|
if (!(params.splunk_token && !(0, _utils.isString)(params.splunk_token))) {
|
|
845
|
-
_context6.next =
|
|
845
|
+
_context6.next = 5;
|
|
846
846
|
break;
|
|
847
847
|
}
|
|
848
848
|
throw new errors.InvalidParameterError("Bad parameter: splunk_token must be of type String, received ".concat((0, _utils.getType)(params.splunk_token)));
|
|
849
|
-
case
|
|
849
|
+
case 5:
|
|
850
850
|
if (!(params.azure_dcr_immutable_id && !(0, _utils.isString)(params.azure_dcr_immutable_id))) {
|
|
851
|
-
_context6.next =
|
|
851
|
+
_context6.next = 6;
|
|
852
852
|
break;
|
|
853
853
|
}
|
|
854
854
|
throw new errors.InvalidParameterError("Bad parameter: azure_dcr_immutable_id must be of type String, received ".concat((0, _utils.getType)(params.azure_dcr_immutable_id)));
|
|
855
|
-
case
|
|
855
|
+
case 6:
|
|
856
856
|
if (!(params.azure_stream_name && !(0, _utils.isString)(params.azure_stream_name))) {
|
|
857
|
-
_context6.next =
|
|
857
|
+
_context6.next = 7;
|
|
858
858
|
break;
|
|
859
859
|
}
|
|
860
860
|
throw new errors.InvalidParameterError("Bad parameter: azure_stream_name must be of type String, received ".concat((0, _utils.getType)(params.azure_stream_name)));
|
|
861
|
-
case
|
|
861
|
+
case 7:
|
|
862
862
|
if (!(params.azure_oauth_client_credentials_tenant_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_tenant_id))) {
|
|
863
|
-
_context6.next =
|
|
863
|
+
_context6.next = 8;
|
|
864
864
|
break;
|
|
865
865
|
}
|
|
866
866
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_tenant_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_tenant_id)));
|
|
867
|
-
case
|
|
867
|
+
case 8:
|
|
868
868
|
if (!(params.azure_oauth_client_credentials_client_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_id))) {
|
|
869
|
-
_context6.next =
|
|
869
|
+
_context6.next = 9;
|
|
870
870
|
break;
|
|
871
871
|
}
|
|
872
872
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_id)));
|
|
873
|
-
case
|
|
873
|
+
case 9:
|
|
874
874
|
if (!(params.azure_oauth_client_credentials_client_secret && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_secret))) {
|
|
875
|
-
_context6.next =
|
|
875
|
+
_context6.next = 10;
|
|
876
876
|
break;
|
|
877
877
|
}
|
|
878
878
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_secret must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_secret)));
|
|
879
|
-
case
|
|
879
|
+
case 10:
|
|
880
880
|
if (!(params.qradar_username && !(0, _utils.isString)(params.qradar_username))) {
|
|
881
|
-
_context6.next =
|
|
881
|
+
_context6.next = 11;
|
|
882
882
|
break;
|
|
883
883
|
}
|
|
884
884
|
throw new errors.InvalidParameterError("Bad parameter: qradar_username must be of type String, received ".concat((0, _utils.getType)(params.qradar_username)));
|
|
885
|
-
case
|
|
885
|
+
case 11:
|
|
886
886
|
if (!(params.qradar_password && !(0, _utils.isString)(params.qradar_password))) {
|
|
887
|
-
_context6.next =
|
|
887
|
+
_context6.next = 12;
|
|
888
888
|
break;
|
|
889
889
|
}
|
|
890
890
|
throw new errors.InvalidParameterError("Bad parameter: qradar_password must be of type String, received ".concat((0, _utils.getType)(params.qradar_password)));
|
|
891
|
-
case
|
|
891
|
+
case 12:
|
|
892
892
|
if (!(params.solar_winds_token && !(0, _utils.isString)(params.solar_winds_token))) {
|
|
893
|
-
_context6.next =
|
|
893
|
+
_context6.next = 13;
|
|
894
894
|
break;
|
|
895
895
|
}
|
|
896
896
|
throw new errors.InvalidParameterError("Bad parameter: solar_winds_token must be of type String, received ".concat((0, _utils.getType)(params.solar_winds_token)));
|
|
897
|
-
case
|
|
897
|
+
case 13:
|
|
898
898
|
if (!(params.new_relic_api_key && !(0, _utils.isString)(params.new_relic_api_key))) {
|
|
899
|
-
_context6.next =
|
|
899
|
+
_context6.next = 14;
|
|
900
900
|
break;
|
|
901
901
|
}
|
|
902
902
|
throw new errors.InvalidParameterError("Bad parameter: new_relic_api_key must be of type String, received ".concat((0, _utils.getType)(params.new_relic_api_key)));
|
|
903
|
-
case
|
|
903
|
+
case 14:
|
|
904
904
|
if (!(params.datadog_api_key && !(0, _utils.isString)(params.datadog_api_key))) {
|
|
905
|
-
_context6.next =
|
|
905
|
+
_context6.next = 15;
|
|
906
906
|
break;
|
|
907
907
|
}
|
|
908
908
|
throw new errors.InvalidParameterError("Bad parameter: datadog_api_key must be of type String, received ".concat((0, _utils.getType)(params.datadog_api_key)));
|
|
909
|
-
case
|
|
909
|
+
case 15:
|
|
910
910
|
if (!(params.destination_type && !(0, _utils.isString)(params.destination_type))) {
|
|
911
|
-
_context6.next =
|
|
911
|
+
_context6.next = 16;
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
throw new errors.InvalidParameterError("Bad parameter: destination_type must be of type String, received ".concat((0, _utils.getType)(params.destination_type)));
|
|
915
|
-
case
|
|
915
|
+
case 16:
|
|
916
916
|
if (!(params.destination_url && !(0, _utils.isString)(params.destination_url))) {
|
|
917
|
-
_context6.next =
|
|
917
|
+
_context6.next = 17;
|
|
918
918
|
break;
|
|
919
919
|
}
|
|
920
920
|
throw new errors.InvalidParameterError("Bad parameter: destination_url must be of type String, received ".concat((0, _utils.getType)(params.destination_url)));
|
|
921
|
-
case
|
|
922
|
-
_context6.next =
|
|
921
|
+
case 17:
|
|
922
|
+
_context6.next = 18;
|
|
923
923
|
return _Api.default.sendRequest('/siem_http_destinations', 'POST', params, options);
|
|
924
|
-
case
|
|
924
|
+
case 18:
|
|
925
925
|
response = _context6.sent;
|
|
926
926
|
return _context6.abrupt("return", new _SiemHttpDestination(response === null || response === void 0 ? void 0 : response.data, options));
|
|
927
|
-
case
|
|
927
|
+
case 19:
|
|
928
928
|
case "end":
|
|
929
929
|
return _context6.stop();
|
|
930
930
|
}
|
|
@@ -964,110 +964,110 @@ _SiemHttpDestination = SiemHttpDestination;
|
|
|
964
964
|
var params,
|
|
965
965
|
options,
|
|
966
966
|
_args7 = arguments;
|
|
967
|
-
return _regenerator.default.wrap(function
|
|
967
|
+
return _regenerator.default.wrap(function (_context7) {
|
|
968
968
|
while (1) switch (_context7.prev = _context7.next) {
|
|
969
969
|
case 0:
|
|
970
970
|
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
971
971
|
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
972
972
|
if (!(params.siem_http_destination_id && !(0, _utils.isInt)(params.siem_http_destination_id))) {
|
|
973
|
-
_context7.next =
|
|
973
|
+
_context7.next = 1;
|
|
974
974
|
break;
|
|
975
975
|
}
|
|
976
976
|
throw new errors.InvalidParameterError("Bad parameter: siem_http_destination_id must be of type Int, received ".concat((0, _utils.getType)(params.siem_http_destination_id)));
|
|
977
|
-
case
|
|
977
|
+
case 1:
|
|
978
978
|
if (!(params.destination_type && !(0, _utils.isString)(params.destination_type))) {
|
|
979
|
-
_context7.next =
|
|
979
|
+
_context7.next = 2;
|
|
980
980
|
break;
|
|
981
981
|
}
|
|
982
982
|
throw new errors.InvalidParameterError("Bad parameter: destination_type must be of type String, received ".concat((0, _utils.getType)(params.destination_type)));
|
|
983
|
-
case
|
|
983
|
+
case 2:
|
|
984
984
|
if (!(params.destination_url && !(0, _utils.isString)(params.destination_url))) {
|
|
985
|
-
_context7.next =
|
|
985
|
+
_context7.next = 3;
|
|
986
986
|
break;
|
|
987
987
|
}
|
|
988
988
|
throw new errors.InvalidParameterError("Bad parameter: destination_url must be of type String, received ".concat((0, _utils.getType)(params.destination_url)));
|
|
989
|
-
case
|
|
989
|
+
case 3:
|
|
990
990
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
991
|
-
_context7.next =
|
|
991
|
+
_context7.next = 4;
|
|
992
992
|
break;
|
|
993
993
|
}
|
|
994
994
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
995
|
-
case
|
|
995
|
+
case 4:
|
|
996
996
|
if (!(params.generic_payload_type && !(0, _utils.isString)(params.generic_payload_type))) {
|
|
997
|
-
_context7.next =
|
|
997
|
+
_context7.next = 5;
|
|
998
998
|
break;
|
|
999
999
|
}
|
|
1000
1000
|
throw new errors.InvalidParameterError("Bad parameter: generic_payload_type must be of type String, received ".concat((0, _utils.getType)(params.generic_payload_type)));
|
|
1001
|
-
case
|
|
1001
|
+
case 5:
|
|
1002
1002
|
if (!(params.splunk_token && !(0, _utils.isString)(params.splunk_token))) {
|
|
1003
|
-
_context7.next =
|
|
1003
|
+
_context7.next = 6;
|
|
1004
1004
|
break;
|
|
1005
1005
|
}
|
|
1006
1006
|
throw new errors.InvalidParameterError("Bad parameter: splunk_token must be of type String, received ".concat((0, _utils.getType)(params.splunk_token)));
|
|
1007
|
-
case
|
|
1007
|
+
case 6:
|
|
1008
1008
|
if (!(params.azure_dcr_immutable_id && !(0, _utils.isString)(params.azure_dcr_immutable_id))) {
|
|
1009
|
-
_context7.next =
|
|
1009
|
+
_context7.next = 7;
|
|
1010
1010
|
break;
|
|
1011
1011
|
}
|
|
1012
1012
|
throw new errors.InvalidParameterError("Bad parameter: azure_dcr_immutable_id must be of type String, received ".concat((0, _utils.getType)(params.azure_dcr_immutable_id)));
|
|
1013
|
-
case
|
|
1013
|
+
case 7:
|
|
1014
1014
|
if (!(params.azure_stream_name && !(0, _utils.isString)(params.azure_stream_name))) {
|
|
1015
|
-
_context7.next =
|
|
1015
|
+
_context7.next = 8;
|
|
1016
1016
|
break;
|
|
1017
1017
|
}
|
|
1018
1018
|
throw new errors.InvalidParameterError("Bad parameter: azure_stream_name must be of type String, received ".concat((0, _utils.getType)(params.azure_stream_name)));
|
|
1019
|
-
case
|
|
1019
|
+
case 8:
|
|
1020
1020
|
if (!(params.azure_oauth_client_credentials_tenant_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_tenant_id))) {
|
|
1021
|
-
_context7.next =
|
|
1021
|
+
_context7.next = 9;
|
|
1022
1022
|
break;
|
|
1023
1023
|
}
|
|
1024
1024
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_tenant_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_tenant_id)));
|
|
1025
|
-
case
|
|
1025
|
+
case 9:
|
|
1026
1026
|
if (!(params.azure_oauth_client_credentials_client_id && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_id))) {
|
|
1027
|
-
_context7.next =
|
|
1027
|
+
_context7.next = 10;
|
|
1028
1028
|
break;
|
|
1029
1029
|
}
|
|
1030
1030
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_id must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_id)));
|
|
1031
|
-
case
|
|
1031
|
+
case 10:
|
|
1032
1032
|
if (!(params.azure_oauth_client_credentials_client_secret && !(0, _utils.isString)(params.azure_oauth_client_credentials_client_secret))) {
|
|
1033
|
-
_context7.next =
|
|
1033
|
+
_context7.next = 11;
|
|
1034
1034
|
break;
|
|
1035
1035
|
}
|
|
1036
1036
|
throw new errors.InvalidParameterError("Bad parameter: azure_oauth_client_credentials_client_secret must be of type String, received ".concat((0, _utils.getType)(params.azure_oauth_client_credentials_client_secret)));
|
|
1037
|
-
case
|
|
1037
|
+
case 11:
|
|
1038
1038
|
if (!(params.qradar_username && !(0, _utils.isString)(params.qradar_username))) {
|
|
1039
|
-
_context7.next =
|
|
1039
|
+
_context7.next = 12;
|
|
1040
1040
|
break;
|
|
1041
1041
|
}
|
|
1042
1042
|
throw new errors.InvalidParameterError("Bad parameter: qradar_username must be of type String, received ".concat((0, _utils.getType)(params.qradar_username)));
|
|
1043
|
-
case
|
|
1043
|
+
case 12:
|
|
1044
1044
|
if (!(params.qradar_password && !(0, _utils.isString)(params.qradar_password))) {
|
|
1045
|
-
_context7.next =
|
|
1045
|
+
_context7.next = 13;
|
|
1046
1046
|
break;
|
|
1047
1047
|
}
|
|
1048
1048
|
throw new errors.InvalidParameterError("Bad parameter: qradar_password must be of type String, received ".concat((0, _utils.getType)(params.qradar_password)));
|
|
1049
|
-
case
|
|
1049
|
+
case 13:
|
|
1050
1050
|
if (!(params.solar_winds_token && !(0, _utils.isString)(params.solar_winds_token))) {
|
|
1051
|
-
_context7.next =
|
|
1051
|
+
_context7.next = 14;
|
|
1052
1052
|
break;
|
|
1053
1053
|
}
|
|
1054
1054
|
throw new errors.InvalidParameterError("Bad parameter: solar_winds_token must be of type String, received ".concat((0, _utils.getType)(params.solar_winds_token)));
|
|
1055
|
-
case
|
|
1055
|
+
case 14:
|
|
1056
1056
|
if (!(params.new_relic_api_key && !(0, _utils.isString)(params.new_relic_api_key))) {
|
|
1057
|
-
_context7.next =
|
|
1057
|
+
_context7.next = 15;
|
|
1058
1058
|
break;
|
|
1059
1059
|
}
|
|
1060
1060
|
throw new errors.InvalidParameterError("Bad parameter: new_relic_api_key must be of type String, received ".concat((0, _utils.getType)(params.new_relic_api_key)));
|
|
1061
|
-
case
|
|
1061
|
+
case 15:
|
|
1062
1062
|
if (!(params.datadog_api_key && !(0, _utils.isString)(params.datadog_api_key))) {
|
|
1063
|
-
_context7.next =
|
|
1063
|
+
_context7.next = 16;
|
|
1064
1064
|
break;
|
|
1065
1065
|
}
|
|
1066
1066
|
throw new errors.InvalidParameterError("Bad parameter: datadog_api_key must be of type String, received ".concat((0, _utils.getType)(params.datadog_api_key)));
|
|
1067
|
-
case
|
|
1068
|
-
_context7.next =
|
|
1067
|
+
case 16:
|
|
1068
|
+
_context7.next = 17;
|
|
1069
1069
|
return _Api.default.sendRequest('/siem_http_destinations/send_test_entry', 'POST', params, options);
|
|
1070
|
-
case
|
|
1070
|
+
case 17:
|
|
1071
1071
|
case "end":
|
|
1072
1072
|
return _context7.stop();
|
|
1073
1073
|
}
|