hostinger-api-mcp 0.3.2 → 1.1.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 +253 -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 +707 -132
- package/src/core/tools/all.ts +707 -132
- package/src/core/tools/hosting.js +0 -132
- package/src/core/tools/hosting.ts +0 -132
- package/src/core/tools/wordpress.js +710 -0
- package/src/core/tools/wordpress.ts +721 -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 +518 -93
package/types.d.ts
CHANGED
|
@@ -1734,99 +1734,6 @@ websites list endpoint to see when your new website becomes available.
|
|
|
1734
1734
|
response: any; // Response structure will depend on the API
|
|
1735
1735
|
};
|
|
1736
1736
|
|
|
1737
|
-
/**
|
|
1738
|
-
* Install WordPress on an existing website.
|
|
1739
|
-
|
|
1740
|
-
The website must already exist before calling this endpoint. To create a new
|
|
1741
|
-
website first, use POST /api/hosting/v1/websites and poll
|
|
1742
|
-
GET /api/hosting/v1/websites until it appears.
|
|
1743
|
-
|
|
1744
|
-
Call GET /api/hosting/v1/wordpress/installations filtered by username and
|
|
1745
|
-
domain before proceeding to check whether WordPress is already installed on
|
|
1746
|
-
the target domain/path. If WordPress already exists and `overwrite` is false
|
|
1747
|
-
(the default), the async job will fail.
|
|
1748
|
-
|
|
1749
|
-
This operation is asynchronous: a successful response only means the install
|
|
1750
|
-
job has been queued, not that WordPress is ready. Installation typically
|
|
1751
|
-
takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered
|
|
1752
|
-
by username and domain to track progress. When the installation appears in
|
|
1753
|
-
that list, WordPress is ready.
|
|
1754
|
-
*/
|
|
1755
|
-
"hosting_installWordPressV1": {
|
|
1756
|
-
params: {
|
|
1757
|
-
/**
|
|
1758
|
-
* username parameter
|
|
1759
|
-
*/
|
|
1760
|
-
username: string;
|
|
1761
|
-
/**
|
|
1762
|
-
* Domain of the existing website where WordPress will be installed
|
|
1763
|
-
*/
|
|
1764
|
-
domain: string;
|
|
1765
|
-
/**
|
|
1766
|
-
* Title of the WordPress site
|
|
1767
|
-
*/
|
|
1768
|
-
site_title: string;
|
|
1769
|
-
/**
|
|
1770
|
-
* WordPress locale. Defaults to en_US when omitted.
|
|
1771
|
-
*/
|
|
1772
|
-
language?: string;
|
|
1773
|
-
/**
|
|
1774
|
-
* Relative directory to install WordPress into. Defaults to the website root when omitted.
|
|
1775
|
-
*/
|
|
1776
|
-
directory?: string;
|
|
1777
|
-
/**
|
|
1778
|
-
* 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.
|
|
1779
|
-
*/
|
|
1780
|
-
overwrite?: boolean;
|
|
1781
|
-
/**
|
|
1782
|
-
* WordPress core auto-update policy
|
|
1783
|
-
*/
|
|
1784
|
-
auto_updates?: string;
|
|
1785
|
-
/**
|
|
1786
|
-
* WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected.
|
|
1787
|
-
*/
|
|
1788
|
-
version?: string;
|
|
1789
|
-
/**
|
|
1790
|
-
* WordPress admin credentials
|
|
1791
|
-
*/
|
|
1792
|
-
credentials: object;
|
|
1793
|
-
/**
|
|
1794
|
-
* 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.
|
|
1795
|
-
*/
|
|
1796
|
-
database?: object;
|
|
1797
|
-
};
|
|
1798
|
-
response: any; // Response structure will depend on the API
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* List WordPress installations accessible to the authenticated client.
|
|
1803
|
-
|
|
1804
|
-
Use this endpoint to discover existing WordPress installations and to poll
|
|
1805
|
-
for installation status after calling the install endpoint. When a newly
|
|
1806
|
-
requested installation appears in this list, WordPress is ready. Filter by
|
|
1807
|
-
username and domain to narrow results to a specific website.
|
|
1808
|
-
|
|
1809
|
-
Each installation includes a `valid` flag and, when invalid, a
|
|
1810
|
-
`validationError` describing why.
|
|
1811
|
-
*/
|
|
1812
|
-
"hosting_listWordPressInstallationsV1": {
|
|
1813
|
-
params: {
|
|
1814
|
-
/**
|
|
1815
|
-
* Filter by specific username
|
|
1816
|
-
*/
|
|
1817
|
-
username?: string;
|
|
1818
|
-
/**
|
|
1819
|
-
* Filter by domain name (exact match)
|
|
1820
|
-
*/
|
|
1821
|
-
domain?: string;
|
|
1822
|
-
/**
|
|
1823
|
-
* Filter by ownership type. Defaults to "owned". Use "all" to include both owned and managed installations.
|
|
1824
|
-
*/
|
|
1825
|
-
ownership?: string;
|
|
1826
|
-
};
|
|
1827
|
-
response: any; // Response structure will depend on the API
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
1737
|
/**
|
|
1831
1738
|
* Delete a contact with the specified UUID.
|
|
1832
1739
|
|
|
@@ -3408,4 +3315,522 @@ Use this endpoint to power off running VPS instances.
|
|
|
3408
3315
|
};
|
|
3409
3316
|
response: any; // Response structure will depend on the API
|
|
3410
3317
|
};
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* Install WordPress on an existing website.
|
|
3321
|
+
|
|
3322
|
+
The website must already exist before calling this endpoint. To create a new
|
|
3323
|
+
website first, use POST /api/hosting/v1/websites and poll
|
|
3324
|
+
GET /api/hosting/v1/websites until it appears.
|
|
3325
|
+
|
|
3326
|
+
Call GET /api/hosting/v1/wordpress/installations filtered by username and
|
|
3327
|
+
domain before proceeding to check whether WordPress is already installed on
|
|
3328
|
+
the target domain/path. If WordPress already exists and `overwrite` is false
|
|
3329
|
+
(the default), the async job will fail.
|
|
3330
|
+
|
|
3331
|
+
This operation is asynchronous: a successful response only means the install
|
|
3332
|
+
job has been queued, not that WordPress is ready. Installation typically
|
|
3333
|
+
takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered
|
|
3334
|
+
by username and domain to track progress. When the installation appears in
|
|
3335
|
+
that list, WordPress is ready.
|
|
3336
|
+
*/
|
|
3337
|
+
"hosting_installWordPressV1": {
|
|
3338
|
+
params: {
|
|
3339
|
+
/**
|
|
3340
|
+
* username parameter
|
|
3341
|
+
*/
|
|
3342
|
+
username: string;
|
|
3343
|
+
/**
|
|
3344
|
+
* Domain of the existing website where WordPress will be installed
|
|
3345
|
+
*/
|
|
3346
|
+
domain: string;
|
|
3347
|
+
/**
|
|
3348
|
+
* Title of the WordPress site
|
|
3349
|
+
*/
|
|
3350
|
+
site_title: string;
|
|
3351
|
+
/**
|
|
3352
|
+
* WordPress locale. Defaults to en_US when omitted.
|
|
3353
|
+
*/
|
|
3354
|
+
language?: string;
|
|
3355
|
+
/**
|
|
3356
|
+
* Relative directory to install WordPress into. Defaults to the website root when omitted.
|
|
3357
|
+
*/
|
|
3358
|
+
directory?: string;
|
|
3359
|
+
/**
|
|
3360
|
+
* 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.
|
|
3361
|
+
*/
|
|
3362
|
+
overwrite?: boolean;
|
|
3363
|
+
/**
|
|
3364
|
+
* WordPress core auto-update policy
|
|
3365
|
+
*/
|
|
3366
|
+
auto_updates?: string;
|
|
3367
|
+
/**
|
|
3368
|
+
* WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected.
|
|
3369
|
+
*/
|
|
3370
|
+
version?: string;
|
|
3371
|
+
/**
|
|
3372
|
+
* WordPress admin credentials
|
|
3373
|
+
*/
|
|
3374
|
+
credentials: object;
|
|
3375
|
+
/**
|
|
3376
|
+
* 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.
|
|
3377
|
+
*/
|
|
3378
|
+
database?: object;
|
|
3379
|
+
};
|
|
3380
|
+
response: any; // Response structure will depend on the API
|
|
3381
|
+
};
|
|
3382
|
+
|
|
3383
|
+
/**
|
|
3384
|
+
* List WordPress installations accessible to the authenticated client.
|
|
3385
|
+
|
|
3386
|
+
Use this endpoint to discover existing WordPress installations and to poll
|
|
3387
|
+
for installation status after calling the install endpoint. When a newly
|
|
3388
|
+
requested installation appears in this list, WordPress is ready. Filter by
|
|
3389
|
+
username and domain to narrow results to a specific website.
|
|
3390
|
+
|
|
3391
|
+
Each installation includes a `valid` flag and, when invalid, a
|
|
3392
|
+
`validationError` describing why.
|
|
3393
|
+
*/
|
|
3394
|
+
"hosting_listWordPressInstallationsV1": {
|
|
3395
|
+
params: {
|
|
3396
|
+
/**
|
|
3397
|
+
* Filter by specific username
|
|
3398
|
+
*/
|
|
3399
|
+
username?: string;
|
|
3400
|
+
/**
|
|
3401
|
+
* Filter by domain name (exact match)
|
|
3402
|
+
*/
|
|
3403
|
+
domain?: string;
|
|
3404
|
+
/**
|
|
3405
|
+
* Filter by ownership type. Defaults to "owned". Use "all" to include both owned and managed installations.
|
|
3406
|
+
*/
|
|
3407
|
+
ownership?: string;
|
|
3408
|
+
};
|
|
3409
|
+
response: any; // Response structure will depend on the API
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3412
|
+
/**
|
|
3413
|
+
* Activate an installed plugin on a WordPress installation.
|
|
3414
|
+
|
|
3415
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3416
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3417
|
+
|
|
3418
|
+
This operation is asynchronous: a successful response only means the activation
|
|
3419
|
+
job has been queued.
|
|
3420
|
+
*/
|
|
3421
|
+
"hosting_activateWordPressPluginV1": {
|
|
3422
|
+
params: {
|
|
3423
|
+
/**
|
|
3424
|
+
* username parameter
|
|
3425
|
+
*/
|
|
3426
|
+
username: string;
|
|
3427
|
+
/**
|
|
3428
|
+
* WordPress installation (software) identifier
|
|
3429
|
+
*/
|
|
3430
|
+
software: string;
|
|
3431
|
+
/**
|
|
3432
|
+
* Slug of the installed plugin to activate.
|
|
3433
|
+
*/
|
|
3434
|
+
plugin: string;
|
|
3435
|
+
};
|
|
3436
|
+
response: any; // Response structure will depend on the API
|
|
3437
|
+
};
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* Deactivate an installed plugin on a WordPress installation.
|
|
3441
|
+
|
|
3442
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3443
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3444
|
+
|
|
3445
|
+
This operation is asynchronous: a successful response only means the
|
|
3446
|
+
deactivation job has been queued.
|
|
3447
|
+
*/
|
|
3448
|
+
"hosting_deactivateWordPressPluginV1": {
|
|
3449
|
+
params: {
|
|
3450
|
+
/**
|
|
3451
|
+
* username parameter
|
|
3452
|
+
*/
|
|
3453
|
+
username: string;
|
|
3454
|
+
/**
|
|
3455
|
+
* WordPress installation (software) identifier
|
|
3456
|
+
*/
|
|
3457
|
+
software: string;
|
|
3458
|
+
/**
|
|
3459
|
+
* Slug of the installed plugin to deactivate.
|
|
3460
|
+
*/
|
|
3461
|
+
plugin: string;
|
|
3462
|
+
};
|
|
3463
|
+
response: any; // Response structure will depend on the API
|
|
3464
|
+
};
|
|
3465
|
+
|
|
3466
|
+
/**
|
|
3467
|
+
* Install one or more plugins on an existing WordPress installation.
|
|
3468
|
+
|
|
3469
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3470
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id`
|
|
3471
|
+
field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin
|
|
3472
|
+
slugs available for installation.
|
|
3473
|
+
|
|
3474
|
+
This operation is asynchronous: a successful response only means the install
|
|
3475
|
+
job has been queued, not that the plugins are ready.
|
|
3476
|
+
*/
|
|
3477
|
+
"hosting_installWordPressPluginsV1": {
|
|
3478
|
+
params: {
|
|
3479
|
+
/**
|
|
3480
|
+
* username parameter
|
|
3481
|
+
*/
|
|
3482
|
+
username: string;
|
|
3483
|
+
/**
|
|
3484
|
+
* WordPress installation (software) identifier
|
|
3485
|
+
*/
|
|
3486
|
+
software: string;
|
|
3487
|
+
/**
|
|
3488
|
+
* Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.
|
|
3489
|
+
*/
|
|
3490
|
+
plugins: array;
|
|
3491
|
+
};
|
|
3492
|
+
response: any; // Response structure will depend on the API
|
|
3493
|
+
};
|
|
3494
|
+
|
|
3495
|
+
/**
|
|
3496
|
+
* List plugins recommended for installation on a WordPress installation that are
|
|
3497
|
+
not yet installed.
|
|
3498
|
+
|
|
3499
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3500
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3501
|
+
*/
|
|
3502
|
+
"hosting_listAvailableWordPressPluginsV1": {
|
|
3503
|
+
params: {
|
|
3504
|
+
/**
|
|
3505
|
+
* username parameter
|
|
3506
|
+
*/
|
|
3507
|
+
username: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* WordPress installation (software) identifier
|
|
3510
|
+
*/
|
|
3511
|
+
software: string;
|
|
3512
|
+
};
|
|
3513
|
+
response: any; // Response structure will depend on the API
|
|
3514
|
+
};
|
|
3515
|
+
|
|
3516
|
+
/**
|
|
3517
|
+
* List plugins installed on a WordPress installation, including their status,
|
|
3518
|
+
available updates and known vulnerabilities.
|
|
3519
|
+
|
|
3520
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3521
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3522
|
+
*/
|
|
3523
|
+
"hosting_listInstalledWordPressPluginsV1": {
|
|
3524
|
+
params: {
|
|
3525
|
+
/**
|
|
3526
|
+
* username parameter
|
|
3527
|
+
*/
|
|
3528
|
+
username: string;
|
|
3529
|
+
/**
|
|
3530
|
+
* WordPress installation (software) identifier
|
|
3531
|
+
*/
|
|
3532
|
+
software: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* Filter installed plugins by category.
|
|
3535
|
+
*/
|
|
3536
|
+
category?: string;
|
|
3537
|
+
};
|
|
3538
|
+
response: any; // Response structure will depend on the API
|
|
3539
|
+
};
|
|
3540
|
+
|
|
3541
|
+
/**
|
|
3542
|
+
* Search the WordPress.org plugin directory for plugins available to install.
|
|
3543
|
+
|
|
3544
|
+
Use the returned `slug` values with
|
|
3545
|
+
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
3546
|
+
*/
|
|
3547
|
+
"hosting_searchWordPressPluginsV1": {
|
|
3548
|
+
params: {
|
|
3549
|
+
/**
|
|
3550
|
+
* Search term to match against plugin names. Minimum 3 characters.
|
|
3551
|
+
*/
|
|
3552
|
+
search: string;
|
|
3553
|
+
};
|
|
3554
|
+
response: any; // Response structure will depend on the API
|
|
3555
|
+
};
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* List curated plugin suggestions grouped by website type.
|
|
3559
|
+
|
|
3560
|
+
Use the returned `slug` values with
|
|
3561
|
+
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
3562
|
+
*/
|
|
3563
|
+
"hosting_listSuggestedWordPressPluginsV1": {
|
|
3564
|
+
params: {
|
|
3565
|
+
/**
|
|
3566
|
+
* Optionally scope suggestions to a specific order.
|
|
3567
|
+
*/
|
|
3568
|
+
order_id?: number;
|
|
3569
|
+
};
|
|
3570
|
+
response: any; // Response structure will depend on the API
|
|
3571
|
+
};
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* Check whether WooCommerce is installed on any WordPress installation of a
|
|
3575
|
+
domain. Optionally filter by domain to scope the check.
|
|
3576
|
+
*/
|
|
3577
|
+
"hosting_checkIfWooCommerceIsInstalledV1": {
|
|
3578
|
+
params: {
|
|
3579
|
+
/**
|
|
3580
|
+
* Filter by domain name (exact match)
|
|
3581
|
+
*/
|
|
3582
|
+
domain?: string;
|
|
3583
|
+
};
|
|
3584
|
+
response: any; // Response structure will depend on the API
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
/**
|
|
3588
|
+
* Uninstall one or more plugins from a WordPress installation.
|
|
3589
|
+
|
|
3590
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3591
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3592
|
+
|
|
3593
|
+
This operation is asynchronous: a successful response only means the uninstall
|
|
3594
|
+
job has been queued.
|
|
3595
|
+
*/
|
|
3596
|
+
"hosting_uninstallWordPressPluginsV1": {
|
|
3597
|
+
params: {
|
|
3598
|
+
/**
|
|
3599
|
+
* username parameter
|
|
3600
|
+
*/
|
|
3601
|
+
username: string;
|
|
3602
|
+
/**
|
|
3603
|
+
* WordPress installation (software) identifier
|
|
3604
|
+
*/
|
|
3605
|
+
software: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* Slugs of the installed plugins to uninstall.
|
|
3608
|
+
*/
|
|
3609
|
+
plugins: array;
|
|
3610
|
+
};
|
|
3611
|
+
response: any; // Response structure will depend on the API
|
|
3612
|
+
};
|
|
3613
|
+
|
|
3614
|
+
/**
|
|
3615
|
+
* Update a Hostinger plugin to its latest version on a WordPress installation.
|
|
3616
|
+
|
|
3617
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3618
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3619
|
+
|
|
3620
|
+
This operation is asynchronous: a successful response only means the update job
|
|
3621
|
+
has been queued.
|
|
3622
|
+
*/
|
|
3623
|
+
"hosting_updateHostingerWordPressPluginV1": {
|
|
3624
|
+
params: {
|
|
3625
|
+
/**
|
|
3626
|
+
* username parameter
|
|
3627
|
+
*/
|
|
3628
|
+
username: string;
|
|
3629
|
+
/**
|
|
3630
|
+
* WordPress installation (software) identifier
|
|
3631
|
+
*/
|
|
3632
|
+
software: string;
|
|
3633
|
+
/**
|
|
3634
|
+
* Slug of the Hostinger plugin to update to its latest version.
|
|
3635
|
+
*/
|
|
3636
|
+
slug: string;
|
|
3637
|
+
};
|
|
3638
|
+
response: any; // Response structure will depend on the API
|
|
3639
|
+
};
|
|
3640
|
+
|
|
3641
|
+
/**
|
|
3642
|
+
* Update one or more installed plugins to their latest version on a WordPress
|
|
3643
|
+
installation.
|
|
3644
|
+
|
|
3645
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3646
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3647
|
+
|
|
3648
|
+
This operation is asynchronous: a successful response only means the update job
|
|
3649
|
+
has been queued.
|
|
3650
|
+
*/
|
|
3651
|
+
"hosting_updateWordPressPluginsV1": {
|
|
3652
|
+
params: {
|
|
3653
|
+
/**
|
|
3654
|
+
* username parameter
|
|
3655
|
+
*/
|
|
3656
|
+
username: string;
|
|
3657
|
+
/**
|
|
3658
|
+
* WordPress installation (software) identifier
|
|
3659
|
+
*/
|
|
3660
|
+
software: string;
|
|
3661
|
+
/**
|
|
3662
|
+
* Slugs of the installed plugins to update to their latest version.
|
|
3663
|
+
*/
|
|
3664
|
+
plugins: array;
|
|
3665
|
+
};
|
|
3666
|
+
response: any; // Response structure will depend on the API
|
|
3667
|
+
};
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* Activate an installed theme on a WordPress installation.
|
|
3671
|
+
|
|
3672
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3673
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3674
|
+
|
|
3675
|
+
This operation is asynchronous: a successful response only means the activation
|
|
3676
|
+
job has been queued.
|
|
3677
|
+
*/
|
|
3678
|
+
"hosting_activateWordPressThemeV1": {
|
|
3679
|
+
params: {
|
|
3680
|
+
/**
|
|
3681
|
+
* username parameter
|
|
3682
|
+
*/
|
|
3683
|
+
username: string;
|
|
3684
|
+
/**
|
|
3685
|
+
* WordPress installation (software) identifier
|
|
3686
|
+
*/
|
|
3687
|
+
software: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* Slug of the installed theme to activate.
|
|
3690
|
+
*/
|
|
3691
|
+
theme: string;
|
|
3692
|
+
};
|
|
3693
|
+
response: any; // Response structure will depend on the API
|
|
3694
|
+
};
|
|
3695
|
+
|
|
3696
|
+
/**
|
|
3697
|
+
* Install a theme on an existing WordPress installation.
|
|
3698
|
+
|
|
3699
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3700
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id`
|
|
3701
|
+
field).
|
|
3702
|
+
|
|
3703
|
+
When the theme is one of the Hostinger themes (hostinger-blog,
|
|
3704
|
+
hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,
|
|
3705
|
+
`layout`, and `font` fields are forwarded to the custom installer (defaults:
|
|
3706
|
+
palette1, layout1, default). For any other theme they are ignored.
|
|
3707
|
+
|
|
3708
|
+
This operation is asynchronous: a successful response only means the install
|
|
3709
|
+
job has been queued, not that the theme is ready.
|
|
3710
|
+
*/
|
|
3711
|
+
"hosting_installWordPressThemeV1": {
|
|
3712
|
+
params: {
|
|
3713
|
+
/**
|
|
3714
|
+
* username parameter
|
|
3715
|
+
*/
|
|
3716
|
+
username: string;
|
|
3717
|
+
/**
|
|
3718
|
+
* WordPress installation (software) identifier
|
|
3719
|
+
*/
|
|
3720
|
+
software: string;
|
|
3721
|
+
/**
|
|
3722
|
+
* 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.
|
|
3723
|
+
*/
|
|
3724
|
+
theme: string;
|
|
3725
|
+
/**
|
|
3726
|
+
* Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.
|
|
3727
|
+
*/
|
|
3728
|
+
palette?: string;
|
|
3729
|
+
/**
|
|
3730
|
+
* Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.
|
|
3731
|
+
*/
|
|
3732
|
+
layout?: string;
|
|
3733
|
+
/**
|
|
3734
|
+
* Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.
|
|
3735
|
+
*/
|
|
3736
|
+
font?: string;
|
|
3737
|
+
};
|
|
3738
|
+
response: any; // Response structure will depend on the API
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3741
|
+
/**
|
|
3742
|
+
* List themes installed on a WordPress installation, including their status,
|
|
3743
|
+
available updates and known vulnerabilities.
|
|
3744
|
+
|
|
3745
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3746
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3747
|
+
*/
|
|
3748
|
+
"hosting_listInstalledWordPressThemesV1": {
|
|
3749
|
+
params: {
|
|
3750
|
+
/**
|
|
3751
|
+
* username parameter
|
|
3752
|
+
*/
|
|
3753
|
+
username: string;
|
|
3754
|
+
/**
|
|
3755
|
+
* WordPress installation (software) identifier
|
|
3756
|
+
*/
|
|
3757
|
+
software: string;
|
|
3758
|
+
};
|
|
3759
|
+
response: any; // Response structure will depend on the API
|
|
3760
|
+
};
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* List WordPress themes available to install.
|
|
3764
|
+
|
|
3765
|
+
Use the returned `slug` values with
|
|
3766
|
+
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
3767
|
+
*/
|
|
3768
|
+
"hosting_listWordPressThemesV1": {
|
|
3769
|
+
params: {
|
|
3770
|
+
/**
|
|
3771
|
+
* Optionally scope themes to a specific order.
|
|
3772
|
+
*/
|
|
3773
|
+
order_id?: number;
|
|
3774
|
+
/**
|
|
3775
|
+
* Search term to match against theme names.
|
|
3776
|
+
*/
|
|
3777
|
+
search?: string;
|
|
3778
|
+
};
|
|
3779
|
+
response: any; // Response structure will depend on the API
|
|
3780
|
+
};
|
|
3781
|
+
|
|
3782
|
+
/**
|
|
3783
|
+
* Uninstall one or more themes from a WordPress installation.
|
|
3784
|
+
|
|
3785
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3786
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3787
|
+
|
|
3788
|
+
This operation is asynchronous: a successful response only means the uninstall
|
|
3789
|
+
job has been queued.
|
|
3790
|
+
*/
|
|
3791
|
+
"hosting_uninstallWordPressThemesV1": {
|
|
3792
|
+
params: {
|
|
3793
|
+
/**
|
|
3794
|
+
* username parameter
|
|
3795
|
+
*/
|
|
3796
|
+
username: string;
|
|
3797
|
+
/**
|
|
3798
|
+
* WordPress installation (software) identifier
|
|
3799
|
+
*/
|
|
3800
|
+
software: string;
|
|
3801
|
+
/**
|
|
3802
|
+
* Slugs of the installed themes to uninstall.
|
|
3803
|
+
*/
|
|
3804
|
+
themes: array;
|
|
3805
|
+
};
|
|
3806
|
+
response: any; // Response structure will depend on the API
|
|
3807
|
+
};
|
|
3808
|
+
|
|
3809
|
+
/**
|
|
3810
|
+
* Update one or more installed themes to their latest version on a WordPress
|
|
3811
|
+
installation.
|
|
3812
|
+
|
|
3813
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3814
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3815
|
+
|
|
3816
|
+
This operation is asynchronous: a successful response only means the update job
|
|
3817
|
+
has been queued.
|
|
3818
|
+
*/
|
|
3819
|
+
"hosting_updateWordPressThemesV1": {
|
|
3820
|
+
params: {
|
|
3821
|
+
/**
|
|
3822
|
+
* username parameter
|
|
3823
|
+
*/
|
|
3824
|
+
username: string;
|
|
3825
|
+
/**
|
|
3826
|
+
* WordPress installation (software) identifier
|
|
3827
|
+
*/
|
|
3828
|
+
software: string;
|
|
3829
|
+
/**
|
|
3830
|
+
* Slugs of the installed themes to update to their latest version.
|
|
3831
|
+
*/
|
|
3832
|
+
themes: array;
|
|
3833
|
+
};
|
|
3834
|
+
response: any; // Response structure will depend on the API
|
|
3835
|
+
};
|
|
3411
3836
|
}
|