files.com 1.0.195 → 1.0.198

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/File.md +4 -0
  3. package/docs/models/Folder.md +2 -0
  4. package/lib/models/ActionNotificationExport.js +11 -11
  5. package/lib/models/ActionNotificationExportResult.js +4 -4
  6. package/lib/models/ActionWebhookFailure.js +1 -1
  7. package/lib/models/ApiKey.js +15 -15
  8. package/lib/models/App.js +2 -2
  9. package/lib/models/As2IncomingMessage.js +3 -3
  10. package/lib/models/As2OutgoingMessage.js +3 -3
  11. package/lib/models/As2Partner.js +11 -11
  12. package/lib/models/As2Station.js +10 -10
  13. package/lib/models/Automation.js +21 -21
  14. package/lib/models/AutomationRun.js +6 -6
  15. package/lib/models/BandwidthSnapshot.js +2 -2
  16. package/lib/models/Behavior.js +22 -22
  17. package/lib/models/Bundle.js +19 -19
  18. package/lib/models/BundleDownload.js +4 -4
  19. package/lib/models/BundleRecipient.js +10 -10
  20. package/lib/models/BundleRegistration.js +4 -4
  21. package/lib/models/Clickwrap.js +11 -11
  22. package/lib/models/DnsRecord.js +2 -2
  23. package/lib/models/ExternalEvent.js +6 -6
  24. package/lib/models/File.js +23 -20
  25. package/lib/models/FileComment.js +8 -8
  26. package/lib/models/FileCommentReaction.js +4 -4
  27. package/lib/models/FileMigration.js +2 -2
  28. package/lib/models/Folder.js +12 -9
  29. package/lib/models/FormFieldSet.js +10 -10
  30. package/lib/models/Group.js +11 -11
  31. package/lib/models/GroupUser.js +8 -8
  32. package/lib/models/History.js +31 -31
  33. package/lib/models/HistoryExport.js +24 -24
  34. package/lib/models/HistoryExportResult.js +4 -4
  35. package/lib/models/InboxRecipient.js +10 -10
  36. package/lib/models/InboxRegistration.js +3 -3
  37. package/lib/models/InboxUpload.js +4 -4
  38. package/lib/models/Invoice.js +4 -4
  39. package/lib/models/IpAddress.js +4 -4
  40. package/lib/models/Lock.js +9 -9
  41. package/lib/models/Message.js +12 -12
  42. package/lib/models/MessageComment.js +10 -10
  43. package/lib/models/MessageCommentReaction.js +9 -9
  44. package/lib/models/MessageReaction.js +9 -9
  45. package/lib/models/Notification.js +18 -18
  46. package/lib/models/Payment.js +4 -4
  47. package/lib/models/Permission.js +11 -11
  48. package/lib/models/Priority.js +3 -3
  49. package/lib/models/Project.js +7 -7
  50. package/lib/models/PublicKey.js +10 -10
  51. package/lib/models/RemoteBandwidthSnapshot.js +2 -2
  52. package/lib/models/RemoteServer.js +52 -52
  53. package/lib/models/Request.js +12 -12
  54. package/lib/models/Session.js +4 -4
  55. package/lib/models/SettingsChange.js +2 -2
  56. package/lib/models/Site.js +57 -57
  57. package/lib/models/SsoStrategy.js +5 -5
  58. package/lib/models/Style.js +4 -4
  59. package/lib/models/UsageDailySnapshot.js +2 -2
  60. package/lib/models/UsageSnapshot.js +2 -2
  61. package/lib/models/User.js +36 -36
  62. package/lib/models/UserCipherUse.js +3 -3
  63. package/lib/models/UserRequest.js +8 -8
  64. package/lib/models/WebhookTest.js +6 -6
  65. package/package.json +1 -1
  66. package/src/models/ActionNotificationExport.js +11 -11
  67. package/src/models/ActionNotificationExportResult.js +4 -4
  68. package/src/models/ActionWebhookFailure.js +1 -1
  69. package/src/models/ApiKey.js +15 -15
  70. package/src/models/App.js +2 -2
  71. package/src/models/As2IncomingMessage.js +3 -3
  72. package/src/models/As2OutgoingMessage.js +3 -3
  73. package/src/models/As2Partner.js +11 -11
  74. package/src/models/As2Station.js +10 -10
  75. package/src/models/Automation.js +21 -21
  76. package/src/models/AutomationRun.js +6 -6
  77. package/src/models/BandwidthSnapshot.js +2 -2
  78. package/src/models/Behavior.js +22 -22
  79. package/src/models/Bundle.js +19 -19
  80. package/src/models/BundleDownload.js +4 -4
  81. package/src/models/BundleRecipient.js +10 -10
  82. package/src/models/BundleRegistration.js +4 -4
  83. package/src/models/Clickwrap.js +11 -11
  84. package/src/models/DnsRecord.js +2 -2
  85. package/src/models/ExternalEvent.js +6 -6
  86. package/src/models/File.js +23 -20
  87. package/src/models/FileComment.js +8 -8
  88. package/src/models/FileCommentReaction.js +4 -4
  89. package/src/models/FileMigration.js +2 -2
  90. package/src/models/Folder.js +12 -9
  91. package/src/models/FormFieldSet.js +10 -10
  92. package/src/models/Group.js +11 -11
  93. package/src/models/GroupUser.js +8 -8
  94. package/src/models/History.js +31 -31
  95. package/src/models/HistoryExport.js +24 -24
  96. package/src/models/HistoryExportResult.js +4 -4
  97. package/src/models/InboxRecipient.js +10 -10
  98. package/src/models/InboxRegistration.js +3 -3
  99. package/src/models/InboxUpload.js +4 -4
  100. package/src/models/Invoice.js +4 -4
  101. package/src/models/IpAddress.js +4 -4
  102. package/src/models/Lock.js +9 -9
  103. package/src/models/Message.js +12 -12
  104. package/src/models/MessageComment.js +10 -10
  105. package/src/models/MessageCommentReaction.js +9 -9
  106. package/src/models/MessageReaction.js +9 -9
  107. package/src/models/Notification.js +18 -18
  108. package/src/models/Payment.js +4 -4
  109. package/src/models/Permission.js +11 -11
  110. package/src/models/Priority.js +3 -3
  111. package/src/models/Project.js +7 -7
  112. package/src/models/PublicKey.js +10 -10
  113. package/src/models/RemoteBandwidthSnapshot.js +2 -2
  114. package/src/models/RemoteServer.js +52 -52
  115. package/src/models/Request.js +12 -12
  116. package/src/models/Session.js +4 -4
  117. package/src/models/SettingsChange.js +2 -2
  118. package/src/models/Site.js +57 -57
  119. package/src/models/SsoStrategy.js +5 -5
  120. package/src/models/Style.js +4 -4
  121. package/src/models/UsageDailySnapshot.js +2 -2
  122. package/src/models/UsageSnapshot.js +2 -2
  123. package/src/models/User.js +36 -36
  124. package/src/models/UserCipherUse.js +3 -3
  125. package/src/models/UserRequest.js +8 -8
  126. package/src/models/WebhookTest.js +6 -6
