files.com 1.1.19 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. package/.eslintrc.js +0 -3
  2. package/_VERSION +1 -1
  3. package/lib/Api.js +1 -1
  4. package/lib/Errors.js +345 -334
  5. package/lib/Files.js +1 -1
  6. package/lib/models/ActionNotificationExport.js +25 -25
  7. package/lib/models/ActionNotificationExportResult.js +10 -10
  8. package/lib/models/ActionWebhookFailure.js +5 -9
  9. package/lib/models/ApiKey.js +62 -70
  10. package/lib/models/App.js +5 -5
  11. package/lib/models/As2IncomingMessage.js +7 -7
  12. package/lib/models/As2OutgoingMessage.js +7 -7
  13. package/lib/models/As2Partner.js +54 -58
  14. package/lib/models/As2Station.js +51 -55
  15. package/lib/models/Automation.js +102 -110
  16. package/lib/models/AutomationRun.js +13 -13
  17. package/lib/models/BandwidthSnapshot.js +5 -5
  18. package/lib/models/Behavior.js +77 -85
  19. package/lib/models/Bundle.js +102 -110
  20. package/lib/models/BundleDownload.js +9 -9
  21. package/lib/models/BundleNotification.js +37 -41
  22. package/lib/models/BundleRecipient.js +22 -22
  23. package/lib/models/BundleRegistration.js +7 -7
  24. package/lib/models/Clickwrap.js +52 -56
  25. package/lib/models/DnsRecord.js +5 -5
  26. package/lib/models/EmailIncomingMessage.js +5 -5
  27. package/lib/models/ExternalEvent.js +18 -18
  28. package/lib/models/File.js +89 -93
  29. package/lib/models/FileComment.js +41 -45
  30. package/lib/models/FileCommentReaction.js +15 -19
  31. package/lib/models/FileMigration.js +5 -5
  32. package/lib/models/Folder.js +24 -24
  33. package/lib/models/FormFieldSet.js +44 -48
  34. package/lib/models/GpgKey.js +53 -57
  35. package/lib/models/Group.js +51 -55
  36. package/lib/models/GroupUser.js +53 -57
  37. package/lib/models/History.js +72 -72
  38. package/lib/models/HistoryExport.js +51 -51
  39. package/lib/models/HistoryExportResult.js +10 -10
  40. package/lib/models/InboxRecipient.js +22 -22
  41. package/lib/models/InboxRegistration.js +7 -7
  42. package/lib/models/InboxUpload.js +9 -9
  43. package/lib/models/Invoice.js +12 -12
  44. package/lib/models/IpAddress.js +17 -17
  45. package/lib/models/Lock.js +27 -31
  46. package/lib/models/Message.js +60 -64
  47. package/lib/models/MessageComment.js +46 -50
  48. package/lib/models/MessageCommentReaction.js +27 -31
  49. package/lib/models/MessageReaction.js +27 -31
  50. package/lib/models/Notification.js +66 -70
  51. package/lib/models/Payment.js +12 -12
  52. package/lib/models/Permission.js +28 -32
  53. package/lib/models/Priority.js +9 -9
  54. package/lib/models/Project.js +39 -43
  55. package/lib/models/PublicKey.js +46 -50
  56. package/lib/models/RemoteBandwidthSnapshot.js +5 -5
  57. package/lib/models/RemoteServer.js +306 -310
  58. package/lib/models/Request.js +33 -37
  59. package/lib/models/Session.js +11 -15
  60. package/lib/models/SettingsChange.js +5 -5
  61. package/lib/models/SftpHostKey.js +40 -44
  62. package/lib/models/ShareGroup.js +50 -54
  63. package/lib/models/Site.js +138 -138
  64. package/lib/models/Snapshot.js +44 -48
  65. package/lib/models/SsoStrategy.js +15 -19
  66. package/lib/models/Style.js +17 -21
  67. package/lib/models/UsageDailySnapshot.js +5 -5
  68. package/lib/models/UsageSnapshot.js +5 -5
  69. package/lib/models/User.js +156 -172
  70. package/lib/models/UserCipherUse.js +7 -7
  71. package/lib/models/UserRequest.js +26 -30
  72. package/lib/models/WebhookTest.js +15 -15
  73. package/package.json +6 -2
  74. package/src/Api.js +2 -1
  75. package/src/Errors.js +189 -178
  76. package/src/Files.js +1 -1
  77. package/src/models/AccountLineItem.js +5 -2
  78. package/src/models/Action.js +5 -2
  79. package/src/models/ActionNotificationExport.js +36 -35
  80. package/src/models/ActionNotificationExportResult.js +15 -13
  81. package/src/models/ActionWebhookFailure.js +9 -8
  82. package/src/models/ApiKey.js +69 -72
  83. package/src/models/App.js +10 -8
  84. package/src/models/As2IncomingMessage.js +12 -10
  85. package/src/models/As2OutgoingMessage.js +12 -10
  86. package/src/models/As2Partner.js +61 -60
  87. package/src/models/As2Station.js +58 -57
  88. package/src/models/Auto.js +5 -2
  89. package/src/models/Automation.js +121 -110
  90. package/src/models/AutomationRun.js +18 -17
  91. package/src/models/BandwidthSnapshot.js +10 -8
  92. package/src/models/Behavior.js +85 -86
  93. package/src/models/Bundle.js +121 -110
  94. package/src/models/BundleDownload.js +14 -12
  95. package/src/models/BundleNotification.js +40 -43
  96. package/src/models/BundleRecipient.js +33 -32
  97. package/src/models/BundleRegistration.js +12 -10
  98. package/src/models/Clickwrap.js +60 -58
  99. package/src/models/DnsRecord.js +10 -8
  100. package/src/models/EmailIncomingMessage.js +10 -8
  101. package/src/models/Errors.js +5 -2
  102. package/src/models/ExternalEvent.js +29 -29
  103. package/src/models/File.js +116 -108
  104. package/src/models/FileAction.js +5 -2
  105. package/src/models/FileComment.js +45 -46
  106. package/src/models/FileCommentReaction.js +26 -26
  107. package/src/models/FileMigration.js +10 -8
  108. package/src/models/FileUploadPart.js +5 -2
  109. package/src/models/Folder.js +32 -29
  110. package/src/models/FormField.js +5 -2
  111. package/src/models/FormFieldSet.js +49 -50
  112. package/src/models/GpgKey.js +60 -59
  113. package/src/models/Group.js +58 -57
  114. package/src/models/GroupUser.js +60 -58
  115. package/src/models/History.js +77 -74
  116. package/src/models/HistoryExport.js +62 -61
  117. package/src/models/HistoryExportResult.js +15 -13
  118. package/src/models/Image.js +5 -2
  119. package/src/models/InboxRecipient.js +33 -32
  120. package/src/models/InboxRegistration.js +12 -10
  121. package/src/models/InboxUpload.js +14 -12
  122. package/src/models/Invoice.js +17 -14
  123. package/src/models/InvoiceLineItem.js +5 -2
  124. package/src/models/IpAddress.js +22 -20
  125. package/src/models/Lock.js +36 -36
  126. package/src/models/Message.js +66 -66
  127. package/src/models/MessageComment.js +50 -52
  128. package/src/models/MessageCommentReaction.js +38 -40
  129. package/src/models/MessageReaction.js +38 -40
  130. package/src/models/Notification.js +74 -72
  131. package/src/models/Payment.js +17 -14
  132. package/src/models/PaymentLineItem.js +5 -2
  133. package/src/models/Permission.js +39 -40
  134. package/src/models/Preview.js +5 -2
  135. package/src/models/Priority.js +14 -12
  136. package/src/models/Project.js +43 -45
  137. package/src/models/PublicIpAddress.js +5 -2
  138. package/src/models/PublicKey.js +50 -52
  139. package/src/models/RemoteBandwidthSnapshot.js +10 -8
  140. package/src/models/RemoteServer.js +380 -312
  141. package/src/models/RemoteServerConfigurationFile.js +5 -2
  142. package/src/models/Request.js +44 -46
  143. package/src/models/Session.js +22 -22
  144. package/src/models/SettingsChange.js +10 -8
  145. package/src/models/SftpHostKey.js +45 -46
  146. package/src/models/ShareGroup.js +56 -56
  147. package/src/models/ShareGroupMember.js +5 -2
  148. package/src/models/Site.js +143 -142
  149. package/src/models/Snapshot.js +50 -50
  150. package/src/models/SsoStrategy.js +20 -21
  151. package/src/models/Status.js +5 -2
  152. package/src/models/Style.js +22 -23
  153. package/src/models/UsageDailySnapshot.js +10 -8
  154. package/src/models/UsageSnapshot.js +10 -8
  155. package/src/models/User.js +185 -168
  156. package/src/models/UserCipherUse.js +12 -10
  157. package/src/models/UserRequest.js +37 -39
  158. package/src/models/WebhookTest.js +26 -24
  159. package/test/Api.test.js +163 -0
  160. package/test/{package.json → integration/package.json} +1 -1
  161. package/test/{src → integration/src}/index.js +1 -1
  162. package/test.sh +2 -1
  163. /package/test/{.babelrc → integration/.babelrc} +0 -0
  164. /package/test/{index.js → integration/index.js} +0 -0
