files.com 1.0.235 → 1.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_VERSION +1 -1
- package/docs/models/Bundle.md +9 -2
- package/docs/models/BundleNotification.md +35 -0
- package/docs/models/BundleRegistration.md +3 -1
- package/docs/models/InboxRegistration.md +3 -1
- package/docs/models/Site.md +2 -0
- package/lib/Api.js +153 -159
- package/lib/isomorphic/File.node.js +24 -28
- package/lib/models/ActionNotificationExport.js +97 -101
- package/lib/models/ActionNotificationExportResult.js +44 -46
- package/lib/models/ActionWebhookFailure.js +42 -44
- package/lib/models/ApiKey.js +271 -287
- package/lib/models/App.js +26 -28
- package/lib/models/As2IncomingMessage.js +32 -34
- package/lib/models/As2OutgoingMessage.js +32 -34
- package/lib/models/As2Partner.js +231 -241
- package/lib/models/As2Station.js +219 -229
- package/lib/models/Automation.js +333 -343
- package/lib/models/AutomationRun.js +75 -79
- package/lib/models/BandwidthSnapshot.js +26 -28
- package/lib/models/Behavior.js +323 -337
- package/lib/models/Bundle.js +381 -387
- package/lib/models/BundleDownload.js +38 -40
- package/lib/models/BundleNotification.js +223 -173
- package/lib/models/BundleRecipient.js +104 -108
- package/lib/models/BundleRegistration.js +41 -40
- package/lib/models/Clickwrap.js +213 -223
- package/lib/models/DnsRecord.js +26 -28
- package/lib/models/ExternalEvent.js +93 -99
- package/lib/models/File.js +726 -766
- package/lib/models/FileComment.js +180 -188
- package/lib/models/FileCommentReaction.js +84 -88
- package/lib/models/FileMigration.js +31 -33
- package/lib/models/Folder.js +94 -98
- package/lib/models/FormFieldSet.js +189 -199
- package/lib/models/Group.js +207 -217
- package/lib/models/GroupUser.js +230 -238
- package/lib/models/History.js +266 -276
- package/lib/models/HistoryExport.js +175 -179
- package/lib/models/HistoryExportResult.js +44 -46
- package/lib/models/InboxRecipient.js +104 -108
- package/lib/models/InboxRegistration.js +35 -34
- package/lib/models/InboxUpload.js +38 -40
- package/lib/models/Invoice.js +57 -61
- package/lib/models/IpAddress.js +78 -84
- package/lib/models/Lock.js +148 -154
- package/lib/models/Message.js +267 -277
- package/lib/models/MessageComment.js +207 -217
- package/lib/models/MessageCommentReaction.js +147 -155
- package/lib/models/MessageReaction.js +147 -155
- package/lib/models/Notification.js +255 -265
- package/lib/models/Payment.js +57 -61
- package/lib/models/Permission.js +128 -134
- package/lib/models/Priority.js +45 -47
- package/lib/models/Project.js +183 -193
- package/lib/models/PublicKey.js +207 -217
- package/lib/models/RemoteBandwidthSnapshot.js +26 -28
- package/lib/models/RemoteServer.js +805 -819
- package/lib/models/Request.js +166 -174
- package/lib/models/Session.js +47 -51
- package/lib/models/SettingsChange.js +26 -28
- package/lib/models/SftpHostKey.js +177 -187
- package/lib/models/Site.js +415 -418
- package/lib/models/SsoStrategy.js +99 -105
- package/lib/models/Style.js +127 -133
- package/lib/models/UsageDailySnapshot.js +26 -28
- package/lib/models/UsageSnapshot.js +26 -28
- package/lib/models/User.js +587 -603
- package/lib/models/UserCipherUse.js +32 -34
- package/lib/models/UserRequest.js +147 -155
- package/lib/models/WebhookTest.js +54 -56
- package/package.json +1 -1
- package/src/models/Bundle.js +10 -1
- package/src/models/BundleNotification.js +39 -1
- package/src/models/BundleRegistration.js +3 -0
- package/src/models/InboxRegistration.js +3 -0
- package/src/models/Site.js +3 -0
    
        package/lib/models/Site.js
    CHANGED
    
    | @@ -385,6 +385,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() { | |
| 385 385 | 
             
              (0, _defineProperty2.default)(this, "getSessionExpiry", function () {
         | 
| 386 386 | 
             
                return _this.attributes.session_expiry;
         | 
| 387 387 | 
             
              });
         | 
| 388 | 
            +
              (0, _defineProperty2.default)(this, "getSessionExpiryMinutes", function () {
         | 
| 389 | 
            +
                return _this.attributes.session_expiry_minutes;
         | 
| 390 | 
            +
              });
         | 
| 388 391 | 
             
              (0, _defineProperty2.default)(this, "getSslRequired", function () {
         | 
| 389 392 | 
             
                return _this.attributes.ssl_required;
         | 
| 390 393 | 
             
              });
         | 
| @@ -469,19 +472,17 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() { | |
| 469 472 | 
             
                response,
         | 
| 470 473 | 
             
                _args = arguments;
         | 
| 471 474 | 
             
              return _regenerator.default.wrap(function _callee$(_context) {
         | 
| 472 | 
            -
                while (1) {
         | 
| 473 | 
            -
                   | 
| 474 | 
            -
                     | 
| 475 | 
            -
             | 
| 476 | 
            -
             | 
| 477 | 
            -
             | 
| 478 | 
            -
                     | 
| 479 | 
            -
             | 
| 480 | 
            -
             | 
| 481 | 
            -
             | 
| 482 | 
            -
                     | 
| 483 | 
            -
                      return _context.stop();
         | 
| 484 | 
            -
                  }
         | 
| 475 | 
            +
                while (1) switch (_context.prev = _context.next) {
         | 
| 476 | 
            +
                  case 0:
         | 
| 477 | 
            +
                    options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
         | 
| 478 | 
            +
                    _context.next = 3;
         | 
| 479 | 
            +
                    return _Api.default.sendRequest("/site", 'GET', {}, options);
         | 
| 480 | 
            +
                  case 3:
         | 
| 481 | 
            +
                    response = _context.sent;
         | 
| 482 | 
            +
                    return _context.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
         | 
| 483 | 
            +
                  case 5:
         | 
| 484 | 
            +
                  case "end":
         | 
| 485 | 
            +
                    return _context.stop();
         | 
| 485 486 | 
             
                }
         | 
| 486 487 | 
             
              }, _callee);
         | 
| 487 488 | 
             
            })));
         | 