@@ -348,7 +348,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
348
348
 
349
349
  case 42:
350
350
  _context.next = 44;
351
- return _Api.default.sendRequest("/automations/".concat(params['id']), 'PATCH', params, _this.options);
351
+ return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
352
352
 
353
353
  case 44:
354
354
  response = _context.sent;
@@ -416,7 +416,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
416
416
 
417
417
  case 14:
418
418
  _context2.next = 16;
419
- return _Api.default.sendRequest("/automations/".concat(params['id']), 'DELETE', params, _this.options);
419
+ return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
420
420
 
421
421
  case 16:
422
422
  response = _context2.sent;
@@ -475,7 +475,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
475
475
  break;
476
476
  }
477
477
 
478
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
478
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
479
479
 
480
480
  case 4:
481
481
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -483,7 +483,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
483
483
  break;
484
484
  }
485
485
 
486
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
486
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
487
487
 
488
488
  case 6:
489
489
  if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
@@ -491,7 +491,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
491
491
  break;
492
492
  }
493
493
 
494
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
494
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params['automation'])));
495
495
 
496
496
  case 8:
497
497
  _context3.next = 10;
@@ -551,11 +551,11 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
551
551
  break;
552
552
  }
553
553
 
554
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
554
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
555
555
 
556
556
  case 9:
557
557
  _context4.next = 11;
558
- return _Api.default.sendRequest("/automations/".concat(params['id']), 'GET', params, options);
558
+ return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
559
559
 
560
560
  case 11:
561
561
  response = _context4.sent;
@@ -603,7 +603,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
603
603
  break;
604
604
  }
605
605
 
606
- throw new errors.InvalidParameterError("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(source)));
606
+ throw new errors.InvalidParameterError("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(params['source'])));
607
607
 
608
608
  case 6:
609
609
  if (!(params['destination'] && !(0, _utils.isString)(params['destination']))) {
@@ -611,7 +611,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
611
611
  break;
612
612
  }
613
613
 
614
- throw new errors.InvalidParameterError("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(destination)));
614
+ throw new errors.InvalidParameterError("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(params['destination'])));
615
615
 
616
616
  case 8:
617
617
  if (!(params['destinations'] && !(0, _utils.isArray)(params['destinations']))) {
@@ -619,7 +619,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
619
619
  break;
620
620
  }
621
621
 
622
- throw new errors.InvalidParameterError("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(destinations)));
622
+ throw new errors.InvalidParameterError("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(params['destinations'])));
623
623
 
624
624
  case 10:
625
625
  if (!(params['destination_replace_from'] && !(0, _utils.isString)(params['destination_replace_from']))) {
@@ -627,7 +627,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
627
627
  break;
628
628
  }
629
629
 
630
- throw new errors.InvalidParameterError("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(destination_replace_from)));
630
+ throw new errors.InvalidParameterError("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(params['destination_replace_from'])));
631
631
 
632
632
  case 12:
633
633
  if (!(params['destination_replace_to'] && !(0, _utils.isString)(params['destination_replace_to']))) {
@@ -635,7 +635,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
635
635
  break;
636
636
  }
637
637
 
638
- throw new errors.InvalidParameterError("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(destination_replace_to)));
638
+ throw new errors.InvalidParameterError("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(params['destination_replace_to'])));
639
639
 
640
640
  case 14:
641
641
  if (!(params['interval'] && !(0, _utils.isString)(params['interval']))) {
@@ -643,7 +643,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
643
643
  break;
644
644
  }
645
645
 
646
- throw new errors.InvalidParameterError("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(interval)));
646
+ throw new errors.InvalidParameterError("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(params['interval'])));
647
647
 
648
648
  case 16:
649
649
  if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
@@ -651,7 +651,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
651
651
  break;
652
652
  }
653
653
 
654
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
654
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
655
655
 
656
656
  case 18:
657
657
  if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
@@ -659,7 +659,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
659
659
  break;
660
660
  }
661
661
 
662
- throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
662
+ throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params['user_ids'])));
663
663
 
664
664
  case 20:
665
665
  if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
@@ -667,7 +667,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
667
667
  break;
668
668
  }
669
669
 
670
- throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
670
+ throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params['group_ids'])));
671
671
 
672
672
  case 22:
673
673
  if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
@@ -675,7 +675,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
675
675
  break;
676
676
  }
677
677
 
678
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
678
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params['description'])));
679
679
 
680
680
  case 24:
681
681
  if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
@@ -683,7 +683,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
683
683
  break;
684
684
  }
685
685
 
686
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
686
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
687
687
 
688
688
  case 26:
689
689
  if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
@@ -691,7 +691,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
691
691
  break;
