hostinger-api-mcp 1.5.0 → 1.5.3
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 +140 -32
- 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/agency-hosting.js +434 -0
- package/src/core/tools/agency-hosting.ts +445 -0
- package/src/core/tools/all.js +448 -65
- package/src/core/tools/all.ts +448 -65
- package/src/core/tools/hosting.js +17 -65
- package/src/core/tools/hosting.ts +17 -65
- package/src/servers/agency-hosting.js +6 -0
- package/src/servers/agency-hosting.ts +6 -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 +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +268 -45
package/src/core/tools/all.ts
CHANGED
|
@@ -267,6 +267,437 @@ const tools: OpenApiTool[] = [
|
|
|
267
267
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
268
268
|
"group": "hosting"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "agency-hosting_listAvailableDatacentersForAnAgencyPlanOrderV1",
|
|
272
|
+
"description": "Lists the datacenters available for provisioning a new website on the given Agency Plan\nhosting order.\n\nEach datacenter includes a `pinger_url` you can ping from the client to measure round-trip\nlatency; comparing the results across datacenters lets you pick the nearest one (lowest\nping) before choosing its `code` as the `datacenter_code` when creating a website setup.",
|
|
273
|
+
"method": "GET",
|
|
274
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/datacenters",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"order_id": {
|
|
279
|
+
"type": "integer",
|
|
280
|
+
"description": "Agency Plan order ID"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"order_id"
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"security": [
|
|
288
|
+
{
|
|
289
|
+
"apiToken": []
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"group": "agency-hosting"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "agency-hosting_changeAgencyPlanWebsiteDomainV1",
|
|
296
|
+
"description": "Changes the primary domain for an Agency Plan website.\n\nProvide the current domain in the path and the new domain in the request body.\nSet domain to null to revert to the temporary domain.",
|
|
297
|
+
"method": "PUT",
|
|
298
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}",
|
|
299
|
+
"inputSchema": {
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"website_uid": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"description": "Agency Plan website UID"
|
|
305
|
+
},
|
|
306
|
+
"from_domain": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"description": "Current domain name to change from"
|
|
309
|
+
},
|
|
310
|
+
"domain": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"description": "New domain to assign to the website. Set to null to revert to the temporary domain."
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"required": [
|
|
316
|
+
"website_uid",
|
|
317
|
+
"from_domain",
|
|
318
|
+
"domain"
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
"security": [
|
|
322
|
+
{
|
|
323
|
+
"apiToken": []
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"group": "agency-hosting"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "agency-hosting_linkDomainToAgencyPlanWebsiteV1",
|
|
330
|
+
"description": "Links a domain to the specified Agency Plan website so it can serve traffic for that domain.",
|
|
331
|
+
"method": "POST",
|
|
332
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/domains",
|
|
333
|
+
"inputSchema": {
|
|
334
|
+
"type": "object",
|
|
335
|
+
"properties": {
|
|
336
|
+
"website_uid": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"description": "Agency Plan website UID"
|
|
339
|
+
},
|
|
340
|
+
"domain": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"description": "Fully qualified domain name to link to the website"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"required": [
|
|
346
|
+
"website_uid",
|
|
347
|
+
"domain"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"security": [
|
|
351
|
+
{
|
|
352
|
+
"apiToken": []
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"group": "agency-hosting"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "agency-hosting_listAgencyPlanDomainsV1",
|
|
359
|
+
"description": "Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client.\n\nUse the website_uuids filter to narrow results to specific websites.",
|
|
360
|
+
"method": "GET",
|
|
361
|
+
"path": "/api/agency-hosting/v1/domains",
|
|
362
|
+
"inputSchema": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"page": {
|
|
366
|
+
"type": "integer",
|
|
367
|
+
"description": "Page number"
|
|
368
|
+
},
|
|
369
|
+
"per_page": {
|
|
370
|
+
"type": "integer",
|
|
371
|
+
"description": "Number of items per page"
|
|
372
|
+
},
|
|
373
|
+
"website_uuids": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"description": "Filter by website UIDs",
|
|
376
|
+
"items": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"description": "website_uuids parameter"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"required": []
|
|
383
|
+
},
|
|
384
|
+
"security": [
|
|
385
|
+
{
|
|
386
|
+
"apiToken": []
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"group": "agency-hosting"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "agency-hosting_unlinkDomainFromAgencyPlanWebsiteV1",
|
|
393
|
+
"description": "Unlinks a domain from the specified Agency Plan website.\n\nThe website stops serving traffic on this domain immediately.\n\nWebsite files and database are preserved, and any other linked domains remain accessible.\n\nIf this is the only domain on the website, unlinking leaves the website without an accessible domain.",
|
|
394
|
+
"method": "DELETE",
|
|
395
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}",
|
|
396
|
+
"inputSchema": {
|
|
397
|
+
"type": "object",
|
|
398
|
+
"properties": {
|
|
399
|
+
"website_uid": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"description": "Agency Plan website UID"
|
|
402
|
+
},
|
|
403
|
+
"domain": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "Domain name"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": [
|
|
409
|
+
"website_uid",
|
|
410
|
+
"domain"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
"security": [
|
|
414
|
+
{
|
|
415
|
+
"apiToken": []
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"group": "agency-hosting"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "agency-hosting_provisionANewAgencyPlanWebsiteV1",
|
|
422
|
+
"description": "Provisions a new website on one of your Agency Plan hosting orders.\n\nChoose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach\nyour own `domain` — omit it, set it to `null`, or leave it unavailable and a free\n`*.hostingersite.com` subdomain is generated instead — and/or install WordPress by\nsupplying the `wordpress` details (admin account, site title, and language).\n\nCommon setups:\n- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit\n `wordpress` and `type`.\n- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus\n the `wordpress` block (admin account, title, language).\n- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to\n `node-static`.\n\nProvisioning runs in the background, so the response returns immediately with a setup UUID\nthat identifies the job. The new website becomes reachable once provisioning finishes.",
|
|
423
|
+
"method": "POST",
|
|
424
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/websites/setups",
|
|
425
|
+
"inputSchema": {
|
|
426
|
+
"type": "object",
|
|
427
|
+
"properties": {
|
|
428
|
+
"order_id": {
|
|
429
|
+
"type": "integer",
|
|
430
|
+
"description": "Agency Plan order ID"
|
|
431
|
+
},
|
|
432
|
+
"datacenter_code": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"description": "Datacenter code where the website should be provisioned. Available codes depend on live capacity and are not a fixed set."
|
|
435
|
+
},
|
|
436
|
+
"flavor": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"description": "Setup flavor: a specific WordPress version in the format `wp-<major>.<minor>` or `wp-<major>.<minor>.<patch>` (e.g. `wp-6.8.2`), or `php-fpm` for a plain PHP stack. Generic versions like `wp-latest` are not allowed."
|
|
439
|
+
},
|
|
440
|
+
"settings": {
|
|
441
|
+
"type": "object",
|
|
442
|
+
"description": "Website settings",
|
|
443
|
+
"properties": {
|
|
444
|
+
"php": {
|
|
445
|
+
"type": "object",
|
|
446
|
+
"description": "php parameter",
|
|
447
|
+
"properties": {
|
|
448
|
+
"version": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"description": "PHP version"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"required": [
|
|
454
|
+
"version"
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"required": [
|
|
459
|
+
"php"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"domain": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "Primary domain to attach to the website. Omit or set to null to get a free auto-generated *.hostingersite.com subdomain instead."
|
|
465
|
+
},
|
|
466
|
+
"type": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"description": "Website type",
|
|
469
|
+
"enum": [
|
|
470
|
+
"horizons",
|
|
471
|
+
"node-static"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
"wordpress": {
|
|
475
|
+
"type": "object",
|
|
476
|
+
"description": "WordPress installation options",
|
|
477
|
+
"properties": {
|
|
478
|
+
"language": {
|
|
479
|
+
"type": "string",
|
|
480
|
+
"description": "language parameter"
|
|
481
|
+
},
|
|
482
|
+
"title": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": "title parameter"
|
|
485
|
+
},
|
|
486
|
+
"admin": {
|
|
487
|
+
"type": "object",
|
|
488
|
+
"description": "admin parameter",
|
|
489
|
+
"properties": {
|
|
490
|
+
"user": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"description": "user parameter"
|
|
493
|
+
},
|
|
494
|
+
"password": {
|
|
495
|
+
"type": "string",
|
|
496
|
+
"description": "password parameter"
|
|
497
|
+
},
|
|
498
|
+
"email": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"description": "email parameter"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": [
|
|
504
|
+
"user",
|
|
505
|
+
"password",
|
|
506
|
+
"email"
|
|
507
|
+
]
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
"required": [
|
|
511
|
+
"language",
|
|
512
|
+
"title",
|
|
513
|
+
"admin"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
"clone": {
|
|
517
|
+
"type": "object",
|
|
518
|
+
"description": "Clone the new website from an existing website",
|
|
519
|
+
"properties": {
|
|
520
|
+
"website_uid": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"description": "website_uid parameter"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"required": [
|
|
526
|
+
"website_uid"
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
"derive_domain": {
|
|
530
|
+
"type": "object",
|
|
531
|
+
"description": "Derive the domain from an existing vhost",
|
|
532
|
+
"properties": {
|
|
533
|
+
"from_vhost": {
|
|
534
|
+
"type": "object",
|
|
535
|
+
"description": "from_vhost parameter",
|
|
536
|
+
"properties": {
|
|
537
|
+
"username": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "username parameter"
|
|
540
|
+
},
|
|
541
|
+
"vhost": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"description": "vhost parameter"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"required": [
|
|
547
|
+
"username",
|
|
548
|
+
"vhost"
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"required": [
|
|
553
|
+
"from_vhost"
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"required": [
|
|
558
|
+
"order_id",
|
|
559
|
+
"datacenter_code",
|
|
560
|
+
"flavor",
|
|
561
|
+
"settings"
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
"security": [
|
|
565
|
+
{
|
|
566
|
+
"apiToken": []
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"group": "agency-hosting"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "agency-hosting_getAgencyPlanWebsiteSetupStatusV1",
|
|
573
|
+
"description": "Returns the current status of an Agency Plan website setup started via the setups\nendpoint.\n\nPoll this endpoint using the `setup_uuid` returned from the provisioning request until\n`status` becomes `completed`, at which point `website_uid` identifies the new website.",
|
|
574
|
+
"method": "GET",
|
|
575
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}",
|
|
576
|
+
"inputSchema": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"order_id": {
|
|
580
|
+
"type": "integer",
|
|
581
|
+
"description": "Agency Plan order ID"
|
|
582
|
+
},
|
|
583
|
+
"setup_uuid": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"description": "Website setup UUID"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"required": [
|
|
589
|
+
"order_id",
|
|
590
|
+
"setup_uuid"
|
|
591
|
+
]
|
|
592
|
+
},
|
|
593
|
+
"security": [
|
|
594
|
+
{
|
|
595
|
+
"apiToken": []
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"group": "agency-hosting"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "agency-hosting_buildAgencyPlanWebsiteNodeJSAssetsV1",
|
|
602
|
+
"description": "Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive.\n\nUpload the archive to file browser first, then provide its relative path from document root in this request.\nWebsite contents are overwritten by the build result, which is deployed to public_html.",
|
|
603
|
+
"method": "POST",
|
|
604
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/build-assets",
|
|
605
|
+
"inputSchema": {
|
|
606
|
+
"type": "object",
|
|
607
|
+
"properties": {
|
|
608
|
+
"website_uid": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"description": "Agency Plan website UID"
|
|
611
|
+
},
|
|
612
|
+
"archive_path": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"description": "Directory, relative to the website document root, where the uploaded site archive currently lives. Most commonly this is simply `public_html`."
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"required": [
|
|
618
|
+
"website_uid",
|
|
619
|
+
"archive_path"
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
"security": [
|
|
623
|
+
{
|
|
624
|
+
"apiToken": []
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"group": "agency-hosting"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "agency-hosting_getAgencyPlanWebsiteDetailsV1",
|
|
631
|
+
"description": "Retrieves detailed information about a specific Agency Plan website, including configuration,\nstatus, metadata, hosting plan details, and resource quotas.",
|
|
632
|
+
"method": "GET",
|
|
633
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}",
|
|
634
|
+
"inputSchema": {
|
|
635
|
+
"type": "object",
|
|
636
|
+
"properties": {
|
|
637
|
+
"website_uid": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"description": "Agency Plan website UID"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": [
|
|
643
|
+
"website_uid"
|
|
644
|
+
]
|
|
645
|
+
},
|
|
646
|
+
"security": [
|
|
647
|
+
{
|
|
648
|
+
"apiToken": []
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"group": "agency-hosting"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "agency-hosting_deleteAgencyPlanWebsiteV1",
|
|
655
|
+
"description": "Deletes an Agency Plan website and schedules cleanup of its resources.\n\nThis action is irreversible. Website files, databases, and linked domains are removed.",
|
|
656
|
+
"method": "DELETE",
|
|
657
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}",
|
|
658
|
+
"inputSchema": {
|
|
659
|
+
"type": "object",
|
|
660
|
+
"properties": {
|
|
661
|
+
"website_uid": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"description": "Agency Plan website UID"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"required": [
|
|
667
|
+
"website_uid"
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
"security": [
|
|
671
|
+
{
|
|
672
|
+
"apiToken": []
|
|
673
|
+
}
|
|
674
|
+
],
|
|
675
|
+
"group": "agency-hosting"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "agency-hosting_listRunningAgencyPlanWebsiteProcessesV1",
|
|
679
|
+
"description": "Lists active and recently completed asynchronous processes for an Agency Plan website.\n\nEach process has a unique ID (for tracking), a type, and a status (running, completed, failed).\nPoll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.",
|
|
680
|
+
"method": "GET",
|
|
681
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/processes",
|
|
682
|
+
"inputSchema": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"website_uid": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"description": "Agency Plan website UID"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"required": [
|
|
691
|
+
"website_uid"
|
|
692
|
+
]
|
|
693
|
+
},
|
|
694
|
+
"security": [
|
|
695
|
+
{
|
|
696
|
+
"apiToken": []
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"group": "agency-hosting"
|
|
700
|
+
},
|
|
270
701
|
{
|
|
271
702
|
"name": "billing_getCatalogItemListV1",
|
|
272
703
|
"description": "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point),\ne.g: float `17.99` is displayed as integer `1799`.\n\nUse this endpoint to view available services and pricing before placing orders.",
|
|
@@ -1789,10 +2220,10 @@ const tools: OpenApiTool[] = [
|
|
|
1789
2220
|
"group": "hosting"
|
|
1790
2221
|
},
|
|
1791
2222
|
{
|
|
1792
|
-
"name": "
|
|
1793
|
-
"description": "Turns
|
|
2223
|
+
"name": "hosting_toggleCachelessModeV1",
|
|
2224
|
+
"description": "Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing\nis cached, effectively turning off all caching for the website; use it while actively developing,\ntesting changes, debugging issues, or when real-time updates must be visible. Disable it after\nfinishing development work to restore the performance benefits of caching.",
|
|
1794
2225
|
"method": "PATCH",
|
|
1795
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/
|
|
2226
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle",
|
|
1796
2227
|
"inputSchema": {
|
|
1797
2228
|
"type": "object",
|
|
1798
2229
|
"properties": {
|
|
@@ -1803,40 +2234,16 @@ const tools: OpenApiTool[] = [
|
|
|
1803
2234
|
"domain": {
|
|
1804
2235
|
"type": "string",
|
|
1805
2236
|
"description": "Domain name"
|
|
1806
|
-
}
|
|
1807
|
-
},
|
|
1808
|
-
"required": [
|
|
1809
|
-
"username",
|
|
1810
|
-
"domain"
|
|
1811
|
-
]
|
|
1812
|
-
},
|
|
1813
|
-
"security": [
|
|
1814
|
-
{
|
|
1815
|
-
"apiToken": []
|
|
1816
|
-
}
|
|
1817
|
-
],
|
|
1818
|
-
"group": "hosting"
|
|
1819
|
-
},
|
|
1820
|
-
{
|
|
1821
|
-
"name": "hosting_disableWebsiteCacheV1",
|
|
1822
|
-
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
1823
|
-
"method": "PATCH",
|
|
1824
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
1825
|
-
"inputSchema": {
|
|
1826
|
-
"type": "object",
|
|
1827
|
-
"properties": {
|
|
1828
|
-
"username": {
|
|
1829
|
-
"type": "string",
|
|
1830
|
-
"description": "username parameter"
|
|
1831
2237
|
},
|
|
1832
|
-
"
|
|
1833
|
-
"type": "
|
|
1834
|
-
"description": "
|
|
2238
|
+
"enabled": {
|
|
2239
|
+
"type": "boolean",
|
|
2240
|
+
"description": "Turn development (cacheless) mode on (true) or off (false) for the website."
|
|
1835
2241
|
}
|
|
1836
2242
|
},
|
|
1837
2243
|
"required": [
|
|
1838
2244
|
"username",
|
|
1839
|
-
"domain"
|
|
2245
|
+
"domain",
|
|
2246
|
+
"enabled"
|
|
1840
2247
|
]
|
|
1841
2248
|
},
|
|
1842
2249
|
"security": [
|
|
@@ -1847,10 +2254,10 @@ const tools: OpenApiTool[] = [
|
|
|
1847
2254
|
"group": "hosting"
|
|
1848
2255
|
},
|
|
1849
2256
|
{
|
|
1850
|
-
"name": "
|
|
1851
|
-
"description": "
|
|
2257
|
+
"name": "hosting_toggleWebsiteCacheV1",
|
|
2258
|
+
"description": "Turns server-side caching for the website on or off, based on the enabled flag. Enable it for\nfaster page loads, reduced server load, and improved user experience; recommended for production\nwebsites. Disabling may impact performance; to temporarily bypass caching while developing or\ndebugging, prefer toggling cacheless mode instead.\n\nDoes nothing if caching is already in the requested state.",
|
|
1852
2259
|
"method": "PATCH",
|
|
1853
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/
|
|
2260
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle",
|
|
1854
2261
|
"inputSchema": {
|
|
1855
2262
|
"type": "object",
|
|
1856
2263
|
"properties": {
|
|
@@ -1861,40 +2268,16 @@ const tools: OpenApiTool[] = [
|
|
|
1861
2268
|
"domain": {
|
|
1862
2269
|
"type": "string",
|
|
1863
2270
|
"description": "Domain name"
|
|
1864
|
-
}
|
|
1865
|
-
},
|
|
1866
|
-
"required": [
|
|
1867
|
-
"username",
|
|
1868
|
-
"domain"
|
|
1869
|
-
]
|
|
1870
|
-
},
|
|
1871
|
-
"security": [
|
|
1872
|
-
{
|
|
1873
|
-
"apiToken": []
|
|
1874
|
-
}
|
|
1875
|
-
],
|
|
1876
|
-
"group": "hosting"
|
|
1877
|
-
},
|
|
1878
|
-
{
|
|
1879
|
-
"name": "hosting_enableWebsiteCacheV1",
|
|
1880
|
-
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
1881
|
-
"method": "PATCH",
|
|
1882
|
-
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
1883
|
-
"inputSchema": {
|
|
1884
|
-
"type": "object",
|
|
1885
|
-
"properties": {
|
|
1886
|
-
"username": {
|
|
1887
|
-
"type": "string",
|
|
1888
|
-
"description": "username parameter"
|
|
1889
2271
|
},
|
|
1890
|
-
"
|
|
1891
|
-
"type": "
|
|
1892
|
-
"description": "
|
|
2272
|
+
"enabled": {
|
|
2273
|
+
"type": "boolean",
|
|
2274
|
+
"description": "Turn server-side caching on (true) or off (false) for the website."
|
|
1893
2275
|
}
|
|
1894
2276
|
},
|
|
1895
2277
|
"required": [
|
|
1896
2278
|
"username",
|
|
1897
|
-
"domain"
|
|
2279
|
+
"domain",
|
|
2280
|
+
"enabled"
|
|
1898
2281
|
]
|
|
1899
2282
|
},
|
|
1900
2283
|
"security": [
|
|
@@ -2766,7 +3149,7 @@ const tools: OpenApiTool[] = [
|
|
|
2766
3149
|
"group": "hosting"
|
|
2767
3150
|
},
|
|
2768
3151
|
{
|
|
2769
|
-
"name": "
|
|
3152
|
+
"name": "hosting_restartNode_jsApplicationV1",
|
|
2770
3153
|
"description": "Restarts the Node.js server process for the website. Does not rebuild or redeploy the\napplication. Use it to apply environment or configuration changes, or to recover a hung\napplication.\n\nOnly applicable to server-side applications (Express, Next.js, NestJS, etc.). Static\nfront-end apps (React, Vue, Vite) have no persistent server process, so restarting them\nhas no effect. Returns success even when the website has no server process to restart.",
|
|
2771
3154
|
"method": "POST",
|
|
2772
3155
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart",
|