@hostinger/mcp 2.18.0 → 3.1.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
@@ -2690,9 +2690,11 @@ subscribers is archived instead of deleted so its data stays available.
2690
2690
  };
2691
2691
 
2692
2692
  /**
2693
- * Update a product's name, description or status. Set status to published to make it buyable,
2694
- draft to hide it, or archived to retire it. Variants, prices and inventory are managed
2695
- through the variant endpoints, not here. Returns the updated product summary.
2693
+ * Update a product's name, description, status, SEO settings or collections. Set status to
2694
+ published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title,
2695
+ description, slug) left out keep their values. collection_changes adds or removes collections
2696
+ without touching the others. Variants, prices and inventory are managed through the variant
2697
+ endpoints, not here. Returns the updated product summary.
2696
2698
  */
2697
2699
  "ecommerce_products_update": {
2698
2700
  params: {
@@ -2716,6 +2718,14 @@ through the variant endpoints, not here. Returns the updated product summary.
2716
2718
  * Set "published" to make the product buyable, "draft" to hide it, or "archived" to retire it.
2717
2719
  */
2718
2720
  status?: string;
2721
+ /**
2722
+ * Search-engine settings to change. Send at least one field; omitted fields keep their current values.
2723
+ */
2724
+ seo_settings?: object;
2725
+ /**
2726
+ * Adds the product to or removes it from collections without touching its other collections. Send at least one collection in add or remove.
2727
+ */
2728
+ collection_changes?: object;
2719
2729
  };
2720
2730
  response: any; // Response structure will depend on the API
2721
2731
  };
@@ -2814,6 +2824,10 @@ embed each product's variants with prices and inventory, and include=media to em
2814
2824
  * ISO 4217 currency code. Defaults to the store's default currency when omitted.
2815
2825
  */
2816
2826
  currency?: string;
2827
+ /**
2828
+ * Search-engine settings. Omitted fields are generated from the name and description; a slug already in use gets a numeric suffix. Send at least one field.
2829
+ */
2830
+ seo_settings?: object;
2817
2831
  };
2818
2832
  response: any; // Response structure will depend on the API
2819
2833
  };
@@ -3019,8 +3033,8 @@ plus its default currency. Useful to verify prerequisites before building a stor
3019
3033
  };
3020
3034
 
3021
3035
  /**
3022
- * Update up to 100 existing variants in place by id — title, inventory, stock tracking and
3023
- prices. Variants omitted from the request are left untouched. Prices replace the variant's
3036
+ * Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking
3037
+ and prices. Variants omitted from the request are left untouched. Prices replace the variant's
3024
3038
  existing prices in full. Returns the updated variants.
3025
3039
  */
3026
3040
  "ecommerce_product-variants_update-in-batch": {
@@ -9313,13 +9327,20 @@ Use this endpoint to power off running VPS instances.
9313
9327
  };
9314
9328
 
9315
9329
  /**
9316
- * Generate one or more images from a prompt and an image type for the specified
9317
- WordPress installation. Images are returned inline as base64-encoded PNGs. They match
9318
- the requested aspect ratio and are never smaller than the requested size; logos are
9319
- transparent PNGs cropped to the mark.
9330
+ * Start generating one or more images from a prompt and an image type for the specified
9331
+ WordPress installation. The generation runs asynchronously: the response is returned
9332
+ right away with `status: in-progress` and a `generation_id`. Poll
9333
+ GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id}
9334
+ every few seconds until `status` is `completed` or `failed`.
9320
9335
 
9321
- Generation is synchronous and can take up to a minute. The endpoint is limited to
9322
- 10 requests per minute.
9336
+ A completed generation returns temporary image URLs together with the time they expire;
9337
+ download the images before then. Images match the requested aspect ratio and are never
9338
+ smaller than the requested size; logos are transparent images cropped to the mark.
9339
+
9340
+ Only one image generation can run per installation at a time: while one is still in
9341
+ progress the endpoint returns 409 without the ID of the running generation, so a caller
9342
+ that did not receive the `202` has to wait for it to finish (up to a few minutes) before
9343
+ starting a new one. The endpoint is limited to 10 requests per minute.
9323
9344
 
9324
9345
  Provide the WordPress installation (software) identifier in the path. It can
9325
9346
  be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
@@ -9366,6 +9387,43 @@ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
9366
9387
  response: any; // Response structure will depend on the API
9367
9388
  };
9368
9389
 
9390
+ /**
9391
+ * Get the result of an AI content generation started for the specified WordPress
9392
+ installation, such as an image generation started with
9393
+ POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.
9394
+
9395
+ While the generation is still running only `status: in-progress` is returned; poll every
9396
+ few seconds. Once `completed`, `result` holds the generated content shaped according to
9397
+ `type`: temporary image URLs together with the time they expire for `image-generation`, or
9398
+ the generated website document for `website-generation` (started from the Hostinger
9399
+ WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation
9400
+ IDs return 404.
9401
+
9402
+ Provide the WordPress installation (software) identifier in the path. It can
9403
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
9404
+ */
9405
+ "wordpress_ai-content_generation-result": {
9406
+ params: {
9407
+ /**
9408
+ * username parameter
9409
+ */
9410
+ username: string;
9411
+ /**
9412
+ * WordPress installation (software) identifier
9413
+ */
9414
+ software: string;
9415
+ /**
9416
+ * Generation ID returned when the generation was started
9417
+ */
9418
+ generation_id: string;
9419
+ /**
9420
+ * Generation type to look up. When omitted, every generation type is checked.
9421
+ */
9422
+ type?: string;
9423
+ };
9424
+ response: any; // Response structure will depend on the API
9425
+ };
9426
+
9369
9427
  /**
9370
9428
  * Show the current AI option status for the Hostinger Tools plugin on the
9371
9429
  specified WordPress installation. Filter by `option` to return a single