@@ -523,7 +523,6 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
523
523
  // Unlock user who has been locked out due to failed logins
524
524
  (0, _defineProperty2.default)(this, "unlock", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
525
525
  var params,
526
- response,
527
526
  _args = arguments;
528
527
  return _regenerator.default.wrap(function _callee$(_context) {
529
528
  while (1) switch (_context.prev = _context.next) {
@@ -542,13 +541,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
542
541
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
543
542
  case 5:
544
543
  params.id = _this.attributes.id;
545
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
544
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
546
545
  _context.next = 8;
547
546
  break;
548
547
  }
549
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
548
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
550
549
  case 8:
551
- if (params['id']) {
550
+ if (params.id) {
552
551
  _context.next = 14;
553
552
  break;
554
553
  }
@@ -556,18 +555,15 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
556
555
  _context.next = 13;
557
556
  break;
558
557
  }
559
- params['id'] = _this.id;
558
+ params.id = _this.id;
560
559
  _context.next = 14;
561
560
  break;
562
561
  case 13:
563
562
  throw new errors.MissingParameterError('Parameter missing: id');
564
563
  case 14:
565
564
  _context.next = 16;
566
- return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id']), "/unlock"), 'POST', params, _this.options);
565
+ return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params.id), "/unlock"), 'POST', params, _this.options);
567
566
  case 16:
568
- response = _context.sent;
569
- return _context.abrupt("return");
570
- case 18:
571
567
  case "end":
572
568
  return _context.stop();
573
569
  }
@@ -576,7 +572,6 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
576
572
  // Resend user welcome email