| @@ -490,19 +491,17 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() { | |
| 490 491 | 
             
                response,
         | 
| 491 492 | 
             
                _args2 = arguments;
         | 
| 492 493 | 
             
              return _regenerator.default.wrap(function _callee2$(_context2) {
         | 
| 493 | 
            -
                while (1) {
         | 
| 494 | 
            -
                   | 
| 495 | 
            -
                     | 
| 496 | 
            -
             | 
| 497 | 
            -
             | 
| 498 | 
            -
             | 
| 499 | 
            -
                     | 
| 500 | 
            -
             | 
| 501 | 
            -
             | 
| 502 | 
            -
             | 
| 503 | 
            -
                     | 
| 504 | 
            -
                      return _context2.stop();
         | 
| 505 | 
            -
                  }
         | 
| 494 | 
            +
                while (1) switch (_context2.prev = _context2.next) {
         | 
| 495 | 
            +
                  case 0:
         | 
| 496 | 
            +
                    options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
         | 
| 497 | 
            +
                    _context2.next = 3;
         | 
| 498 | 
            +
                    return _Api.default.sendRequest("/site/usage", 'GET', {}, options);
         | 
| 499 | 
            +
                  case 3:
         | 
| 500 | 
            +
                    response = _context2.sent;
         | 
| 501 | 
            +
                    return _context2.abrupt("return", new UsageSnapshot(response === null || response === void 0 ? void 0 : response.data, options));
         | 
| 502 | 
            +
                  case 5:
         | 
| 503 | 
            +
                  case "end":
         | 
| 504 | 
            +
                    return _context2.stop();
         | 
| 506 505 | 
             
                }
         | 
| 507 506 | 
             
              }, _callee2);
         | 
| 508 507 | 
             
            })));
         | 