692
692
  }
693
693
 
694
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
694
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params['trigger'])));
695
695
 
696
696
  case 28:
697
697
  if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
@@ -699,7 +699,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
699
699
  break;
700
700
  }
701
701
 
702
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
702
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params['trigger_actions'])));
703
703
 
704
704
  case 30:
705
705
  if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
@@ -707,7 +707,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
707
707
  break;
708
708
  }
709
709
 
710
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
710
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params['automation'])));
711
711
 
712
712
  case 32:
713
713
  _context5.next = 34;
@@ -108,7 +108,7 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
108
108
  break;
109
109
  }
110
110
 
111
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(user_id)));
111
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
112
112
 
113
113
  case 6:
114
114
  if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
@@ -116,7 +116,7 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
116
116
  break;
117
117
  }
118
118
 
119
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
119
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
120
120
 
121
121
  case 8:
122
122
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -124,7 +124,7 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
124
124
  break;
125
125
  }
126
126
 
127
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
127
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
128
128
 
129
129
  case 10:
130
130
  if (!(params['automation_id'] && !(0, _utils.isInt)(params['automation_id']))) {
@@ -132,7 +132,7 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
132
132
  break;
133
133
  }
134
134
 
135
- throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(automation_id)));
135
+ throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params['automation_id'])));
136
136
 
137
137
  case 12:
138
138
  _context.next = 14;
@@ -192,11 +192,11 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
192
192
  break;
193
193
  }
194
194
 
195
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
195
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
196
196
 
197
197
  case 9:
198
198
  _context2.next = 11;
199
- return _Api.default.sendRequest("/automation_runs/".concat(params['id']), 'GET', params, options);
199
+ return _Api.default.sendRequest("/automation_runs/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
200
200
 
201
201
  case 11:
202
202
  response = _context2.sent;
@@ -109,7 +109,7 @@ var BandwidthSnapshot = /*#__PURE__*/(0, _createClass2.default)(function Bandwid
109
109
  break;
110
110
  }
111
111
 
112
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
112
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
113
113
 
114
114
  case 4:
115
115
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -117,7 +117,7 @@ var BandwidthSnapshot = /*#__PURE__*/(0, _createClass2.default)(function Bandwid
117
117
  break;
118
118
  }
119
119
 
120
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
120
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
121
121
 
122
122
  case 6:
123
123
  _context.next = 8;
@@ -198,7 +198,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
198
198
 
199
199
  case 24:
200
200
  _context.next = 26;
201
- return _Api.default.sendRequest("/behaviors/".concat(params['id']), 'PATCH', params, _this.options);
201
+ return _Api.default.sendRequest("/behaviors/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
202
202
 
203
203
  case 26:
204
204
  response = _context.sent;
@@ -266,7 +266,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
266
266
 
267
267
  case 14:
268
268
  _context2.next = 16;
269
- return _Api.default.sendRequest("/behaviors/".concat(params['id']), 'DELETE', params, _this.options);
269
+ return _Api.default.sendRequest("/behaviors/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
270
270
 
271
271
  case 16:
272
272
  response = _context2.sent;
@@ -325,7 +325,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
325
325
  break;
326
326
  }
327
327
 
328
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
328
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
329
329
 
330
330
  case 4:
331
331
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -333,7 +333,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
333
333
  break;
334
334
  }
335
335
 
336
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
336
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
337
337
 
338
338
  case 6:
339
339
  if (!(params['behavior'] && !(0, _utils.isString)(params['behavior']))) {
@@ -341,7 +341,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
341
341
  break;
342
342
  }
343
343
 
344
- throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(behavior)));
344
+ throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(params['behavior'])));
345
345
 
346
346
  case 8:
347
347
  _context3.next = 10;
@@ -401,11 +401,11 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
401
401
  break;
402
402
  }
403
403
 
404
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
404
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
405
405
 
406
406
  case 9:
407
407
  _context4.next = 11;