577
573
  (0, _defineProperty2.default)(this, "resendWelcomeEmail", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
578
574
  var params,
579
- response,
580
575
  _args2 = arguments;
581
576
  return _regenerator.default.wrap(function _callee2$(_context2) {
582
577
  while (1) switch (_context2.prev = _context2.next) {
@@ -595,13 +590,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
595
590
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
596
591
  case 5:
597
592
  params.id = _this.attributes.id;
598
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
593
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
599
594
  _context2.next = 8;
600
595
  break;
601
596
  }
602
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
597
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
603
598
  case 8:
604
- if (params['id']) {
599
+ if (params.id) {
605
600
  _context2.next = 14;
606
601
  break;
607
602
  }
@@ -609,18 +604,15 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
609
604
  _context2.next = 13;
610
605
  break;
611
606
  }
612
- params['id'] = _this.id;
607
+ params.id = _this.id;
613
608
  _context2.next = 14;
614
609
  break;
615
610
  case 13:
616
611
  throw new errors.MissingParameterError('Parameter missing: id');
617
612
  case 14:
618
613
  _context2.next = 16;
619
- return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id']), "/resend_welcome_email"), 'POST', params, _this.options);
614
+ return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params.id), "/resend_welcome_email"), 'POST', params, _this.options);
620
615
  case 16:
621
- response = _context2.sent;
622
- return _context2.abrupt("return");
623
- case 18:
624
616
  case "end":
625
617
  return _context2.stop();
626
618
  }
@@ -629,7 +621,6 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
629
621
  // Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
630
622
  (0, _defineProperty2.default)(this, "user2faReset", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
631
623
  var params,
632
- response,
633
624
  _args3 = arguments;
634
625
  return _regenerator.default.wrap(function _callee3$(_context3) {
635
626
  while (1) switch (_context3.prev = _context3.next) {
@@ -648,13 +639,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
648
639
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
649
640
  case 5:
650
641
  params.id = _this.attributes.id;
651
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
642
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
652
643
  _context3.next = 8;
653
644
  break;
654
645
  }
655
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
646
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
656
647
  case 8:
657
- if (params['id']) {
648
+ if (params.id) {
658
649
  _context3.next = 14;
659
650
  break;
660
651
  }
@@ -662,18 +653,15 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
662
653
  _context3.next = 13;
663
654
  break;
664
655
  }
665
- params['id'] = _this.id;
656
+ params.id = _this.id;
666
657
  _context3.next = 14;
667
658
  break;
668
659
  case 13:
669
660
  throw new errors.MissingParameterError('Parameter missing: id');
670
661
  case 14:
671
662
  _context3.next = 16;
672
- return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id']), "/2fa/reset"), 'POST', params, _this.options);
663
+ return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params.id), "/2fa/reset"), 'POST', params, _this.options);
673
664
  case 16:
674
- response = _context3.sent;
675
- return _context3.abrupt("return");
676
- case 18:
677
665
  case "end":
678
666
  return _context3.stop();
679
667
  }
@@ -746,169 +734,169 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
746
734
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
747
735
  case 5:
748
736
  params.id = _this.attributes.id;
749
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
737
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
750
738
  _context4.next = 8;
751
739
  break;
752
740
  }
753
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
741
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
754
742
  case 8:
755
- if (!(params['change_password'] && !(0, _utils.isString)(params['change_password']))) {
743
+ if (!(params.change_password && !(0, _utils.isString)(params.change_password))) {
756
744
  _context4.next = 10;
757
745
  break;
758
746
  }
759
- throw new errors.InvalidParameterError("Bad parameter: change_password must be of type String, received ".concat((0, _utils.getType)(params['change_password'])));
747
+ throw new errors.InvalidParameterError("Bad parameter: change_password must be of type String, received ".concat((0, _utils.getType)(params.change_password)));
760
748
  case 10:
761
- if (!(params['change_password_confirmation'] && !(0, _utils.isString)(params['change_password_confirmation']))) {
749
+ if (!(params.change_password_confirmation && !(0, _utils.isString)(params.change_password_confirmation))) {
762
750
  _context4.next = 12;
763
751
  break;
764
752
  }
765
- throw new errors.InvalidParameterError("Bad parameter: change_password_confirmation must be of type String, received ".concat((0, _utils.getType)(params['change_password_confirmation'])));
753
+ throw new errors.InvalidParameterError("Bad parameter: change_password_confirmation must be of type String, received ".concat((0, _utils.getType)(params.change_password_confirmation)));
766
754
  case 12:
767
- if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
755
+ if (!(params.email && !(0, _utils.isString)(params.email))) {
768
756
  _context4.next = 14;
769
757
  break;
770
758
  }
771
- throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params['email'])));
759
+ throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params.email)));
772
760
  case 14:
773
- if (!(params['grant_permission'] && !(0, _utils.isString)(params['grant_permission']))) {
761
+ if (!(params.grant_permission && !(0, _utils.isString)(params.grant_permission))) {
774
762
  _context4.next = 16;
775
763
  break;
776
764
  }
777
- throw new errors.InvalidParameterError("Bad parameter: grant_permission must be of type String, received ".concat((0, _utils.getType)(params['grant_permission'])));
765
+ throw new errors.InvalidParameterError("Bad parameter: grant_permission must be of type String, received ".concat((0, _utils.getType)(params.grant_permission)));
778
766
  case 16:
779
- if (!(params['group_id'] && !(0, _utils.isInt)(params['group_id']))) {
767
+ if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
780
768
  _context4.next = 18;
781
769
  break;
782
770
  }
783
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params['group_id'])));
771
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
784
772
  case 18:
785
- if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
773
+ if (!(params.group_ids && !(0, _utils.isString)(params.group_ids))) {
786
774
  _context4.next = 20;
787
775
  break;
788
776
  }
789
- throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params['group_ids'])));
777
+ throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
790
778
  case 20:
791
- if (!(params['imported_password_hash'] && !(0, _utils.isString)(params['imported_password_hash']))) {
779
+ if (!(params.imported_password_hash && !(0, _utils.isString)(params.imported_password_hash))) {
792
780
  _context4.next = 22;
793
781
  break;
794
782
  }
795
- throw new errors.InvalidParameterError("Bad parameter: imported_password_hash must be of type String, received ".concat((0, _utils.getType)(params['imported_password_hash'])));
783
+ throw new errors.InvalidParameterError("Bad parameter: imported_password_hash must be of type String, received ".concat((0, _utils.getType)(params.imported_password_hash)));
796
784
  case 22:
797
- if (!(params['password'] && !(0, _utils.isString)(params['password']))) {
785
+ if (!(params.password && !(0, _utils.isString)(params.password))) {
798
786
  _context4.next = 24;
799
787
  break;
800
788
  }
801
- throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params['password'])));
789
+ throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params.password)));
802
790
  case 24:
803
- if (!(params['password_confirmation'] && !(0, _utils.isString)(params['password_confirmation']))) {
791
+ if (!(params.password_confirmation && !(0, _utils.isString)(params.password_confirmation))) {
804
792
  _context4.next = 26;
805
793
  break;
806
794
  }
807
- throw new errors.InvalidParameterError("Bad parameter: password_confirmation must be of type String, received ".concat((0, _utils.getType)(params['password_confirmation'])));
795
+ throw new errors.InvalidParameterError("Bad parameter: password_confirmation must be of type String, received ".concat((0, _utils.getType)(params.password_confirmation)));
808
796
  case 26:
809
- if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
797
+ if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
810
798
  _context4.next = 28;
811
799
  break;
812
800
  }
813
- throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params['allowed_ips'])));
801
+ throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
814
802
  case 28:
815
- if (!(params['authenticate_until'] && !(0, _utils.isString)(params['authenticate_until']))) {
803
+ if (!(params.authenticate_until && !(0, _utils.isString)(params.authenticate_until))) {
816
804
  _context4.next = 30;
817
805
  break;
818
806
  }
819
- throw new errors.InvalidParameterError("Bad parameter: authenticate_until must be of type String, received ".concat((0, _utils.getType)(params['authenticate_until'])));
807
+ throw new errors.InvalidParameterError("Bad parameter: authenticate_until must be of type String, received ".concat((0, _utils.getType)(params.authenticate_until)));
820
808
  case 30:
821
- if (!(params['authentication_method'] && !(0, _utils.isString)(params['authentication_method']))) {
809
+ if (!(params.authentication_method && !(0, _utils.isString)(params.authentication_method))) {
822
810
  _context4.next = 32;
823
811
  break;
824
812
  }
825
- throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params['authentication_method'])));
813
+ throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params.authentication_method)));
826
814
  case 32:
827
- if (!(params['header_text'] && !(0, _utils.isString)(params['header_text']))) {
815
+ if (!(params.header_text && !(0, _utils.isString)(params.header_text))) {
828
816
  _context4.next = 34;
829
817
  break;
830
818
  }
831
- throw new errors.InvalidParameterError("Bad parameter: header_text must be of type String, received ".concat((0, _utils.getType)(params['header_text'])));
819
+ throw new errors.InvalidParameterError("Bad parameter: header_text must be of type String, received ".concat((0, _utils.getType)(params.header_text)));
832
820
  case 34:
833
- if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
821
+ if (!(params.language && !(0, _utils.isString)(params.language))) {
834
822
  _context4.next = 36;
835
823
  break;
836
824
  }
837
- throw new errors.InvalidParameterError("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(params['language'])));
825
+ throw new errors.InvalidParameterError("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(params.language)));
838
826
  case 36:
839
- if (!(params['notification_daily_send_time'] && !(0, _utils.isInt)(params['notification_daily_send_time']))) {
827
+ if (!(params.notification_daily_send_time && !(0, _utils.isInt)(params.notification_daily_send_time))) {
840
828
  _context4.next = 38;
841
829
  break;
842
830
  }
843
- throw new errors.InvalidParameterError("Bad parameter: notification_daily_send_time must be of type Int, received ".concat((0, _utils.getType)(params['notification_daily_send_time'])));
831
+ throw new errors.InvalidParameterError("Bad parameter: notification_daily_send_time must be of type Int, received ".concat((0, _utils.getType)(params.notification_daily_send_time)));
844
832
  case 38:
845
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
833
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
846
834
  _context4.next = 40;
847
835
  break;
848
836
  }
849
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
837
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
850
838
  case 40:
851
- if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
839
+ if (!(params.company && !(0, _utils.isString)(params.company))) {
852
840
  _context4.next = 42;
853
841
  break;
854
842
  }
855
- throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
843
+ throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params.company)));
856
844
  case 42:
857
- if (!(params['notes'] && !(0, _utils.isString)(params['notes']))) {
845
+ if (!(params.notes && !(0, _utils.isString)(params.notes))) {
858
846
  _context4.next = 44;
859
847
  break;
860
848
  }
861
- throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params['notes'])));
849
+ throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
862
850
  case 44:
863
- if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
851
+ if (!(params.password_validity_days && !(0, _utils.isInt)(params.password_validity_days))) {
864
852
  _context4.next = 46;
865
853
  break;
866
854
  }