| @@ -512,398 +511,396 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() { | |
| 512 511 | 
             
                response,
         | 
| 513 512 | 
             
                _args3 = arguments;
         | 
| 514 513 | 
             
              return _regenerator.default.wrap(function _callee3$(_context3) {
         | 
| 515 | 
            -
                while (1) {
         | 
| 516 | 
            -
                   | 
| 517 | 
            -
                     | 
| 518 | 
            -
             | 
| 519 | 
            -
             | 
| 520 | 
            -
                       | 
| 521 | 
            -
             | 
| 522 | 
            -
             | 
| 523 | 
            -
             | 
| 524 | 
            -
             | 
| 525 | 
            -
                     | 
| 526 | 
            -
                       | 
| 527 | 
            -
             | 
| 528 | 
            -
             | 
| 529 | 
            -
             | 
| 530 | 
            -
             | 
| 531 | 
            -
                     | 
| 532 | 
            -
                       | 
| 533 | 
            -
             | 
| 534 | 
            -
             | 
| 535 | 
            -
             | 
| 536 | 
            -
             | 
| 537 | 
            -
                     | 
| 538 | 
            -
                       | 
| 539 | 
            -
             | 
| 540 | 
            -
             | 
| 541 | 
            -
             | 
| 542 | 
            -
             | 
| 543 | 
            -
                     | 
| 544 | 
            -
                       | 
| 545 | 
            -
             | 
| 546 | 
            -
             | 
| 547 | 
            -
             | 
| 548 | 
            -
             | 
| 549 | 
            -
                     | 
| 550 | 
            -
                       | 
| 551 | 
            -
             | 
| 552 | 
            -
             | 
| 553 | 
            -
             | 
| 554 | 
            -
             | 
| 555 | 
            -
                     | 
| 556 | 
            -
                       | 
| 557 | 
            -
             | 
| 558 | 
            -
             | 
| 559 | 
            -
             | 
| 560 | 
            -
             | 
| 561 | 
            -
                     | 
| 562 | 
            -
                       | 
| 563 | 
            -
             | 
| 564 | 
            -
             | 
| 565 | 
            -
             | 
| 566 | 
            -
             | 
| 567 | 
            -
                     | 
| 568 | 
            -
                       | 
| 569 | 
            -
             | 
| 570 | 
            -
             | 
| 571 | 
            -
             | 
| 572 | 
            -
             | 
| 573 | 
            -
                     | 
| 574 | 
            -
                       | 
| 575 | 
            -
             | 
| 576 | 
            -
             | 
| 577 | 
            -
             | 
| 578 | 
            -
             | 
| 579 | 
            -
                     | 
| 580 | 
            -
                       | 
| 581 | 
            -
             | 
| 582 | 
            -
             | 
| 583 | 
            -
             | 
| 584 | 
            -
             | 
| 585 | 
            -
                     | 
| 586 | 
            -
                       | 
| 587 | 
            -
             | 
| 588 | 
            -
             | 
| 589 | 
            -
             | 
| 590 | 
            -
             | 
| 591 | 
            -
                     | 
| 592 | 
            -
                       | 
| 593 | 
            -
             | 
| 594 | 
            -
             | 
| 595 | 
            -
             | 
| 596 | 
            -
             | 
| 597 | 
            -
                     | 
| 598 | 
            -
                       | 
| 599 | 
            -
             | 
| 600 | 
            -
             | 
| 601 | 
            -
             | 
| 602 | 
            -
             | 
| 603 | 
            -
                     | 
| 604 | 
            -
                       | 
| 605 | 
            -
             | 
| 606 | 
            -
             | 
| 607 | 
            -
             | 
| 608 | 
            -
             | 
| 609 | 
            -
                     | 
| 610 | 
            -
                       | 
| 611 | 
            -
             | 
| 612 | 
            -
             | 
| 613 | 
            -
             | 
| 614 | 
            -
             | 
| 615 | 
            -
                     | 
| 616 | 
            -
                       | 
| 617 | 
            -
             | 
| 618 | 
            -
             | 
| 619 | 
            -
             | 
| 620 | 
            -
             | 
| 621 | 
            -
                     | 
| 622 | 
            -
                       | 
| 623 | 
            -
             | 
| 624 | 
            -
             | 
| 625 | 
            -
             | 
| 626 | 
            -
             | 
| 627 | 
            -
                     | 
| 628 | 
            -
                       | 
| 629 | 
            -
             | 
| 630 | 
            -
             | 
| 631 | 
            -
             | 
| 632 | 
            -
             | 
| 633 | 
            -
                     | 
| 634 | 
            -
                       | 
| 635 | 
            -
             | 
| 636 | 
            -
             | 
| 637 | 
            -
             | 
| 638 | 
            -
             | 
| 639 | 
            -
                     | 
| 640 | 
            -
                       | 
| 641 | 
            -
             | 
| 642 | 
            -
             | 
| 643 | 
            -
             | 
| 644 | 
            -
             | 
| 645 | 
            -
                     | 
| 646 | 
            -
                       | 
| 647 | 
            -
             | 
| 648 | 
            -
             | 
| 649 | 
            -
             | 
| 650 | 
            -
             | 
| 651 | 
            -
                     | 
| 652 | 
            -
                       | 
| 653 | 
            -
             | 
| 654 | 
            -
             | 
| 655 | 
            -
             | 
| 656 | 
            -
             | 
| 657 | 
            -
                     | 
| 658 | 
            -
                       | 
| 659 | 
            -
             | 
| 660 | 
            -
             | 
| 661 | 
            -
             | 
| 662 | 
            -
             | 
| 663 | 
            -
                     | 
| 664 | 
            -
                       | 
| 665 | 
            -
             | 
| 666 | 
            -
             | 
| 667 | 
            -
             | 
| 668 | 
            -
             | 
| 669 | 
            -
                     | 
| 670 | 
            -
                       | 
| 671 | 
            -
             | 
| 672 | 
            -
             | 
| 673 | 
            -
             | 
| 674 | 
            -
             | 
| 675 | 
            -
                     | 
| 676 | 
            -
                       | 
| 677 | 
            -
             | 
| 678 | 
            -
             | 
| 679 | 
            -
             | 
| 680 | 
            -
             | 
| 681 | 
            -
                     | 
| 682 | 
            -
                       | 
| 683 | 
            -
             | 
| 684 | 
            -
             | 
| 685 | 
            -
             | 
| 686 | 
            -
             | 
| 687 | 
            -
                     | 
| 688 | 
            -
                       | 
| 689 | 
            -
             | 
| 690 | 
            -
             | 
| 691 | 
            -
             | 
| 692 | 
            -
             | 
| 693 | 
            -
                     | 
| 694 | 
            -
                       | 
| 695 | 
            -
             | 
| 696 | 
            -
             | 
| 697 | 
            -
             | 
| 698 | 
            -
             | 
| 699 | 
            -
                     | 
| 700 | 
            -
                       | 
| 701 | 
            -
             | 
| 702 | 
            -
             | 
| 703 | 
            -
             | 
| 704 | 
            -
             | 
| 705 | 
            -
                     | 
| 706 | 
            -
                       | 
| 707 | 
            -
             | 
| 708 | 
            -
             | 
| 709 | 
            -
             | 
| 710 | 
            -
             | 
| 711 | 
            -
                     | 
| 712 | 
            -
                       | 
| 713 | 
            -
             | 
| 714 | 
            -
             | 
| 715 | 
            -
             | 
| 716 | 
            -
             | 
| 717 | 
            -
                     | 
| 718 | 
            -
                       | 
| 719 | 
            -
             | 
| 720 | 
            -
             | 
| 721 | 
            -
             | 
| 722 | 
            -
             | 
| 723 | 
            -
                     | 
| 724 | 
            -
                       | 
| 725 | 
            -
             | 
| 726 | 
            -
             | 
| 727 | 
            -
             | 
| 728 | 
            -
             | 
| 729 | 
            -
                     | 
| 730 | 
            -
                       | 
| 731 | 
            -
             | 
| 732 | 
            -
             | 
| 733 | 
            -
             | 
| 734 | 
            -
             | 
| 735 | 
            -
                     | 
| 736 | 
            -
                       | 
| 737 | 
            -
             | 
| 738 | 
            -
             | 
| 739 | 
            -
             | 
| 740 | 
            -
             | 
| 741 | 
            -
                     | 
| 742 | 
            -
                       | 
| 743 | 
            -
             | 
| 744 | 
            -
             | 
| 745 | 
            -
             | 
| 746 | 
            -
             | 
| 747 | 
            -
                     | 
| 748 | 
            -
                       | 
| 749 | 
            -
             | 
| 750 | 
            -
             | 
| 751 | 
            -
             | 
| 752 | 
            -
             | 
| 753 | 
            -
                     | 
| 754 | 
            -
                       | 
| 755 | 
            -
             | 
| 756 | 
            -
             | 
| 757 | 
            -
             | 
| 758 | 
            -
             | 
| 759 | 
            -
                     | 
| 760 | 
            -
                       | 
| 761 | 
            -
             | 
| 762 | 
            -
             | 
| 763 | 
            -
             | 
| 764 | 
            -
             | 
| 765 | 
            -
                     | 
| 766 | 
            -
                       | 
| 767 | 
            -
             | 
| 768 | 
            -
             | 
| 769 | 
            -
             | 
| 770 | 
            -
             | 
| 771 | 
            -
                     | 
| 772 | 
            -
                       | 
| 773 | 
            -
             | 
| 774 | 
            -
             | 
| 775 | 
            -
             | 
| 776 | 
            -
             | 
| 777 | 
            -
                     | 
| 778 | 
            -
                       | 
| 779 | 
            -
             | 
| 780 | 
            -
             | 
| 781 | 
            -
             | 
| 782 | 
            -
             | 
| 783 | 
            -
                     | 
| 784 | 
            -
                       | 
| 785 | 
            -
             | 
| 786 | 
            -
             | 
| 787 | 
            -
             | 
| 788 | 
            -
             | 
| 789 | 
            -
                     | 
| 790 | 
            -
                       | 
| 791 | 
            -
             | 
| 792 | 
            -
             | 
| 793 | 
            -
             | 
| 794 | 
            -
             | 
| 795 | 
            -
                     | 
| 796 | 
            -
                       | 
| 797 | 
            -
             | 
| 798 | 
            -
             | 
| 799 | 
            -
             | 
| 800 | 
            -
             | 
| 801 | 
            -
                     | 
| 802 | 
            -
                       | 
| 803 | 
            -
             | 
| 804 | 
            -
             | 
| 805 | 
            -
             | 
| 806 | 
            -
             | 
| 807 | 
            -
                     | 
| 808 | 
            -
                       | 
| 809 | 
            -
             | 
| 810 | 
            -
             | 
| 811 | 
            -
             | 
| 812 | 
            -
             | 
| 813 | 
            -
                     | 
| 814 | 
            -
                       | 
| 815 | 
            -
             | 
| 816 | 
            -
             | 
| 817 | 
            -
             | 
| 818 | 
            -
             | 
| 819 | 
            -
                     | 
| 820 | 
            -
                       | 
| 821 | 
            -
             | 
| 822 | 
            -
             | 
| 823 | 
            -
             | 
| 824 | 
            -
             | 
| 825 | 
            -
                     | 
| 826 | 
            -
                       | 
| 827 | 
            -
             | 
| 828 | 
            -
             | 
| 829 | 
            -
             | 
| 830 | 
            -
             | 
| 831 | 
            -
                     | 
| 832 | 
            -
                       | 
| 833 | 
            -
             | 
| 834 | 
            -
             | 
| 835 | 
            -
             | 
| 836 | 
            -
             | 
| 837 | 
            -
                     | 
| 838 | 
            -
                       | 
| 839 | 
            -
             | 
| 840 | 
            -
             | 
| 841 | 
            -
             | 
| 842 | 
            -
             | 
| 843 | 
            -
                     | 
| 844 | 
            -
                       | 
| 845 | 
            -
             | 
| 846 | 
            -
             | 
| 847 | 
            -
             | 
| 848 | 
            -
             | 
| 849 | 
            -
                     | 
| 850 | 
            -
                       | 
| 851 | 
            -
             | 
| 852 | 
            -
             | 
| 853 | 
            -
             | 
| 854 | 
            -
             | 
| 855 | 
            -
                     | 
| 856 | 
            -
                       | 
| 857 | 
            -
             | 
| 858 | 
            -
             | 
| 859 | 
            -
             | 
| 860 | 
            -
             | 
| 861 | 
            -
                     | 
| 862 | 
            -
                       | 
| 863 | 
            -
             | 
| 864 | 
            -
             | 
| 865 | 
            -
             | 
| 866 | 
            -
             | 
| 867 | 
            -
                     | 
| 868 | 
            -
                       | 
| 869 | 
            -
             | 
| 870 | 
            -
             | 
| 871 | 
            -
             | 
| 872 | 
            -
             | 
| 873 | 
            -
                     | 
| 874 | 
            -
                       | 
| 875 | 
            -
             | 
| 876 | 
            -
             | 
| 877 | 
            -
             | 
| 878 | 
            -
             | 
| 879 | 
            -
                     | 
| 880 | 
            -
                       | 
| 881 | 
            -
             | 
| 882 | 
            -
             | 
| 883 | 
            -
             | 
| 884 | 
            -
             | 
| 885 | 
            -
                     | 
| 886 | 
            -
                       | 
| 887 | 
            -
             | 
| 888 | 
            -
             | 
| 889 | 
            -
             | 
| 890 | 
            -
             | 
| 891 | 
            -
                     | 
| 892 | 
            -
                       | 
| 893 | 
            -
             | 
| 894 | 
            -
             | 
| 895 | 
            -
             | 
| 896 | 
            -
             | 
| 897 | 
            -
                     | 
| 898 | 
            -
             | 
| 899 | 
            -
             | 
| 900 | 
            -
                     | 
| 901 | 
            -
             | 
| 902 | 
            -
             | 
| 903 | 
            -
             | 
| 904 | 
            -
                     | 
| 905 | 
            -
                      return _context3.stop();
         | 
| 906 | 
            -
                  }
         | 
| 514 | 
            +
                while (1) switch (_context3.prev = _context3.next) {
         | 
| 515 | 
            +
                  case 0:
         | 
| 516 | 
            +
                    params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
         | 
| 517 | 
            +
                    options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
         | 
| 518 | 
            +
                    if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
         | 
| 519 | 
            +
                      _context3.next = 4;
         | 
| 520 | 
            +
                      break;
         | 
| 521 | 
            +
                    }
         | 
| 522 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
         | 
| 523 | 
            +
                  case 4:
         | 
| 524 | 
            +
                    if (!(params['subdomain'] && !(0, _utils.isString)(params['subdomain']))) {
         | 
| 525 | 
            +
                      _context3.next = 6;
         | 
| 526 | 
            +
                      break;
         | 
| 527 | 
            +
                    }
         | 
| 528 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: subdomain must be of type String, received ".concat((0, _utils.getType)(params['subdomain'])));
         | 
| 529 | 
            +
                  case 6:
         | 
| 530 | 
            +
                    if (!(params['domain'] && !(0, _utils.isString)(params['domain']))) {
         | 
| 531 | 
            +
                      _context3.next = 8;
         | 
| 532 | 
            +
                      break;
         | 
| 533 | 
            +
                    }
         | 
| 534 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: domain must be of type String, received ".concat((0, _utils.getType)(params['domain'])));
         | 
| 535 | 
            +
                  case 8:
         | 
| 536 | 
            +
                    if (!(params['domain_letsencrypt_chain'] && !(0, _utils.isString)(params['domain_letsencrypt_chain']))) {
         | 
| 537 | 
            +
                      _context3.next = 10;
         | 
| 538 | 
            +
                      break;
         | 
| 539 | 
            +
                    }
         | 
| 540 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: domain_letsencrypt_chain must be of type String, received ".concat((0, _utils.getType)(params['domain_letsencrypt_chain'])));
         | 
| 541 | 
            +
                  case 10:
         | 
| 542 | 
            +
                    if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
         | 
| 543 | 
            +
                      _context3.next = 12;
         | 
| 544 | 
            +
                      break;
         | 
| 545 | 
            +
                    }
         | 
| 546 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params['email'])));
         | 
