hostinger-api-mcp 0.3.1 → 1.0.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/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,171 @@ 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
+ * Install one or more plugins on an existing 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`
3417
+ field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin
3418
+ slugs available for installation.
3419
+
3420
+ This operation is asynchronous: a successful response only means the install
3421
+ job has been queued, not that the plugins are ready.
3422
+ */
3423
+ "hosting_installWordPressPluginsV1": {
3424
+ params: {
3425
+ /**
3426
+ * username parameter
3427
+ */
3428
+ username: string;
3429
+ /**
3430
+ * WordPress installation (software) identifier
3431
+ */
3432
+ software: string;
3433
+ /**
3434
+ * Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.
3435
+ */
3436
+ plugins: array;
3437
+ };
3438
+ response: any; // Response structure will depend on the API
3439
+ };
3440
+
3441
+ /**
3442
+ * Install a theme on an existing WordPress installation.
3443
+
3444
+ Provide the WordPress installation (software) identifier in the path. It can
3445
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id`
3446
+ field).
3447
+
3448
+ When the theme is one of the Hostinger themes (hostinger-blog,
3449
+ hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,
3450
+ `layout`, and `font` fields are forwarded to the custom installer (defaults:
3451
+ palette1, layout1, default). For any other theme they are ignored.
3452
+
3453
+ This operation is asynchronous: a successful response only means the install
3454
+ job has been queued, not that the theme is ready.
3455
+ */
3456
+ "hosting_installWordPressThemeV1": {
3457
+ params: {
3458
+ /**
3459
+ * username parameter
3460
+ */
3461
+ username: string;
3462
+ /**
3463
+ * WordPress installation (software) identifier
3464
+ */
3465
+ software: string;
3466
+ /**
3467
+ * 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.
3468
+ */
3469
+ theme: string;
3470
+ /**
3471
+ * Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.
3472
+ */
3473
+ palette?: string;
3474
+ /**
3475
+ * Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.
3476
+ */
3477
+ layout?: string;
3478
+ /**
3479
+ * Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.
3480
+ */
3481
+ font?: string;
3482
+ };
3483
+ response: any; // Response structure will depend on the API
3484
+ };
3411
3485
  }