hostinger-api-mcp 1.60.1 → 1.61.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/CHANGELOG.md +33 -0
- package/README.md +113 -14
- 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 +305 -6
- package/src/core/tools/all.ts +305 -6
- package/src/core/tools/hosting.js +305 -6
- package/src/core/tools/hosting.ts +305 -6
- 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 +216 -14
package/types.d.ts
CHANGED
|
@@ -3770,16 +3770,112 @@ containing secrets (e.g. credential files) — none of these are returned by thi
|
|
|
3770
3770
|
response: any; // Response structure will depend on the API
|
|
3771
3771
|
};
|
|
3772
3772
|
|
|
3773
|
+
/**
|
|
3774
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy
|
|
3775
|
+
into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the
|
|
3776
|
+
repository link but ignores pushes.
|
|
3777
|
+
|
|
3778
|
+
When the website has no auto-deployment configured every field is null. Save settings with
|
|
3779
|
+
`Update Git auto-deployment settings`.
|
|
3780
|
+
*/
|
|
3781
|
+
"hosting_getGitAutoDeploymentSettingsV1": {
|
|
3782
|
+
params: {
|
|
3783
|
+
/**
|
|
3784
|
+
* username parameter
|
|
3785
|
+
*/
|
|
3786
|
+
username: string;
|
|
3787
|
+
/**
|
|
3788
|
+
* Domain name
|
|
3789
|
+
*/
|
|
3790
|
+
domain: string;
|
|
3791
|
+
};
|
|
3792
|
+
response: any; // Response structure will depend on the API
|
|
3793
|
+
};
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the
|
|
3797
|
+
directory under the document root to deploy into, and `is_enabled`. Send the full set;
|
|
3798
|
+
`is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must
|
|
3799
|
+
be an installation from `List Git installations` that belongs to the same customer as the
|
|
3800
|
+
website.
|
|
3801
|
+
|
|
3802
|
+
For PHP and static websites, saving with `is_enabled` true deploys the branch right away and
|
|
3803
|
+
every later push to that branch deploys again. For Node.js and Website Builder websites saving
|
|
3804
|
+
does not clone anything. On a Node.js website start the first deploy with
|
|
3805
|
+
`Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build
|
|
3806
|
+
settings stored for the website.
|
|
3807
|
+
*/
|
|
3808
|
+
"hosting_updateGitAutoDeploymentSettingsV1": {
|
|
3809
|
+
params: {
|
|
3810
|
+
/**
|
|
3811
|
+
* username parameter
|
|
3812
|
+
*/
|
|
3813
|
+
username: string;
|
|
3814
|
+
/**
|
|
3815
|
+
* Domain name
|
|
3816
|
+
*/
|
|
3817
|
+
domain: string;
|
|
3818
|
+
/**
|
|
3819
|
+
* Active Git installation from `List Git installations`
|
|
3820
|
+
*/
|
|
3821
|
+
installation_uuid: string;
|
|
3822
|
+
/**
|
|
3823
|
+
* Repository owner login, as returned by `List Git installation repositories`. GitLab group
|
|
3824
|
+
paths use slashes.
|
|
3825
|
+
*/
|
|
3826
|
+
owner: string;
|
|
3827
|
+
/**
|
|
3828
|
+
* Repository name without the .git suffix
|
|
3829
|
+
*/
|
|
3830
|
+
repository: string;
|
|
3831
|
+
/**
|
|
3832
|
+
* Branch to deploy
|
|
3833
|
+
*/
|
|
3834
|
+
branch: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* Subdirectory under the website document root to deploy into. Empty, null or omitted means
|
|
3837
|
+
the document root.
|
|
3838
|
+
*/
|
|
3839
|
+
directory?: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* Whether pushes to the branch deploy automatically
|
|
3842
|
+
*/
|
|
3843
|
+
is_enabled?: boolean;
|
|
3844
|
+
};
|
|
3845
|
+
response: any; // Response structure will depend on the API
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
/**
|
|
3849
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the
|
|
3850
|
+
website; pushes stop deploying until settings are saved again. Succeeds also when nothing is
|
|
3851
|
+
configured.
|
|
3852
|
+
*/
|
|
3853
|
+
"hosting_deleteGitAutoDeploymentSettingsV1": {
|
|
3854
|
+
params: {
|
|
3855
|
+
/**
|
|
3856
|
+
* username parameter
|
|
3857
|
+
*/
|
|
3858
|
+
username: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Domain name
|
|
3861
|
+
*/
|
|
3862
|
+
domain: string;
|
|
3863
|
+
};
|
|
3864
|
+
response: any; // Response structure will depend on the API
|
|
3865
|
+
};
|
|
3866
|
+
|
|
3773
3867
|
/**
|
|
3774
3868
|
* Lists the Git provider accounts the customer has connected. Only installations with status
|
|
3775
3869
|
`active` are returned unless the `status` filter says otherwise.
|
|
3776
3870
|
|
|
3777
3871
|
An empty list means the customer has no active installation. Check `status=suspended` and
|
|
3778
|
-
`status=pending` as well. If there is none at all, GitHub has to be
|
|
3779
|
-
(Websites, Manage, Advanced, Git
|
|
3780
|
-
|
|
3872
|
+
`status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be
|
|
3873
|
+
connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App,
|
|
3874
|
+
Import Git Repository); this endpoint then lists the new installation.
|
|
3781
3875
|
|
|
3782
|
-
Use `uuid` as the path parameter of `List Git installation repositories
|
|
3876
|
+
Use `uuid` as the path parameter of `List Git installation repositories`, and as
|
|
3877
|
+
`installation_uuid` in `Start Node.js build` with `source_type` `git` and in
|
|
3878
|
+
`Update Git auto-deployment settings`.
|
|
3783
3879
|
*/
|
|
3784
3880
|
"hosting_listGitInstallationsV1": {
|
|
3785
3881
|
params: {
|
|
@@ -3802,9 +3898,10 @@ is still queried and the call fails with whatever the provider answers. The list
|
|
|
3802
3898
|
the first 500 repositories in the order the provider returns them; when the account has
|
|
3803
3899
|
more, name the repository directly instead of searching this list.
|
|
3804
3900
|
|
|
3805
|
-
`owner`, `name` and `default_branch`
|
|
3806
|
-
|
|
3807
|
-
|
|
3901
|
+
`owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of
|
|
3902
|
+
`Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the
|
|
3903
|
+
installation does not belong to the customer. Limited to 10 calls per minute per API client
|
|
3904
|
+
(429 above that).
|
|
3808
3905
|
*/
|
|
3809
3906
|
"hosting_listGitInstallationRepositoriesV1": {
|
|
3810
3907
|
params: {
|
|
@@ -3855,13 +3952,17 @@ Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs`
|
|
|
3855
3952
|
WARNING: on success this overwrites the website's existing contents and cannot be
|
|
3856
3953
|
undone — verify this is intended before calling this endpoint.
|
|
3857
3954
|
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
To auto-detect build settings from an archive before starting, first call the
|
|
3955
|
+
With `source_type` `archive`, `source_options.archive_path` must point to an existing
|
|
3956
|
+
archive file on the server (relative to the website document root). Use the
|
|
3957
|
+
`Generate Upload URL` endpoint to obtain credentials and upload the archive first. To
|
|
3958
|
+
auto-detect build settings from an archive before starting, first call the
|
|
3863
3959
|
`Get Node.js Build Settings from Archive` endpoint.
|
|
3864
3960
|
|
|
3961
|
+
With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and
|
|
3962
|
+
`installation_uuid`. Take the installation from `List Git installations` and the owner and
|
|
3963
|
+
repository from `List Git installation repositories`; the branch is cloned at its current
|
|
3964
|
+
head. The installation must belong to the same customer as the website.
|
|
3965
|
+
|
|
3865
3966
|
The returned build `uuid` can be used to poll progress and retrieve logs via
|
|
3866
3967
|
the `Get Node.js Build Logs` endpoint.
|
|
3867
3968
|
*/
|
|
@@ -3904,11 +4005,14 @@ the `Get Node.js Build Logs` endpoint.
|
|
|
3904
4005
|
*/
|
|
3905
4006
|
package_manager?: string;
|
|
3906
4007
|
/**
|
|
3907
|
-
*
|
|
4008
|
+
* Where the files come from: `archive` (an uploaded archive on the website) or `git`
|
|
4009
|
+
(a branch of a repository reachable through a Git installation).
|
|
3908
4010
|
*/
|
|
3909
4011
|
source_type: string;
|
|
3910
4012
|
/**
|
|
3911
|
-
* Source-specific options
|
|
4013
|
+
* Source-specific options. For `archive` send `archive_path`. For `git` send `owner`,
|
|
4014
|
+
`repository`, `branch` and `installation_uuid`, taken from `List Git installations`
|
|
4015
|
+
and `List Git installation repositories`.
|
|
3912
4016
|
*/
|
|
3913
4017
|
source_options: object;
|
|
3914
4018
|
};
|
|
@@ -4562,6 +4666,104 @@ Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
|
4562
4666
|
response: any; // Response structure will depend on the API
|
|
4563
4667
|
};
|
|
4564
4668
|
|
|
4669
|
+
/**
|
|
4670
|
+
* Requests a lifetime SSL certificate for the website. The installation runs in the background;
|
|
4671
|
+
`Get SSL status` reports `active` or `failed` when it ends. An `active` lifetime certificate
|
|
4672
|
+
does not block the request: a new installation is requested, which is how a certificate is
|
|
4673
|
+
reinstalled.
|
|
4674
|
+
|
|
4675
|
+
Returns 422 for free subdomains (their certificate is managed by the platform), while an
|
|
4676
|
+
installation is `installing` or `waiting_for_retry`, when the website's certificate was
|
|
4677
|
+
revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that
|
|
4678
|
+
one has to be uninstalled first.
|
|
4679
|
+
*/
|
|
4680
|
+
"hosting_installSSLV1": {
|
|
4681
|
+
params: {
|
|
4682
|
+
/**
|
|
4683
|
+
* username parameter
|
|
4684
|
+
*/
|
|
4685
|
+
username: string;
|
|
4686
|
+
/**
|
|
4687
|
+
* Domain name
|
|
4688
|
+
*/
|
|
4689
|
+
domain: string;
|
|
4690
|
+
};
|
|
4691
|
+
response: any; // Response structure will depend on the API
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
/**
|
|
4695
|
+
* Returns the SSL state of the website: the certificate `status` and `provider`, whether the
|
|
4696
|
+
certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to
|
|
4697
|
+
HTTPS, when the certificate stops being valid and the last installation error.
|
|
4698
|
+
|
|
4699
|
+
`installing` and `waiting_for_retry` mean an installation is in progress. `failed` means the
|
|
4700
|
+
last installation gave up, or the website was not updated for 60 minutes while `installing`;
|
|
4701
|
+
`last_error` holds the reason when it is a known message, otherwise it is null. `expired`
|
|
4702
|
+
means the assigned certificate's validity has ended. `not_installed` means no certificate is
|
|
4703
|
+
assigned. Free subdomains use a platform-managed certificate: with no installation recorded
|
|
4704
|
+
they report `active` with `provider` and `expires_at` null.
|
|
4705
|
+
*/
|
|
4706
|
+
"hosting_getSSLStatusV1": {
|
|
4707
|
+
params: {
|
|
4708
|
+
/**
|
|
4709
|
+
* username parameter
|
|
4710
|
+
*/
|
|
4711
|
+
username: string;
|
|
4712
|
+
/**
|
|
4713
|
+
* Domain name
|
|
4714
|
+
*/
|
|
4715
|
+
domain: string;
|
|
4716
|
+
};
|
|
4717
|
+
response: any; // Response structure will depend on the API
|
|
4718
|
+
};
|
|
4719
|
+
|
|
4720
|
+
/**
|
|
4721
|
+
* Turns the HTTP to HTTPS redirect of the website on or off, based on `is_enabled`. Does
|
|
4722
|
+
nothing when the redirect is already in the requested state. Turning it on requires an
|
|
4723
|
+
installed certificate (`status` `active` or `expired` on `Get SSL status`) and returns 422
|
|
4724
|
+
when there is none; turning it off is always accepted.
|
|
4725
|
+
*/
|
|
4726
|
+
"hosting_toggleHTTPSRedirectV1": {
|
|
4727
|
+
params: {
|
|
4728
|
+
/**
|
|
4729
|
+
* username parameter
|
|
4730
|
+
*/
|
|
4731
|
+
username: string;
|
|
4732
|
+
/**
|
|
4733
|
+
* Domain name
|
|
4734
|
+
*/
|
|
4735
|
+
domain: string;
|
|
4736
|
+
/**
|
|
4737
|
+
* Turn the HTTP to HTTPS redirect on (true) or off (false) for the website.
|
|
4738
|
+
*/
|
|
4739
|
+
is_enabled: boolean;
|
|
4740
|
+
};
|
|
4741
|
+
response: any; // Response structure will depend on the API
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
/**
|
|
4745
|
+
* Removes the SSL certificate assigned to the website, turns the HTTPS redirect off and cancels
|
|
4746
|
+
a pending installation retry. The website serves plain HTTP until a new installation
|
|
4747
|
+
completes. `Get SSL status` reports `not_installed` as soon as the call returns; the call also
|
|
4748
|
+
succeeds when no certificate is assigned, so repeating it is safe.
|
|
4749
|
+
|
|
4750
|
+
Returns 422 for free subdomains (their certificate is managed by the platform) and while an
|
|
4751
|
+
installation is `installing`.
|
|
4752
|
+
*/
|
|
4753
|
+
"hosting_uninstallSSLV1": {
|
|
4754
|
+
params: {
|
|
4755
|
+
/**
|
|
4756
|
+
* username parameter
|
|
4757
|
+
*/
|
|
4758
|
+
username: string;
|
|
4759
|
+
/**
|
|
4760
|
+
* Domain name
|
|
4761
|
+
*/
|
|
4762
|
+
domain: string;
|
|
4763
|
+
};
|
|
4764
|
+
response: any; // Response structure will depend on the API
|
|
4765
|
+
};
|
|
4766
|
+
|
|
4565
4767
|
/**
|
|
4566
4768
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the
|
|
4567
4769
|
authenticated client.
|