408
- return _Api.default.sendRequest("/behaviors/".concat(params['id']), 'GET', params, options);
408
+ return _Api.default.sendRequest("/behaviors/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
409
409
 
410
410
  case 11:
411
411
  response = _context4.sent;
@@ -466,7 +466,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
466
466
  break;
467
467
  }
468
468
 
469
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
469
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
470
470
 
471
471
  case 9:
472
472
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -474,7 +474,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
474
474
  break;
475
475
  }
476
476
 
477
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
477
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
478
478
 
479
479
  case 11:
480
480
  if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
@@ -482,7 +482,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
482
482
  break;
483
483
  }
484
484
 
485
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
485
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
486
486
 
487
487
  case 13:
488
488
  if (!(params['recursive'] && !(0, _utils.isString)(params['recursive']))) {
@@ -490,7 +490,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
490
490
  break;
491
491
  }
492
492
 
493
- throw new errors.InvalidParameterError("Bad parameter: recursive must be of type String, received ".concat((0, _utils.getType)(recursive)));
493
+ throw new errors.InvalidParameterError("Bad parameter: recursive must be of type String, received ".concat((0, _utils.getType)(params['recursive'])));
494
494
 
495
495
  case 15:
496
496
  if (!(params['behavior'] && !(0, _utils.isString)(params['behavior']))) {
@@ -498,11 +498,11 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
498
498
  break;
499
499
  }
500
500
 
501
- throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(behavior)));
501
+ throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(params['behavior'])));
502
502
 
503
503
  case 17:
504
504
  _context5.next = 19;
505
- return _Api.default.sendRequest("/behaviors/folders/".concat(params['path']), 'GET', params, options);
505
+ return _Api.default.sendRequest("/behaviors/folders/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
506
506
 
507
507
  case 19:
508
508
  response = _context5.sent;
@@ -555,7 +555,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
555
555
  break;
556
556
  }
557
557
 
558
- throw new errors.InvalidParameterError("Bad parameter: value must be of type String, received ".concat((0, _utils.getType)(value)));
558
+ throw new errors.InvalidParameterError("Bad parameter: value must be of type String, received ".concat((0, _utils.getType)(params['value'])));
559
559
 
560
560
  case 8:
561
561
  if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
@@ -563,7 +563,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
563
563
  break;
564
564
  }
565
565
 
566
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
566
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
567
567
 
568
568
  case 10:
569
569
  if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
@@ -571,7 +571,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
571
571
  break;
572
572
  }
573
573
 
574
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
574
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params['description'])));
575
575
 
576
576
  case 12:
577
577
  if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
@@ -579,7 +579,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
579
579
  break;
580
580
  }
581
581
 
582
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
582
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
583
583
 
584
584
  case 14:
585
585
  if (!(params['behavior'] && !(0, _utils.isString)(params['behavior']))) {
@@ -587,7 +587,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
587
587
  break;
588
588
  }
589
589
 
590
- throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(behavior)));
590
+ throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(params['behavior'])));
591
591
 
592
592
  case 16:
593
593
  _context6.next = 18;
@@ -629,7 +629,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
629
629
  break;
630
630
  }
631
631
 
632
- throw new errors.InvalidParameterError("Bad parameter: url must be of type String, received ".concat((0, _utils.getType)(url)));
632
+ throw new errors.InvalidParameterError("Bad parameter: url must be of type String, received ".concat((0, _utils.getType)(params['url'])));
633
633
 
634
634
  case 6:
635
635
  if (!(params['method'] && !(0, _utils.isString)(params['method']))) {
@@ -637,7 +637,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
637
637
  break;
638
638
  }
639
639
 
640
- throw new errors.InvalidParameterError("Bad parameter: method must be of type String, received ".concat((0, _utils.getType)(method)));
640
+ throw new errors.InvalidParameterError("Bad parameter: method must be of type String, received ".concat((0, _utils.getType)(params['method'])));
641
641
 
642
642
  case 8:
