hostinger-api-mcp 1.22.0 → 1.23.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 +64 -5
- 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 +192 -3
- package/src/core/tools/all.ts +192 -3
- package/src/core/tools/hosting.js +3 -3
- package/src/core/tools/hosting.ts +3 -3
- package/src/core/tools/mail.js +189 -0
- package/src/core/tools/mail.ts +189 -0
- 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 +124 -3
package/types.d.ts
CHANGED
|
@@ -2071,7 +2071,7 @@ The database name must be the full name returned by the list databases endpoint.
|
|
|
2071
2071
|
Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be
|
|
2072
2072
|
the full name returned by the list databases endpoint.
|
|
2073
2073
|
*/
|
|
2074
|
-
"
|
|
2074
|
+
"hosting_createDatabaseRemoteConnectionV1": {
|
|
2075
2075
|
params: {
|
|
2076
2076
|
/**
|
|
2077
2077
|
* username parameter
|
|
@@ -2096,7 +2096,7 @@ Identify the rule with the required ip query parameter (the IPv4/IPv6 address, o
|
|
|
2096
2096
|
exactly as returned by the list remote connections endpoint). The database name must be
|
|
2097
2097
|
the full name returned by the list databases endpoint.
|
|
2098
2098
|
*/
|
|
2099
|
-
"
|
|
2099
|
+
"hosting_deleteDatabaseRemoteConnectionV1": {
|
|
2100
2100
|
params: {
|
|
2101
2101
|
/**
|
|
2102
2102
|
* username parameter
|
|
@@ -2121,7 +2121,7 @@ exactly as returned by the list remote connections endpoint.
|
|
|
2121
2121
|
|
|
2122
2122
|
Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
2123
2123
|
*/
|
|
2124
|
-
"
|
|
2124
|
+
"hosting_listDatabaseRemoteConnectionsV1": {
|
|
2125
2125
|
params: {
|
|
2126
2126
|
/**
|
|
2127
2127
|
* username parameter
|
|
@@ -2858,6 +2858,61 @@ complete. The response returns before the removal finishes.
|
|
|
2858
2858
|
response: any; // Response structure will depend on the API
|
|
2859
2859
|
};
|
|
2860
2860
|
|
|
2861
|
+
/**
|
|
2862
|
+
* Create an alias for the given mailbox. The alias address is formed
|
|
2863
|
+
from the given local part and the domain of the mailbox. Messages
|
|
2864
|
+
sent to the alias are delivered to the mailbox.
|
|
2865
|
+
*/
|
|
2866
|
+
"mail_createAliasV1": {
|
|
2867
|
+
params: {
|
|
2868
|
+
/**
|
|
2869
|
+
* Mailbox resource ID
|
|
2870
|
+
*/
|
|
2871
|
+
mailboxId: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Local part of the alias address (the part before the @). The domain is taken from the mailbox. Case-insensitive and stored lowercase; must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between.
|
|
2874
|
+
*/
|
|
2875
|
+
local_part: string;
|
|
2876
|
+
};
|
|
2877
|
+
response: any; // Response structure will depend on the API
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
/**
|
|
2881
|
+
* Delete an alias. Messages sent to the alias address are no longer
|
|
2882
|
+
delivered to the mailbox.
|
|
2883
|
+
*/
|
|
2884
|
+
"mail_deleteAliasV1": {
|
|
2885
|
+
params: {
|
|
2886
|
+
/**
|
|
2887
|
+
* Alias resource ID
|
|
2888
|
+
*/
|
|
2889
|
+
aliasId: string;
|
|
2890
|
+
};
|
|
2891
|
+
response: any; // Response structure will depend on the API
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* Retrieve a paginated list of aliases across all mailboxes of a mail
|
|
2896
|
+
order.
|
|
2897
|
+
*/
|
|
2898
|
+
"mail_listAliasesV1": {
|
|
2899
|
+
params: {
|
|
2900
|
+
/**
|
|
2901
|
+
* Order resource ID
|
|
2902
|
+
*/
|
|
2903
|
+
orderId: string;
|
|
2904
|
+
/**
|
|
2905
|
+
* Page number
|
|
2906
|
+
*/
|
|
2907
|
+
page?: number;
|
|
2908
|
+
/**
|
|
2909
|
+
* Number of items per page
|
|
2910
|
+
*/
|
|
2911
|
+
per_page?: number;
|
|
2912
|
+
};
|
|
2913
|
+
response: any; // Response structure will depend on the API
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2861
2916
|
/**
|
|
2862
2917
|
* Create an API token for the given mail order. The token grants access
|
|
2863
2918
|
to the [Hostinger Email API](https://api.mail.hostinger.com/), where
|
|
@@ -3032,6 +3087,72 @@ mail order.
|
|
|
3032
3087
|
response: any; // Response structure will depend on the API
|
|
3033
3088
|
};
|
|
3034
3089
|
|
|
3090
|
+
/**
|
|
3091
|
+
* Create a catch-all that routes all messages sent to unknown addresses
|
|
3092
|
+
of the domain to the given mailbox. The mailbox address receives a
|
|
3093
|
+
confirmation email and the catch-all becomes active only after it is
|
|
3094
|
+
confirmed. A domain can have only one catch-all.
|
|
3095
|
+
*/
|
|
3096
|
+
"mail_createCatchAllV1": {
|
|
3097
|
+
params: {
|
|
3098
|
+
/**
|
|
3099
|
+
* Mailbox resource ID
|
|
3100
|
+
*/
|
|
3101
|
+
mailboxId: string;
|
|
3102
|
+
};
|
|
3103
|
+
response: any; // Response structure will depend on the API
|
|
3104
|
+
};
|
|
3105
|
+
|
|
3106
|
+
/**
|
|
3107
|
+
* Delete a catch-all. Messages sent to unknown addresses of the domain
|
|
3108
|
+
are no longer routed to the mailbox.
|
|
3109
|
+
*/
|
|
3110
|
+
"mail_deleteCatchAllV1": {
|
|
3111
|
+
params: {
|
|
3112
|
+
/**
|
|
3113
|
+
* Catch-all resource ID
|
|
3114
|
+
*/
|
|
3115
|
+
catchallId: string;
|
|
3116
|
+
};
|
|
3117
|
+
response: any; // Response structure will depend on the API
|
|
3118
|
+
};
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* Retrieve a paginated list of catch-alls across all mailboxes of a
|
|
3122
|
+
mail order.
|
|
3123
|
+
*/
|
|
3124
|
+
"mail_listCatchAllsV1": {
|
|
3125
|
+
params: {
|
|
3126
|
+
/**
|
|
3127
|
+
* Order resource ID
|
|
3128
|
+
*/
|
|
3129
|
+
orderId: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* Page number
|
|
3132
|
+
*/
|
|
3133
|
+
page?: number;
|
|
3134
|
+
/**
|
|
3135
|
+
* Number of items per page
|
|
3136
|
+
*/
|
|
3137
|
+
per_page?: number;
|
|
3138
|
+
};
|
|
3139
|
+
response: any; // Response structure will depend on the API
|
|
3140
|
+
};
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* Resend the confirmation email to the mailbox address of an
|
|
3144
|
+
unconfirmed catch-all.
|
|
3145
|
+
*/
|
|
3146
|
+
"mail_resendCatchAllConfirmationV1": {
|
|
3147
|
+
params: {
|
|
3148
|
+
/**
|
|
3149
|
+
* Catch-all resource ID
|
|
3150
|
+
*/
|
|
3151
|
+
catchallId: string;
|
|
3152
|
+
};
|
|
3153
|
+
response: any; // Response structure will depend on the API
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3035
3156
|
/**
|
|
3036
3157
|
* Create a forwarder from the given mailbox to the destination address.
|
|
3037
3158
|
The destination receives a confirmation email and forwarding becomes
|