@hostinger/mcp 2.13.1 → 2.15.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
@@ -4213,6 +4213,73 @@ key to a private repository as a deploy key before deploying it.
4213
4213
  response: any; // Response structure will depend on the API
4214
4214
  };
4215
4215
 
4216
+ /**
4217
+ * Submits the build report the headless skill writes at the end of a run (including early
4218
+ stops), so Hostinger can learn where builds get stuck. Send one report per call, with the
4219
+ report JSON as the request body, unchanged. Only send a report when the user agreed to it.
4220
+
4221
+ The report must match report.schema.json v1; an invalid report returns 422 and is not
4222
+ stored. The report is linked to the authenticated account, so do not add account details
4223
+ to it.
4224
+ */
4225
+ "hosting_headless_submit-build-report": {
4226
+ params: {
4227
+ /**
4228
+ * Report schema version
4229
+ */
4230
+ schema_version: string;
4231
+ /**
4232
+ * When the report was written
4233
+ */
4234
+ generated_at: string;
4235
+ /**
4236
+ * Upload status of the report, as written by the headless skill
4237
+ */
4238
+ consent: object;
4239
+ /**
4240
+ * The run the report is for
4241
+ */
4242
+ run: object;
4243
+ /**
4244
+ * Website, tool and outcome of the run
4245
+ */
4246
+ info: object;
4247
+ /**
4248
+ * Run start and end times and per-stage timings
4249
+ */
4250
+ timing: object;
4251
+ /**
4252
+ * Token usage, only when the tool reports its own usage
4253
+ */
4254
+ tokens: object;
4255
+ /**
4256
+ * Problems hit during the run
4257
+ */
4258
+ issues: array;
4259
+ /**
4260
+ * Feedback the user gave during the run
4261
+ */
4262
+ user_feedback: array;
4263
+ /**
4264
+ * Places where the skill instructions were missing or wrong
4265
+ */
4266
+ skill_gaps: array;
4267
+ /**
4268
+ * Things that worked well during the run
4269
+ */
4270
+ what_went_well: array;
4271
+ /**
4272
+ * Where the run log is missing or unsure
4273
+ */
4274
+ logging_gaps?: array;
4275
+ /**
4276
+ * Earlier runs for the same website
4277
+ */
4278
+ previous_runs: array;
4279
+ };
4280
+ response: any; // Response structure will depend on the API
4281
+ };
4282
+
4216
4283
  /**
4217
4284
  * Retrieve a paginated list of Node.js build processes for a specific website.
4218
4285
 
@@ -9190,6 +9257,60 @@ Use this endpoint to power off running VPS instances.
9190
9257
  response: any; // Response structure will depend on the API
9191
9258
  };
9192
9259
 
9260
+ /**
9261
+ * Generate one or more images from a prompt and an image type for the specified
9262
+ WordPress installation. Images are returned inline as base64-encoded PNGs. They match
9263
+ the requested aspect ratio and are never smaller than the requested size; logos are
9264
+ transparent PNGs cropped to the mark.
9265
+
9266
+ Generation is synchronous and can take up to a minute. The endpoint is limited to
9267
+ 10 requests per minute.
9268
+
9269
+ Provide the WordPress installation (software) identifier in the path. It can
9270
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
9271
+ */
9272
+ "wordpress_ai-content_generate-images": {
9273
+ params: {
9274
+ /**
9275
+ * username parameter
9276
+ */
9277
+ username: string;
9278
+ /**
9279
+ * WordPress installation (software) identifier
9280
+ */
9281
+ software: string;
9282
+ /**
9283
+ * What the image should show. For the logo type, the wordmark and mark to render.
9284
+ */
9285
+ prompt: string;
9286
+ /**
9287
+ * Kind of image to generate. It sets the default size and cropping.
9288
+ */
9289
+ image_type: string;
9290
+ /**
9291
+ * How many images to generate
9292
+ */
9293
+ num_of_images?: number;
9294
+ /**
9295
+ * Output width in pixels. Defaults per image type and is ignored for the logo type.
9296
+ */
9297
+ width?: number;
9298
+ /**
9299
+ * Output height in pixels. Defaults per image type and is ignored for the logo type.
9300
+ */
9301
+ height?: number;
9302
+ /**
9303
+ * Style tokens appended to photographic prompts. Ignored for the logo type.
9304
+ */
9305
+ style?: string;
9306
+ /**
9307
+ * Colour direction for the logo type only. It is not rendered as text.
9308
+ */
9309
+ color_guidance?: string;
9310
+ };
9311
+ response: any; // Response structure will depend on the API
9312
+ };
9313
+
9193
9314
  /**
9194
9315
  * Show the current AI option status for the Hostinger Tools plugin on the
9195
9316
  specified WordPress installation. Filter by `option` to return a single