643
643
  if (!(params['encoding'] && !(0, _utils.isString)(params['encoding']))) {
@@ -645,7 +645,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
645
645
  break;
646
646
  }
647
647
 
648
- throw new errors.InvalidParameterError("Bad parameter: encoding must be of type String, received ".concat((0, _utils.getType)(encoding)));
648
+ throw new errors.InvalidParameterError("Bad parameter: encoding must be of type String, received ".concat((0, _utils.getType)(params['encoding'])));
649
649
 
650
650
  case 10:
651
651
  if (!(params['action'] && !(0, _utils.isString)(params['action']))) {
@@ -653,7 +653,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
653
653
  break;
654
654
  }
655
655
 
656
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(action)));
656
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params['action'])));
657
657
 
658
658
  case 12:
659
659
  _context7.next = 14;
@@ -299,7 +299,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
299
299
 
300
300
  case 20:
301
301
  _context.next = 22;
302
- return _Api.default.sendRequest("/bundles/".concat(params['id'], "/share"), 'POST', params, _this.options);
302
+ return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id']), "/share"), 'POST', params, _this.options);
303
303
 
304
304
  case 22:
305
305
  response = _context.sent;
@@ -447,7 +447,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
447
447
 
448
448
  case 34:
449
449
  _context2.next = 36;
450
- return _Api.default.sendRequest("/bundles/".concat(params['id']), 'PATCH', params, _this.options);
450
+ return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
451
451
 
452
452
  case 36:
453
453
  response = _context2.sent;
@@ -515,7 +515,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
515
515
 
516
516
  case 14:
517
517
  _context3.next = 16;
518
- return _Api.default.sendRequest("/bundles/".concat(params['id']), 'DELETE', params, _this.options);
518
+ return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
519
519
 
520
520
  case 16:
521
521
  response = _context3.sent;
@@ -574,7 +574,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
574
574
  break;
575
575
  }
576
576
 
577
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(user_id)));
577
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
578
578
 
579
579
  case 4:
580
580
  if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
@@ -582,7 +582,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
582
582
  break;
583
583
  }
584
584
 
585
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
585
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
586
586
 
587
587
  case 6:
588
588
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -590,7 +590,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
590
590
  break;
591
591
  }
592
592
 
593
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
593
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
594
594
 
595
595
  case 8:
596
596
  _context4.next = 10;
@@ -650,11 +650,11 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
650
650
  break;
651
651
  }
652
652
 
653
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
653
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
654
654
 
655
655
  case 9:
656
656
  _context5.next = 11;
657
- return _Api.default.sendRequest("/bundles/".concat(params['id']), 'GET', params, options);
657
+ return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
658
658
 
659
659
  case 11:
660
660
  response = _context5.sent;
@@ -702,7 +702,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
702
702
  break;
703
703
  }
704
704
 
705
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(user_id)));
705
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
706
706
 
707
707
  case 6:
708
708
  if (!(params['paths'] && !(0, _utils.isArray)(params['paths']))) {
@@ -710,7 +710,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
710
710
  break;
711
711
  }
712
712
 
713
- throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(paths)));
713
+ throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params['paths'])));
714
714
 
715
715
  case 8:
716
716
  if (!(params['password'] && !(0, _utils.isString)(params['password']))) {
@@ -718,7 +718,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
718
718
  break;
719
719
  }
720
720
 
721
- throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(password)));
721
+ throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params['password'])));
722
722
 
723
723
  case 10:
724
724
  if (!(params['form_field_set_id'] && !(0, _utils.isInt)(params['form_field_set_id']))) {
@@ -726,7 +726,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
726
726
  break;
727
727
  }
728
728
 
729
- throw new errors.InvalidParameterError("Bad parameter: form_field_set_id must be of type Int, received ".concat((0, _utils.getType)(form_field_set_id)));
729
+ throw new errors.InvalidParameterError("Bad parameter: form_field_set_id must be of type Int, received ".concat((0, _utils.getType)(params['form_field_set_id'])));
730
730
 
