hostinger-api-mcp 6.3.1 → 6.5.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +75 -6
  3. package/gemini-extension.json +1 -1
  4. package/package.json +1 -1
  5. package/server.json +2 -2
  6. package/skills/headless/VERSION +1 -1
  7. package/src/core/runtime.js +1 -1
  8. package/src/core/runtime.ts +1 -1
  9. package/src/core/tools/all.js +224 -3
  10. package/src/core/tools/all.ts +224 -3
  11. package/src/core/tools/domains.js +221 -1
  12. package/src/core/tools/domains.ts +221 -1
  13. package/src/core/tools/wordpress.js +3 -2
  14. package/src/core/tools/wordpress.ts +3 -2
  15. package/src/servers/agency-hosting.js +1 -1
  16. package/src/servers/agency-hosting.ts +1 -1
  17. package/src/servers/agent-readiness.js +1 -1
  18. package/src/servers/agent-readiness.ts +1 -1
  19. package/src/servers/all.js +1 -1
  20. package/src/servers/all.ts +1 -1
  21. package/src/servers/billing.js +1 -1
  22. package/src/servers/billing.ts +1 -1
  23. package/src/servers/dns.js +1 -1
  24. package/src/servers/dns.ts +1 -1
  25. package/src/servers/domains.js +1 -1
  26. package/src/servers/domains.ts +1 -1
  27. package/src/servers/ecommerce.js +1 -1
  28. package/src/servers/ecommerce.ts +1 -1
  29. package/src/servers/gpu.js +1 -1
  30. package/src/servers/gpu.ts +1 -1
  31. package/src/servers/hosting.js +1 -1
  32. package/src/servers/hosting.ts +1 -1
  33. package/src/servers/mail.js +1 -1
  34. package/src/servers/mail.ts +1 -1
  35. package/src/servers/reach.js +1 -1
  36. package/src/servers/reach.ts +1 -1
  37. package/src/servers/vps.js +1 -1
  38. package/src/servers/vps.ts +1 -1
  39. package/src/servers/wordpress.js +1 -1
  40. package/src/servers/wordpress.ts +1 -1
  41. package/types.d.ts +129 -4
@@ -220,6 +220,226 @@ const tools: OpenApiTool[] = [
220
220
  "with_alternatives"
221
221
  ]
222
222
  },
