hostinger-api-mcp 0.0.13 → 0.0.15
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 +198 -5
- package/package.json +1 -1
- package/server.js +430 -11
- package/server.ts +430 -11
- package/types.d.ts +276 -8
package/types.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ We recommend use other payment methods than `credit_card` if you encounter this
|
|
|
38
38
|
*/
|
|
39
39
|
items: array;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Discount coupon codes
|
|
42
42
|
*/
|
|
43
43
|
coupons?: array;
|
|
44
44
|
};
|
|
@@ -265,21 +265,109 @@ Endpoint has rate limit of 10 requests per minute.
|
|
|
265
265
|
"undefined": {
|
|
266
266
|
params: {
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
268
|
+
* Domain name without TLD
|
|
269
269
|
*/
|
|
270
270
|
domain: string;
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* TLDs to check (without trailing dot)
|
|
273
273
|
*/
|
|
274
274
|
tlds: array;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
276
|
+
* Should response include alternatives
|
|
277
277
|
*/
|
|
278
278
|
with_alternatives?: boolean;
|
|
279
279
|
};
|
|
280
280
|
response: any; // Response structure will depend on the API
|
|
281
281
|
};
|
|
282
282
|
|
|
283
|
+
/**
|
|
284
|
+
* This endpoint retrieves domain forwarding data.
|
|
285
|
+
*/
|
|
286
|
+
"undefined": {
|
|
287
|
+
params: {
|
|
288
|
+
/**
|
|
289
|
+
* Domain name
|
|
290
|
+
*/
|
|
291
|
+
domain: string;
|
|
292
|
+
};
|
|
293
|
+
response: any; // Response structure will depend on the API
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* This endpoint deletes domain forwarding data.
|
|
298
|
+
*/
|
|
299
|
+
"undefined": {
|
|
300
|
+
params: {
|
|
301
|
+
/**
|
|
302
|
+
* Domain name
|
|
303
|
+
*/
|
|
304
|
+
domain: string;
|
|
305
|
+
};
|
|
306
|
+
response: any; // Response structure will depend on the API
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* This endpoint creates domain forwarding data.
|
|
311
|
+
*/
|
|
312
|
+
"undefined": {
|
|
313
|
+
params: {
|
|
314
|
+
/**
|
|
315
|
+
* Domain name
|
|
316
|
+
*/
|
|
317
|
+
domain: string;
|
|
318
|
+
/**
|
|
319
|
+
* Redirect type
|
|
320
|
+
*/
|
|
321
|
+
redirect_type: string;
|
|
322
|
+
/**
|
|
323
|
+
* URL to forward domain to
|
|
324
|
+
*/
|
|
325
|
+
redirect_url: string;
|
|
326
|
+
};
|
|
327
|
+
response: any; // Response structure will depend on the API
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled,
|
|
332
|
+
the domain cannot be transferred to another registrar without first disabling the lock.
|
|
333
|
+
*/
|
|
334
|
+
"undefined": {
|
|
335
|
+
params: {
|
|
336
|
+
/**
|
|
337
|
+
* Domain name
|
|
338
|
+
*/
|
|
339
|
+
domain: string;
|
|
340
|
+
};
|
|
341
|
+
response: any; // Response structure will depend on the API
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled
|
|
346
|
+
before transferring the domain to another registrar.
|
|
347
|
+
*/
|
|
348
|
+
"undefined": {
|
|
349
|
+
params: {
|
|
350
|
+
/**
|
|
351
|
+
* Domain name
|
|
352
|
+
*/
|
|
353
|
+
domain: string;
|
|
354
|
+
};
|
|
355
|
+
response: any; // Response structure will depend on the API
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* This endpoint retrieves details for specified domain.
|
|
360
|
+
*/
|
|
361
|
+
"undefined": {
|
|
362
|
+
params: {
|
|
363
|
+
/**
|
|
364
|
+
* Domain name
|
|
365
|
+
*/
|
|
366
|
+
domain: string;
|
|
367
|
+
};
|
|
368
|
+
response: any; // Response structure will depend on the API
|
|
369
|
+
};
|
|
370
|
+
|
|
283
371
|
/**
|
|
284
372
|
* This endpoint retrieves a list of all domains associated with your account.
|
|
285
373
|
*/
|
|
@@ -290,6 +378,186 @@ Endpoint has rate limit of 10 requests per minute.
|
|
|
290
378
|
response: any; // Response structure will depend on the API
|
|
291
379
|
};
|
|
292
380
|
|
|
381
|
+
/**
|
|
382
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status.
|
|
383
|
+
|
|
384
|
+
If no payment method is provided, default will be used.
|
|
385
|
+
|
|
386
|
+
If no WHOIS information is provided, default for that TLD will be used.
|
|
387
|
+
Before making request make sure that WHOIS information for TLD exists.
|
|
388
|
+
|
|
389
|
+
Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
390
|
+
*/
|
|
391
|
+
"undefined": {
|
|
392
|
+
params: {
|
|
393
|
+
/**
|
|
394
|
+
* Domain name
|
|
395
|
+
*/
|
|
396
|
+
domain: string;
|
|
397
|
+
/**
|
|
398
|
+
* Catalog price item ID
|
|
399
|
+
*/
|
|
400
|
+
item_id: string;
|
|
401
|
+
/**
|
|
402
|
+
* Payment method ID
|
|
403
|
+
*/
|
|
404
|
+
payment_method_id?: number;
|
|
405
|
+
/**
|
|
406
|
+
* Domain contact information
|
|
407
|
+
*/
|
|
408
|
+
domain_contacts?: object;
|
|
409
|
+
/**
|
|
410
|
+
* Additional registration data, possible values depends on TLD
|
|
411
|
+
*/
|
|
412
|
+
additional_details?: object;
|
|
413
|
+
/**
|
|
414
|
+
* Discount coupon codes
|
|
415
|
+
*/
|
|
416
|
+
coupons?: array;
|
|
417
|
+
};
|
|
418
|
+
response: any; // Response structure will depend on the API
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* This endpoint enables privacy protection for the domain.
|
|
423
|
+
When privacy protection is enabled, the domain owner's personal information is hidden from the public WHOIS database.
|
|
424
|
+
*/
|
|
425
|
+
"undefined": {
|
|
426
|
+
params: {
|
|
427
|
+
/**
|
|
428
|
+
* Domain name
|
|
429
|
+
*/
|
|
430
|
+
domain: string;
|
|
431
|
+
};
|
|
432
|
+
response: any; // Response structure will depend on the API
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* This endpoint disables privacy protection for the domain.
|
|
437
|
+
When privacy protection is disabled, the domain owner's personal information is visible in the public WHOIS database.
|
|
438
|
+
*/
|
|
439
|
+
"undefined": {
|
|
440
|
+
params: {
|
|
441
|
+
/**
|
|
442
|
+
* Domain name
|
|
443
|
+
*/
|
|
444
|
+
domain: string;
|
|
445
|
+
};
|
|
446
|
+
response: any; // Response structure will depend on the API
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* This endpoint sets the nameservers for a specified domain.
|
|
451
|
+
|
|
452
|
+
Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
453
|
+
*/
|
|
454
|
+
"undefined": {
|
|
455
|
+
params: {
|
|
456
|
+
/**
|
|
457
|
+
* Domain name
|
|
458
|
+
*/
|
|
459
|
+
domain: string;
|
|
460
|
+
/**
|
|
461
|
+
* First name server
|
|
462
|
+
*/
|
|
463
|
+
ns1: string;
|
|
464
|
+
/**
|
|
465
|
+
* Second name server
|
|
466
|
+
*/
|
|
467
|
+
ns2: string;
|
|
468
|
+
/**
|
|
469
|
+
* Third name server
|
|
470
|
+
*/
|
|
471
|
+
ns3?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Fourth name server
|
|
474
|
+
*/
|
|
475
|
+
ns4?: string;
|
|
476
|
+
};
|
|
477
|
+
response: any; // Response structure will depend on the API
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
482
|
+
*/
|
|
483
|
+
"undefined": {
|
|
484
|
+
params: {
|
|
485
|
+
/**
|
|
486
|
+
* WHOIS ID
|
|
487
|
+
*/
|
|
488
|
+
whoisId: number;
|
|
489
|
+
};
|
|
490
|
+
response: any; // Response structure will depend on the API
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* This endpoint deletes WHOIS contact profile.
|
|
495
|
+
*/
|
|
496
|
+
"undefined": {
|
|
497
|
+
params: {
|
|
498
|
+
/**
|
|
499
|
+
* WHOIS ID
|
|
500
|
+
*/
|
|
501
|
+
whoisId: number;
|
|
502
|
+
};
|
|
503
|
+
response: any; // Response structure will depend on the API
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
508
|
+
*/
|
|
509
|
+
"undefined": {
|
|
510
|
+
params: {
|
|
511
|
+
/**
|
|
512
|
+
* Filter by TLD (without trailing dot)
|
|
513
|
+
*/
|
|
514
|
+
tld?: string;
|
|
515
|
+
};
|
|
516
|
+
response: any; // Response structure will depend on the API
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* This endpoint creates WHOIS contact profile.
|
|
521
|
+
*/
|
|
522
|
+
"undefined": {
|
|
523
|
+
params: {
|
|
524
|
+
/**
|
|
525
|
+
* TLD of the domain (without trailing dot)
|
|
526
|
+
*/
|
|
527
|
+
tld: string;
|
|
528
|
+
/**
|
|
529
|
+
* ISO 3166 2-letter country code
|
|
530
|
+
*/
|
|
531
|
+
country: string;
|
|
532
|
+
/**
|
|
533
|
+
* Legal entity type
|
|
534
|
+
*/
|
|
535
|
+
entity_type: string;
|
|
536
|
+
/**
|
|
537
|
+
* TLD details
|
|
538
|
+
*/
|
|
539
|
+
tld_details?: object;
|
|
540
|
+
/**
|
|
541
|
+
* WHOIS details
|
|
542
|
+
*/
|
|
543
|
+
whois_details: object;
|
|
544
|
+
};
|
|
545
|
+
response: any; // Response structure will depend on the API
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
550
|
+
*/
|
|
551
|
+
"undefined": {
|
|
552
|
+
params: {
|
|
553
|
+
/**
|
|
554
|
+
* WHOIS ID
|
|
555
|
+
*/
|
|
556
|
+
whoisId: number;
|
|
557
|
+
};
|
|
558
|
+
response: any; // Response structure will depend on the API
|
|
559
|
+
};
|
|
560
|
+
|
|
293
561
|
/**
|
|
294
562
|
* This endpoint retrieves a list of all data centers available.
|
|
295
563
|
*/
|
|
@@ -743,14 +1011,14 @@ such as the action name, timestamp, and status.
|
|
|
743
1011
|
*/
|
|
744
1012
|
"undefined": {
|
|
745
1013
|
params: {
|
|
746
|
-
/**
|
|
747
|
-
* Page number
|
|
748
|
-
*/
|
|
749
|
-
page?: number;
|
|
750
1014
|
/**
|
|
751
1015
|
* Virtual Machine ID
|
|
752
1016
|
*/
|
|
753
1017
|
virtualMachineId: number;
|
|
1018
|
+
/**
|
|
1019
|
+
* Page number
|
|
1020
|
+
*/
|
|
1021
|
+
page?: number;
|
|
754
1022
|
};
|
|
755
1023
|
response: any; // Response structure will depend on the API
|
|
756
1024
|
};
|