867
- throw new errors.InvalidParameterError("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(params['password_validity_days'])));
855
+ throw new errors.InvalidParameterError("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(params.password_validity_days)));
868
856
  case 46:
869
- if (!(params['require_login_by'] && !(0, _utils.isString)(params['require_login_by']))) {
857
+ if (!(params.require_login_by && !(0, _utils.isString)(params.require_login_by))) {
870
858
  _context4.next = 48;
871
859
  break;
872
860
  }
873
- throw new errors.InvalidParameterError("Bad parameter: require_login_by must be of type String, received ".concat((0, _utils.getType)(params['require_login_by'])));
861
+ throw new errors.InvalidParameterError("Bad parameter: require_login_by must be of type String, received ".concat((0, _utils.getType)(params.require_login_by)));
874
862
  case 48:
875
- if (!(params['ssl_required'] && !(0, _utils.isString)(params['ssl_required']))) {
863
+ if (!(params.ssl_required && !(0, _utils.isString)(params.ssl_required))) {
876
864
  _context4.next = 50;
877
865
  break;
878
866
  }
879
- throw new errors.InvalidParameterError("Bad parameter: ssl_required must be of type String, received ".concat((0, _utils.getType)(params['ssl_required'])));
867
+ throw new errors.InvalidParameterError("Bad parameter: ssl_required must be of type String, received ".concat((0, _utils.getType)(params.ssl_required)));
880
868
  case 50:
881
- if (!(params['sso_strategy_id'] && !(0, _utils.isInt)(params['sso_strategy_id']))) {
869
+ if (!(params.sso_strategy_id && !(0, _utils.isInt)(params.sso_strategy_id))) {
882
870
  _context4.next = 52;
883
871
  break;
884
872
  }
885
- throw new errors.InvalidParameterError("Bad parameter: sso_strategy_id must be of type Int, received ".concat((0, _utils.getType)(params['sso_strategy_id'])));
873
+ throw new errors.InvalidParameterError("Bad parameter: sso_strategy_id must be of type Int, received ".concat((0, _utils.getType)(params.sso_strategy_id)));
886
874
  case 52:
887
- if (!(params['require_2fa'] && !(0, _utils.isString)(params['require_2fa']))) {
875
+ if (!(params.require_2fa && !(0, _utils.isString)(params.require_2fa))) {
888
876
  _context4.next = 54;
889
877
  break;
890
878
  }
891
- throw new errors.InvalidParameterError("Bad parameter: require_2fa must be of type String, received ".concat((0, _utils.getType)(params['require_2fa'])));
879
+ throw new errors.InvalidParameterError("Bad parameter: require_2fa must be of type String, received ".concat((0, _utils.getType)(params.require_2fa)));
892
880
  case 54:
893
- if (!(params['time_zone'] && !(0, _utils.isString)(params['time_zone']))) {
881
+ if (!(params.time_zone && !(0, _utils.isString)(params.time_zone))) {
894
882
  _context4.next = 56;
895
883
  break;
896
884
  }
897
- throw new errors.InvalidParameterError("Bad parameter: time_zone must be of type String, received ".concat((0, _utils.getType)(params['time_zone'])));
885
+ throw new errors.InvalidParameterError("Bad parameter: time_zone must be of type String, received ".concat((0, _utils.getType)(params.time_zone)));
898
886
  case 56:
899
- if (!(params['user_root'] && !(0, _utils.isString)(params['user_root']))) {
887
+ if (!(params.user_root && !(0, _utils.isString)(params.user_root))) {
900
888
  _context4.next = 58;
901
889
  break;
902
890
  }
903
- throw new errors.InvalidParameterError("Bad parameter: user_root must be of type String, received ".concat((0, _utils.getType)(params['user_root'])));
891
+ throw new errors.InvalidParameterError("Bad parameter: user_root must be of type String, received ".concat((0, _utils.getType)(params.user_root)));
904
892
  case 58:
905
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
893
+ if (!(params.username && !(0, _utils.isString)(params.username))) {
906
894
  _context4.next = 60;
907
895
  break;
908
896
  }
909
- throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params['username'])));
897
+ throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
910
898
  case 60:
911
- if (params['id']) {
899
+ if (params.id) {
912
900
  _context4.next = 66;
913
901
  break;
914
902
  }
@@ -916,14 +904,14 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
916
904
  _context4.next = 65;
917
905
  break;
918
906
  }
919
- params['id'] = _this.id;
907
+ params.id = _this.id;
920
908
  _context4.next = 66;
921
909
  break;
922
910
  case 65:
923
911
  throw new errors.MissingParameterError('Parameter missing: id');
924
912
  case 66:
925
913
  _context4.next = 68;
926
- return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
914
+ return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
927
915
  case 68:
928
916
  response = _context4.sent;
929
917
  return _context4.abrupt("return", new User(response === null || response === void 0 ? void 0 : response.data, _this.options));
@@ -935,7 +923,6 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
935
923
  })));
936
924
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
937
925
  var params,
938
- response,
939
926
  _args5 = arguments;
940
927
  return _regenerator.default.wrap(function _callee5$(_context5) {
941
928
  while (1) switch (_context5.prev = _context5.next) {
@@ -954,13 +941,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
954
941
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
955
942
  case 5:
956
943
  params.id = _this.attributes.id;
957
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
944
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
958
945
  _context5.next = 8;
959
946
  break;
960
947
  }
961
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
948
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
962
949
  case 8:
963
- if (params['id']) {
950
+ if (params.id) {
964
951
  _context5.next = 14;
965
952
  break;
966
953
  }
@@ -968,18 +955,15 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
968
955
  _context5.next = 13;
969
956
  break;
970
957
  }
971
- params['id'] = _this.id;
958
+ params.id = _this.id;
972
959
  _context5.next = 14;
973
960
  break;
974
961
  case 13:
975
962
  throw new errors.MissingParameterError('Parameter missing: id');
976
963
  case 14:
977
964
  _context5.next = 16;
978
- return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
965
+ return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
979
966
  case 16:
980
- response = _context5.sent;
981
- return _context5.abrupt("return");
982
- case 18:
983
967
  case "end":
984
968
  return _context5.stop();
985
969
  }
@@ -990,28 +974,28 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
990
974
  return _this.delete(params);
991
975
  });