| 547 | 
            +
                  case 12:
         | 
| 548 | 
            +
                    if (!(params['reply_to_email'] && !(0, _utils.isString)(params['reply_to_email']))) {
         | 
| 549 | 
            +
                      _context3.next = 14;
         | 
| 550 | 
            +
                      break;
         | 
| 551 | 
            +
                    }
         | 
| 552 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: reply_to_email must be of type String, received ".concat((0, _utils.getType)(params['reply_to_email'])));
         | 
| 553 | 
            +
                  case 14:
         | 
| 554 | 
            +
                    if (!(params['bundle_expiration'] && !(0, _utils.isInt)(params['bundle_expiration']))) {
         | 
| 555 | 
            +
                      _context3.next = 16;
         | 
| 556 | 
            +
                      break;
         | 
| 557 | 
            +
                    }
         | 
| 558 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: bundle_expiration must be of type Int, received ".concat((0, _utils.getType)(params['bundle_expiration'])));
         | 
| 559 | 
            +
                  case 16:
         | 
| 560 | 
            +
                    if (!(params['welcome_email_cc'] && !(0, _utils.isString)(params['welcome_email_cc']))) {
         | 
| 561 | 
            +
                      _context3.next = 18;
         | 
| 562 | 
            +
                      break;
         | 
| 563 | 
            +
                    }
         | 
