hostinger-api-mcp 0.3.2 → 1.0.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/README.md +76 -39
- package/gemini-extension.json +1 -1
- package/package.json +3 -2
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +224 -132
- package/src/core/tools/all.ts +224 -132
- package/src/core/tools/hosting.js +0 -132
- package/src/core/tools/hosting.ts +0 -132
- package/src/core/tools/wordpress.js +227 -0
- package/src/core/tools/wordpress.ts +238 -0
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +6 -0
- package/src/servers/wordpress.ts +6 -0
- package/types.d.ts +167 -93
package/src/core/tools/all.ts
CHANGED
|
@@ -2596,138 +2596,6 @@ const tools: OpenApiTool[] = [
|
|
|
2596
2596
|
],
|
|
2597
2597
|
"group": "hosting"
|
|
2598
2598
|
},
|
|
2599
|
-
{
|
|
2600
|
-
"name": "hosting_installWordPressV1",
|
|
2601
|
-
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
2602
|
-
"method": "POST",
|
|
2603
|
-
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
2604
|
-
"inputSchema": {
|
|
2605
|
-
"type": "object",
|
|
2606
|
-
"properties": {
|
|
2607
|
-
"username": {
|
|
2608
|
-
"type": "string",
|
|
2609
|
-
"description": "username parameter"
|
|
2610
|
-
},
|
|
2611
|
-
"domain": {
|
|
2612
|
-
"type": "string",
|
|
2613
|
-
"description": "Domain of the existing website where WordPress will be installed"
|
|
2614
|
-
},
|
|
2615
|
-
"site_title": {
|
|
2616
|
-
"type": "string",
|
|
2617
|
-
"description": "Title of the WordPress site"
|
|
2618
|
-
},
|
|
2619
|
-
"language": {
|
|
2620
|
-
"type": "string",
|
|
2621
|
-
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
2622
|
-
},
|
|
2623
|
-
"directory": {
|
|
2624
|
-
"type": "string",
|
|
2625
|
-
"description": "Relative directory to install WordPress into. Defaults to the website root when omitted."
|
|
2626
|
-
},
|
|
2627
|
-
"overwrite": {
|
|
2628
|
-
"type": "boolean",
|
|
2629
|
-
"description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true."
|
|
2630
|
-
},
|
|
2631
|
-
"auto_updates": {
|
|
2632
|
-
"type": "string",
|
|
2633
|
-
"description": "WordPress core auto-update policy",
|
|
2634
|
-
"enum": [
|
|
2635
|
-
"all",
|
|
2636
|
-
"none",
|
|
2637
|
-
"minor"
|
|
2638
|
-
]
|
|
2639
|
-
},
|
|
2640
|
-
"version": {
|
|
2641
|
-
"type": "string",
|
|
2642
|
-
"description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected."
|
|
2643
|
-
},
|
|
2644
|
-
"credentials": {
|
|
2645
|
-
"type": "object",
|
|
2646
|
-
"description": "WordPress admin credentials",
|
|
2647
|
-
"properties": {
|
|
2648
|
-
"email": {
|
|
2649
|
-
"type": "string",
|
|
2650
|
-
"description": "email parameter"
|
|
2651
|
-
},
|
|
2652
|
-
"login": {
|
|
2653
|
-
"type": "string",
|
|
2654
|
-
"description": "WordPress admin username"
|
|
2655
|
-
},
|
|
2656
|
-
"password": {
|
|
2657
|
-
"type": "string",
|
|
2658
|
-
"description": "password parameter"
|
|
2659
|
-
}
|
|
2660
|
-
},
|
|
2661
|
-
"required": [
|
|
2662
|
-
"email",
|
|
2663
|
-
"login",
|
|
2664
|
-
"password"
|
|
2665
|
-
]
|
|
2666
|
-
},
|
|
2667
|
-
"database": {
|
|
2668
|
-
"type": "object",
|
|
2669
|
-
"description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.",
|
|
2670
|
-
"properties": {
|
|
2671
|
-
"name": {
|
|
2672
|
-
"type": "string",
|
|
2673
|
-
"description": "Database name (username prefix added if missing)"
|
|
2674
|
-
},
|
|
2675
|
-
"password": {
|
|
2676
|
-
"type": "string",
|
|
2677
|
-
"description": "password parameter"
|
|
2678
|
-
}
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
},
|
|
2682
|
-
"required": [
|
|
2683
|
-
"username",
|
|
2684
|
-
"domain",
|
|
2685
|
-
"site_title",
|
|
2686
|
-
"credentials"
|
|
2687
|
-
]
|
|
2688
|
-
},
|
|
2689
|
-
"security": [
|
|
2690
|
-
{
|
|
2691
|
-
"apiToken": []
|
|
2692
|
-
}
|
|
2693
|
-
],
|
|
2694
|
-
"group": "hosting"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
"name": "hosting_listWordPressInstallationsV1",
|
|
2698
|
-
"description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.",
|
|
2699
|
-
"method": "GET",
|
|
2700
|
-
"path": "/api/hosting/v1/wordpress/installations",
|
|
2701
|
-
"inputSchema": {
|
|
2702
|
-
"type": "object",
|
|
2703
|
-
"properties": {
|
|
2704
|
-
"username": {
|
|
2705
|
-
"type": "string",
|
|
2706
|
-
"description": "Filter by specific username"
|
|
2707
|
-
},
|
|
2708
|
-
"domain": {
|
|
2709
|
-
"type": "string",
|
|
2710
|
-
"description": "Filter by domain name (exact match)"
|
|
2711
|
-
},
|
|
2712
|
-
"ownership": {
|
|
2713
|
-
"type": "string",
|
|
2714
|
-
"description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.",
|
|
2715
|
-
"enum": [
|
|
2716
|
-
"owned",
|
|
2717
|
-
"managed",
|
|
2718
|
-
"all"
|
|
2719
|
-
]
|
|
2720
|
-
}
|
|
2721
|
-
},
|
|
2722
|
-
"required": []
|
|
2723
|
-
},
|
|
2724
|
-
"security": [
|
|
2725
|
-
{
|
|
2726
|
-
"apiToken": []
|
|
2727
|
-
}
|
|
2728
|
-
],
|
|
2729
|
-
"group": "hosting"
|
|
2730
|
-
},
|
|
2731
2599
|
{
|
|
2732
2600
|
"name": "reach_deleteAContactV1",
|
|
2733
2601
|
"description": "Delete a contact with the specified UUID.\n\nThis endpoint permanently removes a contact from the email marketing system.",
|
|
@@ -4955,6 +4823,230 @@ const tools: OpenApiTool[] = [
|
|
|
4955
4823
|
}
|
|
4956
4824
|
],
|
|
4957
4825
|
"group": "vps"
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
"name": "hosting_installWordPressV1",
|
|
4829
|
+
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
4830
|
+
"method": "POST",
|
|
4831
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
4832
|
+
"inputSchema": {
|
|
4833
|
+
"type": "object",
|
|
4834
|
+
"properties": {
|
|
4835
|
+
"username": {
|
|
4836
|
+
"type": "string",
|
|
4837
|
+
"description": "username parameter"
|
|
4838
|
+
},
|
|
4839
|
+
"domain": {
|
|
4840
|
+
"type": "string",
|
|
4841
|
+
"description": "Domain of the existing website where WordPress will be installed"
|
|
4842
|
+
},
|
|
4843
|
+
"site_title": {
|
|
4844
|
+
"type": "string",
|
|
4845
|
+
"description": "Title of the WordPress site"
|
|
4846
|
+
},
|
|
4847
|
+
"language": {
|
|
4848
|
+
"type": "string",
|
|
4849
|
+
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
4850
|
+
},
|
|
4851
|
+
"directory": {
|
|
4852
|
+
"type": "string",
|
|
4853
|
+
"description": "Relative directory to install WordPress into. Defaults to the website root when omitted."
|
|
4854
|
+
},
|
|
4855
|
+
"overwrite": {
|
|
4856
|
+
"type": "boolean",
|
|
4857
|
+
"description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true."
|
|
4858
|
+
},
|
|
4859
|
+
"auto_updates": {
|
|
4860
|
+
"type": "string",
|
|
4861
|
+
"description": "WordPress core auto-update policy",
|
|
4862
|
+
"enum": [
|
|
4863
|
+
"all",
|
|
4864
|
+
"none",
|
|
4865
|
+
"minor"
|
|
4866
|
+
]
|
|
4867
|
+
},
|
|
4868
|
+
"version": {
|
|
4869
|
+
"type": "string",
|
|
4870
|
+
"description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected."
|
|
4871
|
+
},
|
|
4872
|
+
"credentials": {
|
|
4873
|
+
"type": "object",
|
|
4874
|
+
"description": "WordPress admin credentials",
|
|
4875
|
+
"properties": {
|
|
4876
|
+
"email": {
|
|
4877
|
+
"type": "string",
|
|
4878
|
+
"description": "email parameter"
|
|
4879
|
+
},
|
|
4880
|
+
"login": {
|
|
4881
|
+
"type": "string",
|
|
4882
|
+
"description": "WordPress admin username"
|
|
4883
|
+
},
|
|
4884
|
+
"password": {
|
|
4885
|
+
"type": "string",
|
|
4886
|
+
"description": "password parameter"
|
|
4887
|
+
}
|
|
4888
|
+
},
|
|
4889
|
+
"required": [
|
|
4890
|
+
"email",
|
|
4891
|
+
"login",
|
|
4892
|
+
"password"
|
|
4893
|
+
]
|
|
4894
|
+
},
|
|
4895
|
+
"database": {
|
|
4896
|
+
"type": "object",
|
|
4897
|
+
"description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.",
|
|
4898
|
+
"properties": {
|
|
4899
|
+
"name": {
|
|
4900
|
+
"type": "string",
|
|
4901
|
+
"description": "Database name (username prefix added if missing)"
|
|
4902
|
+
},
|
|
4903
|
+
"password": {
|
|
4904
|
+
"type": "string",
|
|
4905
|
+
"description": "password parameter"
|
|
4906
|
+
}
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
"required": [
|
|
4911
|
+
"username",
|
|
4912
|
+
"domain",
|
|
4913
|
+
"site_title",
|
|
4914
|
+
"credentials"
|
|
4915
|
+
]
|
|
4916
|
+
},
|
|
4917
|
+
"security": [
|
|
4918
|
+
{
|
|
4919
|
+
"apiToken": []
|
|
4920
|
+
}
|
|
4921
|
+
],
|
|
4922
|
+
"group": "wordpress"
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
"name": "hosting_listWordPressInstallationsV1",
|
|
4926
|
+
"description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.",
|
|
4927
|
+
"method": "GET",
|
|
4928
|
+
"path": "/api/hosting/v1/wordpress/installations",
|
|
4929
|
+
"inputSchema": {
|
|
4930
|
+
"type": "object",
|
|
4931
|
+
"properties": {
|
|
4932
|
+
"username": {
|
|
4933
|
+
"type": "string",
|
|
4934
|
+
"description": "Filter by specific username"
|
|
4935
|
+
},
|
|
4936
|
+
"domain": {
|
|
4937
|
+
"type": "string",
|
|
4938
|
+
"description": "Filter by domain name (exact match)"
|
|
4939
|
+
},
|
|
4940
|
+
"ownership": {
|
|
4941
|
+
"type": "string",
|
|
4942
|
+
"description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.",
|
|
4943
|
+
"enum": [
|
|
4944
|
+
"owned",
|
|
4945
|
+
"managed",
|
|
4946
|
+
"all"
|
|
4947
|
+
]
|
|
4948
|
+
}
|
|
4949
|
+
},
|
|
4950
|
+
"required": []
|
|
4951
|
+
},
|
|
4952
|
+
"security": [
|
|
4953
|
+
{
|
|
4954
|
+
"apiToken": []
|
|
4955
|
+
}
|
|
4956
|
+
],
|
|
4957
|
+
"group": "wordpress"
|
|
4958
|
+
},
|
|
4959
|
+
{
|
|
4960
|
+
"name": "hosting_installWordPressPluginsV1",
|
|
4961
|
+
"description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.",
|
|
4962
|
+
"method": "POST",
|
|
4963
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install",
|
|
4964
|
+
"inputSchema": {
|
|
4965
|
+
"type": "object",
|
|
4966
|
+
"properties": {
|
|
4967
|
+
"username": {
|
|
4968
|
+
"type": "string",
|
|
4969
|
+
"description": "username parameter"
|
|
4970
|
+
},
|
|
4971
|
+
"software": {
|
|
4972
|
+
"type": "string",
|
|
4973
|
+
"description": "WordPress installation (software) identifier"
|
|
4974
|
+
},
|
|
4975
|
+
"plugins": {
|
|
4976
|
+
"type": "array",
|
|
4977
|
+
"description": "Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.",
|
|
4978
|
+
"items": {
|
|
4979
|
+
"type": "string",
|
|
4980
|
+
"description": "Plugin slug"
|
|
4981
|
+
}
|
|
4982
|
+
}
|
|
4983
|
+
},
|
|
4984
|
+
"required": [
|
|
4985
|
+
"username",
|
|
4986
|
+
"software",
|
|
4987
|
+
"plugins"
|
|
4988
|
+
]
|
|
4989
|
+
},
|
|
4990
|
+
"security": [
|
|
4991
|
+
{
|
|
4992
|
+
"apiToken": []
|
|
4993
|
+
}
|
|
4994
|
+
],
|
|
4995
|
+
"group": "wordpress"
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
"name": "hosting_installWordPressThemeV1",
|
|
4999
|
+
"description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.",
|
|
5000
|
+
"method": "POST",
|
|
5001
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install",
|
|
5002
|
+
"inputSchema": {
|
|
5003
|
+
"type": "object",
|
|
5004
|
+
"properties": {
|
|
5005
|
+
"username": {
|
|
5006
|
+
"type": "string",
|
|
5007
|
+
"description": "username parameter"
|
|
5008
|
+
},
|
|
5009
|
+
"software": {
|
|
5010
|
+
"type": "string",
|
|
5011
|
+
"description": "WordPress installation (software) identifier"
|
|
5012
|
+
},
|
|
5013
|
+
"theme": {
|
|
5014
|
+
"type": "string",
|
|
5015
|
+
"description": "Slug of the theme to install. Hostinger theme slugs (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme) trigger the custom installer and forward the optional palette/layout/font fields; any other WordPress theme slug uses the standard installer and ignores those fields."
|
|
5016
|
+
},
|
|
5017
|
+
"palette": {
|
|
5018
|
+
"type": "string",
|
|
5019
|
+
"description": "Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted."
|
|
5020
|
+
},
|
|
5021
|
+
"layout": {
|
|
5022
|
+
"type": "string",
|
|
5023
|
+
"description": "Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted."
|
|
5024
|
+
},
|
|
5025
|
+
"font": {
|
|
5026
|
+
"type": "string",
|
|
5027
|
+
"description": "Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.",
|
|
5028
|
+
"enum": [
|
|
5029
|
+
"professional",
|
|
5030
|
+
"modern",
|
|
5031
|
+
"elegant",
|
|
5032
|
+
"creative",
|
|
5033
|
+
"dynamic",
|
|
5034
|
+
"default"
|
|
5035
|
+
]
|
|
5036
|
+
}
|
|
5037
|
+
},
|
|
5038
|
+
"required": [
|
|
5039
|
+
"username",
|
|
5040
|
+
"software",
|
|
5041
|
+
"theme"
|
|
5042
|
+
]
|
|
5043
|
+
},
|
|
5044
|
+
"security": [
|
|
5045
|
+
{
|
|
5046
|
+
"apiToken": []
|
|
5047
|
+
}
|
|
5048
|
+
],
|
|
5049
|
+
"group": "wordpress"
|
|
4958
5050
|
}
|
|
4959
5051
|
];
|
|
4960
5052
|
export default tools;
|
|
@@ -1240,137 +1240,5 @@ export default [
|
|
|
1240
1240
|
}
|
|
1241
1241
|
],
|
|
1242
1242
|
"group": "hosting"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
"name": "hosting_installWordPressV1",
|
|
1246
|
-
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
1247
|
-
"method": "POST",
|
|
1248
|
-
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
1249
|
-
"inputSchema": {
|
|
1250
|
-
"type": "object",
|
|
1251
|
-
"properties": {
|
|
1252
|
-
"username": {
|
|
1253
|
-
"type": "string",
|
|
1254
|
-
"description": "username parameter"
|
|
1255
|
-
},
|
|
1256
|
-
"domain": {
|
|
1257
|
-
"type": "string",
|
|
1258
|
-
"description": "Domain of the existing website where WordPress will be installed"
|
|
1259
|
-
},
|
|
1260
|
-
"site_title": {
|
|
1261
|
-
"type": "string",
|
|
1262
|
-
"description": "Title of the WordPress site"
|
|
1263
|
-
},
|
|
1264
|
-
"language": {
|
|
1265
|
-
"type": "string",
|
|
1266
|
-
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
1267
|
-
},
|
|
1268
|
-
"directory": {
|
|
1269
|
-
"type": "string",
|
|
1270
|
-
"description": "Relative directory to install WordPress into. Defaults to the website root when omitted."
|
|
1271
|
-
},
|
|
1272
|
-
"overwrite": {
|
|
1273
|
-
"type": "boolean",
|
|
1274
|
-
"description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true."
|
|
1275
|
-
},
|
|
1276
|
-
"auto_updates": {
|
|
1277
|
-
"type": "string",
|
|
1278
|
-
"description": "WordPress core auto-update policy",
|
|
1279
|
-
"enum": [
|
|
1280
|
-
"all",
|
|
1281
|
-
"none",
|
|
1282
|
-
"minor"
|
|
1283
|
-
]
|
|
1284
|
-
},
|
|
1285
|
-
"version": {
|
|
1286
|
-
"type": "string",
|
|
1287
|
-
"description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected."
|
|
1288
|
-
},
|
|
1289
|
-
"credentials": {
|
|
1290
|
-
"type": "object",
|
|
1291
|
-
"description": "WordPress admin credentials",
|
|
1292
|
-
"properties": {
|
|
1293
|
-
"email": {
|
|
1294
|
-
"type": "string",
|
|
1295
|
-
"description": "email parameter"
|
|
1296
|
-
},
|
|
1297
|
-
"login": {
|
|
1298
|
-
"type": "string",
|
|
1299
|
-
"description": "WordPress admin username"
|
|
1300
|
-
},
|
|
1301
|
-
"password": {
|
|
1302
|
-
"type": "string",
|
|
1303
|
-
"description": "password parameter"
|
|
1304
|
-
}
|
|
1305
|
-
},
|
|
1306
|
-
"required": [
|
|
1307
|
-
"email",
|
|
1308
|
-
"login",
|
|
1309
|
-
"password"
|
|
1310
|
-
]
|
|
1311
|
-
},
|
|
1312
|
-
"database": {
|
|
1313
|
-
"type": "object",
|
|
1314
|
-
"description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.",
|
|
1315
|
-
"properties": {
|
|
1316
|
-
"name": {
|
|
1317
|
-
"type": "string",
|
|
1318
|
-
"description": "Database name (username prefix added if missing)"
|
|
1319
|
-
},
|
|
1320
|
-
"password": {
|
|
1321
|
-
"type": "string",
|
|
1322
|
-
"description": "password parameter"
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
},
|
|
1327
|
-
"required": [
|
|
1328
|
-
"username",
|
|
1329
|
-
"domain",
|
|
1330
|
-
"site_title",
|
|
1331
|
-
"credentials"
|
|
1332
|
-
]
|
|
1333
|
-
},
|
|
1334
|
-
"security": [
|
|
1335
|
-
{
|
|
1336
|
-
"apiToken": []
|
|
1337
|
-
}
|
|
1338
|
-
],
|
|
1339
|
-
"group": "hosting"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
"name": "hosting_listWordPressInstallationsV1",
|
|
1343
|
-
"description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.",
|
|
1344
|
-
"method": "GET",
|
|
1345
|
-
"path": "/api/hosting/v1/wordpress/installations",
|
|
1346
|
-
"inputSchema": {
|
|
1347
|
-
"type": "object",
|
|
1348
|
-
"properties": {
|
|
1349
|
-
"username": {
|
|
1350
|
-
"type": "string",
|
|
1351
|
-
"description": "Filter by specific username"
|
|
1352
|
-
},
|
|
1353
|
-
"domain": {
|
|
1354
|
-
"type": "string",
|
|
1355
|
-
"description": "Filter by domain name (exact match)"
|
|
1356
|
-
},
|
|
1357
|
-
"ownership": {
|
|
1358
|
-
"type": "string",
|
|
1359
|
-
"description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.",
|
|
1360
|
-
"enum": [
|
|
1361
|
-
"owned",
|
|
1362
|
-
"managed",
|
|
1363
|
-
"all"
|
|
1364
|
-
]
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
"required": []
|
|
1368
|
-
},
|
|
1369
|
-
"security": [
|
|
1370
|
-
{
|
|
1371
|
-
"apiToken": []
|
|
1372
|
-
}
|
|
1373
|
-
],
|
|
1374
|
-
"group": "hosting"
|
|
1375
1243
|
}
|
|
1376
1244
|
];
|
|
@@ -1250,138 +1250,6 @@ const tools: OpenApiTool[] = [
|
|
|
1250
1250
|
}
|
|
1251
1251
|
],
|
|
1252
1252
|
"group": "hosting"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"name": "hosting_installWordPressV1",
|
|
1256
|
-
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
1257
|
-
"method": "POST",
|
|
1258
|
-
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
1259
|
-
"inputSchema": {
|
|
1260
|
-
"type": "object",
|
|
1261
|
-
"properties": {
|
|
1262
|
-
"username": {
|
|
1263
|
-
"type": "string",
|
|
1264
|
-
"description": "username parameter"
|
|
1265
|
-
},
|
|
1266
|
-
"domain": {
|
|
1267
|
-
"type": "string",
|
|
1268
|
-
"description": "Domain of the existing website where WordPress will be installed"
|
|
1269
|
-
},
|
|
1270
|
-
"site_title": {
|
|
1271
|
-
"type": "string",
|
|
1272
|
-
"description": "Title of the WordPress site"
|
|
1273
|
-
},
|
|
1274
|
-
"language": {
|
|
1275
|
-
"type": "string",
|
|
1276
|
-
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
1277
|
-
},
|
|
1278
|
-
"directory": {
|
|
1279
|
-
"type": "string",
|
|
1280
|
-
"description": "Relative directory to install WordPress into. Defaults to the website root when omitted."
|
|
1281
|
-
},
|
|
1282
|
-
"overwrite": {
|
|
1283
|
-
"type": "boolean",
|
|
1284
|
-
"description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true."
|
|
1285
|
-
},
|
|
1286
|
-
"auto_updates": {
|
|
1287
|
-
"type": "string",
|
|
1288
|
-
"description": "WordPress core auto-update policy",
|
|
1289
|
-
"enum": [
|
|
1290
|
-
"all",
|
|
1291
|
-
"none",
|
|
1292
|
-
"minor"
|
|
1293
|
-
]
|
|
1294
|
-
},
|
|
1295
|
-
"version": {
|
|
1296
|
-
"type": "string",
|
|
1297
|
-
"description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected."
|
|
1298
|
-
},
|
|
1299
|
-
"credentials": {
|
|
1300
|
-
"type": "object",
|
|
1301
|
-
"description": "WordPress admin credentials",
|
|
1302
|
-
"properties": {
|
|
1303
|
-
"email": {
|
|
1304
|
-
"type": "string",
|
|
1305
|
-
"description": "email parameter"
|
|
1306
|
-
},
|
|
1307
|
-
"login": {
|
|
1308
|
-
"type": "string",
|
|
1309
|
-
"description": "WordPress admin username"
|
|
1310
|
-
},
|
|
1311
|
-
"password": {
|
|
1312
|
-
"type": "string",
|
|
1313
|
-
"description": "password parameter"
|
|
1314
|
-
}
|
|
1315
|
-
},
|
|
1316
|
-
"required": [
|
|
1317
|
-
"email",
|
|
1318
|
-
"login",
|
|
1319
|
-
"password"
|
|
1320
|
-
]
|
|
1321
|
-
},
|
|
1322
|
-
"database": {
|
|
1323
|
-
"type": "object",
|
|
1324
|
-
"description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.",
|
|
1325
|
-
"properties": {
|
|
1326
|
-
"name": {
|
|
1327
|
-
"type": "string",
|
|
1328
|
-
"description": "Database name (username prefix added if missing)"
|
|
1329
|
-
},
|
|
1330
|
-
"password": {
|
|
1331
|
-
"type": "string",
|
|
1332
|
-
"description": "password parameter"
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
},
|
|
1337
|
-
"required": [
|
|
1338
|
-
"username",
|
|
1339
|
-
"domain",
|
|
1340
|
-
"site_title",
|
|
1341
|
-
"credentials"
|
|
1342
|
-
]
|
|
1343
|
-
},
|
|
1344
|
-
"security": [
|
|
1345
|
-
{
|
|
1346
|
-
"apiToken": []
|
|
1347
|
-
}
|
|
1348
|
-
],
|
|
1349
|
-
"group": "hosting"
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
"name": "hosting_listWordPressInstallationsV1",
|
|
1353
|
-
"description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.",
|
|
1354
|
-
"method": "GET",
|
|
1355
|
-
"path": "/api/hosting/v1/wordpress/installations",
|
|
1356
|
-
"inputSchema": {
|
|
1357
|
-
"type": "object",
|
|
1358
|
-
"properties": {
|
|
1359
|
-
"username": {
|
|
1360
|
-
"type": "string",
|
|
1361
|
-
"description": "Filter by specific username"
|
|
1362
|
-
},
|
|
1363
|
-
"domain": {
|
|
1364
|
-
"type": "string",
|
|
1365
|
-
"description": "Filter by domain name (exact match)"
|
|
1366
|
-
},
|
|
1367
|
-
"ownership": {
|
|
1368
|
-
"type": "string",
|
|
1369
|
-
"description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.",
|
|
1370
|
-
"enum": [
|
|
1371
|
-
"owned",
|
|
1372
|
-
"managed",
|
|
1373
|
-
"all"
|
|
1374
|
-
]
|
|
1375
|
-
}
|
|
1376
|
-
},
|
|
1377
|
-
"required": []
|
|
1378
|
-
},
|
|
1379
|
-
"security": [
|
|
1380
|
-
{
|
|
1381
|
-
"apiToken": []
|
|
1382
|
-
}
|
|
1383
|
-
],
|
|
1384
|
-
"group": "hosting"
|
|
1385
1253
|
}
|
|
1386
1254
|
];
|
|
1387
1255
|
export default tools;
|