hostinger-api-mcp 1.60.1 → 1.60.2
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 +18 -0
- package/README.md +59 -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 +158 -6
- package/src/core/tools/all.ts +158 -6
- package/src/core/tools/hosting.js +158 -6
- package/src/core/tools/hosting.ts +158 -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 +118 -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
|
};
|