223
+ {
224
+ "name": "domains_folders_delete",
225
+ "title": "Delete domain folder",
226
+ "annotations": {
227
+ "title": "Delete domain folder",
228
+ "readOnlyHint": false,
229
+ "destructiveHint": true,
230
+ "idempotentHint": true
231
+ },
232
+ "description": "Delete a domain folder.\n\nThe domains in the folder are not deleted; they are only removed from the folder.\n\nUse this endpoint to remove folders that are no longer needed.",
233
+ "method": "DELETE",
234
+ "path": "/api/domains/v1/folders/{folderId}",
235
+ "inputSchema": {
236
+ "type": "object",
237
+ "properties": {
238
+ "folderId": {
239
+ "type": "integer",
240
+ "description": "Folder ID"
241
+ }
242
+ },
243
+ "required": [
244
+ "folderId"
245
+ ]
246
+ },
247
+ "security": [
248
+ {
249
+ "apiToken": []
250
+ }
251
+ ],
252
+ "group": "domains"
253
+ },
254
+ {
255
+ "name": "domains_folders_update",
256
+ "title": "Update domain folder",
257
+ "annotations": {
258
+ "title": "Update domain folder",
259
+ "readOnlyHint": false,
260
+ "destructiveHint": true,
261
+ "idempotentHint": true
262
+ },
263
+ "description": "Rename a domain folder or change its position in the folder list.\n\nOnly the fields sent are changed.\n\nUse this endpoint to rename or reorder folders.",
264
+ "method": "PATCH",
265
+ "path": "/api/domains/v1/folders/{folderId}",
266
+ "inputSchema": {
267
+ "type": "object",
268
+ "properties": {
269
+ "folderId": {
270
+ "type": "integer",
271
+ "description": "Folder ID"
272
+ },
273
+ "name": {
274
+ "type": "string",
275
+ "description": "Folder name, unique within the account"
276
+ },
277
+ "sort_order": {
278
+ "type": "integer",
279
+ "description": "Zero-based position in the folder list. Other folders shift to make room; a value past the end\nplaces the folder last."
280
+ }
281
+ },
282
+ "required": [
283
+ "folderId"
284
+ ]
285
+ },
286
+ "security": [
287
+ {
288
+ "apiToken": []
289
+ }
290
+ ],
291
+ "group": "domains",
292
+ "bodyParameters": [
293
+ "name",
294
+ "sort_order"
295
+ ]
296
+ },
297
+ {
298
+ "name": "domains_folders_add-to",
299
+ "title": "Add domains to folder",
300
+ "annotations": {
301
+ "title": "Add domains to folder",
302
+ "readOnlyHint": false,
303
+ "destructiveHint": false
304
+ },
305
+ "description": "Add domains to a domain folder.\n\nA domain is in one of your folders at a time: adding it to this folder removes it from your other folders.\nDomains that are not in your portfolio are skipped.\n\nUse this endpoint to group domains of the portfolio in a folder.",
306
+ "method": "POST",
307
+ "path": "/api/domains/v1/folders/{folderId}/domains",
308
+ "inputSchema": {
309
+ "type": "object",
310
+ "properties": {
311
+ "folderId": {
312
+ "type": "integer",
313
+ "description": "Folder ID"
314
+ },
315
+ "domains": {
316
+ "type": "array",
317
+ "description": "Domain names",
318
+ "items": {
319
+ "type": "string",
320
+ "description": "domains parameter"
321
+ }
322
+ }
323
+ },
324
+ "required": [
325
+ "folderId",
326
+ "domains"
327
+ ]
328
+ },
329
+ "security": [
330
+ {
331
+ "apiToken": []
332
+ }
333
+ ],
334
+ "group": "domains",
335
+ "bodyParameters": [
336
+ "domains"
337
+ ]
338
+ },
339
+ {
340
+ "name": "domains_folders_remove-from",
341
+ "title": "Remove domains from folder",
342
+ "annotations": {
343
+ "title": "Remove domains from folder",
344
+ "readOnlyHint": false,
345
+ "destructiveHint": true,
346
+ "idempotentHint": true
347
+ },
348
+ "description": "Remove domains from a domain folder.\n\nThe domains stay in your portfolio. Domains that are not in the folder are skipped.\n\nUse this endpoint to take domains out of a folder.",
349
+ "method": "DELETE",
350
+ "path": "/api/domains/v1/folders/{folderId}/domains",
351
+ "inputSchema": {
352
+ "type": "object",
353
+ "properties": {
354
+ "folderId": {
355
+ "type": "integer",
356
+ "description": "Folder ID"
357
+ },
358
+ "domains": {
359
+ "type": "array",
360
+ "description": "Domain names",
361
+ "items": {
362
+ "type": "string",
363
+ "description": "domains parameter"
364
+ }
365
+ }
366
+ },
367
+ "required": [
368
+ "folderId",
369
+ "domains"
370
+ ]
371
+ },
372
+ "security": [
373
+ {
374
+ "apiToken": []
375
+ }
376
+ ],
377
+ "group": "domains",
378
+ "bodyParameters": [
379
+ "domains"
380
+ ]
381
+ },
382
+ {
383
+ "name": "domains_folders_list",
384
+ "title": "Get domain folder list",
385
+ "annotations": {
386
+ "title": "Get domain folder list",
387
+ "readOnlyHint": true,
388
+ "destructiveHint": false
389
+ },
390
+ "description": "Retrieve the domain folders of your account.\n\nUse this endpoint to view how domains in the portfolio are organized.",
391
+ "method": "GET",
392
+ "path": "/api/domains/v1/folders",
393
+ "inputSchema": {
394
+ "type": "object",
395
+ "properties": {},
396
+ "required": []
397
+ },
398
+ "security": [
399
+ {
400
+ "apiToken": []
401
+ }
402
+ ],
403
+ "group": "domains"
404
+ },
405
+ {
406
+ "name": "domains_folders_create",
407
+ "title": "Create domain folder",
408
+ "annotations": {
409
+ "title": "Create domain folder",
410
+ "readOnlyHint": false,
411
+ "destructiveHint": false
412
+ },
413
+ "description": "Create a domain folder.\n\nFolder names are unique within an account, and an account can have up to 50 folders.\n\nUse this endpoint to group domains in the portfolio.",
414
+ "method": "POST",
415
+ "path": "/api/domains/v1/folders",
416
+ "inputSchema": {
417
+ "type": "object",
418
+ "properties": {
419
+ "name": {
420
+ "type": "string",
421
+ "description": "Folder name, unique within the account"
422
+ },
423
+ "sort_order": {
424
+ "type": "integer",
425
+ "description": "Zero-based position in the folder list. Other folders shift to make room; a value past the end\nplaces the folder last.\nDefaults to the end of the list."
426
+ }
427
+ },
428
+ "required": [
429
+ "name"
430
+ ]
431
+ },
432
+ "security": [
433
+ {
434
+ "apiToken": []
435
+ }
436
+ ],
437
+ "group": "domains",
438
+ "bodyParameters": [
439
+ "name",
440
+ "sort_order"
441
+ ]
442
+ },
223
443
  {
224
444
  "name": "domains_forwarding_get",
225
445
  "title": "Get domain forwarding",
@@ -905,7 +1125,7 @@ const tools: OpenApiTool[] = [
905
1125
  "readOnlyHint": true,
906
1126
  "destructiveHint": false
907
1127
  },
908
- "description": "Retrieve all domains associated with your account.\n\nA plan can include both a free domain (`type: free_domain`) and a free domain\ntransfer (`type: free_domain_transfer`). They are alternatives: claiming one\nremoves the other, which may still be listed for a short time after the claim.\n\nA domain held for verification before it is registered has `status: pending_verification`,\nand its `verification` field says what registration waits for: a manual review, an SMS code,\nor owner contact verification.\n\nUse this endpoint to view user's domain portfolio.",
1128
+ "description": "Retrieve all domains associated with your account.\n\nA plan can include both a free domain (`type: free_domain`) and a free domain\ntransfer (`type: free_domain_transfer`). They are alternatives: claiming one\nremoves the other, which may still be listed for a short time after the claim.\n\nA domain held for verification before it is registered has `status: pending_verification`,\nand its `verification` field says what registration waits for: a manual review, an SMS code,\nor owner contact verification.\n\nEach domain's `folders` lists the [domain folders](#tag/domains-folders) it is in. It is empty for\nitems whose `type` is not `domain`.\n\nUse this endpoint to view user's domain portfolio.",
909
1129
  "method": "GET",
910
1130
  "path": "/api/domains/v1/portfolio",
911
1131
  "inputSchema": {
@@ -141,7 +141,7 @@ export default [
141
141
  "readOnlyHint": true,
142
142
  "destructiveHint": false
143
143
  },
144
- "description": "Get the result of an AI content generation started for the specified WordPress\ninstallation, such as an image generation started with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.\n\nWhile the generation is still running only `status: in-progress` is returned; poll every\nfew seconds. Once `completed`, `result` holds the generated content shaped according to\n`type`: temporary image URLs together with the time they expire for `image-generation`, or\nthe generated website document for `website-generation` (started from the Hostinger\nWordPress plugin). A `failed` generation has no `result`. Unknown or expired generation\nIDs return 404.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
144
+ "description": "Get the result of an AI content generation started for the specified WordPress\ninstallation, such as an image generation started with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.\n\nWhile the generation is still running only `status: in-progress` is returned; poll every\nfew seconds. Once `completed`, `result` holds the generated content shaped according to\n`type`: temporary image URLs together with the time they expire for `image-generation`,\nthe post title, HTML content and SEO metadata for `post-generation`, or the generated\nwebsite document for `website-generation`. Post and website generations are started\nfrom the Hostinger WordPress plugin. A `failed` generation has no `result`. Unknown or\nexpired generation IDs return 404.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
145
145
  "method": "GET",
146
146
  "path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id}",
147
147
  "inputSchema": {
@@ -164,7 +164,8 @@ export default [
164
164
  "description": "Generation type to look up. When omitted, every generation type is checked.",
165
165
  "enum": [
166
166
  "website-generation",
167
- "image-generation"
167
+ "image-generation",
168
+ "post-generation"
168
169
  ]
169
170
  }
170
171
  },
@@ -161,7 +161,7 @@ const tools: OpenApiTool[] = [
161
161
  "readOnlyHint": true,
162
162
  "destructiveHint": false
163
163
  },
164
- "description": "Get the result of an AI content generation started for the specified WordPress\ninstallation, such as an image generation started with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.\n\nWhile the generation is still running only `status: in-progress` is returned; poll every\nfew seconds. Once `completed`, `result` holds the generated content shaped according to\n`type`: temporary image URLs together with the time they expire for `image-generation`, or\nthe generated website document for `website-generation` (started from the Hostinger\nWordPress plugin). A `failed` generation has no `result`. Unknown or expired generation\nIDs return 404.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
164
+ "description": "Get the result of an AI content generation started for the specified WordPress\ninstallation, such as an image generation started with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.\n\nWhile the generation is still running only `status: in-progress` is returned; poll every\nfew seconds. Once `completed`, `result` holds the generated content shaped according to\n`type`: temporary image URLs together with the time they expire for `image-generation`,\nthe post title, HTML content and SEO metadata for `post-generation`, or the generated\nwebsite document for `website-generation`. Post and website generations are started\nfrom the Hostinger WordPress plugin. A `failed` generation has no `result`. Unknown or\nexpired generation IDs return 404.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
165
165
  "method": "GET",
166
166
  "path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id}",
167
167
  "inputSchema": {
@@ -184,7 +184,8 @@ const tools: OpenApiTool[] = [
184
184
  "description": "Generation type to look up. When omitted, every generation type is checked.",
185
185
  "enum": [
186
186
  "website-generation",
187
- "image-generation"
187
+ "image-generation",
188
+ "post-generation"
188
189
  ]
189
190
  }
190
191
  },
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/agency-hosting.js';
5
5
  import instructions from '../core/instructions.agency-hosting.js';
6
6
 
7
- startServer({ name: 'hostinger-agency-hosting-mcp', version: '6.3.1', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '6.5.0', tools, instructions });
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/agency-hosting.js';
5
5
  import instructions from '../core/instructions.agency-hosting.js';
6
6
 
7
- startServer({ name: 'hostinger-agency-hosting-mcp', version: '6.3.1', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '6.5.0', tools, instructions });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/agent-readiness.js';
5
5
 
6
- startServer({ name: 'hostinger-agent-readiness-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/agent-readiness.js';
5
5
 
6
- startServer({ name: 'hostinger-agent-readiness-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '6.5.0', tools });
@@ -5,4 +5,4 @@ import tools from '../core/tools/all.js';
5
5
  import instructions from '../core/instructions.js';
6
6
  import skills from '../core/skills.js';
7
7
 
8
- startServer({ name: 'hostinger-api-mcp', version: '6.3.1', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '6.5.0', tools, instructions, skills });
@@ -5,4 +5,4 @@ import tools from '../core/tools/all.js';
5
5
  import instructions from '../core/instructions.js';
6
6
  import skills from '../core/skills.js';
7
7
 
8
- startServer({ name: 'hostinger-api-mcp', version: '6.3.1', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '6.5.0', tools, instructions, skills });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/billing.js';
5
5
 
6
- startServer({ name: 'hostinger-billing-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/billing.js';
5
5
 
6
- startServer({ name: 'hostinger-billing-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/dns.js';
5
5
 
6
- startServer({ name: 'hostinger-dns-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/dns.js';
5
5
 
6
- startServer({ name: 'hostinger-dns-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/domains.js';
5
5
 
6
- startServer({ name: 'hostinger-domains-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/domains.js';
5
5
 
6
- startServer({ name: 'hostinger-domains-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/gpu.js';
5
5
 
6
- startServer({ name: 'hostinger-gpu-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-gpu-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/gpu.js';
5
5
 
6
- startServer({ name: 'hostinger-gpu-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-gpu-mcp', version: '6.5.0', tools });
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/hosting.js';
5
5
  import instructions from '../core/instructions.js';
6
6
 
7
- startServer({ name: 'hostinger-hosting-mcp', version: '6.3.1', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '6.5.0', tools, instructions });
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/hosting.js';
5
5
  import instructions from '../core/instructions.js';
6
6
 
7
- startServer({ name: 'hostinger-hosting-mcp', version: '6.3.1', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '6.5.0', tools, instructions });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/mail.js';
5
5
 
6
- startServer({ name: 'hostinger-mail-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/mail.js';
5
5
 
6
- startServer({ name: 'hostinger-mail-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/reach.js';
5
5
 
6
- startServer({ name: 'hostinger-reach-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/reach.js';
5
5
 
6
- startServer({ name: 'hostinger-reach-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/vps.js';
5
5
 
6
- startServer({ name: 'hostinger-vps-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/vps.js';
5
5
 
6
- startServer({ name: 'hostinger-vps-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '6.5.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '6.3.1', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '6.5.0', tools });
package/types.d.ts CHANGED
@@ -1750,6 +1750,127 @@ Use this endpoint to verify domain availability before purchase.
1750
1750
  response: any; // Response structure will depend on the API
1751
1751
  };
1752
1752
 
1753
+ /**
1754
+ * Delete a domain folder.
1755
+
1756
+ The domains in the folder are not deleted; they are only removed from the folder.
1757
+
1758
+ Use this endpoint to remove folders that are no longer needed.
1759
+ */
1760
+ "domains_folders_delete": {
1761
+ params: {
1762
+ /**
1763
+ * Folder ID
1764
+ */
1765
+ folderId: number;
1766
+ };
1767
+ response: any; // Response structure will depend on the API
1768
+ };
1769
+
1770
+ /**
1771
+ * Rename a domain folder or change its position in the folder list.
1772
+
1773
+ Only the fields sent are changed.
1774
+
1775
+ Use this endpoint to rename or reorder folders.
1776
+ */
1777
+ "domains_folders_update": {
1778
+ params: {
1779
+ /**
1780
+ * Folder ID
1781
+ */
1782
+ folderId: number;
1783
+ /**
1784
+ * Folder name, unique within the account
1785
+ */
1786
+ name?: string;
1787
+ /**
1788
+ * Zero-based position in the folder list. Other folders shift to make room; a value past the end
1789
+ places the folder last.
1790
+ */
1791
+ sort_order?: number;
1792
+ };
1793
+ response: any; // Response structure will depend on the API
1794
+ };
1795
+
1796
+ /**
1797
+ * Add domains to a domain folder.
1798
+
1799
+ A domain is in one of your folders at a time: adding it to this folder removes it from your other folders.
1800
+ Domains that are not in your portfolio are skipped.
1801
+
1802
+ Use this endpoint to group domains of the portfolio in a folder.
1803
+ */
1804
+ "domains_folders_add-to": {
1805
+ params: {
1806
+ /**
1807
+ * Folder ID
1808
+ */
1809
+ folderId: number;
1810
+ /**
1811
+ * Domain names
1812
+ */
1813
+ domains: array;
1814
+ };
1815
+ response: any; // Response structure will depend on the API
1816
+ };
1817
+
1818
+ /**
1819
+ * Remove domains from a domain folder.
1820
+
1821
+ The domains stay in your portfolio. Domains that are not in the folder are skipped.
1822
+
1823
+ Use this endpoint to take domains out of a folder.
1824
+ */
1825
+ "domains_folders_remove-from": {
1826
+ params: {
1827
+ /**
1828
+ * Folder ID
1829
+ */
1830
+ folderId: number;
1831
+ /**
1832
+ * Domain names
1833
+ */
1834
+ domains: array;
1835
+ };
1836
+ response: any; // Response structure will depend on the API
1837
+ };
1838
+
1839
+ /**
1840
+ * Retrieve the domain folders of your account.
1841
+
1842
+ Use this endpoint to view how domains in the portfolio are organized.
1843
+ */
1844
+ "domains_folders_list": {
1845
+ params: {
1846
+
1847
+ };
1848
+ response: any; // Response structure will depend on the API
1849
+ };
1850
+
1851
+ /**
1852
+ * Create a domain folder.
1853
+
1854
+ Folder names are unique within an account, and an account can have up to 50 folders.
1855
+
1856
+ Use this endpoint to group domains in the portfolio.
1857
+ */
1858
+ "domains_folders_create": {
1859
+ params: {
1860
+ /**
1861
+ * Folder name, unique within the account
1862
+ */
1863
+ name: string;
1864
+ /**
1865
+ * Zero-based position in the folder list. Other folders shift to make room; a value past the end
1866
+ places the folder last.
1867
+ Defaults to the end of the list.
1868
+ */
1869
+ sort_order?: number;
1870
+ };
1871
+ response: any; // Response structure will depend on the API
1872
+ };
1873
+
1753
1874
  /**
1754
1875
  * Retrieve domain forwarding data.
1755
1876
 
@@ -2184,6 +2305,9 @@ A domain held for verification before it is registered has `status: pending_veri
2184
2305
  and its `verification` field says what registration waits for: a manual review, an SMS code,
2185
2306
  or owner contact verification.
2186
2307
 
2308
+ Each domain's `folders` lists the [domain folders](#tag/domains-folders) it is in. It is empty for
2309
+ items whose `type` is not `domain`.
2310
+
2187
2311
  Use this endpoint to view user's domain portfolio.
2188
2312
  */
2189
2313
  "domains_portfolio_list": {
@@ -10587,10 +10711,11 @@ POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/gen
10587
10711
 
10588
10712
  While the generation is still running only `status: in-progress` is returned; poll every
10589
10713
  few seconds. Once `completed`, `result` holds the generated content shaped according to
10590
- `type`: temporary image URLs together with the time they expire for `image-generation`, or
10591
- the generated website document for `website-generation` (started from the Hostinger
10592
- WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation
10593
- IDs return 404.
10714
+ `type`: temporary image URLs together with the time they expire for `image-generation`,
10715
+ the post title, HTML content and SEO metadata for `post-generation`, or the generated
10716
+ website document for `website-generation`. Post and website generations are started
10717
+ from the Hostinger WordPress plugin. A `failed` generation has no `result`. Unknown or
10718
+ expired generation IDs return 404.
10594
10719
 
10595
10720
  Provide the WordPress installation (software) identifier in the path. It can
10596
10721
  be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).