| 564 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: welcome_email_cc must be of type String, received ".concat((0, _utils.getType)(params['welcome_email_cc'])));
         | 
| 565 | 
            +
                  case 18:
         | 
| 566 | 
            +
                    if (!(params['welcome_email_subject'] && !(0, _utils.isString)(params['welcome_email_subject']))) {
         | 
| 567 | 
            +
                      _context3.next = 20;
         | 
| 568 | 
            +
                      break;
         | 
| 569 | 
            +
                    }
         | 
| 570 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: welcome_email_subject must be of type String, received ".concat((0, _utils.getType)(params['welcome_email_subject'])));
         | 
| 571 | 
            +
                  case 20:
         | 
| 572 | 
            +
                    if (!(params['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
         | 
| 573 | 
            +
                      _context3.next = 22;
         | 
| 574 | 
            +
                      break;
         | 
| 575 | 
            +
                    }
         | 
| 576 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(params['welcome_custom_text'])));
         | 
| 577 | 
            +
                  case 22:
         | 
| 578 | 
            +
                    if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
         | 
| 579 | 
            +
                      _context3.next = 24;
         | 
| 580 | 
            +
                      break;
         | 
| 581 | 
            +
                    }
         | 
| 582 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(params['language'])));
         | 
| 583 | 
            +
                  case 24:
         | 
| 584 | 
            +
                    if (!(params['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
         | 
| 585 | 
            +
                      _context3.next = 26;
         | 
| 586 | 
            +
                      break;
         | 
| 587 | 
            +
                    }
         | 
| 588 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: default_time_zone must be of type String, received ".concat((0, _utils.getType)(params['default_time_zone'])));
         | 
| 589 | 
            +
                  case 26:
         | 
| 590 | 
            +
                    if (!(params['desktop_app_session_lifetime'] && !(0, _utils.isInt)(params['desktop_app_session_lifetime']))) {
         | 
| 591 | 
            +
                      _context3.next = 28;
         | 
| 592 | 
            +
                      break;
         | 
| 593 | 
            +
                    }
         | 
| 594 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(params['desktop_app_session_lifetime'])));
         | 
| 595 | 
            +
                  case 28:
         | 
| 596 | 
            +
                    if (!(params['mobile_app_session_lifetime'] && !(0, _utils.isInt)(params['mobile_app_session_lifetime']))) {
         | 
| 597 | 
            +
                      _context3.next = 30;
         | 
| 598 | 
            +
                      break;
         | 
| 599 | 
            +
                    }
         | 
| 600 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(params['mobile_app_session_lifetime'])));
         | 
| 601 | 
            +
                  case 30:
         | 
| 602 | 
            +
                    if (!(params['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
         | 
| 603 | 
            +
                      _context3.next = 32;
         | 
| 604 | 
            +
                      break;
         | 
| 605 | 
            +
                    }
         | 
| 606 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: welcome_screen must be of type String, received ".concat((0, _utils.getType)(params['welcome_screen'])));
         | 
| 607 | 
            +
                  case 32:
         | 
| 608 | 
            +
                    if (!(params['motd_text'] && !(0, _utils.isString)(params['motd_text']))) {
         | 
| 609 | 
            +
                      _context3.next = 34;
         | 
| 610 | 
            +
                      break;
         | 
| 611 | 
            +
                    }
         | 
| 612 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: motd_text must be of type String, received ".concat((0, _utils.getType)(params['motd_text'])));
         | 
| 613 | 
            +
                  case 34:
         | 
| 614 | 
            +
                    if (!(params['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
         | 
| 615 | 
            +
                      _context3.next = 36;
         | 
| 616 | 
            +
                      break;
         | 
| 617 | 
            +
                    }
         | 
| 618 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(params['user_lockout_tries'])));
         | 
| 619 | 
            +
                  case 36:
         | 
| 620 | 
            +
                    if (!(params['user_lockout_within'] && !(0, _utils.isInt)(params['user_lockout_within']))) {
         | 
| 621 | 
            +
                      _context3.next = 38;
         | 
| 622 | 
            +
                      break;
         | 
| 623 | 
            +
                    }
         | 
| 624 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(params['user_lockout_within'])));
         | 
