xserver-mcp 1.3.0 → 1.4.0

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/dist/index.js CHANGED
@@ -48,6 +48,27 @@ var ApiClient = class {
48
48
  return `/v1/server/${encodeURIComponent(this.servername)}`;
49
49
  }
50
50
  // ================================================================
51
+ // サーバーサービスAPI(/v1/server・servername非依存)
52
+ // ================================================================
53
+ async listServerPlans(params) {
54
+ return this.get("/v1/server/plans", params);
55
+ }
56
+ async registerServer(data, idempotencyKey4) {
57
+ return this.post("/v1/server", data, idempotencyHeaders(idempotencyKey4));
58
+ }
59
+ async listServers() {
60
+ return this.get("/v1/server");
61
+ }
62
+ async getServerSignupStatus(servername3) {
63
+ return this.get(`/v1/server/${enc(servername3)}/signup-status`);
64
+ }
65
+ async getServerMemo(servername3) {
66
+ return this.get(`/v1/server/${enc(servername3)}/memo`);
67
+ }
68
+ async updateServerMemo(servername3, data) {
69
+ return this.put(`/v1/server/${enc(servername3)}/memo`, data);
70
+ }
71
+ // ================================================================
51
72
  // サーバー情報
52
73
  // ================================================================
53
74
  async getServerInfo() {
@@ -536,14 +557,14 @@ var ApiClient = class {
536
557
  async getDomainPricing(params) {
537
558
  return this.get("/v1/domain/pricing", params);
538
559
  }
539
- async registerDomain(data, idempotencyKey3) {
540
- return this.post("/v1/domain", data, idempotencyHeaders(idempotencyKey3));
560
+ async registerDomain(data, idempotencyKey4) {
561
+ return this.post("/v1/domain", data, idempotencyHeaders(idempotencyKey4));
541
562
  }
542
- async transferDomain(domainName2, data, idempotencyKey3) {
543
- return this.post(`${this.domainPath(domainName2)}/transfer`, data, idempotencyHeaders(idempotencyKey3));
563
+ async transferDomain(domainName2, data, idempotencyKey4) {
564
+ return this.post(`${this.domainPath(domainName2)}/transfer`, data, idempotencyHeaders(idempotencyKey4));
544
565
  }
545
- async renewDomain(domainName2, data, idempotencyKey3) {
546
- return this.post(`${this.domainPath(domainName2)}/renew`, data, idempotencyHeaders(idempotencyKey3));
566
+ async renewDomain(domainName2, data, idempotencyKey4) {
567
+ return this.post(`${this.domainPath(domainName2)}/renew`, data, idempotencyHeaders(idempotencyKey4));
547
568
  }
548
569
  // ================================================================
549
570
  // WPhosting API(/v1/wphosting/{contract_id})
@@ -551,179 +572,194 @@ var ApiClient = class {
551
572
  wphostingPath(contractId2) {
552
573
  return `/v1/wphosting/${enc(contractId2)}`;
553
574
  }
554
- wphostingSitePath(contractId2, servername2) {
555
- return `${this.wphostingPath(contractId2)}/sites/${enc(servername2)}`;
575
+ wphostingSitePath(contractId2, servername3) {
576
+ return `${this.wphostingPath(contractId2)}/sites/${enc(servername3)}`;
577
+ }
578
+ async listWphostingPlans(params) {
579
+ return this.get("/v1/wphosting/plans", params);
580
+ }
581
+ async registerWphosting(data, idempotencyKey4) {
582
+ return this.post("/v1/wphosting", data, idempotencyHeaders(idempotencyKey4));
583
+ }
584
+ async listWphostingContracts() {
585
+ return this.get("/v1/wphosting");
586
+ }
587
+ async getWphostingMemo(contractId2) {
588
+ return this.get(`${this.wphostingPath(contractId2)}/memo`);
589
+ }
590
+ async updateWphostingMemo(contractId2, data) {
591
+ return this.put(`${this.wphostingPath(contractId2)}/memo`, data);
556
592
  }
557
593
  async listWphostingSites(contractId2) {
558
594
  return this.get(`${this.wphostingPath(contractId2)}/sites`);
559
595
  }
560
- async getWphostingSite(contractId2, servername2) {
561
- return this.get(this.wphostingSitePath(contractId2, servername2));
596
+ async getWphostingSite(contractId2, servername3) {
597
+ return this.get(this.wphostingSitePath(contractId2, servername3));
562
598
  }
563
- async createWphostingSite(contractId2, data, idempotencyKey3) {
564
- return this.post(`${this.wphostingPath(contractId2)}/sites`, data, idempotencyHeaders(idempotencyKey3));
599
+ async createWphostingSite(contractId2, data, idempotencyKey4) {
600
+ return this.post(`${this.wphostingPath(contractId2)}/sites`, data, idempotencyHeaders(idempotencyKey4));
565
601
  }
566
- async deleteWphostingSite(contractId2, servername2, idempotencyKey3) {
567
- return this.delete(this.wphostingSitePath(contractId2, servername2), void 0, idempotencyHeaders(idempotencyKey3));
602
+ async deleteWphostingSite(contractId2, servername3, idempotencyKey4) {
603
+ return this.delete(this.wphostingSitePath(contractId2, servername3), void 0, idempotencyHeaders(idempotencyKey4));
568
604
  }
569
605
  async getWphostingUsage(contractId2) {
570
606
  return this.get(`${this.wphostingPath(contractId2)}/usage`);
571
607
  }
572
- async createWphostingStaging(contractId2, servername2, data, idempotencyKey3) {
573
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/staging`, data, idempotencyHeaders(idempotencyKey3));
608
+ async createWphostingStaging(contractId2, servername3, data, idempotencyKey4) {
609
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/staging`, data, idempotencyHeaders(idempotencyKey4));
574
610
  }
575
- async listWphostingBackups(contractId2, servername2) {
576
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/backups`);
611
+ async listWphostingBackups(contractId2, servername3) {
612
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/backups`);
577
613
  }
578
- async createWphostingBackup(contractId2, servername2, data, idempotencyKey3) {
579
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/backups`, data, idempotencyHeaders(idempotencyKey3));
614
+ async createWphostingBackup(contractId2, servername3, data, idempotencyKey4) {
615
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/backups`, data, idempotencyHeaders(idempotencyKey4));
580
616
  }
581
- async restoreWphostingBackup(contractId2, servername2, backupId, idempotencyKey3) {
582
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/backups/${enc(backupId)}/restore`, void 0, idempotencyHeaders(idempotencyKey3));
617
+ async restoreWphostingBackup(contractId2, servername3, backupId, idempotencyKey4) {
618
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/backups/${enc(backupId)}/restore`, void 0, idempotencyHeaders(idempotencyKey4));
583
619
  }
584
- async listWphostingBackupRestoreHistory(contractId2, servername2) {
585
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/backups/restore-history`);
620
+ async listWphostingBackupRestoreHistory(contractId2, servername3) {
621
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/backups/restore-history`);
586
622
  }
587
- async deleteWphostingBackup(contractId2, servername2, backupId) {
588
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/backups/${enc(backupId)}`);
623
+ async deleteWphostingBackup(contractId2, servername3, backupId) {
624
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/backups/${enc(backupId)}`);
589
625
  }
590
- async getWphostingWordPress(contractId2, servername2) {
591
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/wordpress`);
626
+ async getWphostingWordPress(contractId2, servername3) {
627
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/wordpress`);
592
628
  }
593
- async updateWphostingWordPress(contractId2, servername2, data) {
594
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/wordpress`, data);
629
+ async updateWphostingWordPress(contractId2, servername3, data) {
630
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/wordpress`, data);
595
631
  }
596
- async upgradeWphostingWordPress(contractId2, servername2) {
597
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/wordpress/update`);
632
+ async upgradeWphostingWordPress(contractId2, servername3) {
633
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/wordpress/update`);
598
634
  }
599
- async getWphostingMaintenanceMode(contractId2, servername2) {
600
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/maintenance-mode`);
635
+ async getWphostingMaintenanceMode(contractId2, servername3) {
636
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/maintenance-mode`);
601
637
  }
602
- async updateWphostingMaintenanceMode(contractId2, servername2, data) {
603
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/maintenance-mode`, data);
638
+ async updateWphostingMaintenanceMode(contractId2, servername3, data) {
639
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/maintenance-mode`, data);
604
640
  }
605
- async listWphostingPlugins(contractId2, servername2) {
606
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/plugins`);
641
+ async listWphostingPlugins(contractId2, servername3) {
642
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/plugins`);
607
643
  }
608
- async installWphostingPlugin(contractId2, servername2, data) {
609
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/plugins`, data);
644
+ async installWphostingPlugin(contractId2, servername3, data) {
645
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/plugins`, data);
610
646
  }
611
- async updateWphostingPlugin(contractId2, servername2, plugin, data) {
612
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/plugins/${enc(plugin)}`, data);
647
+ async updateWphostingPlugin(contractId2, servername3, plugin, data) {
648
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/plugins/${enc(plugin)}`, data);
613
649
  }
614
- async upgradeWphostingPlugin(contractId2, servername2, plugin) {
615
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/plugins/${enc(plugin)}/update`);
650
+ async upgradeWphostingPlugin(contractId2, servername3, plugin) {
651
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/plugins/${enc(plugin)}/update`);
616
652
  }
617
- async deleteWphostingPlugin(contractId2, servername2, plugin) {
618
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/plugins/${enc(plugin)}`);
653
+ async deleteWphostingPlugin(contractId2, servername3, plugin) {
654
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/plugins/${enc(plugin)}`);
619
655
  }
620
- async listWphostingThemes(contractId2, servername2) {
621
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/themes`);
656
+ async listWphostingThemes(contractId2, servername3) {
657
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/themes`);
622
658
  }
623
- async installWphostingTheme(contractId2, servername2, data) {
624
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/themes`, data);
659
+ async installWphostingTheme(contractId2, servername3, data) {
660
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/themes`, data);
625
661
  }
626
- async updateWphostingTheme(contractId2, servername2, theme, data) {
627
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/themes/${enc(theme)}`, data);
662
+ async updateWphostingTheme(contractId2, servername3, theme, data) {
663
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/themes/${enc(theme)}`, data);
628
664
  }
629
- async upgradeWphostingTheme(contractId2, servername2, theme) {
630
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/themes/${enc(theme)}/update`);
665
+ async upgradeWphostingTheme(contractId2, servername3, theme) {
666
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/themes/${enc(theme)}/update`);
631
667
  }
632
- async deleteWphostingTheme(contractId2, servername2, theme) {
633
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/themes/${enc(theme)}`);
668
+ async deleteWphostingTheme(contractId2, servername3, theme) {
669
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/themes/${enc(theme)}`);
634
670
  }
635
- async listWphostingDomains(contractId2, servername2) {
636
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/domains`);
671
+ async listWphostingDomains(contractId2, servername3) {
672
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/domains`);
637
673
  }
638
- async addWphostingDomain(contractId2, servername2, data) {
639
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/domains`, data);
674
+ async addWphostingDomain(contractId2, servername3, data) {
675
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/domains`, data);
640
676
  }
641
- async verifyWphostingDomain(contractId2, servername2, domain2) {
642
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/domains/${enc(domain2)}/verify`);
677
+ async verifyWphostingDomain(contractId2, servername3, domain2) {
678
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/domains/${enc(domain2)}/verify`);
643
679
  }
644
- async deleteWphostingDomain(contractId2, servername2, domain2) {
645
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/domains/${enc(domain2)}`);
680
+ async deleteWphostingDomain(contractId2, servername3, domain2) {
681
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/domains/${enc(domain2)}`);
646
682
  }
647
- async updateWphostingSiteUrl(contractId2, servername2, data) {
648
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/site-url`, data);
683
+ async updateWphostingSiteUrl(contractId2, servername3, data) {
684
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/site-url`, data);
649
685
  }
650
- async listWphostingDnsRecords(contractId2, servername2, domain2) {
651
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/domains/${enc(domain2)}/dns`);
686
+ async listWphostingDnsRecords(contractId2, servername3, domain2) {
687
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/domains/${enc(domain2)}/dns`);
652
688
  }
653
- async addWphostingDnsRecord(contractId2, servername2, domain2, data) {
654
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/domains/${enc(domain2)}/dns`, data);
689
+ async addWphostingDnsRecord(contractId2, servername3, domain2, data) {
690
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/domains/${enc(domain2)}/dns`, data);
655
691
  }
656
- async updateWphostingDnsRecord(contractId2, servername2, domain2, dnsId2, data) {
657
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/domains/${enc(domain2)}/dns/${enc(dnsId2)}`, data);
692
+ async updateWphostingDnsRecord(contractId2, servername3, domain2, dnsId2, data) {
693
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/domains/${enc(domain2)}/dns/${enc(dnsId2)}`, data);
658
694
  }
659
- async deleteWphostingDnsRecord(contractId2, servername2, domain2, dnsId2) {
660
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/domains/${enc(domain2)}/dns/${enc(dnsId2)}`);
695
+ async deleteWphostingDnsRecord(contractId2, servername3, domain2, dnsId2) {
696
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/domains/${enc(domain2)}/dns/${enc(dnsId2)}`);
661
697
  }
662
- async getWphostingPhpVersion(contractId2, servername2) {
663
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/php-version`);
698
+ async getWphostingPhpVersion(contractId2, servername3) {
699
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/php-version`);
664
700
  }
665
- async updateWphostingPhpVersion(contractId2, servername2, data) {
666
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/php-version`, data);
701
+ async updateWphostingPhpVersion(contractId2, servername3, data) {
702
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/php-version`, data);
667
703
  }
668
- async getWphostingAccessLog(contractId2, servername2, params) {
669
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/access-log`, params);
704
+ async getWphostingAccessLog(contractId2, servername3, params) {
705
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/access-log`, params);
670
706
  }
671
- async getWphostingErrorLog(contractId2, servername2, params) {
672
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/error-log`, params);
707
+ async getWphostingErrorLog(contractId2, servername3, params) {
708
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/error-log`, params);
673
709
  }
674
- async listWphostingCron(contractId2, servername2) {
675
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/cron`);
710
+ async listWphostingCron(contractId2, servername3) {
711
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/cron`);
676
712
  }
677
- async addWphostingCron(contractId2, servername2, data) {
678
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/cron`, data);
713
+ async addWphostingCron(contractId2, servername3, data) {
714
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/cron`, data);
679
715
  }
680
- async updateWphostingCron(contractId2, servername2, cronId, data) {
681
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/cron/${enc(cronId)}`, data);
716
+ async updateWphostingCron(contractId2, servername3, cronId, data) {
717
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/cron/${enc(cronId)}`, data);
682
718
  }
683
- async deleteWphostingCron(contractId2, servername2, cronId) {
684
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/cron/${enc(cronId)}`);
719
+ async deleteWphostingCron(contractId2, servername3, cronId) {
720
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/cron/${enc(cronId)}`);
685
721
  }
686
- async getWphostingSsh(contractId2, servername2) {
687
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/ssh`);
722
+ async getWphostingSsh(contractId2, servername3) {
723
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/ssh`);
688
724
  }
689
- async updateWphostingSsh(contractId2, servername2, data) {
690
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/ssh`, data);
725
+ async updateWphostingSsh(contractId2, servername3, data) {
726
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/ssh`, data);
691
727
  }
692
- async listWphostingSshKeys(contractId2, servername2) {
693
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/ssh/key`);
728
+ async listWphostingSshKeys(contractId2, servername3) {
729
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/ssh/key`);
694
730
  }
695
- async addWphostingSshKey(contractId2, servername2, data) {
696
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/ssh/key`, data);
731
+ async addWphostingSshKey(contractId2, servername3, data) {
732
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/ssh/key`, data);
697
733
  }
698
- async updateWphostingSshKey(contractId2, servername2, keyId, data) {
699
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/ssh/key/${enc(keyId)}`, data);
734
+ async updateWphostingSshKey(contractId2, servername3, keyId, data) {
735
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/ssh/key/${enc(keyId)}`, data);
700
736
  }
701
- async deleteWphostingSshKey(contractId2, servername2, keyId) {
702
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/ssh/key/${enc(keyId)}`);
737
+ async deleteWphostingSshKey(contractId2, servername3, keyId) {
738
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/ssh/key/${enc(keyId)}`);
703
739
  }
704
- async listWphostingWpUserRoles(contractId2, servername2) {
705
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/wp-users/roles`);
740
+ async listWphostingWpUserRoles(contractId2, servername3) {
741
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/wp-users/roles`);
706
742
  }
707
- async listWphostingWpUsers(contractId2, servername2, params) {
708
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/wp-users`, params);
743
+ async listWphostingWpUsers(contractId2, servername3, params) {
744
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/wp-users`, params);
709
745
  }
710
- async createWphostingWpUser(contractId2, servername2, data) {
711
- return this.post(`${this.wphostingSitePath(contractId2, servername2)}/wp-users`, data);
746
+ async createWphostingWpUser(contractId2, servername3, data) {
747
+ return this.post(`${this.wphostingSitePath(contractId2, servername3)}/wp-users`, data);
712
748
  }
713
- async getWphostingWpUser(contractId2, servername2, userId) {
714
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/wp-users/${enc(userId)}`);
749
+ async getWphostingWpUser(contractId2, servername3, userId) {
750
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/wp-users/${enc(userId)}`);
715
751
  }
716
- async updateWphostingWpUser(contractId2, servername2, userId, data) {
717
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/wp-users/${enc(userId)}`, data);
752
+ async updateWphostingWpUser(contractId2, servername3, userId, data) {
753
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/wp-users/${enc(userId)}`, data);
718
754
  }
