hostinger-api-mcp 0.2.3 → 0.2.5
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 +95 -2
- package/package.json +1 -1
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +346 -0
- package/src/core/tools/all.ts +346 -0
- package/src/core/tools/hosting.js +346 -0
- package/src/core/tools/hosting.ts +346 -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/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/types.d.ts +245 -0
package/types.d.ts
CHANGED
|
@@ -796,6 +796,91 @@ Use this endpoint to view which domains use specific contact profiles.
|
|
|
796
796
|
response: any; // Response structure will depend on the API
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
+
/**
|
|
800
|
+
* Returns a paginated list of databases for the specified account.
|
|
801
|
+
|
|
802
|
+
Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
803
|
+
*/
|
|
804
|
+
"hosting_listAccountDatabasesV1": {
|
|
805
|
+
params: {
|
|
806
|
+
/**
|
|
807
|
+
* username parameter
|
|
808
|
+
*/
|
|
809
|
+
username: string;
|
|
810
|
+
/**
|
|
811
|
+
* Page number
|
|
812
|
+
*/
|
|
813
|
+
page?: number;
|
|
814
|
+
/**
|
|
815
|
+
* Number of items per page
|
|
816
|
+
*/
|
|
817
|
+
per_page?: number;
|
|
818
|
+
/**
|
|
819
|
+
* Filter by domain name (exact match)
|
|
820
|
+
*/
|
|
821
|
+
domain?: string;
|
|
822
|
+
/**
|
|
823
|
+
* When used with domain, return only databases assigned to that domain.
|
|
824
|
+
*/
|
|
825
|
+
is_assigned?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Search databases by name, user, or creation date.
|
|
828
|
+
*/
|
|
829
|
+
search?: string;
|
|
830
|
+
};
|
|
831
|
+
response: any; // Response structure will depend on the API
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Creates a database with a database user and password for the specified account.
|
|
836
|
+
|
|
837
|
+
The database name and user are automatically prefixed with the account username when needed.
|
|
838
|
+
*/
|
|
839
|
+
"hosting_createAccountDatabaseV1": {
|
|
840
|
+
params: {
|
|
841
|
+
/**
|
|
842
|
+
* username parameter
|
|
843
|
+
*/
|
|
844
|
+
username: string;
|
|
845
|
+
/**
|
|
846
|
+
* Database name. If the account username prefix is omitted, it is added automatically.
|
|
847
|
+
*/
|
|
848
|
+
name: string;
|
|
849
|
+
/**
|
|
850
|
+
* Database user. If the account username prefix is omitted, it is added automatically.
|
|
851
|
+
*/
|
|
852
|
+
user: string;
|
|
853
|
+
/**
|
|
854
|
+
* Database user password.
|
|
855
|
+
*/
|
|
856
|
+
password: string;
|
|
857
|
+
/**
|
|
858
|
+
* Website domain assigned to the database.
|
|
859
|
+
*/
|
|
860
|
+
website_domain: string;
|
|
861
|
+
};
|
|
862
|
+
response: any; // Response structure will depend on the API
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Permanently deletes a database and its remote connections.
|
|
867
|
+
|
|
868
|
+
The database name must be the full name returned by the list databases endpoint.
|
|
869
|
+
*/
|
|
870
|
+
"hosting_deleteAccountDatabaseV1": {
|
|
871
|
+
params: {
|
|
872
|
+
/**
|
|
873
|
+
* username parameter
|
|
874
|
+
*/
|
|
875
|
+
username: string;
|
|
876
|
+
/**
|
|
877
|
+
* Full database name as returned by the list databases endpoint.
|
|
878
|
+
*/
|
|
879
|
+
name: string;
|
|
880
|
+
};
|
|
881
|
+
response: any; // Response structure will depend on the API
|
|
882
|
+
};
|
|
883
|
+
|
|
799
884
|
/**
|
|
800
885
|
* Retrieve a list of datacenters available for setting up hosting plans
|
|
801
886
|
based on available datacenter capacity and hosting plan of your order.
|
|
@@ -824,6 +909,73 @@ and you can always connect a custom domain to your site later.
|
|
|
824
909
|
response: any; // Response structure will depend on the API
|
|
825
910
|
};
|
|
826
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Retrieve all parked or alias domains created under the selected website.
|
|
914
|
+
|
|
915
|
+
Use this endpoint to inspect parked domain configuration for a specific website,
|
|
916
|
+
including the parent domain and root directory assigned to each parked domain.
|
|
917
|
+
*/
|
|
918
|
+
"hosting_listWebsiteParkedDomainsV1": {
|
|
919
|
+
params: {
|
|
920
|
+
/**
|
|
921
|
+
* username parameter
|
|
922
|
+
*/
|
|
923
|
+
username: string;
|
|
924
|
+
/**
|
|
925
|
+
* Domain name
|
|
926
|
+
*/
|
|
927
|
+
domain: string;
|
|
928
|
+
};
|
|
929
|
+
response: any; // Response structure will depend on the API
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Create a parked or alias domain for the selected website.
|
|
934
|
+
|
|
935
|
+
Provide a domain name or IP address to park on the website so it serves the same content
|
|
936
|
+
as the parent domain.
|
|
937
|
+
*/
|
|
938
|
+
"hosting_createWebsiteParkedDomainV1": {
|
|
939
|
+
params: {
|
|
940
|
+
/**
|
|
941
|
+
* username parameter
|
|
942
|
+
*/
|
|
943
|
+
username: string;
|
|
944
|
+
/**
|
|
945
|
+
* Domain name
|
|
946
|
+
*/
|
|
947
|
+
domain: string;
|
|
948
|
+
/**
|
|
949
|
+
* Domain name or IP address to park on the selected website
|
|
950
|
+
*/
|
|
951
|
+
parked_domain: string;
|
|
952
|
+
};
|
|
953
|
+
response: any; // Response structure will depend on the API
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Delete an existing parked or alias domain from the selected website.
|
|
958
|
+
|
|
959
|
+
Use this endpoint to remove parked domains that are no longer needed.
|
|
960
|
+
*/
|
|
961
|
+
"hosting_deleteWebsiteParkedDomainV1": {
|
|
962
|
+
params: {
|
|
963
|
+
/**
|
|
964
|
+
* username parameter
|
|
965
|
+
*/
|
|
966
|
+
username: string;
|
|
967
|
+
/**
|
|
968
|
+
* Domain name
|
|
969
|
+
*/
|
|
970
|
+
domain: string;
|
|
971
|
+
/**
|
|
972
|
+
* parkedDomain parameter
|
|
973
|
+
*/
|
|
974
|
+
parkedDomain: string;
|
|
975
|
+
};
|
|
976
|
+
response: any; // Response structure will depend on the API
|
|
977
|
+
};
|
|
978
|
+
|
|
827
979
|
/**
|
|
828
980
|
* Retrieve all subdomains created under the selected website.
|
|
829
981
|
|
|
@@ -1021,6 +1173,99 @@ websites list endpoint to see when your new website becomes available.
|
|
|
1021
1173
|
response: any; // Response structure will depend on the API
|
|
1022
1174
|
};
|
|
1023
1175
|
|
|
1176
|
+
/**
|
|
1177
|
+
* Install WordPress on an existing website.
|
|
1178
|
+
|
|
1179
|
+
The website must already exist before calling this endpoint. To create a new
|
|
1180
|
+
website first, use POST /api/hosting/v1/websites and poll
|
|
1181
|
+
GET /api/hosting/v1/websites until it appears.
|
|
1182
|
+
|
|
1183
|
+
Call GET /api/hosting/v1/wordpress/installations filtered by username and
|
|
1184
|
+
domain before proceeding to check whether WordPress is already installed on
|
|
1185
|
+
the target domain/path. If WordPress already exists and `overwrite` is false
|
|
1186
|
+
(the default), the async job will fail.
|
|
1187
|
+
|
|
1188
|
+
This operation is asynchronous: a successful response only means the install
|
|
1189
|
+
job has been queued, not that WordPress is ready. Installation typically
|
|
1190
|
+
takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered
|
|
1191
|
+
by username and domain to track progress. When the installation appears in
|
|
1192
|
+
that list, WordPress is ready.
|
|
1193
|
+
*/
|
|
1194
|
+
"hosting_installWordPressV1": {
|
|
1195
|
+
params: {
|
|
1196
|
+
/**
|
|
1197
|
+
* username parameter
|
|
1198
|
+
*/
|
|
1199
|
+
username: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* Domain of the existing website where WordPress will be installed
|
|
1202
|
+
*/
|
|
1203
|
+
domain: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Title of the WordPress site
|
|
1206
|
+
*/
|
|
1207
|
+
site_title: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* WordPress locale. Defaults to en_US when omitted.
|
|
1210
|
+
*/
|
|
1211
|
+
language?: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* Relative directory to install WordPress into. Defaults to the website root when omitted.
|
|
1214
|
+
*/
|
|
1215
|
+
directory?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* 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.
|
|
1218
|
+
*/
|
|
1219
|
+
overwrite?: boolean;
|
|
1220
|
+
/**
|
|
1221
|
+
* WordPress core auto-update policy
|
|
1222
|
+
*/
|
|
1223
|
+
auto_updates?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected.
|
|
1226
|
+
*/
|
|
1227
|
+
version?: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* WordPress admin credentials
|
|
1230
|
+
*/
|
|
1231
|
+
credentials: object;
|
|
1232
|
+
/**
|
|
1233
|
+
* 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.
|
|
1234
|
+
*/
|
|
1235
|
+
database?: object;
|
|
1236
|
+
};
|
|
1237
|
+
response: any; // Response structure will depend on the API
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* List WordPress installations accessible to the authenticated client.
|
|
1242
|
+
|
|
1243
|
+
Use this endpoint to discover existing WordPress installations and to poll
|
|
1244
|
+
for installation status after calling the install endpoint. When a newly
|
|
1245
|
+
requested installation appears in this list, WordPress is ready. Filter by
|
|
1246
|
+
username and domain to narrow results to a specific website.
|
|
1247
|
+
|
|
1248
|
+
Each installation includes a `valid` flag and, when invalid, a
|
|
1249
|
+
`validationError` describing why.
|
|
1250
|
+
*/
|
|
1251
|
+
"hosting_listWordPressInstallationsV1": {
|
|
1252
|
+
params: {
|
|
1253
|
+
/**
|
|
1254
|
+
* Filter by specific username
|
|
1255
|
+
*/
|
|
1256
|
+
username?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Filter by domain name (exact match)
|
|
1259
|
+
*/
|
|
1260
|
+
domain?: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* Filter by ownership type. Defaults to "owned". Use "all" to include both owned and managed installations.
|
|
1263
|
+
*/
|
|
1264
|
+
ownership?: string;
|
|
1265
|
+
};
|
|
1266
|
+
response: any; // Response structure will depend on the API
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1024
1269
|
/**
|
|
1025
1270
|
* Delete a contact with the specified UUID.
|
|
1026
1271
|
|