hostinger-api-mcp 0.2.18 → 0.2.20

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
@@ -1017,6 +1017,80 @@ Websites can only be edited in Hostinger Horizons interface in the provided webs
1017
1017
  response: any; // Response structure will depend on the API
1018
1018
  };
1019
1019
 
1020
+ /**
1021
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
1022
+ */
1023
+ "hosting_listAccountCronJobsV1": {
1024
+ params: {
1025
+ /**
1026
+ * username parameter
1027
+ */
1028
+ username: string;
1029
+ };
1030
+ response: any; // Response structure will depend on the API
1031
+ };
1032
+
1033
+ /**
1034
+ * Creates a cron job for the specified account from a schedule expression and a command.
1035
+
1036
+ Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
1037
+ */
1038
+ "hosting_createAccountCronJobV1": {
1039
+ params: {
1040
+ /**
1041
+ * username parameter
1042
+ */
1043
+ username: string;
1044
+ /**
1045
+ * Cron schedule expression (for example "0 2 * * *" runs daily at 02:00).
1046
+ */
1047
+ time: string;
1048
+ /**
1049
+ * Command to execute on the schedule.
1050
+ */
1051
+ command: string;
1052
+ };
1053
+ response: any; // Response structure will depend on the API
1054
+ };
1055
+
1056
+ /**
1057
+ * Permanently deletes the cron job identified by its uid.
1058
+
1059
+ The uid is returned by the list cron jobs endpoint.
1060
+ */
1061
+ "hosting_deleteAccountCronJobV1": {
1062
+ params: {
1063
+ /**
1064
+ * username parameter
1065
+ */
1066
+ username: string;
1067
+ /**
1068
+ * Unique identifier of the cron job as returned by the list cron jobs endpoint.
1069
+ */
1070
+ uid: string;
1071
+ };
1072
+ response: any; // Response structure will depend on the API
1073
+ };
1074
+
1075
+ /**
1076
+ * Returns the output captured from the last execution of the cron job identified by its uid.
1077
+
1078
+ The uid is returned by the list cron jobs endpoint.
1079
+ */
1080
+ "hosting_getCronJobOutputV1": {
1081
+ params: {
1082
+ /**
1083
+ * username parameter
1084
+ */
1085
+ username: string;
1086
+ /**
1087
+ * Unique identifier of the cron job as returned by the list cron jobs endpoint.
1088
+ */
1089
+ uid: string;
1090
+ };
1091
+ response: any; // Response structure will depend on the API
1092
+ };
1093
+
1020
1094
  /**
1021
1095
  * Changes the password for the specified database user.
1022
1096
 
@@ -1126,6 +1200,77 @@ The database name must be the full name returned by the list databases endpoint.
1126
1200
  response: any; // Response structure will depend on the API
1127
1201
  };
1128
1202
 
1203
+ /**
1204
+ * Allows a remote host to connect to the specified database.
1205
+
1206
+ Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be
1207
+ the full name returned by the list databases endpoint.
1208
+ */
1209
+ "hosting_createAccountDatabaseRemoteConnectionV1": {
1210
+ params: {
1211
+ /**
1212
+ * username parameter
1213
+ */
1214
+ username: string;
1215
+ /**
1216
+ * Full database name as returned by the list databases endpoint.
1217
+ */
1218
+ name: string;
1219
+ /**
1220
+ * Remote host to allow: an IPv4/IPv6 address, or "%" for any host.
1221
+ */
1222
+ ip: string;
1223
+ };
1224
+ response: any; // Response structure will depend on the API
1225
+ };
1226
+
1227
+ /**
1228
+ * Permanently removes a remote-access rule, revoking the given host's remote access to the database.
1229
+
1230
+ Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or "%",
1231
+ exactly as returned by the list remote connections endpoint). The database name must be
1232
+ the full name returned by the list databases endpoint.
1233
+ */
1234
+ "hosting_deleteAccountDatabaseRemoteConnectionV1": {
1235
+ params: {
1236
+ /**
1237
+ * username parameter
1238
+ */
1239
+ username: string;
1240
+ /**
1241
+ * Full database name as returned by the list databases endpoint.
1242
+ */
1243
+ name: string;
1244
+ /**
1245
+ * Remote host to revoke: the IPv4/IPv6 address, or "%",
1246
+ exactly as returned by the list remote connections endpoint.
1247
+ */
1248
+ ip: string;
1249
+ };
1250
+ response: any; // Response structure will depend on the API
1251
+ };
1252
+
1253
+ /**
1254
+ * Returns the remote-access rules for the specified account: the remote hosts
1255
+ (IPv4/IPv6 addresses, or "%" for any host) allowed to connect to the account databases.
1256
+
1257
+ Use the domain filter to only return rules for databases assigned to a specific domain.
1258
+ */
1259
+ "hosting_listAccountDatabaseRemoteConnectionsV1": {
1260
+ params: {
1261
+ /**
1262
+ * username parameter
1263
+ */
1264
+ username: string;
1265
+ /**
1266
+ * Filter remote connections by the domain the database is assigned to.
1267
+ Rules for databases not assigned to any domain are always included.
1268
+ */
1269
+ domain?: string;
1270
+ };
1271
+ response: any; // Response structure will depend on the API
1272
+ };
1273
+
1129
1274
  /**
1130
1275
  * Repairs corrupted database tables asynchronously.
1131
1276