| 625 | 
            +
                  case 38:
         | 
| 626 | 
            +
                    if (!(params['user_lockout_lock_period'] && !(0, _utils.isInt)(params['user_lockout_lock_period']))) {
         | 
| 627 | 
            +
                      _context3.next = 40;
         | 
| 628 | 
            +
                      break;
         | 
| 629 | 
            +
                    }
         | 
| 630 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(params['user_lockout_lock_period'])));
         | 
| 631 | 
            +
                  case 40:
         | 
| 632 | 
            +
                    if (!(params['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
         | 
| 633 | 
            +
                      _context3.next = 42;
         | 
| 634 | 
            +
                      break;
         | 
| 635 | 
            +
                    }
         | 
| 636 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: allowed_countries must be of type String, received ".concat((0, _utils.getType)(params['allowed_countries'])));
         | 
| 637 | 
            +
                  case 42:
         | 
| 638 | 
            +
                    if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
         | 
| 639 | 
            +
                      _context3.next = 44;
         | 
| 640 | 
            +
                      break;
         | 
| 641 | 
            +
                    }
         | 
| 642 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params['allowed_ips'])));
         | 
| 643 | 
            +
                  case 44:
         | 
| 644 | 
            +
                    if (!(params['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
         | 
| 645 | 
            +
                      _context3.next = 46;
         | 
| 646 | 
            +
                      break;
         | 
| 647 | 
            +
                    }
         | 
| 648 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(params['disallowed_countries'])));
         | 
| 649 | 
            +
                  case 46:
         | 
| 650 | 
            +
                    if (!(params['days_to_retain_backups'] && !(0, _utils.isInt)(params['days_to_retain_backups']))) {
         | 
| 651 | 
            +
                      _context3.next = 48;
         | 
| 652 | 
            +
                      break;
         | 
| 653 | 
            +
                    }
         | 
| 654 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(params['days_to_retain_backups'])));
         | 
| 655 | 
            +
                  case 48:
         | 
| 656 | 
            +
                    if (!(params['max_prior_passwords'] && !(0, _utils.isInt)(params['max_prior_passwords']))) {
         | 
| 657 | 
            +
                      _context3.next = 50;
         | 
| 658 | 
            +
                      break;
         | 
| 659 | 
            +
                    }
         | 
| 660 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(params['max_prior_passwords'])));
         | 
| 661 | 
            +
                  case 50:
         | 
| 662 | 
            +
                    if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
         | 
| 663 | 
            +
                      _context3.next = 52;
         | 
| 664 | 
            +
                      break;
         | 
| 665 | 
            +
                    }
         | 
| 666 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(params['password_validity_days'])));
         | 
| 667 | 
            +
                  case 52:
         | 
| 668 | 
            +
                    if (!(params['password_min_length'] && !(0, _utils.isInt)(params['password_min_length']))) {
         | 
| 669 | 
            +
                      _context3.next = 54;
         | 
| 670 | 
            +
                      break;
         | 
| 671 | 
            +
                    }
         | 
| 672 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: password_min_length must be of type Int, received ".concat((0, _utils.getType)(params['password_min_length'])));
         | 
| 673 | 
            +
                  case 54:
         | 
| 674 | 
            +
                    if (!(params['bundle_registration_notifications'] && !(0, _utils.isString)(params['bundle_registration_notifications']))) {
         | 
| 675 | 
            +
                      _context3.next = 56;
         | 
| 676 | 
            +
                      break;
         | 
| 677 | 
            +
                    }
         | 
| 678 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: bundle_registration_notifications must be of type String, received ".concat((0, _utils.getType)(params['bundle_registration_notifications'])));
         | 
| 679 | 
            +
                  case 56:
         | 
| 680 | 
            +
                    if (!(params['bundle_activity_notifications'] && !(0, _utils.isString)(params['bundle_activity_notifications']))) {
         | 
| 681 | 
            +
                      _context3.next = 58;
         | 
| 682 | 
            +
                      break;
         | 
| 683 | 
            +
                    }
         | 
| 684 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: bundle_activity_notifications must be of type String, received ".concat((0, _utils.getType)(params['bundle_activity_notifications'])));
         | 
| 685 | 
            +
                  case 58:
         | 
| 686 | 
            +
                    if (!(params['bundle_upload_receipt_notifications'] && !(0, _utils.isString)(params['bundle_upload_receipt_notifications']))) {
         | 
| 687 | 
            +
                      _context3.next = 60;
         | 
| 688 | 
            +
                      break;
         | 
| 689 | 
            +
                    }
         | 
| 690 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: bundle_upload_receipt_notifications must be of type String, received ".concat((0, _utils.getType)(params['bundle_upload_receipt_notifications'])));
         | 
| 691 | 
            +
                  case 60:
         | 
| 692 | 
            +
                    if (!(params['disable_users_from_inactivity_period_days'] && !(0, _utils.isInt)(params['disable_users_from_inactivity_period_days']))) {
         | 
| 693 | 
            +
                      _context3.next = 62;
         | 
| 694 | 
            +
                      break;
         | 
| 695 | 
            +
                    }
         | 
| 696 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ".concat((0, _utils.getType)(params['disable_users_from_inactivity_period_days'])));
         | 
| 697 | 
            +
                  case 62:
         | 
| 698 | 
            +
                    if (!(params['sftp_host_key_type'] && !(0, _utils.isString)(params['sftp_host_key_type']))) {
         | 
| 699 | 
            +
                      _context3.next = 64;
         | 
| 700 | 
            +
                      break;
         | 
| 701 | 
            +
                    }
         | 
| 702 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: sftp_host_key_type must be of type String, received ".concat((0, _utils.getType)(params['sftp_host_key_type'])));
         | 