731
731
  case 12:
732
732
  if (!(params['expires_at'] && !(0, _utils.isString)(params['expires_at']))) {
@@ -734,7 +734,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
734
734
  break;
735
735
  }
736
736
 
737
- throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(expires_at)));
737
+ throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params['expires_at'])));
738
738
 
739
739
  case 14:
740
740
  if (!(params['max_uses'] && !(0, _utils.isInt)(params['max_uses']))) {
@@ -742,7 +742,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
742
742
  break;
743
743
  }
744
744
 
745
- throw new errors.InvalidParameterError("Bad parameter: max_uses must be of type Int, received ".concat((0, _utils.getType)(max_uses)));
745
+ throw new errors.InvalidParameterError("Bad parameter: max_uses must be of type Int, received ".concat((0, _utils.getType)(params['max_uses'])));
746
746
 
747
747
  case 16:
748
748
  if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
@@ -750,7 +750,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
750
750
  break;
751
751
  }
752
752
 
753
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
753
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params['description'])));
754
754
 
755
755
  case 18:
756
756
  if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
@@ -758,7 +758,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
758
758
  break;
759
759
  }
760
760
 
761
- throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(note)));
761
+ throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
762
762
 
763
763
  case 20:
764
764
  if (!(params['code'] && !(0, _utils.isString)(params['code']))) {
@@ -766,7 +766,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
766
766
  break;
767
767
  }
768
768
 
769
- throw new errors.InvalidParameterError("Bad parameter: code must be of type String, received ".concat((0, _utils.getType)(code)));
769
+ throw new errors.InvalidParameterError("Bad parameter: code must be of type String, received ".concat((0, _utils.getType)(params['code'])));
770
770
 
771
771
  case 22:
772
772
  if (!(params['clickwrap_id'] && !(0, _utils.isInt)(params['clickwrap_id']))) {
@@ -774,7 +774,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
774
774
  break;
775
775
  }
776
776
 
777
- throw new errors.InvalidParameterError("Bad parameter: clickwrap_id must be of type Int, received ".concat((0, _utils.getType)(clickwrap_id)));
777
+ throw new errors.InvalidParameterError("Bad parameter: clickwrap_id must be of type Int, received ".concat((0, _utils.getType)(params['clickwrap_id'])));
778
778
 
779
779
  case 24:
780
780
  if (!(params['inbox_id'] && !(0, _utils.isInt)(params['inbox_id']))) {
@@ -782,7 +782,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
782
782
  break;
783
783
  }
784
784
 
785
- throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(inbox_id)));
785
+ throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params['inbox_id'])));
786
786
 
787
787
  case 26:
788
788
  _context6.next = 28;
@@ -94,7 +94,7 @@ var BundleDownload = /*#__PURE__*/(0, _createClass2.default)(function BundleDown
94
94
  break;
95
95
  }
96
96
 
97
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
97
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
98
98
 
99
99
  case 4:
100
100
  if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
@@ -102,7 +102,7 @@ var BundleDownload = /*#__PURE__*/(0, _createClass2.default)(function BundleDown
102
102
  break;
103
103
  }
104
104
 
105
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(per_page)));
105
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
106
106
 
107
107
  case 6:
108
108
  if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
@@ -110,7 +110,7 @@ var BundleDownload = /*#__PURE__*/(0, _createClass2.default)(function BundleDown
110
110
  break;
111
111
  }
112
112
 
113
- throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(bundle_id)));
113
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
114
114
 
115
115
  case 8:
116
116
  if (!(params['bundle_registration_id'] && !(0, _utils.isInt)(params['bundle_registration_id']))) {
@@ -118,7 +118,7 @@ var BundleDownload = /*#__PURE__*/(0, _createClass2.default)(function BundleDown
118
118
  break;
119
119
  }
120
120
 
121
- throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(bundle_registration_id)));
121
+ throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_registration_id'])));
122
122
 
123
123
  case 10:
124
124
  _context.next = 12;