992
976
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
993
- var newObject, _newObject;
977
+ var _newObject, newObject;
994
978
  return _regenerator.default.wrap(function _callee6$(_context6) {
995
979
  while (1) switch (_context6.prev = _context6.next) {
996
980
  case 0:
997
- if (!_this.attributes['id']) {
998
- _context6.next = 8;
981
+ if (!_this.attributes.id) {
982
+ _context6.next = 6;
999
983
  break;
1000
984
  }
1001
985
  _context6.next = 3;
1002
986
  return _this.update(_this.attributes);
1003
987
  case 3:
1004
- newObject = _context6.sent;
1005
- _this.attributes = _objectSpread({}, newObject.attributes);
1006
- return _context6.abrupt("return", true);
1007
- case 8:
1008
- _context6.next = 10;
1009
- return User.create(_this.attributes, _this.options);
1010
- case 10:
1011
988
  _newObject = _context6.sent;
1012
989
  _this.attributes = _objectSpread({}, _newObject.attributes);
1013
990
  return _context6.abrupt("return", true);
1014
- case 13:
991
+ case 6:
992
+ _context6.next = 8;
993
+ return User.create(_this.attributes, _this.options);
994
+ case 8:
995
+ newObject = _context6.sent;
996
+ _this.attributes = _objectSpread({}, newObject.attributes);
997
+ return _context6.abrupt("return", true);
998
+ case 11:
1015
999
  case "end":
1016
1000
  return _context6.stop();
1017
1001
  }
@@ -1054,32 +1038,32 @@ _class = User;
1054
1038
  case 0:
1055
1039
  params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
1056
1040
  options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
1057
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
1041
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
1058
1042
  _context7.next = 4;
1059
1043
  break;
1060
1044
  }
1061
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
1045
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
1062
1046
  case 4:
1063
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
1047
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
1064
1048
  _context7.next = 6;
1065
1049
  break;
1066
1050
  }
1067
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
1051
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
1068
1052
  case 6:
1069
- if (!(params['ids'] && !(0, _utils.isString)(params['ids']))) {
1053
+ if (!(params.ids && !(0, _utils.isString)(params.ids))) {
1070
1054
  _context7.next = 8;
1071
1055
  break;
1072
1056
  }
1073
- throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params['ids'])));
1057
+ throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
1074
1058
  case 8:
1075
- if (!(params['search'] && !(0, _utils.isString)(params['search']))) {
1059
+ if (!(params.search && !(0, _utils.isString)(params.search))) {
1076
1060
  _context7.next = 10;
1077
1061
  break;
1078
1062
  }
1079
- throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params['search'])));
1063
+ throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params.search)));
1080
1064
  case 10:
1081
1065
  _context7.next = 12;
1082
- return _Api.default.sendRequest("/users", 'GET', params, options);
1066
+ return _Api.default.sendRequest('/users', 'GET', params, options);
1083
1067
  case 12:
1084
1068
  response = _context7.sent;
1085
1069
  return _context7.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
@@ -1115,21 +1099,21 @@ _class = User;
1115
1099
  }
1116
1100
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
1117
1101
  case 4:
1118
- params['id'] = id;
1119
- if (params['id']) {
1102
+ params.id = id;
1103
+ if (params.id) {
1120
1104
  _context8.next = 7;
1121
1105
  break;
1122
1106
  }
1123
1107
  throw new errors.MissingParameterError('Parameter missing: id');
1124
1108
  case 7:
1125
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
1109
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
1126
1110
  _context8.next = 9;
1127
1111
  break;
1128
1112
  }
1129
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
1113
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
1130
1114
  case 9:
1131
1115
  _context8.next = 11;
1132
- return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
1116
+ return _Api.default.sendRequest("/users/".concat(encodeURIComponent(params.id)), 'GET', params, options);
1133
1117
  case 11:
1134
1118
  response = _context8.sent;
1135
1119
  return _context8.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -1204,170 +1188,170 @@ _class = User;
1204
1188
  case 0:
1205
1189
  params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
1206
1190
  options = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : {};
1207
- if (params['username']) {
1191
+ if (params.username) {
1208
1192
  _context9.next = 4;
1209
1193
  break;
1210
1194
  }
1211
1195
  throw new errors.MissingParameterError('Parameter missing: username');
1212
1196
  case 4:
1213
- if (!(params['change_password'] && !(0, _utils.isString)(params['change_password']))) {
1197
+ if (!(params.change_password && !(0, _utils.isString)(params.change_password))) {
1214
1198
  _context9.next = 6;
1215
1199
  break;
1216
1200
  }
1217
- throw new errors.InvalidParameterError("Bad parameter: change_password must be of type String, received ".concat((0, _utils.getType)(params['change_password'])));
1201
+ throw new errors.InvalidParameterError("Bad parameter: change_password must be of type String, received ".concat((0, _utils.getType)(params.change_password)));
1218
1202
  case 6:
1219
- if (!(params['change_password_confirmation'] && !(0, _utils.isString)(params['change_password_confirmation']))) {
1203
+ if (!(params.change_password_confirmation && !(0, _utils.isString)(params.change_password_confirmation))) {
1220
1204
  _context9.next = 8;
1221
1205
  break;
1222
1206
  }
1223
- throw new errors.InvalidParameterError("Bad parameter: change_password_confirmation must be of type String, received ".concat((0, _utils.getType)(params['change_password_confirmation'])));
1207
+ throw new errors.InvalidParameterError("Bad parameter: change_password_confirmation must be of type String, received ".concat((0, _utils.getType)(params.change_password_confirmation)));
1224
1208
  case 8:
1225
- if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
1209
+ if (!(params.email && !(0, _utils.isString)(params.email))) {
1226
1210
  _context9.next = 10;
1227
1211
  break;
1228
1212
  }
1229
- throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params['email'])));
1213
+ throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params.email)));
1230
1214
  case 10:
1231
- if (!(params['grant_permission'] && !(0, _utils.isString)(params['grant_permission']))) {
1215
+ if (!(params.grant_permission && !(0, _utils.isString)(params.grant_permission))) {
1232
1216
  _context9.next = 12;
1233
1217
  break;
1234
1218
  }
1235
- throw new errors.InvalidParameterError("Bad parameter: grant_permission must be of type String, received ".concat((0, _utils.getType)(params['grant_permission'])));
1219
+ throw new errors.InvalidParameterError("Bad parameter: grant_permission must be of type String, received ".concat((0, _utils.getType)(params.grant_permission)));
1236
1220
  case 12:
1237
- if (!(params['group_id'] && !(0, _utils.isInt)(params['group_id']))) {
1221
+ if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
1238
1222
  _context9.next = 14;
1239
1223
  break;
1240
1224
  }
1241
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params['group_id'])));
1225
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
1242
1226
  case 14:
1243
- if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
1227
+ if (!(params.group_ids && !(0, _utils.isString)(params.group_ids))) {
1244
1228
  _context9.next = 16;
1245
1229
  break;
1246
1230
  }
1247
- throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params['group_ids'])));
1231
+ throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
1248
1232
  case 16:
1249
- if (!(params['imported_password_hash'] && !(0, _utils.isString)(params['imported_password_hash']))) {
1233
+ if (!(params.imported_password_hash && !(0, _utils.isString)(params.imported_password_hash))) {
1250
1234
  _context9.next = 18;
1251
1235
  break;
1252
1236
  }
1253
- throw new errors.InvalidParameterError("Bad parameter: imported_password_hash must be of type String, received ".concat((0, _utils.getType)(params['imported_password_hash'])));
1237
+ throw new errors.InvalidParameterError("Bad parameter: imported_password_hash must be of type String, received ".concat((0, _utils.getType)(params.imported_password_hash)));
1254
1238
  case 18:
1255
- if (!(params['password'] && !(0, _utils.isString)(params['password']))) {
1239
+ if (!(params.password && !(0, _utils.isString)(params.password))) {
1256
1240
  _context9.next = 20;
1257
1241
  break;
1258
1242
  }
1259
- throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params['password'])));
1243
+ throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params.password)));
1260
1244
  case 20:
1261
- if (!(params['password_confirmation'] && !(0, _utils.isString)(params['password_confirmation']))) {
1245
+ if (!(params.password_confirmation && !(0, _utils.isString)(params.password_confirmation))) {
1262
1246
  _context9.next = 22;
1263
1247
  break;
1264
1248
  }
1265
- throw new errors.InvalidParameterError("Bad parameter: password_confirmation must be of type String, received ".concat((0, _utils.getType)(params['password_confirmation'])));
1249
+ throw new errors.InvalidParameterError("Bad parameter: password_confirmation must be of type String, received ".concat((0, _utils.getType)(params.password_confirmation)));
1266
1250
  case 22:
1267
- if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
1251
+ if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
1268
1252
  _context9.next = 24;
1269
1253
  break;
1270
1254
  }
1271
- throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params['allowed_ips'])));
1255
+ throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
1272
1256
  case 24:
1273
- if (!(params['authenticate_until'] && !(0, _utils.isString)(params['authenticate_until']))) {
1257
+ if (!(params.authenticate_until && !(0, _utils.isString)(params.authenticate_until))) {
1274
1258
  _context9.next = 26;
1275
1259
  break;
1276
1260
  }
1277
- throw new errors.InvalidParameterError("Bad parameter: authenticate_until must be of type String, received ".concat((0, _utils.getType)(params['authenticate_until'])));
1261
+ throw new errors.InvalidParameterError("Bad parameter: authenticate_until must be of type String, received ".concat((0, _utils.getType)(params.authenticate_until)));
1278
1262
  case 26:
1279
- if (!(params['authentication_method'] && !(0, _utils.isString)(params['authentication_method']))) {
1263
+ if (!(params.authentication_method && !(0, _utils.isString)(params.authentication_method))) {
1280
1264
  _context9.next = 28;
1281
1265
  break;
1282
1266
  }
1283
- throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params['authentication_method'])));
1267
+ throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params.authentication_method)));
1284
1268
  case 28:
1285
- if (!(params['header_text'] && !(0, _utils.isString)(params['header_text']))) {
1269
+ if (!(params.header_text && !(0, _utils.isString)(params.header_text))) {
1286
1270
  _context9.next = 30;
1287
1271
  break;
1288
1272
  }
1289
- throw new errors.InvalidParameterError("Bad parameter: header_text must be of type String, received ".concat((0, _utils.getType)(params['header_text'])));
1273
+ throw new errors.InvalidParameterError("Bad parameter: header_text must be of type String, received ".concat((0, _utils.getType)(params.header_text)));
1290
1274
  case 30:
1291
- if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
1275
+ if (!(params.language && !(0, _utils.isString)(params.language))) {
1292
1276
  _context9.next = 32;
1293
1277
  break;
1294
1278
  }
1295
- throw new errors.InvalidParameterError("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(params['language'])));
1279
+ throw new errors.InvalidParameterError("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(params.language)));
1296
1280
  case 32:
1297
- if (!(params['notification_daily_send_time'] && !(0, _utils.isInt)(params['notification_daily_send_time']))) {
1281
+ if (!(params.notification_daily_send_time && !(0, _utils.isInt)(params.notification_daily_send_time))) {
1298
1282
  _context9.next = 34;
1299
1283
  break;
1300
1284
  }
1301
- throw new errors.InvalidParameterError("Bad parameter: notification_daily_send_time must be of type Int, received ".concat((0, _utils.getType)(params['notification_daily_send_time'])));
1285
+ throw new errors.InvalidParameterError("Bad parameter: notification_daily_send_time must be of type Int, received ".concat((0, _utils.getType)(params.notification_daily_send_time)));
1302
1286
  case 34:
1303
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
1287
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
1304
1288
  _context9.next = 36;
1305
1289
  break;
1306
1290
  }
1307
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
1291
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
1308
1292
  case 36:
1309
- if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
1293
+ if (!(params.company && !(0, _utils.isString)(params.company))) {
1310
1294
  _context9.next = 38;
1311
1295
  break;
1312
1296
  }
1313
- throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
1297
+ throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params.company)));
1314
1298
  case 38:
1315
- if (!(params['notes'] && !(0, _utils.isString)(params['notes']))) {
1299
+ if (!(params.notes && !(0, _utils.isString)(params.notes))) {
1316
1300
  _context9.next = 40;
1317
1301
  break;
1318
1302
  }
1319
- throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params['notes'])));
1303
+ throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
1320
1304
  case 40:
1321
- if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
1305
+ if (!(params.password_validity_days && !(0, _utils.isInt)(params.password_validity_days))) {
1322
1306
  _context9.next = 42;
1323
1307
  break;
1324
1308
  }
1325
- throw new errors.InvalidParameterError("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(params['password_validity_days'])));
1309
+ throw new errors.InvalidParameterError("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(params.password_validity_days)));
1326
1310
  case 42:
1327
- if (!(params['require_login_by'] && !(0, _utils.isString)(params['require_login_by']))) {
1311
+ if (!(params.require_login_by && !(0, _utils.isString)(params.require_login_by))) {
1328
1312
  _context9.next = 44;
1329
1313
  break;
1330
1314
  }
1331
- throw new errors.InvalidParameterError("Bad parameter: require_login_by must be of type String, received ".concat((0, _utils.getType)(params['require_login_by'])));
1315
+ throw new errors.InvalidParameterError("Bad parameter: require_login_by must be of type String, received ".concat((0, _utils.getType)(params.require_login_by)));
1332
1316
  case 44:
1333
- if (!(params['ssl_required'] && !(0, _utils.isString)(params['ssl_required']))) {
1317
+ if (!(params.ssl_required && !(0, _utils.isString)(params.ssl_required))) {
1334
1318
  _context9.next = 46;
1335
1319
  break;
1336
1320
  }
1337
- throw new errors.InvalidParameterError("Bad parameter: ssl_required must be of type String, received ".concat((0, _utils.getType)(params['ssl_required'])));
1321
+ throw new errors.InvalidParameterError("Bad parameter: ssl_required must be of type String, received ".concat((0, _utils.getType)(params.ssl_required)));
1338
1322
  case 46:
1339
- if (!(params['sso_strategy_id'] && !(0, _utils.isInt)(params['sso_strategy_id']))) {
1323
+ if (!(params.sso_strategy_id && !(0, _utils.isInt)(params.sso_strategy_id))) {
1340
1324
  _context9.next = 48;
1341
1325
  break;
1342
1326
  }
1343
- throw new errors.InvalidParameterError("Bad parameter: sso_strategy_id must be of type Int, received ".concat((0, _utils.getType)(params['sso_strategy_id'])));
1327
+ throw new errors.InvalidParameterError("Bad parameter: sso_strategy_id must be of type Int, received ".concat((0, _utils.getType)(params.sso_strategy_id)));
1344
1328
  case 48:
1345
- if (!(params['require_2fa'] && !(0, _utils.isString)(params['require_2fa']))) {
1329
+ if (!(params.require_2fa && !(0, _utils.isString)(params.require_2fa))) {
1346
1330
  _context9.next = 50;
1347
1331
  break;
1348
1332
  }
1349
- throw new errors.InvalidParameterError("Bad parameter: require_2fa must be of type String, received ".concat((0, _utils.getType)(params['require_2fa'])));
1333
+ throw new errors.InvalidParameterError("Bad parameter: require_2fa must be of type String, received ".concat((0, _utils.getType)(params.require_2fa)));
1350
1334
  case 50:
1351
- if (!(params['time_zone'] && !(0, _utils.isString)(params['time_zone']))) {
1335
+ if (!(params.time_zone && !(0, _utils.isString)(params.time_zone))) {
1352
1336
  _context9.next = 52;
1353
1337
  break;
1354
1338
  }
1355
- throw new errors.InvalidParameterError("Bad parameter: time_zone must be of type String, received ".concat((0, _utils.getType)(params['time_zone'])));
1339
+ throw new errors.InvalidParameterError("Bad parameter: time_zone must be of type String, received ".concat((0, _utils.getType)(params.time_zone)));
1356
1340
  case 52:
1357
- if (!(params['user_root'] && !(0, _utils.isString)(params['user_root']))) {
1341
+ if (!(params.user_root && !(0, _utils.isString)(params.user_root))) {
1358
1342
  _context9.next = 54;
1359
1343
  break;
1360
1344
  }
1361
- throw new errors.InvalidParameterError("Bad parameter: user_root must be of type String, received ".concat((0, _utils.getType)(params['user_root'])));
1345
+ throw new errors.InvalidParameterError("Bad parameter: user_root must be of type String, received ".concat((0, _utils.getType)(params.user_root)));
1362
1346
  case 54:
1363
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
1347
+ if (!(params.username && !(0, _utils.isString)(params.username))) {
1364
1348
  _context9.next = 56;
1365
1349
  break;
1366
1350
  }
1367
- throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params['username'])));
1351
+ throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
1368
1352
  case 56:
1369
1353
  _context9.next = 58;
1370
- return _Api.default.sendRequest("/users", 'POST', params, options);
1354
+ return _Api.default.sendRequest('/users', 'POST', params, options);
1371
1355
  case 58:
1372
1356
  response = _context9.sent;
1373
1357
  return _context9.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));