| 703 | 
            +
                  case 64:
         | 
| 704 | 
            +
                    if (!(params['active_sftp_host_key_id'] && !(0, _utils.isInt)(params['active_sftp_host_key_id']))) {
         | 
| 705 | 
            +
                      _context3.next = 66;
         | 
| 706 | 
            +
                      break;
         | 
| 707 | 
            +
                    }
         | 
| 708 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: active_sftp_host_key_id must be of type Int, received ".concat((0, _utils.getType)(params['active_sftp_host_key_id'])));
         | 
| 709 | 
            +
                  case 66:
         | 
| 710 | 
            +
                    if (!(params['require_2fa_user_type'] && !(0, _utils.isString)(params['require_2fa_user_type']))) {
         | 
| 711 | 
            +
                      _context3.next = 68;
         | 
| 712 | 
            +
                      break;
         | 
| 713 | 
            +
                    }
         | 
| 714 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(params['require_2fa_user_type'])));
         | 
| 715 | 
            +
                  case 68:
         | 
| 716 | 
            +
                    if (!(params['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
         | 
| 717 | 
            +
                      _context3.next = 70;
         | 
| 718 | 
            +
                      break;
         | 
| 719 | 
            +
                    }
         | 
| 720 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(params['color2_top'])));
         | 
| 721 | 
            +
                  case 70:
         | 
| 722 | 
            +
                    if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
         | 
| 723 | 
            +
                      _context3.next = 72;
         | 
| 724 | 
            +
                      break;
         | 
| 725 | 
            +
                    }
         | 
| 726 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(params['color2_left'])));
         | 
| 727 | 
            +
                  case 72:
         | 
| 728 | 
            +
                    if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
         | 
| 729 | 
            +
                      _context3.next = 74;
         | 
| 730 | 
            +
                      break;
         | 
| 731 | 
            +
                    }
         | 
| 732 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(params['color2_link'])));
         | 
| 733 | 
            +
                  case 74:
         | 
| 734 | 
            +
                    if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
         | 
| 735 | 
            +
                      _context3.next = 76;
         | 
| 736 | 
            +
                      break;
         | 
| 737 | 
            +
                    }
         | 
| 738 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(params['color2_text'])));
         | 
| 739 | 
            +
                  case 76:
         | 
| 740 | 
            +
                    if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
         | 
| 741 | 
            +
                      _context3.next = 78;
         | 
| 742 | 
            +
                      break;
         | 
| 743 | 
            +
                    }
         | 
| 744 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(params['color2_top_text'])));
         | 
| 745 | 
            +
                  case 78:
         | 
| 746 | 
            +
                    if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
         | 
| 747 | 
            +
                      _context3.next = 80;
         | 
| 748 | 
            +
                      break;
         | 
| 749 | 
            +
                    }
         | 
| 750 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(params['site_header'])));
         | 
| 751 | 
            +
                  case 80:
         | 
| 752 | 
            +
                    if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
         | 
| 753 | 
            +
                      _context3.next = 82;
         | 
| 754 | 
            +
                      break;
         | 
| 755 | 
            +
                    }
         | 
| 756 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(params['site_footer'])));
         | 
| 757 | 
            +
                  case 82:
         | 
| 758 | 
            +
                    if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
         | 
| 759 | 
            +
                      _context3.next = 84;
         | 
| 760 | 
            +
                      break;
         | 
| 761 | 
            +
                    }
         | 
| 762 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(params['login_help_text'])));
         | 
| 763 | 
            +
                  case 84:
         | 
| 764 | 
            +
                    if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
         | 
| 765 | 
            +
                      _context3.next = 86;
         | 
| 766 | 
            +
                      break;
         | 
| 767 | 
            +
                    }
         | 
| 768 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(params['smtp_address'])));
         | 
| 769 | 
            +
                  case 86:
         | 
| 770 | 
            +
                    if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
         | 
| 771 | 
            +
                      _context3.next = 88;
         | 
| 772 | 
            +
                      break;
         | 
| 773 | 
            +
                    }
         | 
| 774 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(params['smtp_authentication'])));
         | 
| 775 | 
            +
                  case 88:
         | 
| 776 | 
            +
                    if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
         | 
| 777 | 
            +
                      _context3.next = 90;
         | 
| 778 | 
            +
                      break;
         | 
| 779 | 
            +
                    }
         | 
| 780 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(params['smtp_from'])));
         | 
| 781 | 
            +
                  case 90:
         | 
| 782 | 
            +
                    if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
         | 
| 783 | 
            +
                      _context3.next = 92;
         | 
| 784 | 
            +
                      break;
         | 
| 785 | 
            +
                    }
         | 
| 786 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(params['smtp_username'])));
         | 
| 787 | 
            +
                  case 92:
         | 
| 788 | 
            +
                    if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
         | 
| 789 | 
            +
                      _context3.next = 94;
         | 
| 790 | 
            +
                      break;
         | 
| 791 | 
            +
                    }
         | 
| 792 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(params['smtp_port'])));
         | 
| 793 | 
            +
                  case 94:
         | 
| 794 | 
            +
                    if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
         | 
| 795 | 
            +
                      _context3.next = 96;
         | 
| 796 | 
            +
                      break;
         | 
| 797 | 
            +
                    }
         | 
| 798 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(params['ldap_type'])));
         | 
| 799 | 
            +
                  case 96:
         | 
| 800 | 
            +
                    if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
         | 
| 801 | 
            +
                      _context3.next = 98;
         | 
| 802 | 
            +
                      break;
         | 
| 803 | 
            +
                    }
         | 
| 804 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(params['ldap_host'])));
         | 
| 805 | 
            +
                  case 98:
         | 
| 806 | 
            +
                    if (!(params['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
         | 
| 807 | 
            +
                      _context3.next = 100;
         | 
| 808 | 
            +
                      break;
         | 
| 809 | 
            +
                    }
         | 
| 810 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(params['ldap_host_2'])));
         | 