719
- async deleteWphostingWpUser(contractId2, servername2, userId) {
720
- return this.delete(`${this.wphostingSitePath(contractId2, servername2)}/wp-users/${enc(userId)}`);
755
+ async deleteWphostingWpUser(contractId2, servername3, userId) {
756
+ return this.delete(`${this.wphostingSitePath(contractId2, servername3)}/wp-users/${enc(userId)}`);
721
757
  }
722
- async getWphostingSecurity(contractId2, servername2) {
723
- return this.get(`${this.wphostingSitePath(contractId2, servername2)}/security`);
758
+ async getWphostingSecurity(contractId2, servername3) {
759
+ return this.get(`${this.wphostingSitePath(contractId2, servername3)}/security`);
724
760
  }
725
- async updateWphostingSecurity(contractId2, servername2, key, data) {
726
- return this.put(`${this.wphostingSitePath(contractId2, servername2)}/security/${enc(key)}`, data);
761
+ async updateWphostingSecurity(contractId2, servername3, key, data) {
762
+ return this.put(`${this.wphostingSitePath(contractId2, servername3)}/security/${enc(key)}`, data);
727
763
  }
728
764
  // ================================================================
729
765
  // HTTP 基盤
@@ -815,17 +851,132 @@ var ApiClient = class {
815
851
  function enc(s) {
816
852
  return encodeURIComponent(s);
817
853
  }
818
- function idempotencyHeaders(idempotencyKey3) {
819
- return idempotencyKey3 === void 0 ? void 0 : { "Idempotency-Key": idempotencyKey3 };
854
+ function idempotencyHeaders(idempotencyKey4) {
855
+ return idempotencyKey4 === void 0 ? void 0 : { "Idempotency-Key": idempotencyKey4 };
856
+ }
857
+
858
+ // ../../shared/dist/billing-confirmation.js
859
+ function formatYen(value) {
860
+ return `${String(value).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}\u5186`;
861
+ }
862
+ function planLabel(planId2, planName) {
863
+ return planName === void 0 || planName === planId2 ? `\u30D7\u30E9\u30F3 ${planId2}` : `${planName}\u30D7\u30E9\u30F3\uFF08${planId2}\uFF09`;
864
+ }
865
+ function planNameFromPlans(plans, planId2) {
866
+ const list = plans?.plans;
867
+ if (!Array.isArray(list))
868
+ return void 0;
869
+ for (const plan of list) {
870
+ const record3 = plan;
871
+ if (record3?.plan_id !== planId2)
872
+ continue;
873
+ if (typeof record3.plan_name !== "string" || record3.plan_name === "") {
874
+ return void 0;
875
+ }
876
+ return record3.plan_name;
877
+ }
878
+ return void 0;
879
+ }
880
+ async function resolvePlanName(fetchPlans, planId2) {
881
+ try {
882
+ return planNameFromPlans(await fetchPlans(), planId2);
883
+ } catch {
884
+ return void 0;
885
+ }
886
+ }
887
+ function billingConfirmationDetailLines(details) {
888
+ const lines = [];
889
+ for (const detail of details) {
890
+ lines.push(`${detail.label}: ${detail.value}`);
891
+ if (detail.note !== void 0)
892
+ lines.push(` \u203B ${detail.note}`);
893
+ }
894
+ return lines;
895
+ }
896
+ function billingPaymentLines(totalPrice) {
897
+ return [
898
+ `\u304A\u652F\u6255\u3044\u91D1\u984D: ${formatYen(totalPrice)}\uFF08\u7A0E\u8FBC\u30FB\u30AD\u30E3\u30F3\u30DA\u30FC\u30F3\u9069\u7528\u5F8C\u306E\u5B9F\u652F\u6255\u984D\uFF09`,
899
+ "\u304A\u652F\u6255\u3044\u65B9\u6CD5: \u30D7\u30EA\u30DA\u30A4\u30C9\u6B8B\u9AD8\u304B\u3089\u306E\u5F15\u304D\u843D\u3068\u3057"
900
+ ];
901
+ }
902
+ function autoRenewDetail(autoRenew, options = {}) {
903
+ if (!autoRenew) {
904
+ return {
905
+ label: "\u81EA\u52D5\u66F4\u65B0",
906
+ value: "\u7121\u52B9",
907
+ note: "\u5951\u7D04\u671F\u9650\u307E\u3067\u306B\u624B\u52D5\u3067\u66F4\u65B0\u3057\u306A\u3044\u5834\u5408\u306F\u5931\u52B9\u3057\u307E\u3059\u3002"
908
+ };
909
+ }
910
+ return {
911
+ label: "\u81EA\u52D5\u66F4\u65B0",
912
+ value: "\u6709\u52B9\uFF08\u6B21\u56DE\u4EE5\u964D\u306E\u66F4\u65B0\u3082\u81EA\u52D5\u3067\u8AB2\u91D1\u3055\u308C\u307E\u3059\uFF09",
913
+ note: options.fromDefault ? `${options.optionName ?? "--auto-renew"} \u3092\u6307\u5B9A\u3057\u3066\u3044\u306A\u3044\u305F\u3081\u3001\u65E2\u5B9A\u5024\u306E\u6709\u52B9\u304C\u9069\u7528\u3055\u308C\u307E\u3059\u3002` : void 0
914
+ };
915
+ }
916
+ function partnerCodeDetail(partnerCode) {
917
+ if (partnerCode === void 0)
918
+ return void 0;
919
+ return {
920
+ label: "\u304A\u53D6\u6B21\u5E97\u30B3\u30FC\u30C9",
921
+ value: partnerCode,
922
+ note: "\u5B58\u5728\u3057\u306A\u3044\u30B3\u30FC\u30C9\u3067\u3082\u7533\u8FBC\u306F\u6210\u7ACB\u3057\u3001\u30A8\u30E9\u30FC\u306B\u306A\u308A\u307E\u305B\u3093\u3002\u8868\u8A18\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
923
+ };
924
+ }
925
+ function serverIdDetail(serverId) {
926
+ return {
927
+ label: "\u5E0C\u671B\u30B5\u30FC\u30D0\u30FCID",
928
+ value: serverId ?? "\u6307\u5B9A\u306A\u3057\uFF08\u81EA\u52D5\u3067\u63A1\u756A\u3055\u308C\u307E\u3059\uFF09"
929
+ };
930
+ }
931
+ function compactDetails(details) {
932
+ return details.filter((detail) => detail !== void 0);
820
933
  }
821
934
 
822
935
  // ../../shared/dist/brand-config.js
936
+ function resolveServerPlanBrand(brand, service, planId2) {
937
+ if (service === "server" && planId2 !== void 0) {
938
+ const override = brand.serverPlanOverrides?.find((o) => planId2.startsWith(o.planIdPrefix));
939
+ if (override !== void 0) {
940
+ return {
941
+ serviceName: override.serviceName,
942
+ termsUrl: override.termsUrl,
943
+ privacyUrl: override.privacyUrl
944
+ };
945
+ }
946
+ }
947
+ return service === "server" ? {
948
+ serviceName: brand.serverServiceName,
949
+ termsUrl: brand.serverTermsUrl,
950
+ privacyUrl: brand.serverPrivacyUrl
951
+ } : {
952
+ serviceName: brand.wphostingServiceName,
953
+ termsUrl: brand.wphostingTermsUrl,
954
+ privacyUrl: brand.wphostingPrivacyUrl
955
+ };
956
+ }
823
957
  function domainLegalNoticeLines(brand) {
824
958
  return [
825
959
  `\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04: ${brand.domainTermsUrl}`,
826
960
  `\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066: ${brand.domainPrivacyUrl}`
827
961
  ];
828
962
  }
963
+ function signupOperationName(brand, service, planId2) {
964
+ const { serviceName } = resolveServerPlanBrand(brand, service, planId2);
965
+ if (serviceName === void 0) {
966
+ throw new Error(`${service}\u306E\u30B5\u30FC\u30D3\u30B9\u540D\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093`);
967
+ }
968
+ return `${serviceName} \u65B0\u898F\u304A\u7533\u3057\u8FBC\u307F`;
969
+ }
970
+ function signupLegalNoticeLines(brand, service, planId2) {
971
+ const { termsUrl, privacyUrl } = resolveServerPlanBrand(brand, service, planId2);
972
+ if (termsUrl === void 0 || privacyUrl === void 0) {
973
+ throw new Error(`${service}\u306E\u5229\u7528\u898F\u7D04\u30FB\u500B\u4EBA\u60C5\u5831URL\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093`);
974
+ }
975
+ return [
976
+ `\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04: ${termsUrl}`,
977
+ `\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066: ${privacyUrl}`
978
+ ];
979
+ }
829
980
 
830
981
  // ../../shared/dist/domain-acquisition-permission.js
831
982
  function record(value) {
@@ -877,10 +1028,10 @@ var ServerTargetResolver = class {
877
1028
  client;
878
1029
  constructor(options) {
879
1030
  this.fixedServername = options.fixedServername;
880
- this.createClient = options.createClient ?? ((servername2) => new ApiClient({
1031
+ this.createClient = options.createClient ?? ((servername3) => new ApiClient({
881
1032
  apiKey: options.apiKey,
882
1033
  apiBase: options.apiBase,
883
- servername: servername2
1034
+ servername: servername3
884
1035
  }));
885
1036
  this.accountClient = this.createClient();
886
1037
  this.client = new Proxy(this.accountClient, {
@@ -946,8 +1097,8 @@ function withServerTargetResolution(server, resolver) {
946
1097
  throw new Error("Server tool registration requires a callback.");
947
1098
  }
948
1099
  registrationArgs[callbackIndex] = async (input = {}, ...callbackArgs) => {
949
- const { servername: servername2, ...forwardedInput } = input;
950
- return resolver.run(typeof servername2 === "string" ? servername2 : void 0, () => callback(forwardedInput, ...callbackArgs));
1100
+ const { servername: servername3, ...forwardedInput } = input;
1101
+ return resolver.run(typeof servername3 === "string" ? servername3 : void 0, () => callback(forwardedInput, ...callbackArgs));
951
1102
  };
952
1103
  return Reflect.apply(target.tool, target, registrationArgs);
953
1104
  };
@@ -955,6 +1106,123 @@ function withServerTargetResolution(server, resolver) {
955
1106
  });
956
1107
  }
957
1108
 
1109
+ // ../core/dist/tools/server/account.js
1110
+ import { z as z2 } from "zod";
1111
+
1112
+ // ../core/dist/billing-confirmation.js
1113
+ import { ErrorCode, McpError } from "@modelcontextprotocol/sdk/types.js";
1114
+ function billingPreviewResult(preview, legalNoticeLines) {
1115
+ const previewFields = preview !== null && typeof preview === "object" && !Array.isArray(preview) ? preview : { preview };
1116
+ return {
1117
+ ...previewFields,
1118
+ legal_notices: [...legalNoticeLines],
1119
+ next_step: "Present legal_notices as clickable Markdown links in chat. After the user reviews them, invoke the execute tool to show the final confirmation form."
1120
+ };
1121
+ }
1122
+ function supportsFormElicitation(server) {
1123
+ const elicitation = server.server.getClientCapabilities()?.elicitation;
1124
+ return elicitation != null && elicitation.form != null;
1125
+ }
1126
+ var BILLING_CONFIRMATION_TIMEOUT_MS = 18e4;
1127
+ function assertBillingFormElicitationSupported(server) {
1128
+ if (!supportsFormElicitation(server)) {
1129
+ throw new Error("\u8AB2\u91D1\u64CD\u4F5C\u306B\u306F MCP form elicitation \u5BFE\u5FDC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u5FC5\u8981\u3067\u3059\u3002\u975E\u5BFE\u5FDC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3002");
1130
+ }
1131
+ }
1132
+ async function confirmBillingOperation(server, input) {
1133
+ if (!supportsFormElicitation(server)) {
1134
+ throw new Error("\u8AB2\u91D1\u64CD\u4F5C\u306B\u306F MCP form elicitation \u5BFE\u5FDC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8 (Codex / Claude Code / Cursor \u306E\u5BFE\u8A71\u30E2\u30FC\u30C9\u306A\u3069)\u304C\u5FC5\u8981\u3067\u3059\u3002\u975E\u5BFE\u5FDC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3002");
1135
+ }
1136
+ const target = input.target ?? input.domain;
1137
+ const targetLabel = input.targetLabel ?? "\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3";
1138
+ const yearsLines = input.years == null ? [] : [`- \u5951\u7D04\u5E74\u6570: ${input.years}\u5E74`];
1139
+ const termsLines = input.requireTermsAgreement ? [
1140
+ "- \u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u540C\u610F\u304C\u5FC5\u8981\u3067\u3059\u3002"
1141
+ ] : [];
1142
+ const legalNoticeLines = input.domain === void 0 ? input.legalNoticeLines : domainLegalNoticeLines(input.brand);
1143
+ const detailLines = billingConfirmationDetailLines(input.details ?? []).map((line) => line.startsWith(" ") ? line : `- ${line}`);
1144
+ const paymentLines = billingPaymentLines(input.totalPrice).map((line) => `- ${line}`);
1145
+ const applicationLines = [
1146
+ `- \u64CD\u4F5C: ${input.operation}`,
1147
+ `- ${targetLabel}: ${target}`,
1148
+ ...yearsLines,
1149
+ ...detailLines,
1150
+ ...paymentLines
1151
+ ];
1152
+ const confirmationLines = [
1153
+ ...legalNoticeLines.map((line) => `- ${line}`),
1154
+ "- \u7533\u8ACB\u3059\u308B\u3068\u8AB2\u91D1\u3055\u308C\u3001\u53D6\u308A\u6D88\u305B\u307E\u305B\u3093\u3002",
1155
+ ...termsLines
1156
+ ];
1157
+ const message = [
1158
+ "\u8AB2\u91D1\u3092\u4F34\u3046\u64CD\u4F5C\u3067\u3059\u3002",
1159
+ "\u3010\u304A\u7533\u3057\u8FBC\u307F\u5185\u5BB9\u3011",
1160
+ applicationLines.join("\n"),
1161
+ "\u3010\u78BA\u8A8D\u4E8B\u9805\u3011",
1162
+ confirmationLines.join("\n"),
1163
+ "\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u627F\u8A8D\u3059\u308B\u5834\u5408\u306E\u307F\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
1164
+ ].join("\n\n");
1165
+ const properties = {
1166
+ confirm_purchase: {
1167
+ type: "boolean",
1168
+ title: "\u8AB2\u91D1\u3092\u627F\u8A8D\u3059\u308B",
1169
+ description: `${target} / ${formatYen(input.totalPrice)} / ${input.operation}`
1170
+ }
1171
+ };
1172
+ const required = ["confirm_purchase"];
1173
+ if (input.requireTermsAgreement) {
1174
+ properties.agree_to_terms = {
1175
+ type: "boolean",
1176
+ title: "\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u306B\u540C\u610F\u3059\u308B",
1177
+ description: input.domain == null ? "\u3053\u306E\u7533\u8FBC\u306B\u9069\u7528\u3055\u308C\u308B\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u306B\u540C\u610F\u3057\u307E\u3059" : "\u30C9\u30E1\u30A4\u30F3\u53D6\u5F97\u30FB\u79FB\u7BA1\u306E\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u306B\u540C\u610F\u3057\u307E\u3059"
1178
+ };
1179
+ required.push("agree_to_terms");
1180
+ }
1181
+ let result;
1182
+ try {
1183
+ result = await server.server.elicitInput({
1184
+ mode: "form",
1185
+ message,
1186
+ requestedSchema: {
1187
+ type: "object",
1188
+ properties,
1189
+ required
1190
+ }
1191
+ }, { timeout: BILLING_CONFIRMATION_TIMEOUT_MS });
1192
+ } catch (error) {
1193
+ if (error instanceof McpError && error.code === ErrorCode.RequestTimeout) {
1194
+ throw new Error(`BILLING_CONFIRMATION_TIMEOUT: \u8AB2\u91D1\u78BA\u8A8D\u306E\u5FDC\u7B54\u304C${Math.round(BILLING_CONFIRMATION_TIMEOUT_MS / 1e3)}\u79D2\u4EE5\u5185\u306B\u5F97\u3089\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002\u7533\u8ACB\u306F\u9001\u4FE1\u3057\u3066\u3044\u306A\u3044\u305F\u3081\u8AB2\u91D1\u306F\u767A\u751F\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u898F\u7D04\u306E\u78BA\u8A8D\u3092\u7D42\u3048\u3066\u304B\u3089\u3001\u540C\u3058\u51AA\u7B49\u6027\u30AD\u30FC\u3067\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`);
1195
+ }
1196
+ const detail = error instanceof Error ? error.message : String(error);
1197
+ throw new Error(`\u8AB2\u91D1\u78BA\u8A8D\uFF08elicitation\uFF09\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F: ${detail}`);
1198
+ }
1199
+ if (result.action === "decline" || result.action === "cancel") {
1200
+ throw new Error("BILLING_CONFIRMATION_DECLINED: \u5229\u7528\u8005\u304C\u8AB2\u91D1\u78BA\u8A8D\u3092\u62D2\u5426\u307E\u305F\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
1201
+ }
1202
+ if (result.action !== "accept" || result.content == null || typeof result.content !== "object") {
1203
+ throw new Error("BILLING_CONFIRMATION_INVALID: \u8AB2\u91D1\u78BA\u8A8D\u306E\u5FDC\u7B54\u304C\u4E0D\u6B63\u306A\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
1204
+ }
1205
+ const content = result.content;
1206
+ if (content.confirm_purchase !== true) {
1207
+ throw new Error("BILLING_CONFIRMATION_NOT_APPROVED: \u8AB2\u91D1\u627F\u8A8D\u304C\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
1208
+ }
1209
+ if (input.requireTermsAgreement && content.agree_to_terms !== true) {
1210
+ throw new Error("BILLING_TERMS_NOT_APPROVED: \u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u540C\u610F\u304C\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
1211
+ }
1212
+ }
1213
+ var billingPreviewAnnotations = {
1214
+ readOnlyHint: true,
1215
+ destructiveHint: false,
1216
+ idempotentHint: true,
1217
+ openWorldHint: true
1218
+ };
1219
+ var billingExecuteAnnotations = {
1220
+ readOnlyHint: false,
1221
+ destructiveHint: true,
1222
+ idempotentHint: true,
1223
+ openWorldHint: true
1224
+ };
1225
+
958
1226
  // ../core/dist/helper.js
959
1227
  function serverToolName(brand, action, feature) {
960
1228
  return `${brand.brand}_${action}_server_${feature}`;
@@ -985,6 +1253,76 @@ async function callApi(fn) {
985
1253
  }
986
1254
  }
987
1255
 
1256
+ // ../core/dist/tools/server/account.js
1257
+ var planId = z2.string().min(1).max(64).describe("\u30D7\u30E9\u30F3ID");
1258
+ var servername = z2.string().min(1).max(255).describe("\u5BFE\u8C61\u30B5\u30FC\u30D0\u30FC\u306Eservername\uFF08\u660E\u793A\u6307\u5B9A\u5FC5\u9808\uFF09");
1259
+ var memo = z2.string().max(500).describe("\u5951\u7D04\u30E1\u30E2\uFF08\u7A7A\u6587\u5B57\u53EF\u3001500\u6587\u5B57\u4EE5\u5185\uFF09");
1260
+ var expectedTotalPrice = z2.number().int().nonnegative().describe("preview\u3068\u4E00\u81F4\u3059\u308B\u7A0E\u8FBC\u5408\u8A08\u91D1\u984D");
1261
+ var idempotencyKey = z2.string().regex(/^[A-Za-z0-9_-]{8,64}$/).describe("Idempotency-Key\uFF08\u82F1\u6570\u5B57\u30FB_\u30FB-\u30018\uFF5E64\u6587\u5B57\uFF09");
1262
+ var signupInput = {
1263
+ plan_id: planId,
1264
+ period: z2.number().int().min(1).max(60).describe("\u5951\u7D04\u671F\u9593\uFF08\u6708\u6570\u3002\u30D7\u30E9\u30F3\u53D6\u5F97\u30C4\u30FC\u30EB\u304C\u8FD4\u3057\u305F months \u304B\u3089\u6307\u5B9A\uFF09"),
1265
+ expected_total_price: expectedTotalPrice,
1266
+ agree_to_terms: z2.literal(true).describe("\u30B5\u30FC\u30D0\u30FC\u5951\u7D04\u306E\u5229\u7528\u898F\u7D04\u3078\u306E\u660E\u793A\u540C\u610F"),
1267
+ server_id: z2.string().regex(/^[a-z][0-9a-z]+$/).optional().describe("\u5E0C\u671B\u30B5\u30FC\u30D0\u30FCID"),
1268
+ partner_code: z2.string().regex(/^[A-Za-z0-9]{1,50}$/).optional().describe("\u30D1\u30FC\u30C8\u30CA\u30FC\u30B3\u30FC\u30C9"),
1269
+ auto_renew: z2.enum(["enabled", "disabled"]).describe("\u81EA\u52D5\u66F4\u65B0\uFF08enabled: \u6709\u52B9 / disabled: \u7121\u52B9\u3001\u660E\u793A\u6307\u5B9A\u5FC5\u9808\uFF09")
1270
+ };
1271
+ function description(text) {
1272
+ return `${text}\u3002servername\u89E3\u6C7A\u3092\u884C\u308F\u306A\u3044Server\u30A2\u30AB\u30A6\u30F3\u30C8\u30FB\u5951\u7D04\u30EC\u30D9\u30EB\u306E\u64CD\u4F5C\u3067\u3059`;
1273
+ }
1274
+ function registerServerAccountTools(server, client, brand, options = {}) {
1275
+ server.tool(serverToolName(brand, "list", "plans"), description("\u7533\u8FBC\u53EF\u80FD\u306A\u30B5\u30FC\u30D0\u30FC\u30D7\u30E9\u30F3\u3092\u53D6\u5F97"), {
1276
+ plan_id: z2.string().min(1).max(64).optional().describe("\u7D5E\u308A\u8FBC\u3080\u30D7\u30E9\u30F3ID\u3002\u8907\u6570\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A")
1277
+ }, async ({ plan_id }) => callApi(() => client.listServerPlans(plan_id ? { plan_id } : void 0)));
1278
+ server.tool(serverToolName(brand, "list", "contracts"), description("\u30B5\u30FC\u30D0\u30FC\u5951\u7D04\u4E00\u89A7\u3092\u53D6\u5F97"), {}, async () => callApi(() => client.listServers()));
1279
+ server.tool(serverToolName(brand, "get", "signup_status"), description("\u30B5\u30FC\u30D0\u30FC\u7533\u8FBC\u51E6\u7406\u72B6\u6CC1\u3092\u53D6\u5F97"), { servername }, async ({ servername: target }) => callApi(() => client.getServerSignupStatus(target)));
1280
+ server.tool(serverToolName(brand, "get", "memo"), description("\u30B5\u30FC\u30D0\u30FC\u5951\u7D04\u30E1\u30E2\u3092\u53D6\u5F97"), { servername }, async ({ servername: target }) => callApi(() => client.getServerMemo(target)));
1281
+ server.tool(serverToolName(brand, "update", "memo"), description("\u30B5\u30FC\u30D0\u30FC\u5951\u7D04\u30E1\u30E2\u3092\u66F4\u65B0"), { servername, memo }, async ({ servername: target, memo: value }) => callApi(() => client.updateServerMemo(target, { memo: value })));
1282
+ server.tool(serverToolName(brand, "preview", "signup"), description("\u8AB2\u91D1\u3055\u308C\u308B\u30B5\u30FC\u30D0\u30FC\u65B0\u898F\u5951\u7D04\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D\u3002\u7D50\u679C\u306E legal_notices \u3092\u30C1\u30E3\u30C3\u30C8\u4E0A\u306E\u30AF\u30EA\u30C3\u30AF\u53EF\u80FD\u306AMarkdown\u30EA\u30F3\u30AF\u3068\u3057\u3066\u5229\u7528\u8005\u3078\u63D0\u793A\u3057\u3066\u304B\u3089execute\u3092\u6848\u5185\u3057\u3066\u304F\u3060\u3055\u3044"), signupInput, billingPreviewAnnotations, async ({ agree_to_terms: _agreeToTerms, auto_renew, ...input }) => callApi(async () => billingPreviewResult(await client.registerServer({
1283
+ ...input,
1284
+ auto_renew: auto_renew === "enabled",
1285
+ agree_to_terms: true,
1286
+ dry_run: true
1287
+ }), signupLegalNoticeLines(brand, "server", input.plan_id))));
1288
+ if (options.enableHighRiskExecute) {
1289
+ server.tool(serverToolName(brand, "execute", "signup"), description("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30B5\u30FC\u30D0\u30FC\u65B0\u898F\u5951\u7D04\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09\u3002\u4E8B\u524D\u306Bpreview\u306E legal_notices \u3092\u30C1\u30E3\u30C3\u30C8\u4E0A\u3078\u63D0\u793A\u3057\u3001\u5229\u7528\u8005\u304CURL\u3092\u78BA\u8A8D\u3067\u304D\u308B\u72B6\u614B\u306B\u3057\u3066\u304F\u3060\u3055\u3044"), { ...signupInput, idempotency_key: idempotencyKey }, billingExecuteAnnotations, async ({ agree_to_terms: _agreeToTerms, idempotency_key, ...input }) => callApi(async () => {
1290
+ const data = {
1291
+ ...input,
1292
+ auto_renew: input.auto_renew === "enabled",
1293
+ agree_to_terms: true
1294
+ };
1295
+ const preview = await client.registerServer({
1296
+ ...data,
1297
+ dry_run: true
1298
+ });
1299
+ const totalPrice = Number(preview.total_price);
1300
+ if (!Number.isFinite(totalPrice)) {
1301
+ throw new Error("dry-run\u7D50\u679C\u304B\u3089\u5408\u8A08\u91D1\u984D\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002");
1302
+ }
1303
+ if (totalPrice !== input.expected_total_price) {
1304
+ throw new Error(`\u4FA1\u683C\u4E0D\u4E00\u81F4\u306E\u305F\u3081\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\uFF08\u898B\u7A4D ${totalPrice}\u5186 / \u6307\u5B9A ${input.expected_total_price}\u5186\uFF09\u3002`);
1305
+ }
1306
+ assertBillingFormElicitationSupported(server);
1307
+ const planName = await resolvePlanName(() => client.listServerPlans({ plan_id: input.plan_id }), input.plan_id);
1308
+ await confirmBillingOperation(server, {
1309
+ operation: signupOperationName(brand, "server", input.plan_id),
1310
+ target: `${planLabel(input.plan_id, planName)} / \u5951\u7D04\u671F\u9593 ${input.period}\u304B\u6708`,
1311
+ targetLabel: "\u7533\u8FBC\u5185\u5BB9",
1312
+ details: compactDetails([
1313
+ serverIdDetail(input.server_id),
1314
+ autoRenewDetail(input.auto_renew === "enabled"),
1315
+ partnerCodeDetail(input.partner_code)
1316
+ ]),
1317
+ legalNoticeLines: signupLegalNoticeLines(brand, "server", input.plan_id),
1318
+ totalPrice,
1319
+ requireTermsAgreement: true
1320
+ });
1321
+ return client.registerServer({ ...data, dry_run: false }, idempotency_key);
1322
+ }));
1323
+ }
1324
+ }
1325
+
988
1326
  // ../core/dist/tools/server/server-info.js
989
1327
  function registerServerInfoTools(server, client, brand) {
990
1328
  server.tool(serverToolName(brand, "get", "info"), "\u30B5\u30FC\u30D0\u30FC\u306EOS\u30FBCPU\u30FB\u30E1\u30E2\u30EA\u30FB\u5229\u7528\u53EF\u80FD\u306APHP/DB\u30D0\u30FC\u30B8\u30E7\u30F3\u7B49\u3092\u53D6\u5F97", {}, async () => callApi(() => client.getServerInfo()));
@@ -992,28 +1330,28 @@ function registerServerInfoTools(server, client, brand) {
992
1330
  }
993
1331
 
994
1332
  // ../core/dist/tools/server/cron.js
995
- import { z as z2 } from "zod";
1333
+ import { z as z3 } from "zod";
996
1334
  function registerCronTools(server, client, brand) {
997
1335
  server.tool(serverToolName(brand, "list", "cron"), "Cron\u8A2D\u5B9A\u306E\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listCron()));
998
1336
  server.tool(serverToolName(brand, "add", "cron"), "Cron\u30B8\u30E7\u30D6\u3092\u65B0\u898F\u8FFD\u52A0", {
999
- minute: z2.string().describe("\u5206\uFF080-59, */5 \u7B49\uFF09"),
1000
- hour: z2.string().describe("\u6642\uFF080-23, * \u7B49\uFF09"),
1001
- day: z2.string().default("*").describe("\u65E5\uFF081-31, * \u7B49\uFF09"),
1002
- month: z2.string().default("*").describe("\u6708\uFF081-12, * \u7B49\uFF09"),
1003
- weekday: z2.string().default("*").describe("\u66DC\u65E5\uFF080-7, * \u7B49\uFF09"),
1004
- command: z2.string().describe("\u5B9F\u884C\u30B3\u30DE\u30F3\u30C9"),
1005
- comment: z2.string().optional().describe("\u30E1\u30E2")
1337
+ minute: z3.string().describe("\u5206\uFF080-59, */5 \u7B49\uFF09"),
1338
+ hour: z3.string().describe("\u6642\uFF080-23, * \u7B49\uFF09"),
1339
+ day: z3.string().default("*").describe("\u65E5\uFF081-31, * \u7B49\uFF09"),
1340
+ month: z3.string().default("*").describe("\u6708\uFF081-12, * \u7B49\uFF09"),
1341
+ weekday: z3.string().default("*").describe("\u66DC\u65E5\uFF080-7, * \u7B49\uFF09"),
1342
+ command: z3.string().describe("\u5B9F\u884C\u30B3\u30DE\u30F3\u30C9"),
1343
+ comment: z3.string().optional().describe("\u30E1\u30E2")
1006
1344
  }, async (args) => callApi(() => client.addCron(args)));
1007
1345
  server.tool(serverToolName(brand, "update", "cron"), "Cron\u30B8\u30E7\u30D6\u3092\u66F4\u65B0", {
1008
- cron_id: z2.string().describe("Cron\u306EID"),
1009
- minute: z2.string().optional().describe("\u5206"),
1010
- hour: z2.string().optional().describe("\u6642"),
1011
- day: z2.string().optional().describe("\u65E5"),
1012
- month: z2.string().optional().describe("\u6708"),
1013
- weekday: z2.string().optional().describe("\u66DC\u65E5"),
1014
- command: z2.string().optional().describe("\u5B9F\u884C\u30B3\u30DE\u30F3\u30C9"),
1015
- comment: z2.string().optional().describe("\u30E1\u30E2"),
1016
- enabled: z2.boolean().optional().describe("\u6709\u52B9/\u7121\u52B9")
1346
+ cron_id: z3.string().describe("Cron\u306EID"),
1347
+ minute: z3.string().optional().describe("\u5206"),
1348
+ hour: z3.string().optional().describe("\u6642"),
1349
+ day: z3.string().optional().describe("\u65E5"),
1350
+ month: z3.string().optional().describe("\u6708"),
1351
+ weekday: z3.string().optional().describe("\u66DC\u65E5"),
1352
+ command: z3.string().optional().describe("\u5B9F\u884C\u30B3\u30DE\u30F3\u30C9"),
1353
+ comment: z3.string().optional().describe("\u30E1\u30E2"),
1354
+ enabled: z3.boolean().optional().describe("\u6709\u52B9/\u7121\u52B9")
1017
1355
  }, async ({ cron_id, ...data }) => callApi(() => {
1018
1356
  const update = Object.fromEntries(Object.entries(data).filter(([, value]) => value !== void 0));
1019
1357
  if (Object.keys(update).length === 0) {
@@ -1022,40 +1360,40 @@ function registerCronTools(server, client, brand) {
1022
1360
  return client.updateCron(cron_id, update);
1023
1361
  }));
1024
1362
  server.tool(serverToolName(brand, "delete", "cron"), "Cron\u30B8\u30E7\u30D6\u3092\u524A\u9664", {
1025
- cron_id: z2.string().describe("Cron\u306EID")
1363
+ cron_id: z3.string().describe("Cron\u306EID")
1026
1364
  }, async ({ cron_id }) => callApi(() => client.deleteCron(cron_id)));
1027
1365
  }
1028
1366
 
1029
1367
  // ../core/dist/tools/server/ssh.js
1030
- import { z as z3 } from "zod";
1368
+ import { z as z4 } from "zod";
1031
1369
  function registerSshTools(server, client, brand) {
1032
1370
  server.tool(serverToolName(brand, "get", "ssh"), "SSH\u8A2D\u5B9A\uFF08\u6709\u52B9/\u7121\u52B9\u3001\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u3001\u63A5\u7D9A\u60C5\u5831\uFF09\u3092\u53D6\u5F97", {}, async () => callApi(() => client.getSsh()));
1033
1371
  server.tool(serverToolName(brand, "update", "ssh"), "SSH\u8A2D\u5B9A\u3092\u5909\u66F4\uFF08\u6709\u52B9/\u7121\u52B9\u3001\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\uFF09", {
1034
- ssh_enabled: z3.boolean().optional().describe("SSH\u63A5\u7D9A\u306E\u6709\u52B9/\u7121\u52B9"),
1035
- abroad_access_restriction: z3.boolean().optional().describe("\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u306E\u6709\u52B9/\u7121\u52B9")
1372
+ ssh_enabled: z4.boolean().optional().describe("SSH\u63A5\u7D9A\u306E\u6709\u52B9/\u7121\u52B9"),
1373
+ abroad_access_restriction: z4.boolean().optional().describe("\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u306E\u6709\u52B9/\u7121\u52B9")
1036
1374
  }, async (args) => callApi(() => client.updateSsh(args)));
1037
1375
  server.tool(serverToolName(brand, "list", "ssh_key"), "SSH\u516C\u958B\u9375\u306E\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listSshKey()));
1038
1376
  server.tool(serverToolName(brand, "add", "ssh_key"), "SSH\u516C\u958B\u9375\u3092\u767B\u9332\uFF08\u624B\u52D5\u767B\u9332\u307E\u305F\u306F\u30B5\u30FC\u30D0\u30FC\u5074\u3067\u9375\u30DA\u30A2\u81EA\u52D5\u751F\u6210\uFF09", {
1039
- label: z3.string().describe("\u30E9\u30D9\u30EB"),
1040
- public_key: z3.string().optional().describe("\u516C\u958B\u9375\uFF08\u624B\u52D5\u767B\u9332\u6642\u3002OpenSSH\u5F62\u5F0F\uFF09"),
1041
- generate: z3.boolean().optional().describe("true\u3067\u30B5\u30FC\u30D0\u30FC\u5074\u3067\u9375\u30DA\u30A2\u3092\u81EA\u52D5\u751F\u6210\uFF08\u79D8\u5BC6\u9375\u304C\u8FD4\u5374\u3055\u308C\u308B\uFF09"),
1042
- passphrase: z3.string().optional().describe("\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\uFF08\u81EA\u52D5\u751F\u6210\u6642\u30026\u301C32\u6587\u5B57\uFF09")
1377
+ label: z4.string().describe("\u30E9\u30D9\u30EB"),
1378
+ public_key: z4.string().optional().describe("\u516C\u958B\u9375\uFF08\u624B\u52D5\u767B\u9332\u6642\u3002OpenSSH\u5F62\u5F0F\uFF09"),
1379
+ generate: z4.boolean().optional().describe("true\u3067\u30B5\u30FC\u30D0\u30FC\u5074\u3067\u9375\u30DA\u30A2\u3092\u81EA\u52D5\u751F\u6210\uFF08\u79D8\u5BC6\u9375\u304C\u8FD4\u5374\u3055\u308C\u308B\uFF09"),
1380
+ passphrase: z4.string().optional().describe("\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\uFF08\u81EA\u52D5\u751F\u6210\u6642\u30026\u301C32\u6587\u5B57\uFF09")
1043
1381
  }, async (args) => callApi(() => client.addSshKey(args)));
1044
1382
  server.tool(serverToolName(brand, "update", "ssh_key"), "SSH\u516C\u958B\u9375\u306E\u30E9\u30D9\u30EB\u3084\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u66F4\u65B0", {
1045
- key_id: z3.string().describe("\u516C\u958B\u9375ID"),
1046
- label: z3.string().optional().describe("\u30E9\u30D9\u30EB"),
1047
- status: z3.enum(["on", "off"]).optional().describe("\u30B9\u30C6\u30FC\u30BF\u30B9")
1383
+ key_id: z4.string().describe("\u516C\u958B\u9375ID"),
1384
+ label: z4.string().optional().describe("\u30E9\u30D9\u30EB"),
1385
+ status: z4.enum(["on", "off"]).optional().describe("\u30B9\u30C6\u30FC\u30BF\u30B9")
1048
1386
  }, async ({ key_id, ...data }) => callApi(() => client.updateSshKey(key_id, data)));
1049
1387
  server.tool(serverToolName(brand, "delete", "ssh_key"), "SSH\u516C\u958B\u9375\u3092\u524A\u9664", {
1050
- key_id: z3.string().describe("\u516C\u958B\u9375ID")
1388
+ key_id: z4.string().describe("\u516C\u958B\u9375ID")
1051
1389
  }, async ({ key_id }) => callApi(() => client.deleteSshKey(key_id)));
1052
1390
  }
1053
1391
 
1054
1392
  // ../core/dist/tools/server/wordpress.js
1055
- import { z as z4 } from "zod";
1393
+ import { z as z5 } from "zod";
1056
1394
  function registerWordpressTools(server, client, brand) {
1057
1395
  server.tool(serverToolName(brand, "list", "wordpress"), "WordPress\u4E00\u89A7\u3092\u53D6\u5F97", {
1058
- domain: z4.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1396
+ domain: z5.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1059
1397
  }, async (args) => {
1060
1398
  const params = {};
1061
1399
  if (args.domain)
@@ -1063,28 +1401,28 @@ function registerWordpressTools(server, client, brand) {
1063
1401
  return callApi(() => client.listWordpress(params));
1064
1402
  });
1065
1403
  server.tool(serverToolName(brand, "add", "wordpress"), "WordPress\u3092\u65B0\u898F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", {
1066
- url: z4.string().describe("\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5148URL\uFF08\u4F8B: https://example.com/blog\uFF09"),
1067
- title: z4.string().describe("\u30B5\u30A4\u30C8\u30BF\u30A4\u30C8\u30EB"),
1068
- admin_username: z4.string().describe("\u7BA1\u7406\u8005\u30E6\u30FC\u30B6\u30FC\u540D"),
1069
- admin_password: z4.string().describe("\u7BA1\u7406\u8005\u30D1\u30B9\u30EF\u30FC\u30C9"),
1070
- admin_email: z4.string().describe("\u7BA1\u7406\u8005\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1071
- memo: z4.string().optional().describe("\u30E1\u30E2")
1404
+ url: z5.string().describe("\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5148URL\uFF08\u4F8B: https://example.com/blog\uFF09"),
1405
+ title: z5.string().describe("\u30B5\u30A4\u30C8\u30BF\u30A4\u30C8\u30EB"),
1406
+ admin_username: z5.string().describe("\u7BA1\u7406\u8005\u30E6\u30FC\u30B6\u30FC\u540D"),
1407
+ admin_password: z5.string().describe("\u7BA1\u7406\u8005\u30D1\u30B9\u30EF\u30FC\u30C9"),
1408
+ admin_email: z5.string().describe("\u7BA1\u7406\u8005\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1409
+ memo: z5.string().optional().describe("\u30E1\u30E2")
1072
1410
  }, async (args) => callApi(() => client.addWordpress(args)));
1073
1411
  server.tool(serverToolName(brand, "update", "wordpress"), "WordPress\u306E\u30E1\u30E2\u3092\u66F4\u65B0", {
1074
- wp_id: z4.string().describe("WordPress\u306EID"),
1075
- memo: z4.string().optional().describe("\u30E1\u30E2")
1412
+ wp_id: z5.string().describe("WordPress\u306EID"),
1413
+ memo: z5.string().optional().describe("\u30E1\u30E2")
1076
1414
  }, async ({ wp_id, ...data }) => callApi(() => client.updateWordpress(wp_id, data)));
1077
1415
  server.tool(serverToolName(brand, "delete", "wordpress"), "WordPress\u3092\u30A2\u30F3\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", {
1078
- wp_id: z4.string().describe("WordPress\u306EID"),
1079
- delete_db: z4.boolean().optional().describe("\u95A2\u9023\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3082\u524A\u9664\u3059\u308B\u304B")
1416
+ wp_id: z5.string().describe("WordPress\u306EID"),
1417
+ delete_db: z5.boolean().optional().describe("\u95A2\u9023\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3082\u524A\u9664\u3059\u308B\u304B")
1080
1418
  }, async ({ wp_id, ...data }) => callApi(() => client.deleteWordpress(wp_id, data)));
1081
1419
  }
1082
1420
 
1083
1421
  // ../core/dist/tools/server/mail.js
1084
- import { z as z5 } from "zod";
1422
+ import { z as z6 } from "zod";
1085
1423
  function registerMailTools(server, client, brand) {
1086
1424
  server.tool(serverToolName(brand, "list", "mail"), "\u30E1\u30FC\u30EB\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3092\u53D6\u5F97", {
1087
- domain: z5.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1425
+ domain: z6.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1088
1426
  }, async (args) => {
1089
1427
  const params = {};
1090
1428
  if (args.domain)
@@ -1092,33 +1430,33 @@ function registerMailTools(server, client, brand) {
1092
1430
  return callApi(() => client.listMail(params));
1093
1431
  });
1094
1432
  server.tool(serverToolName(brand, "get", "mail"), "\u30E1\u30FC\u30EB\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8A73\u7D30\uFF08\u5BB9\u91CF\u7B49\uFF09\u3092\u53D6\u5F97", {
1095
- mail_account: z5.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1433
+ mail_account: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1096
1434
  }, async ({ mail_account }) => callApi(() => client.getMail(mail_account)));
1097
1435
  server.tool(serverToolName(brand, "add", "mail"), "\u30E1\u30FC\u30EB\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u6210", {
1098
- mail_address: z5.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\uFF08user@domain \u5F62\u5F0F\uFF09"),
1099
- password: z5.string().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1100
- quota_mb: z5.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\uFF09"),
1101
- memo: z5.string().optional().describe("\u30E1\u30E2")
1436
+ mail_address: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\uFF08user@domain \u5F62\u5F0F\uFF09"),
1437
+ password: z6.string().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1438
+ quota_mb: z6.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\uFF09"),
1439
+ memo: z6.string().optional().describe("\u30E1\u30E2")
1102
1440
  }, async (args) => callApi(() => client.addMail(args)));
1103
1441
  server.tool(serverToolName(brand, "update", "mail"), "\u30E1\u30FC\u30EB\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u66F4\u65B0", {
1104
- mail_account: z5.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1105
- password: z5.string().optional().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1106
- quota_mb: z5.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\uFF09"),
1107
- memo: z5.string().optional().describe("\u30E1\u30E2")
1442
+ mail_account: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1443
+ password: z6.string().optional().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1444
+ quota_mb: z6.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\uFF09"),
1445
+ memo: z6.string().optional().describe("\u30E1\u30E2")
1108
1446
  }, async ({ mail_account, ...data }) => callApi(() => client.updateMail(mail_account, data)));
1109
1447
  server.tool(serverToolName(brand, "delete", "mail"), "\u30E1\u30FC\u30EB\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u524A\u9664", {
1110
- mail_account: z5.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1448
+ mail_account: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1111
1449
  }, async ({ mail_account }) => callApi(() => client.deleteMail(mail_account)));
1112
1450
  server.tool(serverToolName(brand, "get", "mail_forwarding"), "\u30E1\u30FC\u30EB\u8EE2\u9001\u8A2D\u5B9A\u3092\u53D6\u5F97", {
1113
- mail_account: z5.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1451
+ mail_account: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1114
1452
  }, async ({ mail_account }) => callApi(() => client.getMailForwarding(mail_account)));
1115
1453
  server.tool(serverToolName(brand, "update", "mail_forwarding"), "\u30E1\u30FC\u30EB\u8EE2\u9001\u8A2D\u5B9A\u3092\u66F4\u65B0", {
1116
- mail_account: z5.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1117
- forwarding_addresses: z5.array(z5.string()).describe("\u8EE2\u9001\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u914D\u5217"),
1118
- keep_in_mailbox: z5.boolean().optional().describe("\u30E1\u30FC\u30EB\u30DC\u30C3\u30AF\u30B9\u306B\u3082\u6B8B\u3059\u304B")
1454
+ mail_account: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1455
+ forwarding_addresses: z6.array(z6.string()).describe("\u8EE2\u9001\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u914D\u5217"),
1456
+ keep_in_mailbox: z6.boolean().optional().describe("\u30E1\u30FC\u30EB\u30DC\u30C3\u30AF\u30B9\u306B\u3082\u6B8B\u3059\u304B")
1119
1457
  }, async ({ mail_account, ...data }) => callApi(() => client.updateMailForwarding(mail_account, data)));
1120
1458
  server.tool(serverToolName(brand, "list", "mail_filter"), "\u30E1\u30FC\u30EB\u632F\u308A\u5206\u3051\u8A2D\u5B9A\u306E\u4E00\u89A7\u3092\u53D6\u5F97", {
1121
- domain: z5.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1459
+ domain: z6.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1122
1460
  }, async (args) => {
1123
1461
  const params = {};
1124
1462
  if (args.domain)
@@ -1126,29 +1464,29 @@ function registerMailTools(server, client, brand) {
1126
1464
  return callApi(() => client.listMailFilter(params));
1127
1465
  });
1128
1466
  server.tool(serverToolName(brand, "add", "mail_filter"), "\u30E1\u30FC\u30EB\u632F\u308A\u5206\u3051\u30EB\u30FC\u30EB\u3092\u8FFD\u52A0", {
1129
- domain: z5.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1130
- conditions: z5.array(z5.object({
1131
- keyword: z5.string(),
1132
- field: z5.string(),
1133
- match_type: z5.string()
1467
+ domain: z6.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1468
+ conditions: z6.array(z6.object({
1469
+ keyword: z6.string(),
1470
+ field: z6.string(),
1471
+ match_type: z6.string()
1134
1472
  })).describe("\u6761\u4EF6"),
1135
- action: z5.object({
1136
- type: z5.string(),
1137
- target: z5.string(),
1138
- method: z5.string()
1473
+ action: z6.object({
1474
+ type: z6.string(),
1475
+ target: z6.string(),
1476
+ method: z6.string()
1139
1477
  }).describe("\u30A2\u30AF\u30B7\u30E7\u30F3")
1140
1478
  }, async (args) => callApi(() => client.addMailFilter(args)));
1141
1479
  server.tool(serverToolName(brand, "delete", "mail_filter"), "\u30E1\u30FC\u30EB\u632F\u308A\u5206\u3051\u30EB\u30FC\u30EB\u3092\u524A\u9664", {
1142
- filter_id: z5.string().describe("\u30D5\u30A3\u30EB\u30BF\u30FCID")
1480
+ filter_id: z6.string().describe("\u30D5\u30A3\u30EB\u30BF\u30FCID")
1143
1481
  }, async ({ filter_id }) => callApi(() => client.deleteMailFilter(filter_id)));
1144
1482
  }
1145
1483
 
1146
1484
  // ../core/dist/tools/server/auto-reply.js
1147
- import { z as z6 } from "zod";
1485
+ import { z as z7 } from "zod";
1148
1486
  var PARTIAL_UPDATE_EMPTY_MESSAGE = "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044";
1149
1487
  function registerAutoReplyTools(server, client, brand) {
1150
1488
  server.tool(serverToolName(brand, "list", "auto_reply"), "\u81EA\u52D5\u5FDC\u7B54\u8A2D\u5B9A\u306E\u4E00\u89A7\u3092\u53D6\u5F97", {
1151
- domain: z6.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1489
+ domain: z7.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1152
1490
  }, async (args) => {
1153
1491
  const params = {};
1154
1492
  if (args.domain)
@@ -1156,22 +1494,22 @@ function registerAutoReplyTools(server, client, brand) {
1156
1494
  return callApi(() => client.listAutoReply(params));
1157
1495
  });
1158
1496
  server.tool(serverToolName(brand, "get", "auto_reply"), "\u81EA\u52D5\u5FDC\u7B54\u8A2D\u5B9A\u306E\u8A73\u7D30\u3092\u53D6\u5F97", {
1159
- mail_address: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1497
+ mail_address: z7.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1160
1498
  }, async ({ mail_address }) => callApi(() => client.getAutoReply(mail_address)));
1161
1499
  server.tool(serverToolName(brand, "add", "auto_reply"), "\u81EA\u52D5\u5FDC\u7B54\u8A2D\u5B9A\u3092\u8FFD\u52A0", {
1162
- domain: z6.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1163
- mail_address: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1164
- from_name: z6.string().describe("\u9001\u4FE1\u8005\u540D"),
1165
- subject: z6.string().describe("\u4EF6\u540D"),
1166
- body: z6.string().describe("\u672C\u6587"),
1167
- quote_incoming: z6.boolean().describe("\u53D7\u4FE1\u30E1\u30FC\u30EB\u306E\u5F15\u7528\u3092\u542B\u3081\u308B\u304B")
1500
+ domain: z7.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1501
+ mail_address: z7.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1502
+ from_name: z7.string().describe("\u9001\u4FE1\u8005\u540D"),
1503
+ subject: z7.string().describe("\u4EF6\u540D"),
1504
+ body: z7.string().describe("\u672C\u6587"),
1505
+ quote_incoming: z7.boolean().describe("\u53D7\u4FE1\u30E1\u30FC\u30EB\u306E\u5F15\u7528\u3092\u542B\u3081\u308B\u304B")
1168
1506
  }, async (args) => callApi(() => client.addAutoReply(args)));
1169
1507
  server.tool(serverToolName(brand, "update", "auto_reply"), "\u81EA\u52D5\u5FDC\u7B54\u8A2D\u5B9A\u3092\u66F4\u65B0\uFF08\u6307\u5B9A\u3057\u305F\u9805\u76EE\u306E\u307F\uFF09", {
1170
- mail_address: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1171
- from_name: z6.string().optional().describe("\u9001\u4FE1\u8005\u540D"),
1172
- subject: z6.string().optional().describe("\u4EF6\u540D"),
1173
- body: z6.string().optional().describe("\u672C\u6587"),
1174
- quote_incoming: z6.boolean().optional().describe("\u53D7\u4FE1\u30E1\u30FC\u30EB\u306E\u5F15\u7528\u3092\u542B\u3081\u308B\u304B")
1508
+ mail_address: z7.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9"),
1509
+ from_name: z7.string().optional().describe("\u9001\u4FE1\u8005\u540D"),
1510
+ subject: z7.string().optional().describe("\u4EF6\u540D"),
1511
+ body: z7.string().optional().describe("\u672C\u6587"),
1512
+ quote_incoming: z7.boolean().optional().describe("\u53D7\u4FE1\u30E1\u30FC\u30EB\u306E\u5F15\u7528\u3092\u542B\u3081\u308B\u304B")
1175
1513
  }, async ({ mail_address, from_name, subject, body: body2, quote_incoming }) => {
1176
1514
  const data = {};
1177
1515
  if (from_name !== void 0)
@@ -1188,15 +1526,15 @@ function registerAutoReplyTools(server, client, brand) {
1188
1526
  return callApi(() => client.updateAutoReply(mail_address, data));
1189
1527
  });
1190
1528
  server.tool(serverToolName(brand, "delete", "auto_reply"), "\u81EA\u52D5\u5FDC\u7B54\u8A2D\u5B9A\u3092\u524A\u9664", {
1191
- mail_address: z6.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1529
+ mail_address: z7.string().describe("\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9")
1192
1530
  }, async ({ mail_address }) => callApi(() => client.deleteAutoReply(mail_address)));
1193
1531
  }
1194
1532
 
1195
1533
  // ../core/dist/tools/server/smtp-abroad-restriction.js
1196
- import { z as z7 } from "zod";
1534
+ import { z as z8 } from "zod";
1197
1535
  function registerSmtpAbroadRestrictionTools(server, client, brand) {
1198
1536
  server.tool(serverToolName(brand, "list", "smtp_abroad_restriction"), "SMTP\u8A8D\u8A3C\u306E\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u8A2D\u5B9A\u3092\u53D6\u5F97", {
1199
- domain: z7.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1537
+ domain: z8.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1200
1538
  }, async (args) => {
1201
1539
  const params = {};
1202
1540
  if (args.domain)
@@ -1204,16 +1542,16 @@ function registerSmtpAbroadRestrictionTools(server, client, brand) {
1204
1542
  return callApi(() => client.listSmtpAbroadRestriction(params));
1205
1543
  });
1206
1544
  server.tool(serverToolName(brand, "update", "smtp_abroad_restriction"), "SMTP\u8A8D\u8A3C\u306E\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u8A2D\u5B9A\u3092\u66F4\u65B0", {
1207
- domain: z7.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1208
- abroad_access_restriction: z7.boolean().describe("\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u306E\u6709\u52B9/\u7121\u52B9")
1545
+ domain: z8.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1546
+ abroad_access_restriction: z8.boolean().describe("\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u306E\u6709\u52B9/\u7121\u52B9")
1209
1547
  }, async ({ domain: domain2, abroad_access_restriction }) => callApi(() => client.updateSmtpAbroadRestriction(domain2, { abroad_access_restriction })));
1210
1548
  }
1211
1549
 
1212
1550
  // ../core/dist/tools/server/dkim.js
1213
- import { z as z8 } from "zod";
1551
+ import { z as z9 } from "zod";
1214
1552
  function registerDkimTools(server, client, brand) {
1215
1553
  server.tool(serverToolName(brand, "list", "dkim"), "DKIM\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1216
- domain: z8.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1554
+ domain: z9.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1217
1555
  }, async (args) => {
1218
1556
  const params = {};
1219
1557
  if (args.domain)
@@ -1221,20 +1559,20 @@ function registerDkimTools(server, client, brand) {
1221
1559
  return callApi(() => client.listDkim(params));
1222
1560
  });
1223
1561
  server.tool(serverToolName(brand, "get", "dkim"), "DKIM\u8A2D\u5B9A\u306E\u8A73\u7D30\u3092\u53D6\u5F97", {
1224
- fqdn: z8.string().describe("FQDN\uFF08example.com \u307E\u305F\u306F sub.example.com\uFF09")
1562
+ fqdn: z9.string().describe("FQDN\uFF08example.com \u307E\u305F\u306F sub.example.com\uFF09")
1225
1563
  }, async ({ fqdn }) => callApi(() => client.getDkim(fqdn)));
1226
1564
  server.tool(serverToolName(brand, "update", "dkim"), "DKIM\u8A2D\u5B9A\u306E\u6709\u52B9/\u7121\u52B9\u3092\u5207\u308A\u66FF\u3048", {
1227
- fqdn: z8.string().describe("FQDN\uFF08example.com \u307E\u305F\u306F sub.example.com\uFF09"),
1228
- enabled: z8.boolean().describe("DKIM\u306E\u6709\u52B9/\u7121\u52B9")
1565
+ fqdn: z9.string().describe("FQDN\uFF08example.com \u307E\u305F\u306F sub.example.com\uFF09"),
1566
+ enabled: z9.boolean().describe("DKIM\u306E\u6709\u52B9/\u7121\u52B9")
1229
1567
  }, async ({ fqdn, enabled }) => callApi(() => client.updateDkim(fqdn, { enabled })));
1230
1568
  }
1231
1569
 
1232
1570
  // ../core/dist/tools/server/dmarc.js
1233
- import { z as z9 } from "zod";
1571
+ import { z as z10 } from "zod";
1234
1572
  var PARTIAL_UPDATE_EMPTY_MESSAGE2 = "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044";
1235
1573
  function registerDmarcTools(server, client, brand) {
1236
1574
  server.tool(serverToolName(brand, "list", "dmarc"), "\u9001\u4FE1\u5074DMARC\u8A2D\u5B9A\u3092\u53D6\u5F97", {
1237
- domain: z9.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1575
+ domain: z10.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1238
1576
  }, async (args) => {
1239
1577
  const params = {};
1240
1578
  if (args.domain)
@@ -1242,10 +1580,10 @@ function registerDmarcTools(server, client, brand) {
1242
1580
  return callApi(() => client.listDmarc(params));
1243
1581
  });
1244
1582
  server.tool(serverToolName(brand, "update", "dmarc"), "\u9001\u4FE1\u5074DMARC\u8A2D\u5B9A\u3092\u66F4\u65B0\uFF08\u6307\u5B9A\u3057\u305F\u9805\u76EE\u306E\u307F\uFF09", {
1245
- domain: z9.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1246
- policy: z9.enum(["none", "quarantine", "reject"]).optional().describe("DMARC\u30DD\u30EA\u30B7\u30FC"),
1247
- report_enabled: z9.boolean().optional().describe("\u30EC\u30DD\u30FC\u30C8\u901A\u77E5\u306E\u6709\u52B9/\u7121\u52B9\u3002false \u306E\u3068\u304D\u901A\u77E5\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306F\u81EA\u52D5\u7684\u306B\u7A7A\u306B\u306A\u308B"),
1248
- notification_mail_addresses: z9.array(z9.string()).optional().describe("\u30EC\u30DD\u30FC\u30C8\u901A\u77E5\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3002report_enabled \u304C true \u306E\u3068\u304D\u306F1\u4EF6\u4EE5\u4E0A\u5FC5\u9808")
1583
+ domain: z10.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1584
+ policy: z10.enum(["none", "quarantine", "reject"]).optional().describe("DMARC\u30DD\u30EA\u30B7\u30FC"),
1585
+ report_enabled: z10.boolean().optional().describe("\u30EC\u30DD\u30FC\u30C8\u901A\u77E5\u306E\u6709\u52B9/\u7121\u52B9\u3002false \u306E\u3068\u304D\u901A\u77E5\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306F\u81EA\u52D5\u7684\u306B\u7A7A\u306B\u306A\u308B"),
1586
+ notification_mail_addresses: z10.array(z10.string()).optional().describe("\u30EC\u30DD\u30FC\u30C8\u901A\u77E5\u5148\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3002report_enabled \u304C true \u306E\u3068\u304D\u306F1\u4EF6\u4EE5\u4E0A\u5FC5\u9808")
1249
1587
  }, async ({ domain: domain2, policy, report_enabled, notification_mail_addresses }) => {
1250
1588
  const data = {};
1251
1589
  if (policy !== void 0)
@@ -1263,11 +1601,11 @@ function registerDmarcTools(server, client, brand) {
1263
1601
  }
1264
1602
 
1265
1603
  // ../core/dist/tools/server/spf.js
1266
- import { z as z10 } from "zod";
1267
- var updateActionSchema = z10.enum(["reset", "enable_gmail", "custom"]);
1604
+ import { z as z11 } from "zod";
1605
+ var updateActionSchema = z11.enum(["reset", "enable_gmail", "custom"]);
1268
1606
  function registerSpfTools(server, client, brand) {
1269
1607
  server.tool(serverToolName(brand, "list", "spf"), "SPF\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1270
- domain: z10.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1608
+ domain: z11.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1271
1609
  }, async (args) => {
1272
1610
  const params = {};
1273
1611
  if (args.domain)
@@ -1275,12 +1613,12 @@ function registerSpfTools(server, client, brand) {
1275
1613
  return callApi(() => client.listSpf(params));
1276
1614
  });
1277
1615
  server.tool(serverToolName(brand, "add", "spf"), "SPF\u8A2D\u5B9A\u3092\u8FFD\u52A0", {
1278
- fqdn: z10.string().describe("FQDN\uFF08example.com \u307E\u305F\u306F sub.example.com\uFF09")
1616
+ fqdn: z11.string().describe("FQDN\uFF08example.com \u307E\u305F\u306F sub.example.com\uFF09")
1279
1617
  }, async ({ fqdn }) => callApi(() => client.addSpf({ fqdn })));
1280
1618
  server.tool(serverToolName(brand, "update", "spf"), "SPF\u8A2D\u5B9A\u3092\u66F4\u65B0", {
1281
- fqdn: z10.string().describe("FQDN"),
1619
+ fqdn: z11.string().describe("FQDN"),
1282
1620
  action: updateActionSchema.describe("reset: \u6A19\u6E96SPF\u3078\u521D\u671F\u5316 / enable_gmail: Gmail\u8A31\u53EFON / custom: \u30AB\u30B9\u30BF\u30E0\u8A2D\u5B9A"),
1283
- spf_record: z10.string().optional().describe("\u30AB\u30B9\u30BF\u30E0SPF\u30EC\u30B3\u30FC\u30C9\uFF08action=custom \u306E\u3068\u304D\u5FC5\u9808\uFF09")
1621
+ spf_record: z11.string().optional().describe("\u30AB\u30B9\u30BF\u30E0SPF\u30EC\u30B3\u30FC\u30C9\uFF08action=custom \u306E\u3068\u304D\u5FC5\u9808\uFF09")
1284
1622
  }, async ({ fqdn, action, spf_record }) => {
1285
1623
  const body2 = { action };
1286
1624
  if (action === "custom") {
@@ -1292,19 +1630,19 @@ function registerSpfTools(server, client, brand) {
1292
1630
  return callApi(() => client.updateSpf(fqdn, body2));
1293
1631
  });
1294
1632
  server.tool(serverToolName(brand, "delete", "spf"), "SPF\u8A2D\u5B9A\u3092\u524A\u9664", {
1295
- fqdn: z10.string().describe("FQDN")
1633
+ fqdn: z11.string().describe("FQDN")
1296
1634
  }, async ({ fqdn }) => callApi(() => client.deleteSpf(fqdn)));
1297
1635
  }
1298
1636
 
1299
1637
  // ../core/dist/tools/server/spam-filter.js
1300
- import { z as z11 } from "zod";
1301
- var filterTypeSchema = z11.enum(["off", "standard", "cloudmark_authority"]);
1302
- var detectionActionSchema = z11.enum(["inbox", "spam", "trash", "delete"]);
1303
- var spamLevelSchema = z11.enum(["very_lenient", "lenient", "normal", "strict", "very_strict", "strictest"]);
1638
+ import { z as z12 } from "zod";
1639
+ var filterTypeSchema = z12.enum(["off", "standard", "cloudmark_authority"]);
1640
+ var detectionActionSchema = z12.enum(["inbox", "spam", "trash", "delete"]);
1641
+ var spamLevelSchema = z12.enum(["very_lenient", "lenient", "normal", "strict", "very_strict", "strictest"]);
1304
1642
  var PARTIAL_UPDATE_EMPTY_MESSAGE3 = "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044";
1305
1643
  function registerSpamFilterTools(server, client, brand) {
1306
1644
  server.tool(serverToolName(brand, "list", "spam_filter"), "\u8FF7\u60D1\u30E1\u30FC\u30EB\u30D5\u30A3\u30EB\u30BF\u8A2D\u5B9A\u3092\u53D6\u5F97", {
1307
- domain: z11.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1645
+ domain: z12.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1308
1646
  }, async (args) => {
1309
1647
  const params = {};
1310
1648
  if (args.domain)
@@ -1312,14 +1650,14 @@ function registerSpamFilterTools(server, client, brand) {
1312
1650
  return callApi(() => client.listSpamFilter(params));
1313
1651
  });
1314
1652
  server.tool(serverToolName(brand, "update", "spam_filter"), "\u8FF7\u60D1\u30E1\u30FC\u30EB\u30D5\u30A3\u30EB\u30BF\u8A2D\u5B9A\u3092\u66F4\u65B0\uFF08\u6307\u5B9A\u3057\u305F\u9805\u76EE\u306E\u307F\uFF09", {
1315
- domain: z11.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1653
+ domain: z12.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1316
1654
  filter_type: filterTypeSchema.optional().describe("\u8FF7\u60D1\u30E1\u30FC\u30EB\u30D5\u30A3\u30EB\u30BF"),
1317
1655
  detection_action: detectionActionSchema.optional().describe("\u691C\u77E5\u6642\u306E\u51E6\u7406\uFF08inbox / spam / trash / delete\uFF09"),
1318
- white_list: z11.array(z11.string()).optional().describe("\u30DB\u30EF\u30A4\u30C8\u30EA\u30B9\u30C8\uFF08\u7A7A\u914D\u5217\u3067\u30AF\u30EA\u30A2\uFF09"),
1319
- black_list: z11.array(z11.string()).optional().describe("\u30D6\u30E9\u30C3\u30AF\u30EA\u30B9\u30C8\uFF08\u7A7A\u914D\u5217\u3067\u30AF\u30EA\u30A2\uFF09"),
1656
+ white_list: z12.array(z12.string()).optional().describe("\u30DB\u30EF\u30A4\u30C8\u30EA\u30B9\u30C8\uFF08\u7A7A\u914D\u5217\u3067\u30AF\u30EA\u30A2\uFF09"),
1657
+ black_list: z12.array(z12.string()).optional().describe("\u30D6\u30E9\u30C3\u30AF\u30EA\u30B9\u30C8\uFF08\u7A7A\u914D\u5217\u3067\u30AF\u30EA\u30A2\uFF09"),
1320
1658
  spam_level: spamLevelSchema.optional().describe("\u6A19\u6E96\u30B9\u30D1\u30E0\u30D5\u30A3\u30EB\u30BF\u5224\u5B9A\u57FA\u6E96"),
1321
- strict_non_japanese_subject: z11.boolean().optional().describe("\u65E5\u672C\u8A9E\u3092\u542B\u307E\u306A\u3044\u4EF6\u540D\u306B\u5BFE\u3057\u3066\u5224\u5B9A\u3092\u53B3\u3057\u304F\u3059\u308B"),
1322
- strict_html_mail: z11.boolean().optional().describe("HTML\u30E1\u30FC\u30EB\u306B\u5BFE\u3057\u3066\u5224\u5B9A\u3092\u53B3\u3057\u304F\u3059\u308B")
1659
+ strict_non_japanese_subject: z12.boolean().optional().describe("\u65E5\u672C\u8A9E\u3092\u542B\u307E\u306A\u3044\u4EF6\u540D\u306B\u5BFE\u3057\u3066\u5224\u5B9A\u3092\u53B3\u3057\u304F\u3059\u308B"),
1660
+ strict_html_mail: z12.boolean().optional().describe("HTML\u30E1\u30FC\u30EB\u306B\u5BFE\u3057\u3066\u5224\u5B9A\u3092\u53B3\u3057\u304F\u3059\u308B")
1323
1661
  }, async (args) => {
1324
1662
  const { domain: domain2, ...fields } = args;
1325
1663
  const data = {};
@@ -1344,16 +1682,16 @@ function registerSpamFilterTools(server, client, brand) {
1344
1682
  return callApi(() => client.updateSpamFilter(domain2, data));
1345
1683
  });
1346
1684
  server.tool(serverToolName(brand, "update", "spam_filter_dmarc_receiver"), "\u53D7\u4FE1\u5074DMARC\u8A2D\u5B9A\u3092\u66F4\u65B0", {
1347
- domain: z11.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1348
- dmarc_receiver: z11.boolean().describe("\u53D7\u4FE1\u5074DMARC\u8A2D\u5B9A")
1685
+ domain: z12.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1686
+ dmarc_receiver: z12.boolean().describe("\u53D7\u4FE1\u5074DMARC\u8A2D\u5B9A")
1349
1687
  }, async ({ domain: domain2, dmarc_receiver }) => callApi(() => client.updateSpamFilterDmarcReceiver(domain2, { dmarc_receiver })));
1350
1688
  }
1351
1689
 
1352
1690
  // ../core/dist/tools/server/ftp.js
1353
- import { z as z12 } from "zod";
1691
+ import { z as z13 } from "zod";
1354
1692
  function registerFtpTools(server, client, brand) {
1355
1693
  server.tool(serverToolName(brand, "list", "ftp"), "FTP\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3092\u53D6\u5F97", {
1356
- domain: z12.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1694
+ domain: z13.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1357
1695
  }, async (args) => {
1358
1696
  const params = {};
1359
1697
  if (args.domain)
@@ -1361,87 +1699,87 @@ function registerFtpTools(server, client, brand) {
1361
1699
  return callApi(() => client.listFtp(params));
1362
1700
  });
1363
1701
  server.tool(serverToolName(brand, "add", "ftp"), "FTP\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u8FFD\u52A0", {
1364
- ftp_account: z12.string().describe("FTP\u30A2\u30AB\u30A6\u30F3\u30C8\uFF08user@domain \u5F62\u5F0F\uFF09"),
1365
- password: z12.string().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1366
- directory: z12.string().optional().describe("\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA"),
1367
- quota_mb: z12.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\u30020\u3067\u7121\u5236\u9650\uFF09"),
1368
- memo: z12.string().optional().describe("\u30E1\u30E2")
1702
+ ftp_account: z13.string().describe("FTP\u30A2\u30AB\u30A6\u30F3\u30C8\uFF08user@domain \u5F62\u5F0F\uFF09"),
1703
+ password: z13.string().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1704
+ directory: z13.string().optional().describe("\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA"),
1705
+ quota_mb: z13.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\u30020\u3067\u7121\u5236\u9650\uFF09"),
1706
+ memo: z13.string().optional().describe("\u30E1\u30E2")
1369
1707
  }, async (args) => callApi(() => client.addFtp(args)));
1370
1708
  server.tool(serverToolName(brand, "update", "ftp"), "FTP\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u66F4\u65B0", {
1371
- ftp_account: z12.string().describe("FTP\u30A2\u30AB\u30A6\u30F3\u30C8"),
1372
- password: z12.string().optional().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1373
- directory: z12.string().optional().describe("\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA"),
1374
- quota_mb: z12.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\uFF09"),
1375
- memo: z12.string().optional().describe("\u30E1\u30E2")
1709
+ ftp_account: z13.string().describe("FTP\u30A2\u30AB\u30A6\u30F3\u30C8"),
1710
+ password: z13.string().optional().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1711
+ directory: z13.string().optional().describe("\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA"),
1712
+ quota_mb: z13.number().optional().describe("\u5BB9\u91CF\u5236\u9650\uFF08MB\uFF09"),
1713
+ memo: z13.string().optional().describe("\u30E1\u30E2")
1376
1714
  }, async ({ ftp_account, ...data }) => callApi(() => client.updateFtp(ftp_account, data)));
1377
1715
  server.tool(serverToolName(brand, "delete", "ftp"), "FTP\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u524A\u9664", {
1378
- ftp_account: z12.string().describe("FTP\u30A2\u30AB\u30A6\u30F3\u30C8")
1716
+ ftp_account: z13.string().describe("FTP\u30A2\u30AB\u30A6\u30F3\u30C8")
1379
1717
  }, async ({ ftp_account }) => callApi(() => client.deleteFtp(ftp_account)));
1380
1718
  }
1381
1719
 
1382
1720
  // ../core/dist/tools/server/database.js
1383
- import { z as z13 } from "zod";
1721
+ import { z as z14 } from "zod";
1384
1722
  function registerDatabaseTools(server, client, brand) {
1385
1723
  server.tool(serverToolName(brand, "list", "db"), "MySQL \u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listDb()));
1386
1724
  server.tool(serverToolName(brand, "add", "db"), "MySQL \u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210", {
1387
- name_suffix: z13.string().describe("DB\u540D\u306E\u30B5\u30D5\u30A3\u30C3\u30AF\u30B9\uFF08\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u306F\u81EA\u52D5\u4ED8\u4E0E\uFF09"),
1388
- memo: z13.string().optional().describe("\u30E1\u30E2")
1725
+ name_suffix: z14.string().describe("DB\u540D\u306E\u30B5\u30D5\u30A3\u30C3\u30AF\u30B9\uFF08\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u306F\u81EA\u52D5\u4ED8\u4E0E\uFF09"),
1726
+ memo: z14.string().optional().describe("\u30E1\u30E2")
1389
1727
  }, async (args) => callApi(() => client.addDb(args)));
1390
1728
  server.tool(serverToolName(brand, "update", "db"), "MySQL \u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306E\u30E1\u30E2\u3092\u66F4\u65B0", {
1391
- db_name: z13.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D"),
1392
- memo: z13.string().optional().describe("\u30E1\u30E2")
1729
+ db_name: z14.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D"),
1730
+ memo: z14.string().optional().describe("\u30E1\u30E2")
1393
1731
  }, async ({ db_name, ...data }) => callApi(() => client.updateDb(db_name, data)));
1394
1732
  server.tool(serverToolName(brand, "delete", "db"), "MySQL \u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u524A\u9664", {
1395
- db_name: z13.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D")
1733
+ db_name: z14.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D")
1396
1734
  }, async ({ db_name }) => callApi(() => client.deleteDb(db_name)));
1397
1735
  server.tool(serverToolName(brand, "list", "db_user"), "MySQL \u30E6\u30FC\u30B6\u30FC\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listDbUser()));
1398
1736
  server.tool(serverToolName(brand, "add", "db_user"), "MySQL \u30E6\u30FC\u30B6\u30FC\u3092\u4F5C\u6210", {
1399
- name_suffix: z13.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D\u306E\u30B5\u30D5\u30A3\u30C3\u30AF\u30B9"),
1400
- password: z13.string().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1401
- memo: z13.string().optional().describe("\u30E1\u30E2")
1737
+ name_suffix: z14.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D\u306E\u30B5\u30D5\u30A3\u30C3\u30AF\u30B9"),
1738
+ password: z14.string().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1739
+ memo: z14.string().optional().describe("\u30E1\u30E2")
1402
1740
  }, async (args) => callApi(() => client.addDbUser(args)));
1403
1741
  server.tool(serverToolName(brand, "update", "db_user"), "MySQL \u30E6\u30FC\u30B6\u30FC\u306E\u30D1\u30B9\u30EF\u30FC\u30C9\u7B49\u3092\u5909\u66F4", {
1404
- db_user: z13.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D"),
1405
- password: z13.string().optional().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1406
- memo: z13.string().optional().describe("\u30E1\u30E2")
1742
+ db_user: z14.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D"),
1743
+ password: z14.string().optional().describe("\u30D1\u30B9\u30EF\u30FC\u30C9"),
1744
+ memo: z14.string().optional().describe("\u30E1\u30E2")
1407
1745
  }, async ({ db_user, ...data }) => callApi(() => client.updateDbUser(db_user, data)));
1408
1746
  server.tool(serverToolName(brand, "delete", "db_user"), "MySQL \u30E6\u30FC\u30B6\u30FC\u3092\u524A\u9664", {
1409
- db_user: z13.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D")
1747
+ db_user: z14.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D")
1410
1748
  }, async ({ db_user }) => callApi(() => client.deleteDbUser(db_user)));
1411
1749
  server.tool(serverToolName(brand, "list", "db_user_grant"), "MySQL \u30E6\u30FC\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u6A29\u9650\u3092\u53D6\u5F97", {
1412
- db_user: z13.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D")
1750
+ db_user: z14.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D")
1413
1751
  }, async ({ db_user }) => callApi(() => client.listDbUserGrant(db_user)));
1414
1752
  server.tool(serverToolName(brand, "add", "db_user_grant"), "MySQL \u30E6\u30FC\u30B6\u30FC\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u6A29\u9650\u3092\u4ED8\u4E0E", {
1415
- db_user: z13.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D"),
1416
- db_name: z13.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D")
1753
+ db_user: z14.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D"),
1754
+ db_name: z14.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D")
1417
1755
  }, async ({ db_user, ...data }) => callApi(() => client.addDbUserGrant(db_user, data)));
1418
1756
  server.tool(serverToolName(brand, "delete", "db_user_grant"), "MySQL \u30E6\u30FC\u30B6\u30FC\u304B\u3089\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u6A29\u9650\u3092\u524A\u9664", {
1419
- db_user: z13.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D"),
1420
- db_name: z13.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D")
1757
+ db_user: z14.string().describe("\u30E6\u30FC\u30B6\u30FC\u540D"),
1758
+ db_name: z14.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D")
1421
1759
  }, async ({ db_user, ...data }) => callApi(() => client.deleteDbUserGrant(db_user, data)));
1422
1760
  }
1423
1761
 
1424
1762
  // ../core/dist/tools/server/domain.js
1425
- import { z as z14 } from "zod";
1763
+ import { z as z15 } from "zod";
1426
1764
  function registerDomainTools(server, client, brand) {
1427
1765
  server.tool(serverToolName(brand, "list", "domain"), "\u30C9\u30E1\u30A4\u30F3\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listDomain()));
1428
1766
  server.tool(serverToolName(brand, "get", "domain"), "\u30C9\u30E1\u30A4\u30F3\u306E\u8A73\u7D30\u60C5\u5831\u3092\u53D6\u5F97", {
1429
- domain: z14.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D")
1767
+ domain: z15.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D")
1430
1768
  }, async ({ domain: domain2 }) => callApi(() => client.getDomain(domain2)));
1431
1769
  server.tool(serverToolName(brand, "add", "domain"), "\u30C9\u30E1\u30A4\u30F3\u3092\u8FFD\u52A0", {
1432
- domain: z14.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D"),
1433
- ssl: z14.boolean().optional().describe("\u7121\u6599SSL\u8A2D\u5B9A\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8: true\uFF09"),
1434
- memo: z14.string().optional().describe("\u30E1\u30E2")
1770
+ domain: z15.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D"),
1771
+ ssl: z15.boolean().optional().describe("\u7121\u6599SSL\u8A2D\u5B9A\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8: true\uFF09"),
1772
+ memo: z15.string().optional().describe("\u30E1\u30E2")
1435
1773
  }, async (args) => callApi(() => client.addDomain(args)));
1436
1774
  server.tool(serverToolName(brand, "update", "domain"), "\u30C9\u30E1\u30A4\u30F3\u306E\u30E1\u30E2\u3092\u66F4\u65B0", {
1437
- domain: z14.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D"),
1438
- memo: z14.string().optional().describe("\u30E1\u30E2")
1775
+ domain: z15.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D"),
1776
+ memo: z15.string().optional().describe("\u30E1\u30E2")
1439
1777
  }, async ({ domain: domain2, ...data }) => callApi(() => client.updateDomain(domain2, data)));
1440
1778
  server.tool(serverToolName(brand, "delete", "domain"), "\u30C9\u30E1\u30A4\u30F3\u3092\u524A\u9664", {
1441
- domain: z14.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D")
1779
+ domain: z15.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D")
1442
1780
  }, async ({ domain: domain2 }) => callApi(() => client.deleteDomain(domain2)));
1443
1781
  server.tool(serverToolName(brand, "list", "subdomain"), "\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u4E00\u89A7\u3092\u53D6\u5F97", {
1444
- domain: z14.string().optional().describe("\u89AA\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1782
+ domain: z15.string().optional().describe("\u89AA\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1445
1783
  }, async (args) => {
1446
1784
  const params = {};
1447
1785
  if (args.domain)
@@ -1449,26 +1787,26 @@ function registerDomainTools(server, client, brand) {
1449
1787
  return callApi(() => client.listSubdomain(params));
1450
1788
  });
1451
1789
  server.tool(serverToolName(brand, "add", "subdomain"), "\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u3092\u8FFD\u52A0", {
1452
- subdomain: z14.string().describe("\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\uFF08\u4F8B: blog.example.com\uFF09"),
1453
- document_root_type: z14.enum(["subdomain_only", "full_subdomain"]).optional().describe("\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u30EB\u30FC\u30C8\u7A2E\u5225\uFF08subdomain_only: /public_html/sub, full_subdomain: /public_html/sub.example.com\uFF09"),
1454
- ssl: z14.boolean().optional().describe("\u7121\u6599SSL\u8A2D\u5B9A\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8: true\uFF09"),
1455
- memo: z14.string().optional().describe("\u30E1\u30E2")
1790
+ subdomain: z15.string().describe("\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\uFF08\u4F8B: blog.example.com\uFF09"),
1791
+ document_root_type: z15.enum(["subdomain_only", "full_subdomain"]).optional().describe("\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u30EB\u30FC\u30C8\u7A2E\u5225\uFF08subdomain_only: /public_html/sub, full_subdomain: /public_html/sub.example.com\uFF09"),
1792
+ ssl: z15.boolean().optional().describe("\u7121\u6599SSL\u8A2D\u5B9A\uFF08\u30C7\u30D5\u30A9\u30EB\u30C8: true\uFF09"),
1793
+ memo: z15.string().optional().describe("\u30E1\u30E2")
1456
1794
  }, async (args) => callApi(() => client.addSubdomain(args)));
1457
1795
  server.tool(serverToolName(brand, "update", "subdomain"), "\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u306E\u30E1\u30E2\u3092\u66F4\u65B0", {
1458
- subdomain: z14.string().describe("\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3"),
1459
- memo: z14.string().optional().describe("\u30E1\u30E2")
1796
+ subdomain: z15.string().describe("\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3"),
1797
+ memo: z15.string().optional().describe("\u30E1\u30E2")
1460
1798
  }, async ({ subdomain, ...data }) => callApi(() => client.updateSubdomain(subdomain, data)));
1461
1799
  server.tool(serverToolName(brand, "delete", "subdomain"), "\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u3092\u524A\u9664", {
1462
- subdomain: z14.string().describe("\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3"),
1463
- delete_files: z14.boolean().optional().describe("\u95A2\u9023\u30D5\u30A1\u30A4\u30EB\u3082\u524A\u9664\u3059\u308B\u304B")
1800
+ subdomain: z15.string().describe("\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3"),
1801
+ delete_files: z15.boolean().optional().describe("\u95A2\u9023\u30D5\u30A1\u30A4\u30EB\u3082\u524A\u9664\u3059\u308B\u304B")
1464
1802
  }, async ({ subdomain, ...data }) => callApi(() => client.deleteSubdomain(subdomain, data)));
1465
1803
  }
1466
1804
 
1467
1805
  // ../core/dist/tools/server/ssl-dns.js
1468
- import { z as z15 } from "zod";
1806
+ import { z as z16 } from "zod";
1469
1807
  function registerSslDnsTools(server, client, brand) {
1470
1808
  server.tool(serverToolName(brand, "list", "ssl"), "SSL\u8A2D\u5B9A\u306E\u4E00\u89A7\u3092\u53D6\u5F97", {
1471
- domain: z15.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1809
+ domain: z16.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1472
1810
  }, async (args) => {
1473
1811
  const params = {};
1474
1812
  if (args.domain)
@@ -1476,13 +1814,13 @@ function registerSslDnsTools(server, client, brand) {
1476
1814
  return callApi(() => client.listSsl(params));
1477
1815
  });
1478
1816
  server.tool(serverToolName(brand, "install", "ssl"), "\u7121\u6599SSL\uFF08Let's Encrypt\uFF09\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", {
1479
- common_name: z15.string().describe("\u30B3\u30E2\u30F3\u30CD\u30FC\u30E0\uFF08\u30C9\u30E1\u30A4\u30F3\u540D\uFF09")
1817
+ common_name: z16.string().describe("\u30B3\u30E2\u30F3\u30CD\u30FC\u30E0\uFF08\u30C9\u30E1\u30A4\u30F3\u540D\uFF09")
1480
1818
  }, async (args) => callApi(() => client.installSsl(args)));
1481
1819
  server.tool(serverToolName(brand, "uninstall", "ssl"), "\u7121\u6599SSL\u3092\u30A2\u30F3\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", {
1482
- common_name: z15.string().describe("\u30B3\u30E2\u30F3\u30CD\u30FC\u30E0\uFF08\u30C9\u30E1\u30A4\u30F3\u540D\uFF09")
1820
+ common_name: z16.string().describe("\u30B3\u30E2\u30F3\u30CD\u30FC\u30E0\uFF08\u30C9\u30E1\u30A4\u30F3\u540D\uFF09")
1483
1821
  }, async ({ common_name }) => callApi(() => client.uninstallSsl(common_name)));
1484
1822
  server.tool(serverToolName(brand, "list", "dns"), "DNS\u30EC\u30B3\u30FC\u30C9\u4E00\u89A7\u3092\u53D6\u5F97", {
1485
- domain: z15.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1823
+ domain: z16.string().optional().describe("\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1486
1824
  }, async (args) => {
1487
1825
  const params = {};
1488
1826
  if (args.domain)
@@ -1490,35 +1828,35 @@ function registerSslDnsTools(server, client, brand) {
1490
1828
  return callApi(() => client.listDns(params));
1491
1829
  });
1492
1830
  server.tool(serverToolName(brand, "add", "dns"), "DNS\u30EC\u30B3\u30FC\u30C9\u3092\u8FFD\u52A0", {
1493
- domain: z15.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1494
- host: z15.string().describe("\u30DB\u30B9\u30C8\u540D\uFF08@\u3067apex\uFF09"),
1495
- type: z15.string().describe("\u30EC\u30B3\u30FC\u30C9\u30BF\u30A4\u30D7\uFF08A / AAAA / CNAME / MX / TXT / SRV / CAA\uFF09"),
1496
- content: z15.string().describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
1497
- ttl: z15.number().optional().describe("TTL\uFF0860-86400\u3002\u30C7\u30D5\u30A9\u30EB\u30C8: 3600\uFF09"),
1498
- priority: z15.number().optional().describe("\u512A\u5148\u5EA6\uFF08MX/SRV\u30EC\u30B3\u30FC\u30C9\u7528\uFF09")
1831
+ domain: z16.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1832
+ host: z16.string().describe("\u30DB\u30B9\u30C8\u540D\uFF08@\u3067apex\uFF09"),
1833
+ type: z16.string().describe("\u30EC\u30B3\u30FC\u30C9\u30BF\u30A4\u30D7\uFF08A / AAAA / CNAME / MX / TXT / SRV / CAA\uFF09"),
1834
+ content: z16.string().describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
1835
+ ttl: z16.number().optional().describe("TTL\uFF0860-86400\u3002\u30C7\u30D5\u30A9\u30EB\u30C8: 3600\uFF09"),
1836
+ priority: z16.number().optional().describe("\u512A\u5148\u5EA6\uFF08MX/SRV\u30EC\u30B3\u30FC\u30C9\u7528\uFF09")
1499
1837
  }, async (args) => callApi(() => client.addDns(args)));
1500
1838
  server.tool(serverToolName(brand, "update", "dns"), "DNS\u30EC\u30B3\u30FC\u30C9\u3092\u66F4\u65B0", {
1501
- dns_id: z15.string().describe("DNS\u30EC\u30B3\u30FC\u30C9ID"),
1502
- domain: z15.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1503
- host: z15.string().describe("\u30DB\u30B9\u30C8\u540D"),
1504
- type: z15.string().describe("\u30EC\u30B3\u30FC\u30C9\u30BF\u30A4\u30D7"),
1505
- content: z15.string().describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
1506
- ttl: z15.number().optional().describe("TTL"),
1507
- priority: z15.number().optional().describe("\u512A\u5148\u5EA6")
1839
+ dns_id: z16.string().describe("DNS\u30EC\u30B3\u30FC\u30C9ID"),
1840
+ domain: z16.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1841
+ host: z16.string().describe("\u30DB\u30B9\u30C8\u540D"),
1842
+ type: z16.string().describe("\u30EC\u30B3\u30FC\u30C9\u30BF\u30A4\u30D7"),
1843
+ content: z16.string().describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
1844
+ ttl: z16.number().optional().describe("TTL"),
1845
+ priority: z16.number().optional().describe("\u512A\u5148\u5EA6")
1508
1846
  }, async ({ dns_id, ...data }) => callApi(() => client.updateDns(dns_id, data)));
1509
1847
  server.tool(serverToolName(brand, "delete", "dns"), "DNS\u30EC\u30B3\u30FC\u30C9\u3092\u524A\u9664", {
1510
- dns_id: z15.string().describe("DNS\u30EC\u30B3\u30FC\u30C9ID"),
1511
- domain: z15.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3")
1848
+ dns_id: z16.string().describe("DNS\u30EC\u30B3\u30FC\u30C9ID"),
1849
+ domain: z16.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3")
1512
1850
  }, async ({ dns_id, ...data }) => callApi(() => client.deleteDns(dns_id, data)));
1513
1851
  server.tool(serverToolName(brand, "get", "php_version"), "PHP\u30D0\u30FC\u30B8\u30E7\u30F3\u8A2D\u5B9A\uFF08\u5229\u7528\u53EF\u80FD\u30D0\u30FC\u30B8\u30E7\u30F3\u30FB\u30C9\u30E1\u30A4\u30F3\u5225\u306E\u73FE\u5728\u30D0\u30FC\u30B8\u30E7\u30F3\uFF09\u3092\u53D6\u5F97", {}, async () => callApi(() => client.getPhpVersion()));
1514
1852
  server.tool(serverToolName(brand, "update", "php_version"), "\u30C9\u30E1\u30A4\u30F3\u306EPHP\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u5909\u66F4", {
1515
- domain: z15.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D"),
1516
- version: z15.string().describe("PHP\u30D0\u30FC\u30B8\u30E7\u30F3\uFF08\u4F8B: 8.3.21\uFF09")
1853
+ domain: z16.string().describe("\u30C9\u30E1\u30A4\u30F3\u540D"),
1854
+ version: z16.string().describe("PHP\u30D0\u30FC\u30B8\u30E7\u30F3\uFF08\u4F8B: 8.3.21\uFF09")
1517
1855
  }, async ({ domain: domain2, ...data }) => callApi(() => client.updatePhpVersion(domain2, data)));
1518
1856
  server.tool(serverToolName(brand, "get", "access_log"), "\u30A2\u30AF\u30BB\u30B9\u30ED\u30B0\u3092\u53D6\u5F97", {
1519
- domain: z15.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1520
- lines: z15.number().optional().describe("\u53D6\u5F97\u884C\u6570\uFF08\u672B\u5C3E\u304B\u3089\uFF09"),
1521
- keyword: z15.string().optional().describe("\u7D5E\u308A\u8FBC\u307F\u30AD\u30FC\u30EF\u30FC\u30C9")
1857
+ domain: z16.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1858
+ lines: z16.number().optional().describe("\u53D6\u5F97\u884C\u6570\uFF08\u672B\u5C3E\u304B\u3089\uFF09"),
1859
+ keyword: z16.string().optional().describe("\u7D5E\u308A\u8FBC\u307F\u30AD\u30FC\u30EF\u30FC\u30C9")
1522
1860
  }, async (args) => {
1523
1861
  const params = {};
1524
1862
  if (args.domain)
@@ -1530,9 +1868,9 @@ function registerSslDnsTools(server, client, brand) {
1530
1868
  return callApi(() => client.getAccessLog(params));
1531
1869
  });
1532
1870
  server.tool(serverToolName(brand, "get", "error_log"), "\u30A8\u30E9\u30FC\u30ED\u30B0\u3092\u53D6\u5F97", {
1533
- domain: z15.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1534
- lines: z15.number().optional().describe("\u53D6\u5F97\u884C\u6570\uFF08\u672B\u5C3E\u304B\u3089\uFF09"),
1535
- keyword: z15.string().optional().describe("\u7D5E\u308A\u8FBC\u307F\u30AD\u30FC\u30EF\u30FC\u30C9")
1871
+ domain: z16.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1872
+ lines: z16.number().optional().describe("\u53D6\u5F97\u884C\u6570\uFF08\u672B\u5C3E\u304B\u3089\uFF09"),
1873
+ keyword: z16.string().optional().describe("\u7D5E\u308A\u8FBC\u307F\u30AD\u30FC\u30EF\u30FC\u30C9")
1536
1874
  }, async (args) => {
1537
1875
  const params = {};
1538
1876
  if (args.domain)
@@ -1546,19 +1884,19 @@ function registerSslDnsTools(server, client, brand) {
1546
1884
  }
1547
1885
 
1548
1886
  // ../core/dist/tools/server/resource-monitor.js
1549
- import { z as z16 } from "zod";
1887
+ import { z as z17 } from "zod";
1550
1888
  function registerResourceMonitorTools(server, client, brand) {
1551
1889
  server.tool(serverToolName(brand, "get", "resource_monitor"), "\u6307\u5B9A\u65E5\u306ECPU\u30FB\u30E1\u30E2\u30EA\u30FB\u8EE2\u9001\u91CF\u6642\u7CFB\u5217\u3092\u53D6\u5F97", {
1552
- date: z16.string().describe("\u5BFE\u8C61\u65E5\uFF08Y-m-d \u307E\u305F\u306F Ymd\u3002\u5F53\u65E5\u542B\u3080\u76F4\u8FD11\u304B\u6708\uFF09")
1890
+ date: z17.string().describe("\u5BFE\u8C61\u65E5\uFF08Y-m-d \u307E\u305F\u306F Ymd\u3002\u5F53\u65E5\u542B\u3080\u76F4\u8FD11\u304B\u6708\uFF09")
1553
1891
  }, async ({ date }) => callApi(() => client.getResourceMonitor(date)));
1554
1892
  }
1555
1893
 
1556
1894
  // ../core/dist/tools/server/waf.js
1557
- import { z as z17 } from "zod";
1895
+ import { z as z18 } from "zod";
1558
1896
  var PARTIAL_UPDATE_EMPTY_MESSAGE4 = "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044";
1559
1897
  function registerWafTools(server, client, brand) {
1560
1898
  server.tool(serverToolName(brand, "list", "waf"), "WAF\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1561
- domain: z17.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1899
+ domain: z18.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1562
1900
  }, async (args) => {
1563
1901
  const params = {};
1564
1902
  if (args.domain)
@@ -1566,13 +1904,13 @@ function registerWafTools(server, client, brand) {
1566
1904
  return callApi(() => client.listWaf(params));
1567
1905
  });
1568
1906
  server.tool(serverToolName(brand, "update", "waf"), "WAF\u8A2D\u5B9A\u3092\u66F4\u65B0\uFF08\u6307\u5B9A\u3057\u305F\u9805\u76EE\u306E\u307F\uFF09", {
1569
- domain: z17.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1570
- xss_protection: z17.boolean().optional().describe("XSS\u5BFE\u7B56"),
1571
- sql_injection_protection: z17.boolean().optional().describe("SQL\u5BFE\u7B56"),
1572
- file_protection: z17.boolean().optional().describe("\u30D5\u30A1\u30A4\u30EB\u5BFE\u7B56"),
1573
- mail_protection: z17.boolean().optional().describe("\u30E1\u30FC\u30EB\u5BFE\u7B56"),
1574
- command_protection: z17.boolean().optional().describe("\u30B3\u30DE\u30F3\u30C9\u5BFE\u7B56"),
1575
- php_protection: z17.boolean().optional().describe("PHP\u5BFE\u7B56")
1907
+ domain: z18.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1908
+ xss_protection: z18.boolean().optional().describe("XSS\u5BFE\u7B56"),
1909
+ sql_injection_protection: z18.boolean().optional().describe("SQL\u5BFE\u7B56"),
1910
+ file_protection: z18.boolean().optional().describe("\u30D5\u30A1\u30A4\u30EB\u5BFE\u7B56"),
1911
+ mail_protection: z18.boolean().optional().describe("\u30E1\u30FC\u30EB\u5BFE\u7B56"),
1912
+ command_protection: z18.boolean().optional().describe("\u30B3\u30DE\u30F3\u30C9\u5BFE\u7B56"),
1913
+ php_protection: z18.boolean().optional().describe("PHP\u5BFE\u7B56")
1576
1914
  }, async (args) => {
1577
1915
  const { domain: domain2, ...fields } = args;
1578
1916
  const data = {};
@@ -1596,39 +1934,39 @@ function registerWafTools(server, client, brand) {
1596
1934
  }
1597
1935
 
1598
1936
  // ../core/dist/tools/server/php-ini.js
1599
- import { z as z18 } from "zod";
1937
+ import { z as z19 } from "zod";
1600
1938
  var PARTIAL_UPDATE_EMPTY_MESSAGE5 = "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044";
1601
1939
  var phpIniUpdateSchema = {
1602
- domain: z18.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1603
- display_errors: z18.string().optional().describe("\u30A8\u30E9\u30FC\u5185\u5BB9\u3092\u753B\u9762\u306B\u51FA\u529B\uFF08On / Off\uFF09"),
1604
- error_reporting: z18.string().optional().describe("\u30A8\u30E9\u30FC\u51FA\u529B\u30EC\u30D9\u30EB"),
1605
- display_startup_errors: z18.string().optional().describe("\u8D77\u52D5\u6642\u30A8\u30E9\u30FC\u3092\u8868\u793A\uFF08On / Off\uFF09"),
1606
- "session.auto_start": z18.string().optional().describe("\u30BB\u30C3\u30B7\u30E7\u30F3\u81EA\u52D5\u958B\u59CB\uFF080 / 1\uFF09"),
1607
- "session.name": z18.string().optional().describe("\u30BB\u30C3\u30B7\u30E7\u30F3\u540D"),
1608
- "session.use_cookies": z18.string().optional().describe("\u30BB\u30C3\u30B7\u30E7\u30F3ID\u306B\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\uFF080 / 1\uFF09"),
1609
- "session.use_only_cookies": z18.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u306E\u307F\u3067\u30BB\u30C3\u30B7\u30E7\u30F3ID\u3092\u4FDD\u5B58\uFF080 / 1\uFF09"),
1610
- "session.use_trans_sid": z18.string().optional().describe("URL\u3078\u30BB\u30C3\u30B7\u30E7\u30F3ID\u3092\u81EA\u52D5\u8A2D\u5B9A\uFF080 / 1\uFF09"),
1611
- "session.cookie_lifetime": z18.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u6709\u52B9\u671F\u9593\uFF08\u79D2\uFF09"),
1612
- "session.cookie_path": z18.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u3092\u6709\u52B9\u3068\u3059\u308B\u30D1\u30B9"),
1613
- "session.cookie_domain": z18.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u3092\u6709\u52B9\u3068\u3059\u308B\u30C9\u30E1\u30A4\u30F3"),
1614
- "mbstring.language": z18.string().optional().describe("\u30C7\u30D5\u30A9\u30EB\u30C8\u8A00\u8A9E"),
1615
- "mbstring.internal_encoding": z18.string().optional().describe("\u5185\u90E8\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0"),
1616
- "mbstring.http_input": z18.string().optional().describe("HTTP\u5165\u529B\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u5909\u63DB"),
1617
- "mbstring.http_output": z18.string().optional().describe("HTTP\u51FA\u529B\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u5909\u63DB"),
1618
- "mbstring.encoding_translation": z18.string().optional().describe("\u5185\u90E8\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u3078\u306E\u5909\u63DB\uFF08On / Off\uFF09"),
1619
- "mbstring.detect_order": z18.string().optional().describe("\u6587\u5B57\u30B3\u30FC\u30C9\u691C\u51FA"),
1620
- "mbstring.substitute_character": z18.string().optional().describe("\u7121\u52B9\u6587\u5B57\u306E\u4EE3\u66FF\u6587\u5B57"),
1621
- max_execution_time: z18.string().optional().describe("\u6700\u5927\u5B9F\u884C\u6642\u9593\uFF08\u79D2\uFF09"),
1622
- max_input_time: z18.string().optional().describe("\u5165\u529B\u30D1\u30FC\u30B9\u6700\u5927\u6642\u9593\uFF08\u79D2\uFF09"),
1623
- memory_limit: z18.string().optional().describe("\u6700\u5927\u30E1\u30E2\u30EA"),
1624
- post_max_size: z18.string().optional().describe("POST\u30C7\u30FC\u30BF\u6700\u5927\u30B5\u30A4\u30BA"),
1625
- upload_max_filesize: z18.string().optional().describe("\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u30D5\u30A1\u30A4\u30EB\u6700\u5927\u30B5\u30A4\u30BA"),
1626
- register_globals: z18.string().optional().describe("register_globals\uFF08On / Off\uFF09"),
1627
- magic_quotes_gpc: z18.string().optional().describe("magic_quotes_gpc\uFF08On / Off\uFF09"),
1628
- safe_mode: z18.string().optional().describe("safe_mode\uFF08On / Off\uFF09"),
1629
- file_uploads: z18.string().optional().describe("HTTP\u30D5\u30A1\u30A4\u30EB\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\uFF08On / Off\uFF09"),
1630
- allow_url_fopen: z18.string().optional().describe("allow_url_fopen\uFF08On / Off\uFF09"),
1631
- allow_url_include: z18.string().optional().describe("allow_url_include\uFF08On / Off\uFF09")
1940
+ domain: z19.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1941
+ display_errors: z19.string().optional().describe("\u30A8\u30E9\u30FC\u5185\u5BB9\u3092\u753B\u9762\u306B\u51FA\u529B\uFF08On / Off\uFF09"),
1942
+ error_reporting: z19.string().optional().describe("\u30A8\u30E9\u30FC\u51FA\u529B\u30EC\u30D9\u30EB"),
1943
+ display_startup_errors: z19.string().optional().describe("\u8D77\u52D5\u6642\u30A8\u30E9\u30FC\u3092\u8868\u793A\uFF08On / Off\uFF09"),
1944
+ "session.auto_start": z19.string().optional().describe("\u30BB\u30C3\u30B7\u30E7\u30F3\u81EA\u52D5\u958B\u59CB\uFF080 / 1\uFF09"),
1945
+ "session.name": z19.string().optional().describe("\u30BB\u30C3\u30B7\u30E7\u30F3\u540D"),
1946
+ "session.use_cookies": z19.string().optional().describe("\u30BB\u30C3\u30B7\u30E7\u30F3ID\u306B\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\uFF080 / 1\uFF09"),
1947
+ "session.use_only_cookies": z19.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u306E\u307F\u3067\u30BB\u30C3\u30B7\u30E7\u30F3ID\u3092\u4FDD\u5B58\uFF080 / 1\uFF09"),
1948
+ "session.use_trans_sid": z19.string().optional().describe("URL\u3078\u30BB\u30C3\u30B7\u30E7\u30F3ID\u3092\u81EA\u52D5\u8A2D\u5B9A\uFF080 / 1\uFF09"),
1949
+ "session.cookie_lifetime": z19.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u6709\u52B9\u671F\u9593\uFF08\u79D2\uFF09"),
1950
+ "session.cookie_path": z19.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u3092\u6709\u52B9\u3068\u3059\u308B\u30D1\u30B9"),
1951
+ "session.cookie_domain": z19.string().optional().describe("\u30AF\u30C3\u30AD\u30FC\u3092\u6709\u52B9\u3068\u3059\u308B\u30C9\u30E1\u30A4\u30F3"),
1952
+ "mbstring.language": z19.string().optional().describe("\u30C7\u30D5\u30A9\u30EB\u30C8\u8A00\u8A9E"),
1953
+ "mbstring.internal_encoding": z19.string().optional().describe("\u5185\u90E8\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0"),
1954
+ "mbstring.http_input": z19.string().optional().describe("HTTP\u5165\u529B\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u5909\u63DB"),
1955
+ "mbstring.http_output": z19.string().optional().describe("HTTP\u51FA\u529B\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u5909\u63DB"),
1956
+ "mbstring.encoding_translation": z19.string().optional().describe("\u5185\u90E8\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u3078\u306E\u5909\u63DB\uFF08On / Off\uFF09"),
1957
+ "mbstring.detect_order": z19.string().optional().describe("\u6587\u5B57\u30B3\u30FC\u30C9\u691C\u51FA"),
1958
+ "mbstring.substitute_character": z19.string().optional().describe("\u7121\u52B9\u6587\u5B57\u306E\u4EE3\u66FF\u6587\u5B57"),
1959
+ max_execution_time: z19.string().optional().describe("\u6700\u5927\u5B9F\u884C\u6642\u9593\uFF08\u79D2\uFF09"),
1960
+ max_input_time: z19.string().optional().describe("\u5165\u529B\u30D1\u30FC\u30B9\u6700\u5927\u6642\u9593\uFF08\u79D2\uFF09"),
1961
+ memory_limit: z19.string().optional().describe("\u6700\u5927\u30E1\u30E2\u30EA"),
1962
+ post_max_size: z19.string().optional().describe("POST\u30C7\u30FC\u30BF\u6700\u5927\u30B5\u30A4\u30BA"),
1963
+ upload_max_filesize: z19.string().optional().describe("\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u30D5\u30A1\u30A4\u30EB\u6700\u5927\u30B5\u30A4\u30BA"),
1964
+ register_globals: z19.string().optional().describe("register_globals\uFF08On / Off\uFF09"),
1965
+ magic_quotes_gpc: z19.string().optional().describe("magic_quotes_gpc\uFF08On / Off\uFF09"),
1966
+ safe_mode: z19.string().optional().describe("safe_mode\uFF08On / Off\uFF09"),
1967
+ file_uploads: z19.string().optional().describe("HTTP\u30D5\u30A1\u30A4\u30EB\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\uFF08On / Off\uFF09"),
1968
+ allow_url_fopen: z19.string().optional().describe("allow_url_fopen\uFF08On / Off\uFF09"),
1969
+ allow_url_include: z19.string().optional().describe("allow_url_include\uFF08On / Off\uFF09")
1632
1970
  };
1633
1971
  var PHP_INI_API_KEYS = [
1634
1972
  "display_errors",
@@ -1663,7 +2001,7 @@ var PHP_INI_API_KEYS = [
1663
2001
  ];
1664
2002
  function registerPhpIniTools(server, client, brand) {
1665
2003
  server.tool(serverToolName(brand, "list", "php_ini"), "php.ini\u8A2D\u5B9A\u3092\u53D6\u5F97", {
1666
- domain: z18.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2004
+ domain: z19.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1667
2005
  }, async (args) => {
1668
2006
  const params = {};
1669
2007
  if (args.domain)
@@ -1684,18 +2022,18 @@ function registerPhpIniTools(server, client, brand) {
1684
2022
  return callApi(() => client.updatePhpIni(domain2, data));
1685
2023
  });
1686
2024
  server.tool(serverToolName(brand, "reset", "php_ini"), "php.ini\u8A2D\u5B9A\u3092\u521D\u671F\u5024\u306B\u623B\u3059", {
1687
- domain: z18.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3")
2025
+ domain: z19.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3")
1688
2026
  }, async ({ domain: domain2 }) => callApi(() => client.resetPhpIni(domain2)));
1689
2027
  }
1690
2028
 
1691
2029
  // ../core/dist/tools/server/wordpress-security.js
1692
- import { z as z19 } from "zod";
1693
- var enabledTargetSchema = z19.object({
1694
- enabled: z19.boolean()
2030
+ import { z as z20 } from "zod";
2031
+ var enabledTargetSchema = z20.object({
2032
+ enabled: z20.boolean()
1695
2033
  });
1696
- var foreignIpTargetSchema = z19.object({
1697
- enabled: z19.boolean().optional(),
1698
- allowed_ip_addresses: z19.array(z19.string()).optional()
2034
+ var foreignIpTargetSchema = z20.object({
2035
+ enabled: z20.boolean().optional(),
2036
+ allowed_ip_addresses: z20.array(z20.string()).optional()
1699
2037
  });
1700
2038
  var UPDATE_BLOCKS = [
1701
2039
  "comment_restriction",
@@ -1704,23 +2042,23 @@ var UPDATE_BLOCKS = [
1704
2042
  "ip_restriction"
1705
2043
  ];
1706
2044
  var wordpressSecurityUpdateSchema = {
1707
- domain: z19.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1708
- comment_restriction: z19.object({
2045
+ domain: z20.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
2046
+ comment_restriction: z20.object({
1709
2047
  bulk_post: enabledTargetSchema.optional(),
1710
2048
  foreign_post: enabledTargetSchema.optional()
1711
2049
  }).optional().describe("\u30B3\u30E1\u30F3\u30C8\u5236\u9650"),
1712
- login_attempt_limit: z19.object({
1713
- enabled: z19.boolean()
2050
+ login_attempt_limit: z20.object({
2051
+ enabled: z20.boolean()
1714
2052
  }).optional().describe("\u30ED\u30B0\u30A4\u30F3\u8A66\u884C\u56DE\u6570\u5236\u9650"),
1715
- foreign_ip_restriction: z19.object({
2053
+ foreign_ip_restriction: z20.object({
1716
2054
  dashboard: foreignIpTargetSchema.optional(),
1717
2055
  xml_rpc_api: foreignIpTargetSchema.optional(),
1718
2056
  rest_api: foreignIpTargetSchema.optional(),
1719
2057
  wlwmanifest: foreignIpTargetSchema.optional()
1720
2058
  }).optional().describe("\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650"),
1721
- ip_restriction: z19.object({
1722
- enabled: z19.boolean().optional(),
1723
- allowed_ip_addresses: z19.array(z19.string()).optional()
2059
+ ip_restriction: z20.object({
2060
+ enabled: z20.boolean().optional(),
2061
+ allowed_ip_addresses: z20.array(z20.string()).optional()
1724
2062
  }).optional().describe("IP\u30A2\u30C9\u30EC\u30B9\u5236\u9650\uFF08\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\uFF09")
1725
2063
  };
1726
2064
  function buildUpdateBody(args) {
@@ -1740,7 +2078,7 @@ function buildUpdateBody(args) {
1740
2078
  }
1741
2079
  function registerWordPressSecurityTools(server, client, brand) {
1742
2080
  server.tool(serverToolName(brand, "get", "wordpress_security"), "WordPress\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u3092\u53D6\u5F97", {
1743
- domain: z19.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2081
+ domain: z20.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1744
2082
  }, async (args) => {
1745
2083
  const params = {};
1746
2084
  if (args.domain)
@@ -1751,10 +2089,10 @@ function registerWordPressSecurityTools(server, client, brand) {
1751
2089
  }
1752
2090
 
1753
2091
  // ../core/dist/tools/server/x-accelerator.js
1754
- import { z as z20 } from "zod";
2092
+ import { z as z21 } from "zod";
1755
2093
  function registerXAcceleratorTools(server, client, brand) {
1756
2094
  server.tool(serverToolName(brand, "list", "x_accelerator"), "X\u30A2\u30AF\u30BB\u30E9\u30EC\u30FC\u30BF\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1757
- domain: z20.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2095
+ domain: z21.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1758
2096
  }, async (args) => {
1759
2097
  const params = {};
1760
2098
  if (args.domain)
@@ -1762,16 +2100,16 @@ function registerXAcceleratorTools(server, client, brand) {
1762
2100
  return callApi(() => client.listXAccelerator(params));
1763
2101
  });
1764
2102
  server.tool(serverToolName(brand, "update", "x_accelerator"), "X\u30A2\u30AF\u30BB\u30E9\u30EC\u30FC\u30BF\u8A2D\u5B9A\u3092\u5909\u66F4", {
1765
- domain: z20.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1766
- xaccelerator_status: z20.enum(["off", "v1", "v2"]).describe("X\u30A2\u30AF\u30BB\u30E9\u30EC\u30FC\u30BF\u8A2D\u5B9A\uFF08off / v1 / v2\uFF09")
2103
+ domain: z21.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
2104
+ xaccelerator_status: z21.enum(["off", "v1", "v2"]).describe("X\u30A2\u30AF\u30BB\u30E9\u30EC\u30FC\u30BF\u8A2D\u5B9A\uFF08off / v1 / v2\uFF09")
1767
2105
  }, async ({ domain: domain2, xaccelerator_status }) => callApi(() => client.updateXAccelerator(domain2, { xaccelerator_status })));
1768
2106
  }
1769
2107
 
1770
2108
  // ../core/dist/tools/server/server-cache.js
1771
- import { z as z21 } from "zod";
2109
+ import { z as z22 } from "zod";
1772
2110
  function registerServerCacheTools(server, client, brand) {
1773
2111
  server.tool(serverToolName(brand, "list", "server_cache"), "\u30B5\u30FC\u30D0\u30FC\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1774
- domain: z21.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2112
+ domain: z22.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1775
2113
  }, async (args) => {
1776
2114
  const params = {};
1777
2115
  if (args.domain)
@@ -1779,19 +2117,19 @@ function registerServerCacheTools(server, client, brand) {
1779
2117
  return callApi(() => client.listServerCache(params));
1780
2118
  });
1781
2119
  server.tool(serverToolName(brand, "update", "server_cache"), "\u30B5\u30FC\u30D0\u30FC\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\u3092\u5909\u66F4", {
1782
- domain: z21.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1783
- server_cache_status: z21.enum(["on", "off"]).describe("\u30B5\u30FC\u30D0\u30FC\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\uFF08on / off\uFF09")
2120
+ domain: z22.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
2121
+ server_cache_status: z22.enum(["on", "off"]).describe("\u30B5\u30FC\u30D0\u30FC\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\uFF08on / off\uFF09")
1784
2122
  }, async ({ domain: domain2, server_cache_status }) => callApi(() => client.updateServerCache(domain2, { server_cache_status })));
1785
2123
  server.tool(serverToolName(brand, "clear_cache", "server_cache"), "\u30B5\u30FC\u30D0\u30FC\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u5185\u5BB9\u3092\u524A\u9664\uFF08\u30D1\u30FC\u30B8\uFF09", {
1786
- domain: z21.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3")
2124
+ domain: z22.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3")
1787
2125
  }, async ({ domain: domain2 }) => callApi(() => client.clearServerCache(domain2)));
1788
2126
  }
1789
2127
 
1790
2128
  // ../core/dist/tools/server/browser-cache.js
1791
- import { z as z22 } from "zod";
2129
+ import { z as z23 } from "zod";
1792
2130
  function registerBrowserCacheTools(server, client, brand) {
1793
2131
  server.tool(serverToolName(brand, "list", "browser_cache"), "\u30D6\u30E9\u30A6\u30B6\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1794
- domain: z22.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2132
+ domain: z23.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1795
2133
  }, async (args) => {
1796
2134
  const params = {};
1797
2135
  if (args.domain)
@@ -1799,16 +2137,16 @@ function registerBrowserCacheTools(server, client, brand) {
1799
2137
  return callApi(() => client.listBrowserCache(params));
1800
2138
  });
1801
2139
  server.tool(serverToolName(brand, "update", "browser_cache"), "\u30D6\u30E9\u30A6\u30B6\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\u3092\u5909\u66F4", {
1802
- domain: z22.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1803
- browser_cache_status: z22.enum(["all", "ignore-css-js", "off"]).describe("\u30D6\u30E9\u30A6\u30B6\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\uFF08all / ignore-css-js / off\uFF09")
2140
+ domain: z23.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
2141
+ browser_cache_status: z23.enum(["all", "ignore-css-js", "off"]).describe("\u30D6\u30E9\u30A6\u30B6\u30AD\u30E3\u30C3\u30B7\u30E5\u8A2D\u5B9A\uFF08all / ignore-css-js / off\uFF09")
1804
2142
  }, async ({ domain: domain2, browser_cache_status }) => callApi(() => client.updateBrowserCache(domain2, { browser_cache_status })));
1805
2143
  }
1806
2144
 
1807
2145
  // ../core/dist/tools/server/url-redirect.js
1808
- import { z as z23 } from "zod";
2146
+ import { z as z24 } from "zod";
1809
2147
  function registerUrlRedirectTools(server, client, brand) {
1810
2148
  server.tool(serverToolName(brand, "list", "url_redirect"), "\u30B5\u30A4\u30C8\u8EE2\u9001\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1811
- domain: z23.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2149
+ domain: z24.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1812
2150
  }, async (args) => {
1813
2151
  const params = {};
1814
2152
  if (args.domain)
@@ -1816,11 +2154,11 @@ function registerUrlRedirectTools(server, client, brand) {
1816
2154
  return callApi(() => client.listUrlRedirect(params));
1817
2155
  });
1818
2156
  server.tool(serverToolName(brand, "add", "url_redirect"), "\u30B5\u30A4\u30C8\u8EE2\u9001\u8A2D\u5B9A\u3092\u8FFD\u52A0", {
1819
- domain: z23.string().describe("\u5951\u7D04\u30C9\u30E1\u30A4\u30F3"),
1820
- from_host: z23.string().describe("\u8EE2\u9001\u5143\u30DB\u30B9\u30C8\uFF08FQDN\uFF09"),
1821
- from_path: z23.string().optional().describe("\u8EE2\u9001\u5143\u30D1\u30B9\uFF08\u7701\u7565\u6642\u306F /\uFF09"),
1822
- redirect_to_url: z23.string().describe("\u8EE2\u9001\u5148URL\uFF08http \u307E\u305F\u306F https\uFF09"),
1823
- status_code: z23.union([z23.literal(301), z23.literal(302)]).describe("\u8EE2\u9001\u6642\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9\uFF08301 / 302\uFF09")
2157
+ domain: z24.string().describe("\u5951\u7D04\u30C9\u30E1\u30A4\u30F3"),
2158
+ from_host: z24.string().describe("\u8EE2\u9001\u5143\u30DB\u30B9\u30C8\uFF08FQDN\uFF09"),
2159
+ from_path: z24.string().optional().describe("\u8EE2\u9001\u5143\u30D1\u30B9\uFF08\u7701\u7565\u6642\u306F /\uFF09"),
2160
+ redirect_to_url: z24.string().describe("\u8EE2\u9001\u5148URL\uFF08http \u307E\u305F\u306F https\uFF09"),
2161
+ status_code: z24.union([z24.literal(301), z24.literal(302)]).describe("\u8EE2\u9001\u6642\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9\uFF08301 / 302\uFF09")
1824
2162
  }, async (args) => {
1825
2163
  const data = {
1826
2164
  domain: args.domain,
@@ -1833,15 +2171,15 @@ function registerUrlRedirectTools(server, client, brand) {
1833
2171
  return callApi(() => client.addUrlRedirect(data));
1834
2172
  });
1835
2173
  server.tool(serverToolName(brand, "delete", "url_redirect"), "\u30B5\u30A4\u30C8\u8EE2\u9001\u8A2D\u5B9A\u3092\u524A\u9664", {
1836
- redirect_id: z23.string().describe("\u30B5\u30A4\u30C8\u8EE2\u9001\u8A2D\u5B9A\u306EID")
2174
+ redirect_id: z24.string().describe("\u30B5\u30A4\u30C8\u8EE2\u9001\u8A2D\u5B9A\u306EID")
1837
2175
  }, async ({ redirect_id }) => callApi(() => client.deleteUrlRedirect(redirect_id)));
1838
2176
  }
1839
2177
 
1840
2178
  // ../core/dist/tools/server/access-deny.js
1841
- import { z as z24 } from "zod";
2179
+ import { z as z25 } from "zod";
1842
2180
  function registerAccessDenyTools(server, client, brand) {
1843
2181
  server.tool(serverToolName(brand, "list", "access_deny"), "\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1844
- domain: z24.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2182
+ domain: z25.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1845
2183
  }, async (args) => {
1846
2184
  const params = {};
1847
2185
  if (args.domain)
@@ -1849,9 +2187,9 @@ function registerAccessDenyTools(server, client, brand) {
1849
2187
  return callApi(() => client.listAccessDeny(params));
1850
2188
  });
1851
2189
  server.tool(serverToolName(brand, "add", "access_deny"), "\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u3092\u8FFD\u52A0", {
1852
- domain: z24.string().describe("\u5951\u7D04\u30C9\u30E1\u30A4\u30F3"),
1853
- ip_address: z24.string().describe("\u62D2\u5426IP\u30A2\u30C9\u30EC\u30B9\u30FB\u30DB\u30B9\u30C8\uFF08IPv4 / CIDR / \u90E8\u5206IP / \u30DB\u30B9\u30C8\u540D\uFF09"),
1854
- memo: z24.string().optional().describe("\u30E1\u30E2\uFF08\u6700\u5927500\u6587\u5B57\uFF09")
2190
+ domain: z25.string().describe("\u5951\u7D04\u30C9\u30E1\u30A4\u30F3"),
2191
+ ip_address: z25.string().describe("\u62D2\u5426IP\u30A2\u30C9\u30EC\u30B9\u30FB\u30DB\u30B9\u30C8\uFF08IPv4 / CIDR / \u90E8\u5206IP / \u30DB\u30B9\u30C8\u540D\uFF09"),
2192
+ memo: z25.string().optional().describe("\u30E1\u30E2\uFF08\u6700\u5927500\u6587\u5B57\uFF09")
1855
2193
  }, async (args) => {
1856
2194
  const data = {
1857
2195
  domain: args.domain,
@@ -1862,16 +2200,16 @@ function registerAccessDenyTools(server, client, brand) {
1862
2200
  return callApi(() => client.addAccessDeny(data));
1863
2201
  });
1864
2202
  server.tool(serverToolName(brand, "update", "access_deny"), "\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u306E\u30E1\u30E2\u3092\u66F4\u65B0", {
1865
- deny_id: z24.string().describe("\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u306EID"),
1866
- memo: z24.string().describe("\u30E1\u30E2\uFF08\u7A7A\u6587\u5B57\u3067\u30AF\u30EA\u30A2\uFF09")
1867
- }, async ({ deny_id, memo }) => callApi(() => client.updateAccessDeny(deny_id, { memo })));
2203
+ deny_id: z25.string().describe("\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u306EID"),
2204
+ memo: z25.string().describe("\u30E1\u30E2\uFF08\u7A7A\u6587\u5B57\u3067\u30AF\u30EA\u30A2\uFF09")
2205
+ }, async ({ deny_id, memo: memo2 }) => callApi(() => client.updateAccessDeny(deny_id, { memo: memo2 })));
1868
2206
  server.tool(serverToolName(brand, "delete", "access_deny"), "\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u3092\u524A\u9664", {
1869
- deny_id: z24.string().describe("\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u306EID")
2207
+ deny_id: z25.string().describe("\u30A2\u30AF\u30BB\u30B9\u62D2\u5426\u8A2D\u5B9A\u306EID")
1870
2208
  }, async ({ deny_id }) => callApi(() => client.deleteAccessDeny(deny_id)));
1871
2209
  }
1872
2210
 
1873
2211
  // ../core/dist/tools/server/xpagespeed.js
1874
- import { z as z25 } from "zod";
2212
+ import { z as z26 } from "zod";
1875
2213
  var XPAGESPEED_KEYS = [
1876
2214
  "xoptimize_images",
1877
2215
  "lazyload_images",
@@ -1881,13 +2219,13 @@ var XPAGESPEED_KEYS = [
1881
2219
  "lazyload_javascript"
1882
2220
  ];
1883
2221
  var xPageSpeedUpdateSchema = {
1884
- domain: z25.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
1885
- xoptimize_images: z25.boolean().optional().describe("\u753B\u50CF\u6700\u9069\u5316\u306E\u6709\u52B9/\u7121\u52B9"),
1886
- lazyload_images: z25.boolean().optional().describe("\u753B\u50CF\u9045\u5EF6\u8AAD\u307F\u8FBC\u307F\u306E\u6709\u52B9/\u7121\u52B9"),
1887
- xoptimize_css: z25.boolean().optional().describe("CSS\u6700\u9069\u5316\u306E\u6709\u52B9/\u7121\u52B9"),
1888
- lazyload_css: z25.boolean().optional().describe("CSS\u9045\u5EF6\u8AAD\u307F\u8FBC\u307F\u306E\u6709\u52B9/\u7121\u52B9"),
1889
- xoptimize_javascript: z25.boolean().optional().describe("JavaScript\u6700\u9069\u5316\u306E\u6709\u52B9/\u7121\u52B9"),
1890
- lazyload_javascript: z25.boolean().optional().describe("JavaScript\u9045\u5EF6\u8AAD\u307F\u8FBC\u307F\u306E\u6709\u52B9/\u7121\u52B9")
2222
+ domain: z26.string().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3"),
2223
+ xoptimize_images: z26.boolean().optional().describe("\u753B\u50CF\u6700\u9069\u5316\u306E\u6709\u52B9/\u7121\u52B9"),
2224
+ lazyload_images: z26.boolean().optional().describe("\u753B\u50CF\u9045\u5EF6\u8AAD\u307F\u8FBC\u307F\u306E\u6709\u52B9/\u7121\u52B9"),
2225
+ xoptimize_css: z26.boolean().optional().describe("CSS\u6700\u9069\u5316\u306E\u6709\u52B9/\u7121\u52B9"),
2226
+ lazyload_css: z26.boolean().optional().describe("CSS\u9045\u5EF6\u8AAD\u307F\u8FBC\u307F\u306E\u6709\u52B9/\u7121\u52B9"),
2227
+ xoptimize_javascript: z26.boolean().optional().describe("JavaScript\u6700\u9069\u5316\u306E\u6709\u52B9/\u7121\u52B9"),
2228
+ lazyload_javascript: z26.boolean().optional().describe("JavaScript\u9045\u5EF6\u8AAD\u307F\u8FBC\u307F\u306E\u6709\u52B9/\u7121\u52B9")
1891
2229
  };
1892
2230
  function buildUpdateBody2(args) {
1893
2231
  const { domain: domain2, ...fields } = args;
@@ -1909,7 +2247,7 @@ function buildUpdateBody2(args) {
1909
2247
  }
1910
2248
  function registerXPageSpeedTools(server, client, brand) {
1911
2249
  server.tool(serverToolName(brand, "list", "xpagespeed"), "XPageSpeed\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", {
1912
- domain: z25.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
2250
+ domain: z26.string().optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u3067\u7D5E\u308A\u8FBC\u307F")
1913
2251
  }, async (args) => {
1914
2252
  const params = {};
1915
2253
  if (args.domain)
@@ -1924,22 +2262,22 @@ function registerXPageSpeedTools(server, client, brand) {
1924
2262
  }
1925
2263
 
1926
2264
  // ../core/dist/tools/server/auto-backup.js
1927
- import { z as z26 } from "zod";
1928
- var domainElementSchema = z26.object({
1929
- domain: z26.string().describe("\u5951\u7D04\u30C9\u30E1\u30A4\u30F3"),
1930
- elements: z26.array(z26.enum(["web", "setting", "mail"])).min(1).describe("\u5BFE\u8C61\u7A2E\u5225\uFF08web / setting / mail\uFF09")
2265
+ import { z as z27 } from "zod";
2266
+ var domainElementSchema = z27.object({
2267
+ domain: z27.string().describe("\u5951\u7D04\u30C9\u30E1\u30A4\u30F3"),
2268
+ elements: z27.array(z27.enum(["web", "setting", "mail"])).min(1).describe("\u5BFE\u8C61\u7A2E\u5225\uFF08web / setting / mail\uFF09")
1931
2269
  });
1932
2270
  function registerAutoBackupTools(server, client, brand) {
1933
2271
  server.tool(serverToolName(brand, "list", "auto_backup_backup_dates"), "\u9078\u629E\u53EF\u80FD\u306A\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u65E5\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listAutoBackupBackupDates()));
1934
2272
  server.tool(serverToolName(brand, "list", "auto_backup"), "\u81EA\u52D5\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u7533\u8FBC\u5C65\u6B74\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listAutoBackup()));
1935
2273
  server.tool(serverToolName(brand, "get", "auto_backup"), "\u81EA\u52D5\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u7533\u8FBC\u5C65\u6B74\u306E\u8A73\u7D30\u3092\u53D6\u5F97", {
1936
- request_id: z26.string().describe("\u7533\u8FBCID\uFF08\u6B63\u306E\u6574\u6570\uFF09")
2274
+ request_id: z27.string().describe("\u7533\u8FBCID\uFF08\u6B63\u306E\u6574\u6570\uFF09")
1937
2275
  }, async ({ request_id }) => callApi(() => client.getAutoBackup(request_id)));
1938
2276
  server.tool(serverToolName(brand, "create", "auto_backup"), "\u81EA\u52D5\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u53D6\u5F97\u307E\u305F\u306F\u5FA9\u5143\u3092\u7533\u3057\u8FBC\u3080", {
1939
- backup_date: z26.string().describe("\u5BFE\u8C61\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u65E5\uFF08Y-m-d\uFF09"),
1940
- operation_type: z26.enum(["fetch", "restore"]).describe("\u51E6\u7406\u7A2E\u5225\uFF08fetch: \u30C7\u30FC\u30BF\u53D6\u5F97 / restore: \u5FA9\u5143\uFF09"),
1941
- scope: z26.enum(["all", "selected"]).describe("\u51E6\u7406\u65B9\u6CD5\uFF08all: \u30B5\u30FC\u30D0\u30FC\u9818\u57DF\u5168\u4F53 / selected: \u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u30FB\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u6307\u5B9A\uFF09"),
1942
- domain_elements: z26.array(domainElementSchema).optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u30FB\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\uFF08scope=selected \u306E\u3068\u304D\u5FC5\u9808\uFF09")
2277
+ backup_date: z27.string().describe("\u5BFE\u8C61\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u65E5\uFF08Y-m-d\uFF09"),
2278
+ operation_type: z27.enum(["fetch", "restore"]).describe("\u51E6\u7406\u7A2E\u5225\uFF08fetch: \u30C7\u30FC\u30BF\u53D6\u5F97 / restore: \u5FA9\u5143\uFF09"),
2279
+ scope: z27.enum(["all", "selected"]).describe("\u51E6\u7406\u65B9\u6CD5\uFF08all: \u30B5\u30FC\u30D0\u30FC\u9818\u57DF\u5168\u4F53 / selected: \u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u30FB\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u6307\u5B9A\uFF09"),
2280
+ domain_elements: z27.array(domainElementSchema).optional().describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u30FB\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\uFF08scope=selected \u306E\u3068\u304D\u5FC5\u9808\uFF09")
1943
2281
  }, async (args) => {
1944
2282
  const data = {
1945
2283
  backup_date: args.backup_date,
@@ -1954,177 +2292,94 @@ function registerAutoBackupTools(server, client, brand) {
1954
2292
  }
1955
2293
 
1956
2294
  // ../core/dist/tools/server/mysql-backup.js
1957
- import { z as z27 } from "zod";
2295
+ import { z as z28 } from "zod";
1958
2296
  function registerMysqlBackupTools(server, client, brand) {
1959
2297
  server.tool(serverToolName(brand, "list", "mysql_backup_databases"), "MySQL\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u72B6\u614B\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listMysqlBackupDatabases()));
1960
2298
  server.tool(serverToolName(brand, "list", "mysql_backup"), "MySQL\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u7533\u8FBC\u5C65\u6B74\u4E00\u89A7\u3092\u53D6\u5F97", {}, async () => callApi(() => client.listMysqlBackup()));
1961
2299
  server.tool(serverToolName(brand, "get", "mysql_backup"), "MySQL\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u7533\u8FBC\u5C65\u6B74\u8A73\u7D30\u3092\u53D6\u5F97", {
1962
- request_id: z27.string().describe("\u7533\u8FBC\u8B58\u5225\u5B50\uFF0832\u6587\u5B57\u306E\u5C0F\u6587\u5B5716\u9032\u6570\uFF09")
2300
+ request_id: z28.string().describe("\u7533\u8FBC\u8B58\u5225\u5B50\uFF0832\u6587\u5B57\u306E\u5C0F\u6587\u5B5716\u9032\u6570\uFF09")
1963
2301
  }, async ({ request_id }) => callApi(() => client.getMysqlBackup(request_id)));
1964
2302
  server.tool(serverToolName(brand, "create", "mysql_backup"), "MySQL\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u53D6\u5F97\u307E\u305F\u306F\u5FA9\u5143\u3092\u7533\u3057\u8FBC\u3080", {
1965
- db_name: z27.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D"),
1966
- backup_date: z27.string().describe("\u5BFE\u8C61\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u65E5\uFF08Y-m-d\uFF09"),
1967
- operation_type: z27.enum(["fetch", "restore"]).describe("\u51E6\u7406\u7A2E\u5225\uFF08fetch: \u30C7\u30FC\u30BF\u53D6\u5F97 / restore: \u5FA9\u5143\uFF09")
2303
+ db_name: z28.string().describe("\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D"),
2304
+ backup_date: z28.string().describe("\u5BFE\u8C61\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u65E5\uFF08Y-m-d\uFF09"),
2305
+ operation_type: z28.enum(["fetch", "restore"]).describe("\u51E6\u7406\u7A2E\u5225\uFF08fetch: \u30C7\u30FC\u30BF\u53D6\u5F97 / restore: \u5FA9\u5143\uFF09")
1968
2306
  }, async (args) => callApi(() => client.createMysqlBackup(args)));
1969
2307
  }
1970
2308
 
1971
2309
  // ../core/dist/tools/domain/index.js
1972
- import { z as z28 } from "zod";
1973
-
1974
- // ../core/dist/billing-confirmation.js
1975
- function supportsFormElicitation(server) {
1976
- const elicitation = server.server.getClientCapabilities()?.elicitation;
1977
- return elicitation != null && elicitation.form != null;
1978
- }
1979
- async function confirmBillingOperation(server, input) {
1980
- if (!supportsFormElicitation(server)) {
1981
- throw new Error("\u8AB2\u91D1\u64CD\u4F5C\u306B\u306F MCP form elicitation \u5BFE\u5FDC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8 (Codex / Claude Code / Cursor \u306E\u5BFE\u8A71\u30E2\u30FC\u30C9\u306A\u3069)\u304C\u5FC5\u8981\u3067\u3059\u3002\u975E\u5BFE\u5FDC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3002");
1982
- }
1983
- const yearsLine = input.years == null ? "" : "\n- \u5951\u7D04\u5E74\u6570: " + input.years + "\u5E74";
1984
- const termsLine = input.requireTermsAgreement ? "\n- \u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u540C\u610F\u304C\u5FC5\u8981\u3067\u3059" : "";
1985
- const message = [
1986
- "\u8AB2\u91D1\u3092\u4F34\u3046\u64CD\u4F5C\u306E\u6700\u7D42\u78BA\u8A8D\u3067\u3059\u3002",
1987
- `- \u64CD\u4F5C: ${input.operation}`,
1988
- `- \u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3: ${input.domain}`,
1989
- yearsLine,
1990
- `- \u7A0E\u8FBC\u5408\u8A08: ${input.totalPrice}\u5186`,
1991
- ...domainLegalNoticeLines(input.brand),
1992
- "- \u7533\u8ACB\u5F8C\u306F\u8AB2\u91D1\u3055\u308C\u3001\u539F\u5247\u53D6\u308A\u6D88\u3057\u3067\u304D\u307E\u305B\u3093",
1993
- termsLine,
1994
- "",
1995
- "\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u627F\u8A8D\u3059\u308B\u5834\u5408\u306E\u307F true \u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
1996
- ].filter((line) => line !== "").join("\n");
1997
- const properties = {
1998
- confirm_purchase: {
1999
- type: "boolean",
2000
- title: "\u8AB2\u91D1\u3092\u627F\u8A8D\u3059\u308B",
2001
- description: `${input.domain} / ${input.totalPrice}\u5186 / ${input.operation}`
2002
- }
2003
- };
2004
- const required = ["confirm_purchase"];
2005
- if (input.requireTermsAgreement) {
2006
- properties.agree_to_terms = {
2007
- type: "boolean",
2008
- title: "\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u306B\u540C\u610F\u3059\u308B",
2009
- description: "\u30C9\u30E1\u30A4\u30F3\u53D6\u5F97\u30FB\u79FB\u7BA1\u306E\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u306B\u540C\u610F\u3057\u307E\u3059"
2010
- };
2011
- required.push("agree_to_terms");
2012
- }
2013
- let result;
2014
- try {
2015
- result = await server.server.elicitInput({
2016
- mode: "form",
2017
- message,
2018
- requestedSchema: {
2019
- type: "object",
2020
- properties,
2021
- required
2022
- }
2023
- });
2024
- } catch (error) {
2025
- const detail = error instanceof Error ? error.message : String(error);
2026
- throw new Error(`\u8AB2\u91D1\u78BA\u8A8D\uFF08elicitation\uFF09\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F: ${detail}`);
2027
- }
2028
- if (result.action === "decline" || result.action === "cancel") {
2029
- throw new Error("BILLING_CONFIRMATION_DECLINED: \u5229\u7528\u8005\u304C\u8AB2\u91D1\u78BA\u8A8D\u3092\u62D2\u5426\u307E\u305F\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
2030
- }
2031
- if (result.action !== "accept" || result.content == null || typeof result.content !== "object") {
2032
- throw new Error("BILLING_CONFIRMATION_INVALID: \u8AB2\u91D1\u78BA\u8A8D\u306E\u5FDC\u7B54\u304C\u4E0D\u6B63\u306A\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
2033
- }
2034
- const content = result.content;
2035
- if (content.confirm_purchase !== true) {
2036
- throw new Error("BILLING_CONFIRMATION_NOT_APPROVED: \u8AB2\u91D1\u627F\u8A8D\u304C\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
2037
- }
2038
- if (input.requireTermsAgreement && content.agree_to_terms !== true) {
2039
- throw new Error("BILLING_TERMS_NOT_APPROVED: \u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u540C\u610F\u304C\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002");
2040
- }
2041
- }
2042
- var billingPreviewAnnotations = {
2043
- readOnlyHint: true,
2044
- destructiveHint: false,
2045
- idempotentHint: true,
2046
- openWorldHint: true
2047
- };
2048
- var billingExecuteAnnotations = {
2049
- readOnlyHint: false,
2050
- destructiveHint: true,
2051
- idempotentHint: true,
2052
- openWorldHint: true
2053
- };
2054
-
2055
- // ../core/dist/tools/domain/index.js
2056
- var domainName = z28.string().min(1).max(255).describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u540D\uFF08\u56FD\u969B\u5316\u30C9\u30E1\u30A4\u30F3\u306FPunycode\uFF09");
2057
- var dnsId = z28.string().regex(/^[1-9]\d*$/).describe("DNS\u30EC\u30B3\u30FC\u30C9ID\uFF08dns_id\u3001\u6B63\u306E\u6574\u6570\uFF09");
2058
- var dnsType = z28.enum(["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SRV"]).describe("DNS\u30EC\u30B3\u30FC\u30C9\u30BF\u30A4\u30D7");
2059
- var ttl = z28.number().int().min(60).max(86400).describe("TTL\uFF0860\uFF5E86400\u79D2\uFF09");
2060
- var priority = z28.number().int().min(0).max(999).describe("\u512A\u5148\u5EA6\uFF080\uFF5E999\uFF09");
2061
- var expectedTotalPrice = z28.number().int().nonnegative().describe("preview\u3068\u4E00\u81F4\u3059\u308B\u7A0E\u8FBC\u5408\u8A08\u91D1\u984D");
2062
- var idempotencyKey = z28.string().regex(/^[A-Za-z0-9_-]{8,64}$/).describe("Idempotency-Key\uFF08\u82F1\u6570\u5B57\u30FB_\u30FB-\u30018\uFF5E64\u6587\u5B57\uFF09\u3002\u5374\u4E0B\u3055\u308C\u305F\u7533\u8ACB\u306E\u518D\u9001\u306F\u540C\u3058\u5024\u3092\u4F7F\u3046\u3002\u30B5\u30FC\u30D0\u30FC\u30A8\u30E9\u30FC\u3084\u5FDC\u7B54\u4E0D\u660E\u3067\u7D42\u308F\u3063\u305F\u5834\u5408\u306F\u3001\u540C\u3058\u5024\u306E\u518D\u9001\u304C48\u6642\u9593409 DUPLICATE_REQUEST\u306B\u306A\u308B\u305F\u3081\u3001\u30C9\u30E1\u30A4\u30F3\u8A73\u7D30\u3068\u8ACB\u6C42\u5C65\u6B74\u3067\u72B6\u614B\u3092\u78BA\u8A8D\u3057\u3001\u672A\u5B9F\u884C\u306E\u3068\u304D\u3060\u3051\u65B0\u3057\u3044\u5024\u3092\u4F7F\u3046\u3002");
2063
- var years = z28.number().int().min(1).max(5).describe("\u5951\u7D04\u5E74\u6570\uFF081\uFF5E5\u5E74\uFF09");
2064
- var currentExpiryDate = z28.string().regex(/^\d{4}-\d{2}-\d{2}$/).describe("\u73FE\u5728\u306E\u6709\u52B9\u671F\u9650\uFF08YYYY-MM-DD\u3001\u4E8C\u91CD\u66F4\u65B0\u9632\u6B62\u7528\uFF09");
2065
- var nameserverHostname = (maximumLength) => z28.string().min(1).max(maximumLength).regex(/^[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$/);
2066
- var nameservers = (minimum, maximum, maximumLength) => z28.array(nameserverHostname(maximumLength)).min(minimum).max(maximum).refine((values) => new Set(values.map((value) => value.toLowerCase())).size === values.length, "\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\u3092\u91CD\u8907\u3057\u3066\u6307\u5B9A\u3067\u304D\u307E\u305B\u3093");
2067
- var whoisFields = z28.object({
2068
- organization_name: z28.string().optional(),
2069
- first_name: z28.string().optional(),
2070
- last_name: z28.string().optional(),
2071
- postal_code: z28.string().optional(),
2072
- state_province: z28.string().optional(),
2073
- city: z28.string().optional(),
2074
- address1: z28.string().optional(),
2075
- address2: z28.string().optional(),
2076
- email: z28.string().email().optional(),
2077
- phone: z28.string().optional(),
2078
- fax: z28.string().optional(),
2079
- country: z28.string().optional(),
2080
- role: z28.string().optional()
2310
+ import { z as z29 } from "zod";
2311
+ var domainName = z29.string().min(1).max(255).describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u540D\uFF08\u56FD\u969B\u5316\u30C9\u30E1\u30A4\u30F3\u306FPunycode\uFF09");
2312
+ var dnsId = z29.string().regex(/^[1-9]\d*$/).describe("DNS\u30EC\u30B3\u30FC\u30C9ID\uFF08dns_id\u3001\u6B63\u306E\u6574\u6570\uFF09");
2313
+ var dnsType = z29.enum(["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SRV"]).describe("DNS\u30EC\u30B3\u30FC\u30C9\u30BF\u30A4\u30D7");
2314
+ var ttl = z29.number().int().min(60).max(86400).describe("TTL\uFF0860\uFF5E86400\u79D2\uFF09");
2315
+ var priority = z29.number().int().min(0).max(999).describe("\u512A\u5148\u5EA6\uFF080\uFF5E999\uFF09");
2316
+ var expectedTotalPrice2 = z29.number().int().nonnegative().describe("preview\u3068\u4E00\u81F4\u3059\u308B\u7A0E\u8FBC\u5408\u8A08\u91D1\u984D");
2317
+ var idempotencyKey2 = z29.string().regex(/^[A-Za-z0-9_-]{8,64}$/).describe("Idempotency-Key\uFF08\u82F1\u6570\u5B57\u30FB_\u30FB-\u30018\uFF5E64\u6587\u5B57\uFF09\u3002\u5374\u4E0B\u3055\u308C\u305F\u7533\u8ACB\u306E\u518D\u9001\u306F\u540C\u3058\u5024\u3092\u4F7F\u3046\u3002\u30B5\u30FC\u30D0\u30FC\u30A8\u30E9\u30FC\u3084\u5FDC\u7B54\u4E0D\u660E\u3067\u7D42\u308F\u3063\u305F\u5834\u5408\u306F\u3001\u540C\u3058\u5024\u306E\u518D\u9001\u304C48\u6642\u9593409 DUPLICATE_REQUEST\u306B\u306A\u308B\u305F\u3081\u3001\u30C9\u30E1\u30A4\u30F3\u8A73\u7D30\u3068\u8ACB\u6C42\u5C65\u6B74\u3067\u72B6\u614B\u3092\u78BA\u8A8D\u3057\u3001\u672A\u5B9F\u884C\u306E\u3068\u304D\u3060\u3051\u65B0\u3057\u3044\u5024\u3092\u4F7F\u3046\u3002");
2318
+ var years = z29.number().int().min(1).max(5).describe("\u5951\u7D04\u5E74\u6570\uFF081\uFF5E5\u5E74\uFF09");
2319
+ var currentExpiryDate = z29.string().regex(/^\d{4}-\d{2}-\d{2}$/).describe("\u73FE\u5728\u306E\u6709\u52B9\u671F\u9650\uFF08YYYY-MM-DD\u3001\u4E8C\u91CD\u66F4\u65B0\u9632\u6B62\u7528\uFF09");
2320
+ var nameserverHostname = (maximumLength) => z29.string().min(1).max(maximumLength).regex(/^[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$/);
2321
+ var nameservers = (minimum, maximum, maximumLength) => z29.array(nameserverHostname(maximumLength)).min(minimum).max(maximum).refine((values) => new Set(values.map((value) => value.toLowerCase())).size === values.length, "\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\u3092\u91CD\u8907\u3057\u3066\u6307\u5B9A\u3067\u304D\u307E\u305B\u3093");
2322
+ var whoisFields = z29.object({
2323
+ organization_name: z29.string().optional(),
2324
+ first_name: z29.string().optional(),
2325
+ last_name: z29.string().optional(),
2326
+ postal_code: z29.string().optional(),
2327
+ state_province: z29.string().optional(),
2328
+ city: z29.string().optional(),
2329
+ address1: z29.string().optional(),
2330
+ address2: z29.string().optional(),
2331
+ email: z29.string().email().optional(),
2332
+ phone: z29.string().optional(),
2333
+ fax: z29.string().optional(),
2334
+ country: z29.string().optional(),
2335
+ role: z29.string().optional()
2081
2336
  }).strict().describe("Whois\u767B\u9332\u8005\u60C5\u5831\u3002\u4EE3\u7406\u516C\u958BOFF\u6642\u306F\u516813\u30AD\u30FC\u304C\u5FC5\u8981");
2082
2337
  var registrationInput = {
2083
2338
  domain: domainName,
2084
2339
  years: years.optional().default(1),
2085
- expected_total_price: expectedTotalPrice,
2086
- agree_to_terms: z28.literal(true).describe("\u30C9\u30E1\u30A4\u30F3\u53D6\u5F97\u306E\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u660E\u793A\u540C\u610F"),
2340
+ expected_total_price: expectedTotalPrice2,
2341
+ agree_to_terms: z29.literal(true).describe("\u30C9\u30E1\u30A4\u30F3\u53D6\u5F97\u306E\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u660E\u793A\u540C\u610F"),
2087
2342
  nameservers: nameservers(1, 6, 255).optional().describe("\u53D6\u5F97\u6642\u306B\u8A2D\u5B9A\u3059\u308B\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\uFF081\uFF5E6\u4EF6\uFF09")
2088
2343
  };
2089
2344
  var transferInput = {
2090
2345
  domain: domainName,
2091
- auth_code: z28.string().min(1).max(255).describe("\u79FB\u7BA1\u5143\u3067\u53D6\u5F97\u3057\u305FAuthCode"),
2092
- expected_total_price: expectedTotalPrice,
2093
- agree_to_terms: z28.literal(true).describe("\u30C9\u30E1\u30A4\u30F3\u79FB\u7BA1\u306E\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u660E\u793A\u540C\u610F")
2346
+ auth_code: z29.string().min(1).max(255).describe("\u79FB\u7BA1\u5143\u3067\u53D6\u5F97\u3057\u305FAuthCode"),
2347
+ expected_total_price: expectedTotalPrice2,
2348
+ agree_to_terms: z29.literal(true).describe("\u30C9\u30E1\u30A4\u30F3\u79FB\u7BA1\u306E\u300C\u30B5\u30FC\u30D3\u30B9\u5229\u7528\u898F\u7D04\u300D\u304A\u3088\u3073\u300C\u500B\u4EBA\u60C5\u5831\u306E\u53D6\u308A\u6271\u3044\u306B\u3064\u3044\u3066\u300D\u3078\u306E\u660E\u793A\u540C\u610F")
2094
2349
  };
2095
2350
  var renewInput = {
2096
2351
  domain: domainName,
2097
2352
  years,
2098
2353
  current_expiry_date: currentExpiryDate,
2099
- expected_total_price: expectedTotalPrice
2354
+ expected_total_price: expectedTotalPrice2
2100
2355
  };
2101
- function description(text) {
2356
+ function description2(text) {
2102
2357
  return `${text}\u3002\u30C9\u30E1\u30A4\u30F3\u30EC\u30B8\u30B9\u30C8\u30E9\u3067\u4FDD\u6709\u30FB\u7BA1\u7406\u3059\u308B\u30C9\u30E1\u30A4\u30F3\u304C\u5BFE\u8C61\u3067\u3042\u308A\u3001\u30EC\u30F3\u30BF\u30EB\u30B5\u30FC\u30D0\u30FC\u306EServer API\u3067\u306F\u3042\u308A\u307E\u305B\u3093`;
2103
2358
  }
2104
2359
  function registerDomainServiceTools(server, client, brand, options = {}) {
2105
- server.tool(domainToolName(brand, "get", "api_key_info"), description("API\u30AD\u30FC\u60C5\u5831\u3068Domain\u30B5\u30FC\u30D3\u30B9\u306E\u6A29\u9650\u30FB\u5BFE\u8C61\u3092\u53D6\u5F97"), {}, async () => callApi(() => client.getMe()));
2106
- server.tool(domainToolName(brand, "list", "domains"), description("\u4FDD\u6709\u30C9\u30E1\u30A4\u30F3\u306E\u4E00\u89A7\u3092\u53D6\u5F97"), {}, async () => callApi(() => client.listDomains()));
2107
- server.tool(domainToolName(brand, "get", "domain"), description("\u4FDD\u6709\u30C9\u30E1\u30A4\u30F3\u306E\u8A73\u7D30\u30FB\u72B6\u614B\u30FB\u6709\u52B9\u671F\u9650\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainDetail(domain2)));
2108
- server.tool(domainToolName(brand, "get", "nameservers"), description("\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\u8A2D\u5B9A\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainNameservers(domain2)));
2109
- server.tool(domainToolName(brand, "update", "nameservers"), description("\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\u30921\uFF5E13\u4EF6\u3067\u5168\u7F6E\u63DB"), {
2360
+ server.tool(domainToolName(brand, "get", "api_key_info"), description2("API\u30AD\u30FC\u60C5\u5831\u3068Domain\u30B5\u30FC\u30D3\u30B9\u306E\u6A29\u9650\u30FB\u5BFE\u8C61\u3092\u53D6\u5F97"), {}, async () => callApi(() => client.getMe()));
2361
+ server.tool(domainToolName(brand, "list", "domains"), description2("\u4FDD\u6709\u30C9\u30E1\u30A4\u30F3\u306E\u4E00\u89A7\u3092\u53D6\u5F97"), {}, async () => callApi(() => client.listDomains()));
2362
+ server.tool(domainToolName(brand, "get", "domain"), description2("\u4FDD\u6709\u30C9\u30E1\u30A4\u30F3\u306E\u8A73\u7D30\u30FB\u72B6\u614B\u30FB\u6709\u52B9\u671F\u9650\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainDetail(domain2)));
2363
+ server.tool(domainToolName(brand, "get", "nameservers"), description2("\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\u8A2D\u5B9A\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainNameservers(domain2)));
2364
+ server.tool(domainToolName(brand, "update", "nameservers"), description2("\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\u30921\uFF5E13\u4EF6\u3067\u5168\u7F6E\u63DB"), {
2110
2365
  domain: domainName,
2111
2366
  nameservers: nameservers(1, 13, 253).describe("\u7F6E\u63DB\u5F8C\u306E\u30CD\u30FC\u30E0\u30B5\u30FC\u30D0\u30FC\uFF081\uFF5E13\u4EF6\uFF09")
2112
2367
  }, async ({ domain: domain2, nameservers: nameservers2 }) => callApi(() => client.updateDomainNameservers(domain2, { nameservers: nameservers2 })));
2113
- server.tool(domainToolName(brand, "list", "dns"), description("\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u4E00\u89A7\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.listDomainDns(domain2)));
2114
- server.tool(domainToolName(brand, "add", "dns"), description("\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u3092\u8FFD\u52A0"), {
2368
+ server.tool(domainToolName(brand, "list", "dns"), description2("\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u4E00\u89A7\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.listDomainDns(domain2)));
2369
+ server.tool(domainToolName(brand, "add", "dns"), description2("\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u3092\u8FFD\u52A0"), {
2115
2370
  domain: domainName,
2116
2371
  type: dnsType,
2117
- host: z28.string().max(64).describe("\u30DB\u30B9\u30C8\u540D\uFF08apex\u306F@\uFF09"),
2118
- content: z28.string().max(1024).describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
2372
+ host: z29.string().max(64).describe("\u30DB\u30B9\u30C8\u540D\uFF08apex\u306F@\uFF09"),
2373
+ content: z29.string().max(1024).describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
2119
2374
  ttl: ttl.optional().default(3600),
2120
2375
  priority: priority.optional()
2121
2376
  }, async ({ domain: domain2, ...data }) => callApi(() => client.addDomainDns(domain2, data)));
2122
- server.tool(domainToolName(brand, "update", "dns"), description("\u6307\u5B9A\u3057\u305F\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u3092\u90E8\u5206\u66F4\u65B0"), {
2377
+ server.tool(domainToolName(brand, "update", "dns"), description2("\u6307\u5B9A\u3057\u305F\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u3092\u90E8\u5206\u66F4\u65B0"), {
2123
2378
  domain: domainName,
2124
2379
  dns_id: dnsId,
2125
2380
  type: dnsType.optional(),
2126
- host: z28.string().max(64).optional().describe("\u30DB\u30B9\u30C8\u540D\uFF08apex\u306F@\uFF09"),
2127
- content: z28.string().max(1024).optional().describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
2381
+ host: z29.string().max(64).optional().describe("\u30DB\u30B9\u30C8\u540D\uFF08apex\u306F@\uFF09"),
2382
+ content: z29.string().max(1024).optional().describe("\u30EC\u30B3\u30FC\u30C9\u5024"),
2128
2383
  ttl: ttl.optional(),
2129
2384
  priority: priority.optional()
2130
2385
  }, async ({ domain: domain2, dns_id, ...data }) => callApi(async () => {
@@ -2133,19 +2388,19 @@ function registerDomainServiceTools(server, client, brand, options = {}) {
2133
2388
  }
2134
2389
  return client.updateDomainDns(domain2, dns_id, data);
2135
2390
  }));
2136
- server.tool(domainToolName(brand, "delete", "dns"), description("\u6307\u5B9A\u3057\u305F\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u3092\u524A\u9664\uFF08\u540D\u524D\u89E3\u6C7A\u3078\u5F71\u97FF\u3059\u308B\u305F\u3081\u5BFE\u8C61\u3092\u78BA\u8A8D\u3057\u3066\u5B9F\u884C\uFF09"), {
2391
+ server.tool(domainToolName(brand, "delete", "dns"), description2("\u6307\u5B9A\u3057\u305F\u30EC\u30B8\u30B9\u30C8\u30E9\u5074DNS\u30EC\u30B3\u30FC\u30C9\u3092\u524A\u9664\uFF08\u540D\u524D\u89E3\u6C7A\u3078\u5F71\u97FF\u3059\u308B\u305F\u3081\u5BFE\u8C61\u3092\u78BA\u8A8D\u3057\u3066\u5B9F\u884C\uFF09"), {
2137
2392
  domain: domainName,
2138
2393
  dns_id: dnsId,
2139
- confirmed: z28.literal(true).describe("\u5BFE\u8C61\u30EC\u30B3\u30FC\u30C9\u3068\u540D\u524D\u89E3\u6C7A\u3078\u306E\u5F71\u97FF\u3092\u5229\u7528\u8005\u304C\u78BA\u8A8D\u6E08\u307F")
2394
+ confirmed: z29.literal(true).describe("\u5BFE\u8C61\u30EC\u30B3\u30FC\u30C9\u3068\u540D\u524D\u89E3\u6C7A\u3078\u306E\u5F71\u97FF\u3092\u5229\u7528\u8005\u304C\u78BA\u8A8D\u6E08\u307F")
2140
2395
  }, async ({ domain: domain2, dns_id, confirmed: confirmed2 }) => callApi(async () => {
2141
2396
  if (!confirmed2)
2142
2397
  throw new Error("confirmed=true is required.");
2143
2398
  return client.deleteDomainDns(domain2, dns_id);
2144
2399
  }));
2145
- server.tool(domainToolName(brand, "get", "whois"), description("Whois\u767B\u9332\u8005\u60C5\u5831\u3068\u4EE3\u7406\u516C\u958B\u8A2D\u5B9A\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainWhois(domain2)));
2146
- server.tool(domainToolName(brand, "update", "whois"), description("Whois\u767B\u9332\u8005\u60C5\u5831\u307E\u305F\u306F\u4EE3\u7406\u516C\u958B\u8A2D\u5B9A\u3092\u66F4\u65B0"), {
2400
+ server.tool(domainToolName(brand, "get", "whois"), description2("Whois\u767B\u9332\u8005\u60C5\u5831\u3068\u4EE3\u7406\u516C\u958B\u8A2D\u5B9A\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainWhois(domain2)));
2401
+ server.tool(domainToolName(brand, "update", "whois"), description2("Whois\u767B\u9332\u8005\u60C5\u5831\u307E\u305F\u306F\u4EE3\u7406\u516C\u958B\u8A2D\u5B9A\u3092\u66F4\u65B0"), {
2147
2402
  domain: domainName,
2148
- whois_privacy: z28.boolean().optional().describe("Whois\u4EE3\u7406\u516C\u958B\u3092\u6709\u52B9\u306B\u3059\u308B\u304B"),
2403
+ whois_privacy: z29.boolean().optional().describe("Whois\u4EE3\u7406\u516C\u958B\u3092\u6709\u52B9\u306B\u3059\u308B\u304B"),
2149
2404
  fields: whoisFields.optional()
2150
2405
  }, async ({ domain: domain2, whois_privacy, fields }) => callApi(async () => {
2151
2406
  if (whois_privacy === void 0 && fields === void 0) {
@@ -2158,16 +2413,16 @@ function registerDomainServiceTools(server, client, brand, options = {}) {
2158
2413
  data.fields = fields;
2159
2414
  return client.updateDomainWhois(domain2, data);
2160
2415
  }));
2161
- server.tool(domainToolName(brand, "get", "registrar_lock"), description("\u30EC\u30B8\u30B9\u30C8\u30E9\u30ED\u30C3\u30AF\u72B6\u614B\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainRegistrarLock(domain2)));
2162
- server.tool(domainToolName(brand, "update", "registrar_lock"), description("\u30EC\u30B8\u30B9\u30C8\u30E9\u30ED\u30C3\u30AF\u3092\u8A2D\u5B9A\u307E\u305F\u306F\u89E3\u9664"), {
2416
+ server.tool(domainToolName(brand, "get", "registrar_lock"), description2("\u30EC\u30B8\u30B9\u30C8\u30E9\u30ED\u30C3\u30AF\u72B6\u614B\u3092\u53D6\u5F97"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => client.getDomainRegistrarLock(domain2)));
2417
+ server.tool(domainToolName(brand, "update", "registrar_lock"), description2("\u30EC\u30B8\u30B9\u30C8\u30E9\u30ED\u30C3\u30AF\u3092\u8A2D\u5B9A\u307E\u305F\u306F\u89E3\u9664"), {
2163
2418
  domain: domainName,
2164
- locked: z28.boolean().describe("true\u3067\u30ED\u30C3\u30AF\u3001false\u3067\u89E3\u9664")
2419
+ locked: z29.boolean().describe("true\u3067\u30ED\u30C3\u30AF\u3001false\u3067\u89E3\u9664")
2165
2420
  }, async ({ domain: domain2, locked }) => callApi(() => client.updateDomainRegistrarLock(domain2, { locked })));
2166
- server.tool(domainToolName(brand, "check", "domain"), description("\u30C9\u30E1\u30A4\u30F3\u306E\u53D6\u5F97\u53EF\u5426\u3068\u898B\u7A4D\u4FA1\u683C\u3092\u78BA\u8A8D"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.checkDomain(domain2))));
2167
- server.tool(domainToolName(brand, "get", "pricing"), description("TLD\u5225\u306E\u7A0E\u8FBC\u4FA1\u683C\u4E00\u89A7\u3092\u53D6\u5F97"), {
2168
- tld: z28.string().optional().describe("\u7D5E\u308A\u8FBC\u3080TLD\u3002\u8907\u6570\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF08\u4F8B: com,net,jp\uFF09")
2421
+ server.tool(domainToolName(brand, "check", "domain"), description2("\u30C9\u30E1\u30A4\u30F3\u306E\u53D6\u5F97\u53EF\u5426\u3068\u898B\u7A4D\u4FA1\u683C\u3092\u78BA\u8A8D"), { domain: domainName }, async ({ domain: domain2 }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.checkDomain(domain2))));
2422
+ server.tool(domainToolName(brand, "get", "pricing"), description2("TLD\u5225\u306E\u7A0E\u8FBC\u4FA1\u683C\u4E00\u89A7\u3092\u53D6\u5F97"), {
2423
+ tld: z29.string().optional().describe("\u7D5E\u308A\u8FBC\u3080TLD\u3002\u8907\u6570\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF08\u4F8B: com,net,jp\uFF09")
2169
2424
  }, async ({ tld }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.getDomainPricing(tld ? { tld } : void 0))));
2170
- server.tool(domainToolName(brand, "preview", "registration"), description("\u8AB2\u91D1\u3055\u308C\u308B\u30C9\u30E1\u30A4\u30F3\u65B0\u898F\u53D6\u5F97\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D"), registrationInput, billingPreviewAnnotations, async ({ domain: domain2, years: years2, expected_total_price, nameservers: nameservers2 }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.registerDomain({
2425
+ server.tool(domainToolName(brand, "preview", "registration"), description2("\u8AB2\u91D1\u3055\u308C\u308B\u30C9\u30E1\u30A4\u30F3\u65B0\u898F\u53D6\u5F97\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D"), registrationInput, billingPreviewAnnotations, async ({ domain: domain2, years: years2, expected_total_price, nameservers: nameservers2 }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.registerDomain({
2171
2426
  domain_name: domain2,
2172
2427
  years: years2,
2173
2428
  expected_total_price,
@@ -2176,9 +2431,9 @@ function registerDomainServiceTools(server, client, brand, options = {}) {
2176
2431
  ...nameservers2 ? { nameservers: nameservers2 } : {}
2177
2432
  }))));
2178
2433
  if (options.enableHighRiskExecute) {
2179
- server.tool(domainToolName(brand, "execute", "registration"), description("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30C9\u30E1\u30A4\u30F3\u65B0\u898F\u53D6\u5F97\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09"), {
2434
+ server.tool(domainToolName(brand, "execute", "registration"), description2("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30C9\u30E1\u30A4\u30F3\u65B0\u898F\u53D6\u5F97\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09"), {
2180
2435
  ...registrationInput,
2181
- idempotency_key: idempotencyKey
2436
+ idempotency_key: idempotencyKey2
2182
2437
  }, billingExecuteAnnotations, async ({ domain: domain2, years: years2, expected_total_price, nameservers: nameservers2, idempotency_key }) => callApi(async () => {
2183
2438
  const data = {
2184
2439
  domain_name: domain2,
@@ -2206,16 +2461,16 @@ function registerDomainServiceTools(server, client, brand, options = {}) {
2206
2461
  return withDomainAcquisitionPermissionDiagnosis(client, () => client.registerDomain(data, idempotency_key));
2207
2462
  }));
2208
2463
  }
2209
- server.tool(domainToolName(brand, "preview", "transfer"), description("\u8AB2\u91D1\u3055\u308C\u308B\u30C9\u30E1\u30A4\u30F3\u79FB\u7BA1\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D"), transferInput, billingPreviewAnnotations, async ({ domain: domain2, auth_code, expected_total_price }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.transferDomain(domain2, {
2464
+ server.tool(domainToolName(brand, "preview", "transfer"), description2("\u8AB2\u91D1\u3055\u308C\u308B\u30C9\u30E1\u30A4\u30F3\u79FB\u7BA1\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D"), transferInput, billingPreviewAnnotations, async ({ domain: domain2, auth_code, expected_total_price }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.transferDomain(domain2, {
2210
2465
  auth_code,
2211
2466
  expected_total_price,
2212
2467
  agree_to_terms: true,
2213
2468
  dry_run: true
2214
2469
  }))));
2215
2470
  if (options.enableHighRiskExecute) {
2216
- server.tool(domainToolName(brand, "execute", "transfer"), description("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30C9\u30E1\u30A4\u30F3\u79FB\u7BA1\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09"), {
2471
+ server.tool(domainToolName(brand, "execute", "transfer"), description2("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30C9\u30E1\u30A4\u30F3\u79FB\u7BA1\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09"), {
2217
2472
  ...transferInput,
2218
- idempotency_key: idempotencyKey
2473
+ idempotency_key: idempotencyKey2
2219
2474
  }, billingExecuteAnnotations, async ({ domain: domain2, auth_code, expected_total_price, idempotency_key }) => callApi(async () => {
2220
2475
  const data = { auth_code, expected_total_price, agree_to_terms: true };
2221
2476
  const preview = await withDomainAcquisitionPermissionDiagnosis(client, () => client.transferDomain(domain2, { ...data, dry_run: true }));
@@ -2236,16 +2491,16 @@ function registerDomainServiceTools(server, client, brand, options = {}) {
2236
2491
  return withDomainAcquisitionPermissionDiagnosis(client, () => client.transferDomain(domain2, data, idempotency_key));
2237
2492
  }));
2238
2493
  }
2239
- server.tool(domainToolName(brand, "preview", "renew"), description("\u8AB2\u91D1\u3055\u308C\u308B\u30C9\u30E1\u30A4\u30F3\u5951\u7D04\u66F4\u65B0\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D"), renewInput, billingPreviewAnnotations, async ({ domain: domain2, years: years2, current_expiry_date, expected_total_price }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.renewDomain(domain2, {
2494
+ server.tool(domainToolName(brand, "preview", "renew"), description2("\u8AB2\u91D1\u3055\u308C\u308B\u30C9\u30E1\u30A4\u30F3\u5951\u7D04\u66F4\u65B0\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D"), renewInput, billingPreviewAnnotations, async ({ domain: domain2, years: years2, current_expiry_date, expected_total_price }) => callApi(() => withDomainAcquisitionPermissionDiagnosis(client, () => client.renewDomain(domain2, {
2240
2495
  years: years2,
2241
2496
  current_expiry_date,
2242
2497
  expected_total_price,
2243
2498
  dry_run: true
2244
2499
  }))));
2245
2500
  if (options.enableHighRiskExecute) {
2246
- server.tool(domainToolName(brand, "execute", "renew"), description("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30C9\u30E1\u30A4\u30F3\u5951\u7D04\u66F4\u65B0\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09"), {
2501
+ server.tool(domainToolName(brand, "execute", "renew"), description2("\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30C9\u30E1\u30A4\u30F3\u5951\u7D04\u66F4\u65B0\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09"), {
2247
2502
  ...renewInput,
2248
- idempotency_key: idempotencyKey
2503
+ idempotency_key: idempotencyKey2
2249
2504
  }, billingExecuteAnnotations, async ({ domain: domain2, years: years2, current_expiry_date, expected_total_price, idempotency_key }) => callApi(async () => {
2250
2505
  const data = { years: years2, current_expiry_date, expected_total_price };
2251
2506
  const preview = await withDomainAcquisitionPermissionDiagnosis(client, () => client.renewDomain(domain2, { ...data, dry_run: true }));
@@ -2269,38 +2524,46 @@ function registerDomainServiceTools(server, client, brand, options = {}) {
2269
2524
  }
2270
2525
 
2271
2526
  // ../core/dist/tools/wphosting/index.js
2272
- import { z as z29 } from "zod";
2273
- var contractId = z29.string().regex(/^WP-[A-Za-z0-9]+$/).max(64).describe("XServer for WordPress\u306E\u5951\u7D04ID\uFF08contract_id\uFF09");
2274
- var servername = z29.string().min(1).max(255).describe("\u5951\u7D04\u5185\u306E\u5BFE\u8C61\u30B5\u30A4\u30C8\u74B0\u5883servername\uFF08\u672C\u756A\u307E\u305F\u306F\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\uFF09");
2275
- var domain = z29.string().min(1).max(255).describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u540D");
2276
- var positiveId = (label) => z29.string().regex(/^[1-9]\d*$/).describe(label);
2277
- var opaqueId = (label) => z29.string().regex(/^[A-Za-z0-9_-]+$/).max(255).describe(label);
2278
- var slug = (label) => z29.string().min(1).max(255).describe(label);
2279
- var idempotencyKey2 = z29.string().regex(/^[A-Za-z0-9_-]{8,64}$/).describe("\u518D\u9001\u6642\u3082\u540C\u3058\u5024\u3092\u4F7F\u3046Idempotency-Key\uFF08\u82F1\u6570\u5B57\u30FB_\u30FB-\u30018\uFF5E64\u6587\u5B57\uFF09");
2280
- var confirmed = z29.literal(true).describe("\u5BFE\u8C61\u3001\u6D88\u5931\u30FB\u4E0A\u66F8\u304D\u30FB\u9023\u52D5\u5F71\u97FF\u3092\u78BA\u8A8D\u5148\u3067\u78BA\u8A8D\u3057\u3001\u5229\u7528\u8005\u304C\u5B9F\u884C\u3092\u660E\u793A\u627F\u8A8D\u6E08\u307F");
2281
- var dnsType2 = z29.enum(["A", "AAAA", "CNAME", "MX", "TXT", "SRV"]);
2282
- var dnsTtl = z29.number().int().min(60).max(86400);
2283
- var dnsPriority = z29.number().int().min(0).max(65535);
2284
- var site = { contract_id: contractId, servername };
2527
+ import { z as z30 } from "zod";
2528
+ var contractId = z30.string().regex(/^WP-[A-Za-z0-9]+$/).max(64).describe("XServer for WordPress\u306E\u5951\u7D04ID\uFF08contract_id\uFF09");
2529
+ var servername2 = z30.string().min(1).max(255).describe("\u5951\u7D04\u5185\u306E\u5BFE\u8C61\u30B5\u30A4\u30C8\u74B0\u5883servername\uFF08\u672C\u756A\u307E\u305F\u306F\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\uFF09");
2530
+ var domain = z30.string().min(1).max(255).describe("\u5BFE\u8C61\u30C9\u30E1\u30A4\u30F3\u540D");
2531
+ var positiveId = (label) => z30.string().regex(/^[1-9]\d*$/).describe(label);
2532
+ var opaqueId = (label) => z30.string().regex(/^[A-Za-z0-9_-]+$/).max(255).describe(label);
2533
+ var slug = (label) => z30.string().min(1).max(255).describe(label);
2534
+ var idempotencyKey3 = z30.string().regex(/^[A-Za-z0-9_-]{8,64}$/).describe("\u518D\u9001\u6642\u3082\u540C\u3058\u5024\u3092\u4F7F\u3046Idempotency-Key\uFF08\u82F1\u6570\u5B57\u30FB_\u30FB-\u30018\uFF5E64\u6587\u5B57\uFF09");
2535
+ var signupInput2 = {
2536
+ plan_id: z30.string().min(1).max(64).describe("\u30D7\u30E9\u30F3ID"),
2537
+ period: z30.number().int().min(1).max(60).describe("\u5951\u7D04\u671F\u9593\uFF08\u6708\u6570\u3002\u30D7\u30E9\u30F3\u53D6\u5F97\u30C4\u30FC\u30EB\u304C\u8FD4\u3057\u305F months \u304B\u3089\u6307\u5B9A\uFF09"),
2538
+ expected_total_price: z30.number().int().nonnegative().describe("preview\u3068\u4E00\u81F4\u3059\u308B\u7A0E\u8FBC\u5408\u8A08\u91D1\u984D"),
2539
+ agree_to_terms: z30.literal(true).describe("WPhosting\u5951\u7D04\u306E\u5229\u7528\u898F\u7D04\u3078\u306E\u660E\u793A\u540C\u610F"),
2540
+ partner_code: z30.string().regex(/^[A-Za-z0-9]{1,50}$/).optional().describe("\u30D1\u30FC\u30C8\u30CA\u30FC\u30B3\u30FC\u30C9"),
2541
+ auto_renew: z30.enum(["enabled", "disabled"]).describe("\u81EA\u52D5\u66F4\u65B0\uFF08enabled: \u6709\u52B9 / disabled: \u7121\u52B9\u3001\u660E\u793A\u6307\u5B9A\u5FC5\u9808\uFF09")
2542
+ };
2543
+ var confirmed = z30.literal(true).describe("\u5BFE\u8C61\u3001\u6D88\u5931\u30FB\u4E0A\u66F8\u304D\u30FB\u9023\u52D5\u5F71\u97FF\u3092\u78BA\u8A8D\u5148\u3067\u78BA\u8A8D\u3057\u3001\u5229\u7528\u8005\u304C\u5B9F\u884C\u3092\u660E\u793A\u627F\u8A8D\u6E08\u307F");
2544
+ var dnsType2 = z30.enum(["A", "AAAA", "CNAME", "MX", "TXT", "SRV"]);
2545
+ var dnsTtl = z30.number().int().min(60).max(86400);
2546
+ var dnsPriority = z30.number().int().min(0).max(65535);
2547
+ var site = { contract_id: contractId, servername: servername2 };
2285
2548
  var cronFields = {
2286
- minute: z29.string().min(1).max(64),
2287
- hour: z29.string().min(1).max(64),
2288
- day: z29.string().min(1).max(64),
2289
- month: z29.string().min(1).max(64),
2290
- weekday: z29.string().min(1).max(64),
2291
- command: z29.string().min(1).max(5e3),
2292
- comment: z29.string().max(255).optional()
2549
+ minute: z30.string().min(1).max(64),
2550
+ hour: z30.string().min(1).max(64),
2551
+ day: z30.string().min(1).max(64),
2552
+ month: z30.string().min(1).max(64),
2553
+ weekday: z30.string().min(1).max(64),
2554
+ command: z30.string().min(1).max(5e3),
2555
+ comment: z30.string().max(255).optional()
2293
2556
  };
2294
2557
  var wpUserOptionalFields = {
2295
- user_email: z29.string().email().max(100).optional(),
2296
- user_pass: z29.string().min(7).max(64).optional(),
2297
- role: z29.string().min(1).max(64).optional(),
2298
- display_name: z29.string().max(255).optional(),
2299
- first_name: z29.string().max(255).optional(),
2300
- last_name: z29.string().max(255).optional(),
2301
- user_url: z29.string().url().max(255).optional()
2558
+ user_email: z30.string().email().max(100).optional(),
2559
+ user_pass: z30.string().min(7).max(64).optional(),
2560
+ role: z30.string().min(1).max(64).optional(),
2561
+ display_name: z30.string().max(255).optional(),
2562
+ first_name: z30.string().max(255).optional(),
2563
+ last_name: z30.string().max(255).optional(),
2564
+ user_url: z30.string().url().max(255).optional()
2302
2565
  };
2303
- function description2(text) {
2566
+ function description3(text) {
2304
2567
  return `${text}\u3002XServer for WordPress\u5951\u7D04\u304C\u5BFE\u8C61\u3067\u3059\u3002\u30EC\u30F3\u30BF\u30EB\u30B5\u30FC\u30D0\u30FCServer API\u306EWordPress\u30FBDNS\u30FBCron\u30FBSSH\u64CD\u4F5C\u3067\u306F\u3042\u308A\u307E\u305B\u3093`;
2305
2568
  }
2306
2569
  function body(args, excluded) {
@@ -2310,7 +2573,7 @@ function requireUpdate(data, message = "\u66F4\u65B0\u9805\u76EE\u30921\u3064\u4
2310
2573
  if (Object.keys(data).length === 0)
2311
2574
  throw new Error(message);
2312
2575
  }
2313
- function registerWphostingTools(server, client, brand) {
2576
+ function registerWphostingTools(server, client, brand, options = {}) {
2314
2577
  if (brand.brand !== "xserver") {
2315
2578
  throw new Error(`--services=wphosting is not supported for brand "${brand.brand}"; use XServer.`);
2316
2579
  }
@@ -2321,27 +2584,77 @@ function registerWphostingTools(server, client, brand) {
2321
2584
  throw new Error(`ApiClient.${method} is not available.`);
2322
2585
  return fn.apply(client, args);
2323
2586
  };
2324
- const register = (verb, resource, text, schema, method, toArgs) => tools.tool(wphostingToolName(brand, verb, resource), description2(text), schema, async (args) => callApi(() => invoke(method, toArgs(args))));
2587
+ const register = (verb, resource, text, schema, method, toArgs) => tools.tool(wphostingToolName(brand, verb, resource), description3(text), schema, async (args) => callApi(() => invoke(method, toArgs(args))));
2588
+ server.tool(wphostingToolName(brand, "list", "plans"), description3("\u7533\u8FBC\u53EF\u80FD\u306AWPhosting\u30D7\u30E9\u30F3\u3092\u53D6\u5F97"), {
2589
+ plan_id: z30.string().min(1).max(64).optional().describe("\u7D5E\u308A\u8FBC\u3080\u30D7\u30E9\u30F3ID")
2590
+ }, async ({ plan_id }) => callApi(() => client.listWphostingPlans(plan_id ? { plan_id } : void 0)));
2591
+ server.tool(wphostingToolName(brand, "list", "contracts"), description3("WPhosting\u5951\u7D04\u4E00\u89A7\u3092\u53D6\u5F97"), {}, async () => callApi(() => client.listWphostingContracts()));
2592
+ server.tool(wphostingToolName(brand, "get", "memo"), description3("WPhosting\u5951\u7D04\u30E1\u30E2\u3092\u53D6\u5F97"), { contract_id: contractId }, async ({ contract_id }) => callApi(() => client.getWphostingMemo(contract_id)));
2593
+ server.tool(wphostingToolName(brand, "update", "memo"), description3("WPhosting\u5951\u7D04\u30E1\u30E2\u3092\u66F4\u65B0"), {
2594
+ contract_id: contractId,
2595
+ memo: z30.string().max(500).describe("\u5951\u7D04\u30E1\u30E2\uFF08\u7A7A\u6587\u5B57\u53EF\u3001500\u6587\u5B57\u4EE5\u5185\uFF09")
2596
+ }, async ({ contract_id, memo: memo2 }) => callApi(() => client.updateWphostingMemo(contract_id, { memo: memo2 })));
2597
+ server.tool(wphostingToolName(brand, "preview", "signup"), description3("\u8AB2\u91D1\u3055\u308C\u308BWPhosting\u65B0\u898F\u5951\u7D04\u3092dry-run\u3057\u3001\u5B9F\u7533\u8ACB\u524D\u306E\u91D1\u984D\u3092\u78BA\u8A8D\u3002\u7D50\u679C\u306E legal_notices \u3092\u30C1\u30E3\u30C3\u30C8\u4E0A\u306E\u30AF\u30EA\u30C3\u30AF\u53EF\u80FD\u306AMarkdown\u30EA\u30F3\u30AF\u3068\u3057\u3066\u5229\u7528\u8005\u3078\u63D0\u793A\u3057\u3066\u304B\u3089execute\u3092\u6848\u5185\u3057\u3066\u304F\u3060\u3055\u3044"), signupInput2, billingPreviewAnnotations, async ({ agree_to_terms: _agreeToTerms, auto_renew, ...input }) => callApi(async () => billingPreviewResult(await client.registerWphosting({
2598
+ ...input,
2599
+ auto_renew: auto_renew === "enabled",
2600
+ agree_to_terms: true,
2601
+ dry_run: true
2602
+ }), signupLegalNoticeLines(brand, "wphosting"))));
2603
+ if (options.enableHighRiskExecute) {
2604
+ server.tool(wphostingToolName(brand, "execute", "signup"), description3("\u660E\u793A\u627F\u8A8D\u5F8C\u306BWPhosting\u65B0\u898F\u5951\u7D04\u3092\u5B9F\u7533\u8ACB\uFF08\u8AB2\u91D1\u3055\u308C\u539F\u5247\u53D6\u308A\u6D88\u3057\u4E0D\u53EF\uFF09\u3002\u4E8B\u524D\u306Bpreview\u306E legal_notices \u3092\u30C1\u30E3\u30C3\u30C8\u4E0A\u3078\u63D0\u793A\u3057\u3001\u5229\u7528\u8005\u304CURL\u3092\u78BA\u8A8D\u3067\u304D\u308B\u72B6\u614B\u306B\u3057\u3066\u304F\u3060\u3055\u3044"), { ...signupInput2, idempotency_key: idempotencyKey3 }, billingExecuteAnnotations, async ({ agree_to_terms: _agreeToTerms, idempotency_key, ...input }) => callApi(async () => {
2605
+ const data = {
2606
+ ...input,
2607
+ auto_renew: input.auto_renew === "enabled",
2608
+ agree_to_terms: true
2609
+ };
2610
+ const preview = await client.registerWphosting({
2611
+ ...data,
2612
+ dry_run: true
2613
+ });
2614
+ const totalPrice = Number(preview.total_price);
2615
+ if (!Number.isFinite(totalPrice)) {
2616
+ throw new Error("dry-run\u7D50\u679C\u304B\u3089\u5408\u8A08\u91D1\u984D\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002");
2617
+ }
2618
+ if (totalPrice !== input.expected_total_price) {
2619
+ throw new Error(`\u4FA1\u683C\u4E0D\u4E00\u81F4\u306E\u305F\u3081\u5B9F\u7533\u8ACB\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\uFF08\u898B\u7A4D ${totalPrice}\u5186 / \u6307\u5B9A ${input.expected_total_price}\u5186\uFF09\u3002`);
2620
+ }
2621
+ assertBillingFormElicitationSupported(server);
2622
+ const planName = await resolvePlanName(() => client.listWphostingPlans({ plan_id: input.plan_id }), input.plan_id);
2623
+ await confirmBillingOperation(server, {
2624
+ operation: signupOperationName(brand, "wphosting"),
2625
+ target: `${planLabel(input.plan_id, planName)} / \u5951\u7D04\u671F\u9593 ${input.period}\u304B\u6708`,
2626
+ targetLabel: "\u7533\u8FBC\u5185\u5BB9",
2627
+ details: compactDetails([
2628
+ autoRenewDetail(input.auto_renew === "enabled"),
2629
+ partnerCodeDetail(input.partner_code)
2630
+ ]),
2631
+ legalNoticeLines: signupLegalNoticeLines(brand, "wphosting"),
2632
+ totalPrice,
2633
+ requireTermsAgreement: true
2634
+ });
2635
+ return client.registerWphosting({ ...data, dry_run: false }, idempotency_key);
2636
+ }));
2637
+ }
2325
2638
  register("get", "api_key_info", "API\u30AD\u30FC\u60C5\u5831\u3068WPhosting\u6A29\u9650\u30FB\u5BFE\u8C61\u5951\u7D04\u3092\u53D6\u5F97", {}, "getMe", () => []);
2326
2639
  register("list", "sites", "\u5951\u7D04\u5185\u306E\u672C\u756A\u30FB\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\u30B5\u30A4\u30C8\u4E00\u89A7\u3068\u51E6\u7406status\u3092\u53D6\u5F97", { contract_id: contractId }, "listWphostingSites", (a) => [a.contract_id]);
2327
2640
  register("get", "site", "\u30B5\u30A4\u30C8\u8A73\u7D30\u3068\u975E\u540C\u671F\u30B5\u30A4\u30C8\u51E6\u7406\u306Estatus\u3092\u53D6\u5F97", site, "getWphostingSite", (a) => [a.contract_id, a.servername]);
2328
2641
  register("get", "usage", "\u5951\u7D04\u4E0A\u9650\u3001\u4F7F\u7528\u91CF\u3001\u30B5\u30A4\u30C8\u5225\u5185\u8A33\u3092\u53D6\u5F97", { contract_id: contractId }, "getWphostingUsage", (a) => [a.contract_id]);
2329
2642
  register("create", "site", "\u30B5\u30A4\u30C8\u4F5C\u6210\u3092\u53D7\u3051\u4ED8\u3051\u308B\uFF08\u78BA\u8A8D\u5148: get_wphosting_site\u306Estatus\uFF09", {
2330
2643
  contract_id: contractId,
2331
- wp_sitename: z29.string().min(1).max(255),
2332
- wp_username: z29.string().min(1).max(255).regex(/^[0-9A-Za-z _\-.@]+$/),
2333
- wp_password: z29.string().min(7).max(64).regex(/^[A-Za-z0-9!#$%=~^|:_\[\]().+\-*\/@&<>`;?,]+$/).refine((value) => /[A-Za-z]/.test(value) && /[^A-Za-z]/.test(value), {
2644
+ wp_sitename: z30.string().min(1).max(255),
2645
+ wp_username: z30.string().min(1).max(255).regex(/^[0-9A-Za-z _\-.@]+$/),
2646
+ wp_password: z30.string().min(7).max(64).regex(/^[A-Za-z0-9!#$%=~^|:_\[\]().+\-*\/@&<>`;?,]+$/).refine((value) => /[A-Za-z]/.test(value) && /[^A-Za-z]/.test(value), {
2334
2647
  message: "\u534A\u89D2\u82F1\u5B57\u3068\u6570\u5B57\u307E\u305F\u306F\u8A18\u53F7\u3092\u305D\u308C\u305E\u308C1\u6587\u5B57\u4EE5\u4E0A\u542B\u3081\u3066\u304F\u3060\u3055\u3044"
2335
2648
  }),
2336
- wp_mailaddress: z29.string().email().max(100),
2337
- disk_limit_gb: z29.number().int().min(10),
2338
- vcpu_limit: z29.number().int().positive(),
2339
- memory_limit_gb: z29.number().int().positive(),
2340
- wp_theme: z29.enum(["default", "cocoon-master", "lightning"]).optional(),
2341
- server_id: z29.string().regex(/^[a-z][a-z0-9]{0,11}$/).optional(),
2342
- security_auto_optimize: z29.boolean().optional(),
2343
- memo: z29.string().max(255).optional(),
2344
- idempotency_key: idempotencyKey2.optional()
2649
+ wp_mailaddress: z30.string().email().max(100),
2650
+ disk_limit_gb: z30.number().int().min(10),
2651
+ vcpu_limit: z30.number().int().positive(),
2652
+ memory_limit_gb: z30.number().int().positive(),
2653
+ wp_theme: z30.enum(["default", "cocoon-master", "lightning"]).optional(),
2654
+ server_id: z30.string().regex(/^[a-z][a-z0-9]{0,11}$/).optional(),
2655
+ security_auto_optimize: z30.boolean().optional(),
2656
+ memo: z30.string().max(255).optional(),
2657
+ idempotency_key: idempotencyKey3.optional()
2345
2658
  }, "createWphostingSite", (a) => {
2346
2659
  if (a.wp_password === a.wp_username) {
2347
2660
  throw new Error("wp_password\u306Fwp_username\u3068\u7570\u306A\u308B\u6587\u5B57\u5217\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002");
@@ -2352,21 +2665,21 @@ function registerWphostingTools(server, client, brand) {
2352
2665
  a.idempotency_key
2353
2666
  ];
2354
2667
  });
2355
- tools.tool(wphostingToolName(brand, "preview", "site_deletion"), description2("\u30B5\u30A4\u30C8\u524A\u9664\u524D\u306BGET\u3067\u5BFE\u8C61\u3068\u5F71\u97FF\u3092\u78BA\u8A8D\uFF08\u672C\u756A\u30B5\u30A4\u30C8\u306A\u3089\u7D10\u3065\u304F\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\u3082\u9023\u52D5\u524A\u9664\u3002\u78BA\u8A8D\u5F8C\u306Fexecute_wphosting_site_deletion\uFF09"), site, async (a) => callApi(async () => ({
2668
+ tools.tool(wphostingToolName(brand, "preview", "site_deletion"), description3("\u30B5\u30A4\u30C8\u524A\u9664\u524D\u306BGET\u3067\u5BFE\u8C61\u3068\u5F71\u97FF\u3092\u78BA\u8A8D\uFF08\u672C\u756A\u30B5\u30A4\u30C8\u306A\u3089\u7D10\u3065\u304F\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\u3082\u9023\u52D5\u524A\u9664\u3002\u78BA\u8A8D\u5F8C\u306Fexecute_wphosting_site_deletion\uFF09"), site, async (a) => callApi(async () => ({
2356
2669
  target: await invoke("getWphostingSite", [a.contract_id, a.servername]),
2357
2670
  impact: "\u6307\u5B9A\u30B5\u30A4\u30C8\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u672C\u756A\u30B5\u30A4\u30C8\u306E\u5834\u5408\u306F\u7D10\u3065\u304F\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\u30B5\u30A4\u30C8\u3082\u9023\u52D5\u524A\u9664\u3055\u308C\u3001\u4E00\u89A7\u304B\u3089\u9664\u5916\u3055\u308C\u308B\u307E\u3067\u51E6\u7406\u4E2D\u3067\u3059\u3002",
2358
2671
  confirmation_tool: wphostingToolName(brand, "execute", "site_deletion"),
2359
2672
  confirmation_destination: "list_wphosting_sites\u3067\u5BFE\u8C61\u3068\u9023\u52D5\u524A\u9664\u5BFE\u8C61\u3092\u518D\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
2360
2673
  })));
2361
- register("execute", "site_deletion", "preview\u7D50\u679C\u306E\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30B5\u30A4\u30C8\u524A\u9664\u3092\u53D7\u3051\u4ED8\u3051\u308B\uFF08\u78BA\u8A8D\u5148: list_wphosting_sites\u304B\u3089\u5BFE\u8C61\u304C\u9664\u5916\uFF09", { ...site, confirmed, idempotency_key: idempotencyKey2.optional() }, "deleteWphostingSite", (a) => [a.contract_id, a.servername, a.idempotency_key]);
2674
+ register("execute", "site_deletion", "preview\u7D50\u679C\u306E\u660E\u793A\u627F\u8A8D\u5F8C\u306B\u30B5\u30A4\u30C8\u524A\u9664\u3092\u53D7\u3051\u4ED8\u3051\u308B\uFF08\u78BA\u8A8D\u5148: list_wphosting_sites\u304B\u3089\u5BFE\u8C61\u304C\u9664\u5916\uFF09", { ...site, confirmed, idempotency_key: idempotencyKey3.optional() }, "deleteWphostingSite", (a) => [a.contract_id, a.servername, a.idempotency_key]);
2362
2675
  register("create", "staging", "\u672C\u756A\u30B5\u30A4\u30C8\u306E\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0\u4F5C\u6210\u3092\u53D7\u3051\u4ED8\u3051\u308B\uFF08\u78BA\u8A8D\u5148: \u8FD4\u5374servername\u306Eget_wphosting_site status\uFF09", {
2363
2676
  ...site,
2364
- disk_limit_gb: z29.number().int().min(10),
2365
- vcpu_limit: z29.number().int().positive(),
2366
- memory_limit_gb: z29.number().int().positive(),
2367
- server_id: z29.string().min(1).max(12).optional(),
2368
- security_auto_optimize: z29.boolean().optional(),
2369
- idempotency_key: idempotencyKey2.optional()
2677
+ disk_limit_gb: z30.number().int().min(10),
2678
+ vcpu_limit: z30.number().int().positive(),
2679
+ memory_limit_gb: z30.number().int().positive(),
2680
+ server_id: z30.string().min(1).max(12).optional(),
2681
+ security_auto_optimize: z30.boolean().optional(),
2682
+ idempotency_key: idempotencyKey3.optional()
2370
2683
  }, "createWphostingStaging", (a) => [
2371
2684
  a.contract_id,
2372
2685
  a.servername,
@@ -2376,15 +2689,15 @@ function registerWphostingTools(server, client, brand) {
2376
2689
  register("list", "backups", "\u624B\u52D5\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u4E00\u89A7\u3068\u4F5C\u6210status\u3092\u53D6\u5F97", site, "listWphostingBackups", (a) => [a.contract_id, a.servername]);
2377
2690
  register("create", "backup", "\u624B\u52D5\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u4F5C\u6210\u3092\u53D7\u3051\u4ED8\u3051\u308B\uFF08\u78BA\u8A8D\u5148: list_wphosting_backups\u306Estatus\uFF09", {
2378
2691
  ...site,
2379
- memo: z29.string().max(255).optional(),
2380
- idempotency_key: idempotencyKey2.optional()
2692
+ memo: z30.string().max(255).optional(),
2693
+ idempotency_key: idempotencyKey3.optional()
2381
2694
  }, "createWphostingBackup", (a) => [
2382
2695
  a.contract_id,
2383
2696
  a.servername,
2384
2697
  body(a, ["contract_id", "servername", "idempotency_key"]),
2385
2698
  a.idempotency_key
2386
2699
  ]);
2387
- tools.tool(wphostingToolName(brand, "preview", "backup_restore"), description2("\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u5FA9\u5143\u524D\u306BGET\u3067\u5BFE\u8C61\u3068\u4E0A\u66F8\u304D\u5F71\u97FF\u3092\u78BA\u8A8D\uFF08\u78BA\u8A8D\u5F8C\u306Fexecute_wphosting_backup_restore\uFF09"), { ...site, backup_id: opaqueId("\u5FA9\u5143\u3059\u308B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7ID") }, async (a) => callApi(async () => ({
2700
+ tools.tool(wphostingToolName(brand, "preview", "backup_restore"), description3("\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u5FA9\u5143\u524D\u306BGET\u3067\u5BFE\u8C61\u3068\u4E0A\u66F8\u304D\u5F71\u97FF\u3092\u78BA\u8A8D\uFF08\u78BA\u8A8D\u5F8C\u306Fexecute_wphosting_backup_restore\uFF09"), { ...site, backup_id: opaqueId("\u5FA9\u5143\u3059\u308B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7ID") }, async (a) => callApi(async () => ({
2388
2701
  backups: await invoke("listWphostingBackups", [
2389
2702
  a.contract_id,
2390
2703
  a.servername
@@ -2398,24 +2711,24 @@ function registerWphostingTools(server, client, brand) {
2398
2711
  ...site,
2399
2712
  backup_id: opaqueId("\u5FA9\u5143\u3059\u308B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7ID"),
2400
2713
  confirmed,
2401
- idempotency_key: idempotencyKey2.optional()
2714
+ idempotency_key: idempotencyKey3.optional()
2402
2715
  }, "restoreWphostingBackup", (a) => [a.contract_id, a.servername, a.backup_id, a.idempotency_key]);
2403
2716
  register("list", "backup_restore_history", "\u624B\u52D5\u30FB\u81EA\u52D5\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u5FA9\u5143\u306E\u5C65\u6B74\u3068status\u3092\u53D6\u5F97", site, "listWphostingBackupRestoreHistory", (a) => [a.contract_id, a.servername]);
2404
2717
  register("delete", "backup", "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u524A\u9664\uFF08\u78BA\u8A8D\u5148: list_wphosting_backups\u3002\u524A\u9664\u5F8C\u306F\u5FA9\u5143\u4E0D\u53EF\uFF09", { ...site, backup_id: opaqueId("\u524A\u9664\u3059\u308B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7ID"), confirmed }, "deleteWphostingBackup", (a) => [a.contract_id, a.servername, a.backup_id]);
2405
2718
  register("get", "wordpress", "WordPress\u672C\u4F53\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3068\u81EA\u52D5\u66F4\u65B0\u8A2D\u5B9A\u3092\u53D6\u5F97", site, "getWphostingWordPress", (a) => [a.contract_id, a.servername]);
2406
- register("update", "wordpress", "WordPress\u672C\u4F53\u306E\u81EA\u52D5\u66F4\u65B0\u8A2D\u5B9A\u3092\u5909\u66F4", { ...site, auto_update_scope: z29.enum(["none", "minor", "all"]) }, "updateWphostingWordPress", (a) => [
2719
+ register("update", "wordpress", "WordPress\u672C\u4F53\u306E\u81EA\u52D5\u66F4\u65B0\u8A2D\u5B9A\u3092\u5909\u66F4", { ...site, auto_update_scope: z30.enum(["none", "minor", "all"]) }, "updateWphostingWordPress", (a) => [
2407
2720
  a.contract_id,
2408
2721
  a.servername,
2409
2722
  { auto_update_scope: a.auto_update_scope }
2410
2723
  ]);
2411
2724
  register("upgrade", "wordpress", "WordPress\u672C\u4F53\u3092\u540C\u671F\u66F4\u65B0", site, "upgradeWphostingWordPress", (a) => [a.contract_id, a.servername]);
2412
2725
  register("get", "maintenance_mode", "\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u30E2\u30FC\u30C9\u8A2D\u5B9A\u3092\u53D6\u5F97", site, "getWphostingMaintenanceMode", (a) => [a.contract_id, a.servername]);
2413
- register("update", "maintenance_mode", "\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u30E2\u30FC\u30C9\u3092\u5909\u66F4", { ...site, enabled: z29.boolean() }, "updateWphostingMaintenanceMode", (a) => [a.contract_id, a.servername, { enabled: a.enabled }]);
2726
+ register("update", "maintenance_mode", "\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u30E2\u30FC\u30C9\u3092\u5909\u66F4", { ...site, enabled: z30.boolean() }, "updateWphostingMaintenanceMode", (a) => [a.contract_id, a.servername, { enabled: a.enabled }]);
2414
2727
  register("list", "plugins", "\u901A\u5E38\u30D7\u30E9\u30B0\u30A4\u30F3\u4E00\u89A7\u3092\u53D6\u5F97\uFF08drop-in/must-use\u3092\u9664\u304F\uFF09", site, "listWphostingPlugins", (a) => [a.contract_id, a.servername]);
2415
2728
  register("install", "plugin", "\u516C\u5F0F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D7\u30E9\u30B0\u30A4\u30F3slug\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", {
2416
2729
  ...site,
2417
2730
  plugin: slug("\u30D7\u30E9\u30B0\u30A4\u30F3slug"),
2418
- activate: z29.boolean().optional()
2731
+ activate: z30.boolean().optional()
2419
2732
  }, "installWphostingPlugin", (a) => [
2420
2733
  a.contract_id,
2421
2734
  a.servername,
@@ -2427,8 +2740,8 @@ function registerWphostingTools(server, client, brand) {
2427
2740
  register("update", "plugin", "\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u6709\u52B9\u72B6\u614B\u307E\u305F\u306F\u81EA\u52D5\u66F4\u65B0\u8A2D\u5B9A\u3092\u90E8\u5206\u66F4\u65B0", {
2428
2741
  ...site,
2429
2742
  plugin: slug("\u30D7\u30E9\u30B0\u30A4\u30F3slug"),
2430
- status: z29.enum(["active", "inactive"]).optional(),
2431
- auto_update: z29.boolean().optional()
2743
+ status: z30.enum(["active", "inactive"]).optional(),
2744
+ auto_update: z30.boolean().optional()
2432
2745
  }, "updateWphostingPlugin", (a) => {
2433
2746
  const data = body(a, ["contract_id", "servername", "plugin"]);
2434
2747
  requireUpdate(data);
@@ -2437,7 +2750,7 @@ function registerWphostingTools(server, client, brand) {
2437
2750
  register("upgrade", "plugin", "\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u540C\u671F\u66F4\u65B0", { ...site, plugin: slug("\u30D7\u30E9\u30B0\u30A4\u30F3slug") }, "upgradeWphostingPlugin", (a) => [a.contract_id, a.servername, a.plugin]);
2438
2751
  register("delete", "plugin", "\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u524A\u9664\uFF08\u78BA\u8A8D\u5148: list_wphosting_plugins\uFF09", { ...site, plugin: slug("\u524A\u9664\u3059\u308B\u30D7\u30E9\u30B0\u30A4\u30F3slug"), confirmed }, "deleteWphostingPlugin", (a) => [a.contract_id, a.servername, a.plugin]);
2439
2752
  register("list", "themes", "\u30C6\u30FC\u30DE\u4E00\u89A7\u3092\u53D6\u5F97", site, "listWphostingThemes", (a) => [a.contract_id, a.servername]);
2440
- register("install", "theme", "\u516C\u5F0F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30C6\u30FC\u30DEslug\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", { ...site, theme: slug("\u30C6\u30FC\u30DEslug"), activate: z29.boolean().optional() }, "installWphostingTheme", (a) => [
2753
+ register("install", "theme", "\u516C\u5F0F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30C6\u30FC\u30DEslug\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB", { ...site, theme: slug("\u30C6\u30FC\u30DEslug"), activate: z30.boolean().optional() }, "installWphostingTheme", (a) => [
2441
2754
  a.contract_id,
2442
2755
  a.servername,
2443
2756
  {
@@ -2448,8 +2761,8 @@ function registerWphostingTools(server, client, brand) {
2448
2761
  register("update", "theme", "\u30C6\u30FC\u30DE\u306Eactive\u5207\u66FF\u307E\u305F\u306F\u81EA\u52D5\u66F4\u65B0\u8A2D\u5B9A\u3092\u90E8\u5206\u66F4\u65B0", {
2449
2762
  ...site,
2450
2763
  theme: slug("\u30C6\u30FC\u30DEslug"),
2451
- status: z29.literal("active").optional(),
2452
- auto_update: z29.boolean().optional()
2764
+ status: z30.literal("active").optional(),
2765
+ auto_update: z30.boolean().optional()
2453
2766
  }, "updateWphostingTheme", (a) => {
2454
2767
  const data = body(a, ["contract_id", "servername", "theme"]);
2455
2768
  requireUpdate(data);
@@ -2461,7 +2774,7 @@ function registerWphostingTools(server, client, brand) {
2461
2774
  register("add", "domain", "\u30B5\u30A4\u30C8\u3078\u30C9\u30E1\u30A4\u30F3\u3092\u8FFD\u52A0\uFF08\u5FC5\u8981\u6642\u306F\u6240\u6709\u8005\u78BA\u8A8DTXT\u60C5\u5831\u3092\u8FD4\u3059\uFF09", { ...site, domain }, "addWphostingDomain", (a) => [a.contract_id, a.servername, { domain: a.domain }]);
2462
2775
  register("verify", "domain", "\u8FFD\u52A0\u30C9\u30E1\u30A4\u30F3\u306EDNS\u6240\u6709\u8005\u78BA\u8A8D\u3092\u5B9F\u884C", { ...site, domain }, "verifyWphostingDomain", (a) => [a.contract_id, a.servername, a.domain]);
2463
2776
  register("delete", "domain", "\u30B5\u30A4\u30C8\u306E\u30C9\u30E1\u30A4\u30F3\u8A2D\u5B9A\u3092\u524A\u9664\uFF08\u78BA\u8A8D\u5148: list_wphosting_domains\u3002\u30B5\u30A4\u30C8URL\u4F7F\u7528\u4E2D\u306F\u524A\u9664\u4E0D\u53EF\uFF09", { ...site, domain, confirmed }, "deleteWphostingDomain", (a) => [a.contract_id, a.servername, a.domain]);
2464
- register("update", "site_url", "\u30B5\u30A4\u30C8\u306E\u30D7\u30E9\u30A4\u30DE\u30EA\u30C9\u30E1\u30A4\u30F3\u3092\u5909\u66F4", { ...site, domain, auto_redirect: z29.boolean().optional() }, "updateWphostingSiteUrl", (a) => [
2777
+ register("update", "site_url", "\u30B5\u30A4\u30C8\u306E\u30D7\u30E9\u30A4\u30DE\u30EA\u30C9\u30E1\u30A4\u30F3\u3092\u5909\u66F4", { ...site, domain, auto_redirect: z30.boolean().optional() }, "updateWphostingSiteUrl", (a) => [
2465
2778
  a.contract_id,
2466
2779
  a.servername,
2467
2780
  {
@@ -2473,9 +2786,9 @@ function registerWphostingTools(server, client, brand) {
2473
2786
  register("add", "dns_record", "\u30B5\u30A4\u30C8\u8FFD\u52A0\u30C9\u30E1\u30A4\u30F3\u3078DNS\u30EC\u30B3\u30FC\u30C9\u3092\u8FFD\u52A0", {
2474
2787
  ...site,
2475
2788
  domain,
2476
- host: z29.string().max(255),
2789
+ host: z30.string().max(255),
2477
2790
  type: dnsType2,
2478
- content: z29.string().max(1024),
2791
+ content: z30.string().max(1024),
2479
2792
  ttl: dnsTtl.optional().default(3600),
2480
2793
  priority: dnsPriority.optional()
2481
2794
  }, "addWphostingDnsRecord", (a) => [
@@ -2488,9 +2801,9 @@ function registerWphostingTools(server, client, brand) {
2488
2801
  ...site,
2489
2802
  domain,
2490
2803
  dns_id: positiveId("DNS\u30EC\u30B3\u30FC\u30C9ID"),
2491
- host: z29.string().max(255).optional(),
2804
+ host: z30.string().max(255).optional(),
2492
2805
  type: dnsType2.optional(),
2493
- content: z29.string().max(1024).optional(),
2806
+ content: z30.string().max(1024).optional(),
2494
2807
  ttl: dnsTtl.optional(),
2495
2808
  priority: dnsPriority.optional()
2496
2809
  }, "updateWphostingDnsRecord", (a) => {
@@ -2500,23 +2813,23 @@ function registerWphostingTools(server, client, brand) {
2500
2813
  });
2501
2814
  register("delete", "dns_record", "\u30B5\u30A4\u30C8\u8FFD\u52A0\u30C9\u30E1\u30A4\u30F3\u306EDNS\u30EC\u30B3\u30FC\u30C9\u3092\u524A\u9664\uFF08\u78BA\u8A8D\u5148: list_wphosting_dns_records\uFF09", { ...site, domain, dns_id: positiveId("DNS\u30EC\u30B3\u30FC\u30C9ID"), confirmed }, "deleteWphostingDnsRecord", (a) => [a.contract_id, a.servername, a.domain, a.dns_id]);
2502
2815
  register("get", "php_version", "\u30B5\u30A4\u30C8\u306EPHP\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u53D6\u5F97", site, "getWphostingPhpVersion", (a) => [a.contract_id, a.servername]);
2503
- register("update", "php_version", "\u30B5\u30A4\u30C8\u306EPHP\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u5909\u66F4", { ...site, version: z29.string().min(1).max(16) }, "updateWphostingPhpVersion", (a) => [a.contract_id, a.servername, { version: a.version }]);
2816
+ register("update", "php_version", "\u30B5\u30A4\u30C8\u306EPHP\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u5909\u66F4", { ...site, version: z30.string().min(1).max(16) }, "updateWphostingPhpVersion", (a) => [a.contract_id, a.servername, { version: a.version }]);
2504
2817
  register("get", "access_log", "\u30B5\u30A4\u30C8\u306E\u30A2\u30AF\u30BB\u30B9\u30ED\u30B0\u3092\u53D6\u5F97", {
2505
2818
  ...site,
2506
- date: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
2507
- keyword: z29.string().max(255).optional(),
2508
- line_number: z29.number().int().min(1).max(5e4).optional()
2819
+ date: z30.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
2820
+ keyword: z30.string().max(255).optional(),
2821
+ line_number: z30.number().int().min(1).max(5e4).optional()
2509
2822
  }, "getWphostingAccessLog", (a) => [a.contract_id, a.servername, body(a, ["contract_id", "servername"])]);
2510
2823
  register("get", "error_log", "\u30B5\u30A4\u30C8\u306E\u30A8\u30E9\u30FC\u30ED\u30B0\u3092\u53D6\u5F97", {
2511
2824
  ...site,
2512
- keyword: z29.string().max(255).optional(),
2513
- line_number: z29.number().int().min(1).max(5e4).optional()
2825
+ keyword: z30.string().max(255).optional(),
2826
+ line_number: z30.number().int().min(1).max(5e4).optional()
2514
2827
  }, "getWphostingErrorLog", (a) => [a.contract_id, a.servername, body(a, ["contract_id", "servername"])]);
2515
2828
  register("list", "cron", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FCron\u8A2D\u5B9A\u4E00\u89A7\u3092\u53D6\u5F97", site, "listWphostingCron", (a) => [a.contract_id, a.servername]);
2516
2829
  register("add", "cron", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FCron\u30B8\u30E7\u30D6\u3092\u8FFD\u52A0", { ...site, ...cronFields }, "addWphostingCron", (a) => [a.contract_id, a.servername, body(a, ["contract_id", "servername"])]);
2517
2830
  register("update", "cron", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FCron\u30B8\u30E7\u30D6\u3092\u90E8\u5206\u66F4\u65B0", {
2518
2831
  ...site,
2519
- cron_id: z29.string().min(1).max(255),
2832
+ cron_id: z30.string().min(1).max(255),
2520
2833
  minute: cronFields.minute.optional(),
2521
2834
  hour: cronFields.hour.optional(),
2522
2835
  day: cronFields.day.optional(),
@@ -2524,18 +2837,18 @@ function registerWphostingTools(server, client, brand) {
2524
2837
  weekday: cronFields.weekday.optional(),
2525
2838
  command: cronFields.command.optional(),
2526
2839
  comment: cronFields.comment,
2527
- enabled: z29.boolean().optional()
2840
+ enabled: z30.boolean().optional()
2528
2841
  }, "updateWphostingCron", (a) => {
2529
2842
  const data = body(a, ["contract_id", "servername", "cron_id"]);
2530
2843
  requireUpdate(data);
2531
2844
  return [a.contract_id, a.servername, a.cron_id, data];
2532
2845
  });
2533
- register("delete", "cron", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FCron\u30B8\u30E7\u30D6\u3092\u524A\u9664\uFF08\u78BA\u8A8D\u5148: list_wphosting_cron\uFF09", { ...site, cron_id: z29.string().min(1).max(255), confirmed }, "deleteWphostingCron", (a) => [a.contract_id, a.servername, a.cron_id]);
2846
+ register("delete", "cron", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FCron\u30B8\u30E7\u30D6\u3092\u524A\u9664\uFF08\u78BA\u8A8D\u5148: list_wphosting_cron\uFF09", { ...site, cron_id: z30.string().min(1).max(255), confirmed }, "deleteWphostingCron", (a) => [a.contract_id, a.servername, a.cron_id]);
2534
2847
  register("get", "ssh", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FSSH\u8A2D\u5B9A\u3068\u63A5\u7D9A\u60C5\u5831\u3092\u53D6\u5F97", site, "getWphostingSsh", (a) => [a.contract_id, a.servername]);
2535
2848
  register("update", "ssh", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FSSH\u6709\u52B9\u72B6\u614B\u307E\u305F\u306F\u56FD\u5916\u30A2\u30AF\u30BB\u30B9\u5236\u9650\u3092\u5909\u66F4", {
2536
2849
  ...site,
2537
- ssh_enabled: z29.boolean().optional(),
2538
- abroad_access_restriction: z29.boolean().optional()
2850
+ ssh_enabled: z30.boolean().optional(),
2851
+ abroad_access_restriction: z30.boolean().optional()
2539
2852
  }, "updateWphostingSsh", (a) => {
2540
2853
  const data = body(a, ["contract_id", "servername"]);
2541
2854
  requireUpdate(data);
@@ -2544,10 +2857,10 @@ function registerWphostingTools(server, client, brand) {
2544
2857
  register("list", "ssh_keys", "\u30B5\u30A4\u30C8\u306B\u89E3\u6C7A\u3055\u308C\u305FSSH\u516C\u958B\u9375\u4E00\u89A7\u3092\u53D6\u5F97", site, "listWphostingSshKeys", (a) => [a.contract_id, a.servername]);
2545
2858
  register("add", "ssh_key", "SSH\u516C\u958B\u9375\u3092\u767B\u9332\u307E\u305F\u306F\u9375\u30DA\u30A2\u3092\u751F\u6210\uFF08\u521D\u56DEactive\u9375\u306A\u3089SSH\u3082\u6709\u52B9\u5316\uFF09", {
2546
2859
  ...site,
2547
- label: z29.string().min(1).max(500),
2548
- public_key: z29.string().min(1).optional(),
2549
- generate: z29.boolean().optional(),
2550
- passphrase: z29.string().min(6).max(32).optional()
2860
+ label: z30.string().min(1).max(500),
2861
+ public_key: z30.string().min(1).optional(),
2862
+ generate: z30.boolean().optional(),
2863
+ passphrase: z30.string().min(6).max(32).optional()
2551
2864
  }, "addWphostingSshKey", (a) => {
2552
2865
  if (a.generate !== true && a.public_key === void 0) {
2553
2866
  throw new Error("public_key \u307E\u305F\u306F generate=true \u306E\u3044\u305A\u308C\u304B\u304C\u5FC5\u8981\u3067\u3059\u3002");
@@ -2567,8 +2880,8 @@ function registerWphostingTools(server, client, brand) {
2567
2880
  register("update", "ssh_key", "SSH\u516C\u958B\u9375\u306E\u30E9\u30D9\u30EB\u307E\u305F\u306Fstatus\u3092\u90E8\u5206\u66F4\u65B0", {
2568
2881
  ...site,
2569
2882
  key_id: positiveId("SSH\u516C\u958B\u9375ID"),
2570
- label: z29.string().min(1).max(500).optional(),
2571
- status: z29.enum(["on", "off"]).optional()
2883
+ label: z30.string().min(1).max(500).optional(),
2884
+ status: z30.enum(["on", "off"]).optional()
2572
2885
  }, "updateWphostingSshKey", (a) => {
2573
2886
  const data = body(a, ["contract_id", "servername", "key_id"]);
2574
2887
  requireUpdate(data);
@@ -2578,27 +2891,27 @@ function registerWphostingTools(server, client, brand) {
2578
2891
  register("list", "wp_user_roles", "WordPress\u30E6\u30FC\u30B6\u30FC\u6A29\u9650\u30B0\u30EB\u30FC\u30D7\u4E00\u89A7\u3092\u53D6\u5F97", site, "listWphostingWpUserRoles", (a) => [a.contract_id, a.servername]);
2579
2892
  register("list", "wp_users", "WordPress\u30E6\u30FC\u30B6\u30FC\u4E00\u89A7\u3092\u691C\u7D22\u30FB\u4E26\u3079\u66FF\u3048\u3066\u53D6\u5F97", {
2580
2893
  ...site,
2581
- search: z29.string().max(255).optional(),
2582
- orderby: z29.enum([
2894
+ search: z30.string().max(255).optional(),
2895
+ orderby: z30.enum([
2583
2896
  "ID",
2584
2897
  "user_login",
2585
2898
  "display_name",
2586
2899
  "user_email",
2587
2900
  "user_registered"
2588
2901
  ]).optional(),
2589
- order: z29.enum(["asc", "desc"]).optional()
2902
+ order: z30.enum(["asc", "desc"]).optional()
2590
2903
  }, "listWphostingWpUsers", (a) => [a.contract_id, a.servername, body(a, ["contract_id", "servername"])]);
2591
2904
  register("create", "wp_user", "WordPress\u30E6\u30FC\u30B6\u30FC\u3092\u4F5C\u6210", {
2592
2905
  ...site,
2593
- user_login: z29.string().min(1).max(60),
2594
- user_email: z29.string().email().max(100),
2595
- user_pass: z29.string().min(7).max(64),
2596
- role: z29.string().min(1).max(64),
2597
- display_name: z29.string().max(255).optional(),
2598
- first_name: z29.string().max(255).optional(),
2599
- last_name: z29.string().max(255).optional(),
2600
- user_url: z29.string().url().max(255).optional(),
2601
- send_email: z29.boolean().optional()
2906
+ user_login: z30.string().min(1).max(60),
2907
+ user_email: z30.string().email().max(100),
2908
+ user_pass: z30.string().min(7).max(64),
2909
+ role: z30.string().min(1).max(64),
2910
+ display_name: z30.string().max(255).optional(),
2911
+ first_name: z30.string().max(255).optional(),
2912
+ last_name: z30.string().max(255).optional(),
2913
+ user_url: z30.string().url().max(255).optional(),
2914
+ send_email: z30.boolean().optional()
2602
2915
  }, "createWphostingWpUser", (a) => [a.contract_id, a.servername, body(a, ["contract_id", "servername"])]);
2603
2916
  register("get", "wp_user", "WordPress\u30E6\u30FC\u30B6\u30FC\u8A73\u7D30\u3092\u53D6\u5F97", { ...site, user_id: positiveId("WordPress\u30E6\u30FC\u30B6\u30FCID") }, "getWphostingWpUser", (a) => [a.contract_id, a.servername, a.user_id]);
2604
2917
  register("update", "wp_user", "WordPress\u30E6\u30FC\u30B6\u30FC\u3092\u90E8\u5206\u66F4\u65B0", {
@@ -2614,13 +2927,14 @@ function registerWphostingTools(server, client, brand) {
2614
2927
  register("list", "security_settings", "\u516C\u958B\u5BFE\u8C6110\u30AD\u30FC\u306EWordPress\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u3092\u53D6\u5F97", site, "getWphostingSecurity", (a) => [a.contract_id, a.servername]);
2615
2928
  register("update", "security_setting", "WordPress\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u3092\u5909\u66F4", {
2616
2929
  ...site,
2617
- key: z29.string().regex(/^[a-z0-9_]+$/).max(100).describe("list_wphosting_security_settings\u3067\u53D6\u5F97\u3057\u305F\u8A2D\u5B9Akey"),
2618
- is_enable: z29.boolean()
2930
+ key: z30.string().regex(/^[a-z0-9_]+$/).max(100).describe("list_wphosting_security_settings\u3067\u53D6\u5F97\u3057\u305F\u8A2D\u5B9Akey"),
2931
+ is_enable: z30.boolean()
2619
2932
  }, "updateWphostingSecurity", (a) => [a.contract_id, a.servername, a.key, { is_enable: a.is_enable }]);
2620
2933
  }
2621
2934
 
2622
2935
  // ../core/dist/tools/index.js
2623
- function registerServerTools(server, client, brand, resolver) {
2936
+ function registerServerTools(server, client, brand, resolver, options = {}) {
2937
+ registerServerAccountTools(server, client, brand, options);
2624
2938
  const targetServer = resolver ? withServerTargetResolution(server, resolver) : server;
2625
2939
  const targetClient = resolver?.client ?? client;
2626
2940
  registerServerInfoTools(targetServer, targetClient, brand);
@@ -2654,13 +2968,13 @@ function registerServerTools(server, client, brand, resolver) {
2654
2968
  function registerAllTools(server, client, brand, service = "server", options = {}) {
2655
2969
  const services = Array.isArray(service) ? [...new Set(service)] : [service];
2656
2970
  if (services.includes("server")) {
2657
- registerServerTools(server, client, brand, options.serverTargetResolver);
2971
+ registerServerTools(server, client, brand, options.serverTargetResolver, options);
2658
2972
  }
2659
2973
  if (services.includes("domain")) {
2660
2974
  registerDomainServiceTools(server, client, brand, options);
2661
2975
  }
2662
2976
  if (services.includes("wphosting")) {
2663
- registerWphostingTools(server, client, brand);
2977
+ registerWphostingTools(server, client, brand, options);
2664
2978
  }
2665
2979
  }
2666
2980
 
@@ -2743,7 +3057,7 @@ ${common}`;
2743
3057
  async function run(brand, options) {
2744
3058
  const envPrefix = brand.brand.toUpperCase();
2745
3059
  const apiKey = process.env[`${envPrefix}_API_KEY`] ?? process.env["XSERVER_API_KEY"];
2746
- const servername2 = process.env[`${envPrefix}_SERVERNAME`] ?? process.env["XSERVER_SERVERNAME"];
3060
+ const servername3 = process.env[`${envPrefix}_SERVERNAME`] ?? process.env["XSERVER_SERVERNAME"];
2747
3061
  const baseUrl = process.env[`${envPrefix}_API_BASE_URL`];
2748
3062
  const enableHighRiskExecute = (process.env[`${envPrefix}_MCP_ENABLE_HIGH_RISK_EXECUTE`] ?? process.env.XSERVER_MCP_ENABLE_HIGH_RISK_EXECUTE) === "1";
2749
3063
  let services;
@@ -2763,12 +3077,12 @@ async function run(brand, options) {
2763
3077
  const client = new ApiClient({
2764
3078
  apiKey,
2765
3079
  apiBase,
2766
- servername: servername2
3080
+ servername: servername3
2767
3081
  });
2768
3082
  const serverTargetResolver = services.includes("server") ? new ServerTargetResolver({
2769
3083
  apiKey,
2770
3084
  apiBase,
2771
- fixedServername: servername2
3085
+ fixedServername: servername3
2772
3086
  }) : void 0;
2773
3087
  const server = new McpServer({
2774
3088
  name: options.name,
@@ -2787,7 +3101,7 @@ async function run(brand, options) {
2787
3101
  // package.json
2788
3102
  var package_default = {
2789
3103
  name: "xserver-mcp",
2790
- version: "1.3.0",
3104
+ version: "1.4.0",
2791
3105
  description: "Official MCP server for XServer API \u2014 manage your XServer hosting from AI assistants",
2792
3106
  type: "module",
2793
3107
  bin: {
@@ -2837,8 +3151,24 @@ await run({
2837
3151
  brand: "xserver",
2838
3152
  apiBase: "https://api.xserver.ne.jp",
2839
3153
  displayName: "XServer",
3154
+ serverServiceName: "XServer \u30EC\u30F3\u30BF\u30EB\u30B5\u30FC\u30D0\u30FC",
3155
+ wphostingServiceName: "XServer for WordPress",
2840
3156
  domainTermsUrl: "https://www.xdomain.ne.jp/rule/rule.php",
2841
3157
  domainPrivacyUrl: "https://www.xdomain.ne.jp/privacy_announcement.php",
3158
+ serverTermsUrl: "https://www.xserver.ne.jp/rule/rule.php",
3159
+ serverPrivacyUrl: "https://www.xserver.ne.jp/privacy_announcement.php",
3160
+ // XServerビジネスは server サービスに `xbiz-` 接頭辞のプランとして同居しており、
3161
+ // サービス名・規約URLが XS とは別。plan_id で出し分ける(CLI 側と同じ設定)。
3162
+ serverPlanOverrides: [
3163
+ {
3164
+ planIdPrefix: "xbiz-",
3165
+ serviceName: "XServer\u30D3\u30B8\u30CD\u30B9",
3166
+ termsUrl: "https://business.xserver.ne.jp/rule.php",
3167
+ privacyUrl: "https://business.xserver.ne.jp/privacy_announcement.php"
3168
+ }
3169
+ ],
3170
+ wphostingTermsUrl: "https://wp.xserver.ne.jp/rule/rule.php",
3171
+ wphostingPrivacyUrl: "https://wp.xserver.ne.jp/privacy_announcement.php",
2842
3172
  commandName: "xserver-mcp",
2843
3173
  configDir: "xserver-mcp"
2844
3174
  }, {