hostinger-api-mcp 1.28.0 → 1.30.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 +156 -2
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- 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 +322 -0
- package/src/core/tools/all.ts +322 -0
- package/src/core/tools/domains.js +322 -0
- package/src/core/tools/domains.ts +322 -0
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- 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/mail.js +1 -1
- package/src/servers/mail.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 +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +240 -0
package/types.d.ts
CHANGED
|
@@ -1232,6 +1232,167 @@ for example when the confirmation email cannot be received, without waiting out
|
|
|
1232
1232
|
response: any; // Response structure will depend on the API
|
|
1233
1233
|
};
|
|
1234
1234
|
|
|
1235
|
+
/**
|
|
1236
|
+
* Retrieve the incoming move for a specified domain.
|
|
1237
|
+
|
|
1238
|
+
Returns 404 when no account is moving this domain to you.
|
|
1239
|
+
|
|
1240
|
+
Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
1241
|
+
*/
|
|
1242
|
+
"domains_getIncomingDomainMoveV1": {
|
|
1243
|
+
params: {
|
|
1244
|
+
/**
|
|
1245
|
+
* Domain name
|
|
1246
|
+
*/
|
|
1247
|
+
domain: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
1250
|
+
*/
|
|
1251
|
+
force_sync?: boolean;
|
|
1252
|
+
};
|
|
1253
|
+
response: any; // Response structure will depend on the API
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Accept an incoming move for a specified domain.
|
|
1258
|
+
|
|
1259
|
+
The provided WHOIS profiles become the contacts of the domain, so they must belong
|
|
1260
|
+
to your account and satisfy the requirements of the TLD. Only the contact types the
|
|
1261
|
+
domain actually uses are applied, but all four profile IDs have to be provided.
|
|
1262
|
+
|
|
1263
|
+
The move has to still be waiting for your decision, already accepted moves
|
|
1264
|
+
cannot be accepted again.
|
|
1265
|
+
|
|
1266
|
+
Accepting does not complete the move. A confirmation email is sent to the email address of
|
|
1267
|
+
the new owner contact, and the domain changes hands only after the change is confirmed from it.
|
|
1268
|
+
Until then the move stays in the `activating` status, which can be followed with the
|
|
1269
|
+
[incoming move endpoint](#tag/domains-move).
|
|
1270
|
+
|
|
1271
|
+
Use this endpoint to take ownership of a domain offered to you.
|
|
1272
|
+
*/
|
|
1273
|
+
"domains_acceptIncomingDomainMoveV1": {
|
|
1274
|
+
params: {
|
|
1275
|
+
/**
|
|
1276
|
+
* Domain name
|
|
1277
|
+
*/
|
|
1278
|
+
domain: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* WHOIS profiles of the accepting account. Only the contact types required by the TLD are applied, but all four IDs must be provided.
|
|
1281
|
+
*/
|
|
1282
|
+
domain_contacts: object;
|
|
1283
|
+
};
|
|
1284
|
+
response: any; // Response structure will depend on the API
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Reject an incoming move for a specified domain.
|
|
1289
|
+
|
|
1290
|
+
The domain stays in the account which initiated the move.
|
|
1291
|
+
Moves you have already accepted cannot be rejected anymore.
|
|
1292
|
+
|
|
1293
|
+
Use this endpoint to decline a domain you do not want to take over.
|
|
1294
|
+
*/
|
|
1295
|
+
"domains_rejectIncomingDomainMoveV1": {
|
|
1296
|
+
params: {
|
|
1297
|
+
/**
|
|
1298
|
+
* Domain name
|
|
1299
|
+
*/
|
|
1300
|
+
domain: string;
|
|
1301
|
+
};
|
|
1302
|
+
response: any; // Response structure will depend on the API
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Retrieve all domains other Hostinger accounts are moving to your account.
|
|
1307
|
+
|
|
1308
|
+
Moves of every status are returned, including the ones which already completed.
|
|
1309
|
+
|
|
1310
|
+
Use this endpoint to find domains waiting for you to accept them.
|
|
1311
|
+
*/
|
|
1312
|
+
"domains_getIncomingDomainMoveListV1": {
|
|
1313
|
+
params: {
|
|
1314
|
+
|
|
1315
|
+
};
|
|
1316
|
+
response: any; // Response structure will depend on the API
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Retrieve the outgoing move for a specified domain.
|
|
1321
|
+
|
|
1322
|
+
Returns 404 when the domain has no move in progress.
|
|
1323
|
+
|
|
1324
|
+
Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
1325
|
+
*/
|
|
1326
|
+
"domains_getOutgoingDomainMoveV1": {
|
|
1327
|
+
params: {
|
|
1328
|
+
/**
|
|
1329
|
+
* Domain name
|
|
1330
|
+
*/
|
|
1331
|
+
domain: string;
|
|
1332
|
+
};
|
|
1333
|
+
response: any; // Response structure will depend on the API
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Initiate a move of a specified domain to another Hostinger account.
|
|
1338
|
+
|
|
1339
|
+
The receiving account has to already exist and accept the move before the domain changes hands.
|
|
1340
|
+
|
|
1341
|
+
The domain must be active. The subscription it belongs to is resolved automatically,
|
|
1342
|
+
and the request is rejected with a 404 status code when the domain has no domain
|
|
1343
|
+
subscription of its own.
|
|
1344
|
+
|
|
1345
|
+
Domains protected by premium protection require an additional verification step,
|
|
1346
|
+
such requests are rejected with a 428 status code.
|
|
1347
|
+
|
|
1348
|
+
Use this endpoint to hand a domain over to another Hostinger user.
|
|
1349
|
+
*/
|
|
1350
|
+
"domains_startOutgoingDomainMoveV1": {
|
|
1351
|
+
params: {
|
|
1352
|
+
/**
|
|
1353
|
+
* Domain name
|
|
1354
|
+
*/
|
|
1355
|
+
domain: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* Email address of the Hostinger account receiving the domain
|
|
1358
|
+
*/
|
|
1359
|
+
new_customer_email: string;
|
|
1360
|
+
};
|
|
1361
|
+
response: any; // Response structure will depend on the API
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Cancel an outgoing move for a specified domain.
|
|
1366
|
+
|
|
1367
|
+
The move can only be cancelled while the receiving account has not accepted it yet.
|
|
1368
|
+
The domain stays in your account.
|
|
1369
|
+
|
|
1370
|
+
Use this endpoint to withdraw a move you no longer want to complete.
|
|
1371
|
+
*/
|
|
1372
|
+
"domains_cancelOutgoingDomainMoveV1": {
|
|
1373
|
+
params: {
|
|
1374
|
+
/**
|
|
1375
|
+
* Domain name
|
|
1376
|
+
*/
|
|
1377
|
+
domain: string;
|
|
1378
|
+
};
|
|
1379
|
+
response: any; // Response structure will depend on the API
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Retrieve all domains you are moving to other Hostinger accounts.
|
|
1384
|
+
|
|
1385
|
+
Only moves which have not completed yet are returned.
|
|
1386
|
+
|
|
1387
|
+
Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
1388
|
+
*/
|
|
1389
|
+
"domains_getOutgoingDomainMoveListV1": {
|
|
1390
|
+
params: {
|
|
1391
|
+
|
|
1392
|
+
};
|
|
1393
|
+
response: any; // Response structure will depend on the API
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1235
1396
|
/**
|
|
1236
1397
|
* Retrieve the authorization (EPP) code for a specified domain so it can be transferred
|
|
1237
1398
|
away from Hostinger to another registrar.
|
|
@@ -1250,6 +1411,43 @@ Use this endpoint to obtain the code required to transfer a domain to another re
|
|
|
1250
1411
|
response: any; // Response structure will depend on the API
|
|
1251
1412
|
};
|
|
1252
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* Claim a free domain available on your account and register it.
|
|
1416
|
+
|
|
1417
|
+
Unlike purchasing a domain, this consumes a free domain you already have,
|
|
1418
|
+
so no payment method is required.
|
|
1419
|
+
|
|
1420
|
+
A successful response means the domain is registered. If registration fails, login to
|
|
1421
|
+
[hPanel](https://hpanel.hostinger.com/) and check domain registration status.
|
|
1422
|
+
|
|
1423
|
+
If no WHOIS information is provided, default contact information for that TLD will be used.
|
|
1424
|
+
Before making request, ensure WHOIS information for desired TLD exists in your account.
|
|
1425
|
+
|
|
1426
|
+
Some TLDs require `additional_details` to be provided and these will be validated before claiming.
|
|
1427
|
+
|
|
1428
|
+
Requests which cannot be fulfilled are rejected with an error code in the response body,
|
|
1429
|
+
for example `2037` when no free domain is available.
|
|
1430
|
+
|
|
1431
|
+
Use this endpoint to register a domain using a free domain from your account.
|
|
1432
|
+
*/
|
|
1433
|
+
"domains_claimFreeDomainV1": {
|
|
1434
|
+
params: {
|
|
1435
|
+
/**
|
|
1436
|
+
* Domain name
|
|
1437
|
+
*/
|
|
1438
|
+
domain: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* Domain contact information
|
|
1441
|
+
*/
|
|
1442
|
+
domain_contacts?: object;
|
|
1443
|
+
/**
|
|
1444
|
+
* Additional registration data, possible values depends on TLD
|
|
1445
|
+
*/
|
|
1446
|
+
additional_details?: object;
|
|
1447
|
+
};
|
|
1448
|
+
response: any; // Response structure will depend on the API
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1253
1451
|
/**
|
|
1254
1452
|
* Enable domain lock for the domain.
|
|
1255
1453
|
|
|
@@ -1439,6 +1637,48 @@ Use this endpoint to configure custom DNS hosting for domains.
|
|
|
1439
1637
|
response: any; // Response structure will depend on the API
|
|
1440
1638
|
};
|
|
1441
1639
|
|
|
1640
|
+
/**
|
|
1641
|
+
* Claim a free domain transfer available on your account and start the transfer.
|
|
1642
|
+
|
|
1643
|
+
Unlike purchasing a transfer, this consumes a free domain transfer you already have,
|
|
1644
|
+
so no payment method is required.
|
|
1645
|
+
|
|
1646
|
+
Before making request, unlock the domain at the current registrar and get its authorization
|
|
1647
|
+
code. The transfer is validated first, so domains which cannot be transferred are rejected
|
|
1648
|
+
before the free domain transfer is consumed.
|
|
1649
|
+
|
|
1650
|
+
A successful response means the transfer has been started. Completion depends on the current
|
|
1651
|
+
registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer).
|
|
1652
|
+
|
|
1653
|
+
If no WHOIS information is provided, default contact information for that TLD will be used.
|
|
1654
|
+
Before making request, ensure WHOIS information for desired TLD exists in your account.
|
|
1655
|
+
|
|
1656
|
+
Requests which cannot be fulfilled are rejected with an error code in the response body.
|
|
1657
|
+
|
|
1658
|
+
Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
1659
|
+
*/
|
|
1660
|
+
"domains_claimFreeDomainTransferV1": {
|
|
1661
|
+
params: {
|
|
1662
|
+
/**
|
|
1663
|
+
* Domain name
|
|
1664
|
+
*/
|
|
1665
|
+
domain: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Authorization code from the current registrar
|
|
1668
|
+
*/
|
|
1669
|
+
auth_code: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* Domain contact information
|
|
1672
|
+
*/
|
|
1673
|
+
domain_contacts?: object;
|
|
1674
|
+
/**
|
|
1675
|
+
* Keep the existing nameservers of the domain
|
|
1676
|
+
*/
|
|
1677
|
+
should_keep_ns?: boolean;
|
|
1678
|
+
};
|
|
1679
|
+
response: any; // Response structure will depend on the API
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1442
1682
|
/**
|
|
1443
1683
|
* Retrieve the transfer for a specified domain.
|
|
1444
1684
|
|