| 811 | 
            +
                  case 100:
         | 
| 812 | 
            +
                    if (!(params['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
         | 
| 813 | 
            +
                      _context3.next = 102;
         | 
| 814 | 
            +
                      break;
         | 
| 815 | 
            +
                    }
         | 
| 816 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(params['ldap_host_3'])));
         | 
| 817 | 
            +
                  case 102:
         | 
| 818 | 
            +
                    if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
         | 
| 819 | 
            +
                      _context3.next = 104;
         | 
| 820 | 
            +
                      break;
         | 
| 821 | 
            +
                    }
         | 
| 822 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(params['ldap_port'])));
         | 
| 823 | 
            +
                  case 104:
         | 
| 824 | 
            +
                    if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
         | 
| 825 | 
            +
                      _context3.next = 106;
         | 
| 826 | 
            +
                      break;
         | 
| 827 | 
            +
                    }
         | 
| 828 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(params['ldap_username'])));
         | 
| 829 | 
            +
                  case 106:
         | 
| 830 | 
            +
                    if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
         | 
| 831 | 
            +
                      _context3.next = 108;
         | 
| 832 | 
            +
                      break;
         | 
| 833 | 
            +
                    }
         | 
| 834 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(params['ldap_username_field'])));
         | 
| 835 | 
            +
                  case 108:
         | 
| 836 | 
            +
                    if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
         | 
| 837 | 
            +
                      _context3.next = 110;
         | 
| 838 | 
            +
                      break;
         | 
| 839 | 
            +
                    }
         | 
| 840 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(params['ldap_domain'])));
         | 
| 841 | 
            +
                  case 110:
         | 
| 842 | 
            +
                    if (!(params['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
         | 
| 843 | 
            +
                      _context3.next = 112;
         | 
| 844 | 
            +
                      break;
         | 
| 845 | 
            +
                    }
         | 
| 846 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(params['ldap_user_action'])));
         | 
| 847 | 
            +
                  case 112:
         | 
| 848 | 
            +
                    if (!(params['ldap_group_action'] && !(0, _utils.isString)(params['ldap_group_action']))) {
         | 
| 849 | 
            +
                      _context3.next = 114;
         | 
| 850 | 
            +
                      break;
         | 
| 851 | 
            +
                    }
         | 
| 852 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(params['ldap_group_action'])));
         | 
| 853 | 
            +
                  case 114:
         | 
| 854 | 
            +
                    if (!(params['ldap_user_include_groups'] && !(0, _utils.isString)(params['ldap_user_include_groups']))) {
         | 
| 855 | 
            +
                      _context3.next = 116;
         | 
| 856 | 
            +
                      break;
         | 
| 857 | 
            +
                    }
         | 
| 858 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(params['ldap_user_include_groups'])));
         | 
| 859 | 
            +
                  case 116:
         | 
| 860 | 
            +
                    if (!(params['ldap_group_exclusion'] && !(0, _utils.isString)(params['ldap_group_exclusion']))) {
         | 
| 861 | 
            +
                      _context3.next = 118;
         | 
| 862 | 
            +
                      break;
         | 
| 863 | 
            +
                    }
         | 
| 864 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(params['ldap_group_exclusion'])));
         | 
| 865 | 
            +
                  case 118:
         | 
| 866 | 
            +
                    if (!(params['ldap_group_inclusion'] && !(0, _utils.isString)(params['ldap_group_inclusion']))) {
         | 
| 867 | 
            +
                      _context3.next = 120;
         | 
| 868 | 
            +
                      break;
         | 
| 869 | 
            +
                    }
         | 
| 870 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(params['ldap_group_inclusion'])));
         | 
| 871 | 
            +
                  case 120:
         | 
| 872 | 
            +
                    if (!(params['ldap_base_dn'] && !(0, _utils.isString)(params['ldap_base_dn']))) {
         | 
| 873 | 
            +
                      _context3.next = 122;
         | 
| 874 | 
            +
                      break;
         | 
| 875 | 
            +
                    }
         | 
| 876 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(params['ldap_base_dn'])));
         | 
| 877 | 
            +
                  case 122:
         | 
| 878 | 
            +
                    if (!(params['ldap_password_change'] && !(0, _utils.isString)(params['ldap_password_change']))) {
         | 
| 879 | 
            +
                      _context3.next = 124;
         | 
| 880 | 
            +
                      break;
         | 
| 881 | 
            +
                    }
         | 
| 882 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(params['ldap_password_change'])));
         | 
| 883 | 
            +
                  case 124:
         | 
| 884 | 
            +
                    if (!(params['ldap_password_change_confirmation'] && !(0, _utils.isString)(params['ldap_password_change_confirmation']))) {
         | 
| 885 | 
            +
                      _context3.next = 126;
         | 
| 886 | 
            +
                      break;
         | 
| 887 | 
            +
                    }
         | 
| 888 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(params['ldap_password_change_confirmation'])));
         | 
| 889 | 
            +
                  case 126:
         | 
| 890 | 
            +
                    if (!(params['smtp_password'] && !(0, _utils.isString)(params['smtp_password']))) {
         | 
| 891 | 
            +
                      _context3.next = 128;
         | 
| 892 | 
            +
                      break;
         | 
| 893 | 
            +
                    }
         | 
| 894 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(params['smtp_password'])));
         | 
| 895 | 
            +
                  case 128:
         | 
| 896 | 
            +
                    _context3.next = 130;
         | 
| 897 | 
            +
                    return _Api.default.sendRequest("/site", 'PATCH', params, options);
         | 
| 898 | 
            +
                  case 130:
         | 
| 899 | 
            +
                    response = _context3.sent;
         | 
| 900 | 
            +
                    return _context3.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
         | 
| 901 | 
            +
                  case 132:
         | 
| 902 | 
            +
                  case "end":
         | 
| 903 | 
            +
                    return _context3.stop();
         | 
| 907 904 | 
             
                }
         | 
| 908 905 | 
             
              }, _callee3);
         | 
| 909 906 | 
             
            })));
         |