hostinger-api-mcp 1.39.0 → 1.41.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 +48 -3
- 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/agency-hosting.js +69 -0
- package/src/core/tools/agency-hosting.ts +69 -0
- package/src/core/tools/all.js +179 -0
- package/src/core/tools/all.ts +179 -0
- package/src/core/tools/hosting.js +110 -0
- package/src/core/tools/hosting.ts +110 -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 +115 -0
package/README.md
CHANGED
|
@@ -69,14 +69,14 @@ pnpm update -g hostinger-api-mcp
|
|
|
69
69
|
|
|
70
70
|
This package installs the following MCP server commands:
|
|
71
71
|
|
|
72
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
73
|
-
- `hostinger-agency-hosting-mcp` —
|
|
72
|
+
- `hostinger-api-mcp` — unified server with every tool (342 total)
|
|
73
|
+
- `hostinger-agency-hosting-mcp` — 36 tools for agency-hosting
|
|
74
74
|
- `hostinger-billing-mcp` — 9 tools for billing
|
|
75
75
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
76
76
|
- `hostinger-domains-mcp` — 40 tools for domains
|
|
77
77
|
- `hostinger-ecommerce-mcp` — 14 tools for ecommerce
|
|
78
78
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
79
|
-
- `hostinger-hosting-mcp` —
|
|
79
|
+
- `hostinger-hosting-mcp` — 53 tools for hosting
|
|
80
80
|
- `hostinger-mail-mcp` — 38 tools for mail
|
|
81
81
|
- `hostinger-reach-mcp` — 45 tools for reach
|
|
82
82
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
@@ -300,6 +300,16 @@ archive types: .zip, .tar, .tar.gz, .tgz.
|
|
|
300
300
|
- **Method**: `POST`
|
|
301
301
|
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}/files/import-archive`
|
|
302
302
|
|
|
303
|
+
#### agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1
|
|
304
|
+
|
|
305
|
+
Returns aggregated disk and inode usage for the Agency Plan order over the
|
|
306
|
+
selected time frame, plus the plan quotas. Figures cover the whole order
|
|
307
|
+
account. Values may be up to one hour stale. CPU, memory, and process usage
|
|
308
|
+
are on the resource-usage-metrics endpoint.
|
|
309
|
+
|
|
310
|
+
- **Method**: `GET`
|
|
311
|
+
- **Path**: `/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics`
|
|
312
|
+
|
|
303
313
|
#### agency-hosting_listOrdersV1
|
|
304
314
|
|
|
305
315
|
Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
@@ -307,6 +317,18 @@ Returns a paginated list of Agency Plan orders accessible to the authenticated c
|
|
|
307
317
|
- **Method**: `GET`
|
|
308
318
|
- **Path**: `/api/agency-hosting/v1/orders`
|
|
309
319
|
|
|
320
|
+
#### agency-hosting_listOrderResourceUsageMetricsV1
|
|
321
|
+
|
|
322
|
+
Returns aggregated CPU, memory, and process usage for the Agency Plan order
|
|
323
|
+
over the selected time frame, plus the plan quotas and a per-website
|
|
324
|
+
breakdown. Each website is identified by uid. Suspended and deleted websites
|
|
325
|
+
are excluded from both the order totals and the per-website breakdown.
|
|
326
|
+
Values may be up to one hour stale. Disk and inode usage are on the
|
|
327
|
+
disk-usage-metrics endpoint.
|
|
328
|
+
|
|
329
|
+
- **Method**: `GET`
|
|
330
|
+
- **Path**: `/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics`
|
|
331
|
+
|
|
310
332
|
#### agency-hosting_listPHPExtensionsForAWebsiteV1
|
|
311
333
|
|
|
312
334
|
Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
@@ -1858,6 +1880,29 @@ Use the Get PHP details endpoint to see the versions available for the website.
|
|
|
1858
1880
|
- **Method**: `PATCH`
|
|
1859
1881
|
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
|
|
1860
1882
|
|
|
1883
|
+
#### hosting_listWebsiteRedirectsV1
|
|
1884
|
+
|
|
1885
|
+
Returns a paginated list of redirects configured for the selected website.
|
|
1886
|
+
|
|
1887
|
+
- **Method**: `GET`
|
|
1888
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/redirects`
|
|
1889
|
+
|
|
1890
|
+
#### hosting_createWebsiteRedirectV1
|
|
1891
|
+
|
|
1892
|
+
Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
1893
|
+
|
|
1894
|
+
- **Method**: `POST`
|
|
1895
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/redirects`
|
|
1896
|
+
|
|
1897
|
+
#### hosting_deleteWebsiteRedirectV1
|
|
1898
|
+
|
|
1899
|
+
Permanently deletes the redirect identified by its source URL.
|
|
1900
|
+
|
|
1901
|
+
Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
1902
|
+
|
|
1903
|
+
- **Method**: `DELETE`
|
|
1904
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/redirects`
|
|
1905
|
+
|
|
1861
1906
|
#### hosting_listWebsitesV1
|
|
1862
1907
|
|
|
1863
1908
|
Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.41.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.41.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
|
@@ -247,6 +247,40 @@ export default [
|
|
|
247
247
|
],
|
|
248
248
|
"group": "agency-hosting"
|
|
249
249
|
},
|
|
250
|
+
{
|
|
251
|
+
"name": "agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1",
|
|
252
|
+
"description": "Returns aggregated disk and inode usage for the Agency Plan order over the\nselected time frame, plus the plan quotas. Figures cover the whole order\naccount. Values may be up to one hour stale. CPU, memory, and process usage\nare on the resource-usage-metrics endpoint.",
|
|
253
|
+
"method": "GET",
|
|
254
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics",
|
|
255
|
+
"inputSchema": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"properties": {
|
|
258
|
+
"order_id": {
|
|
259
|
+
"type": "integer",
|
|
260
|
+
"description": "Agency Plan order ID"
|
|
261
|
+
},
|
|
262
|
+
"time_frame_days": {
|
|
263
|
+
"type": "integer",
|
|
264
|
+
"description": "Length of the window in days, ending now. Bucket size grows with the window.",
|
|
265
|
+
"enum": [
|
|
266
|
+
1,
|
|
267
|
+
7,
|
|
268
|
+
14,
|
|
269
|
+
30
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": [
|
|
274
|
+
"order_id"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"security": [
|
|
278
|
+
{
|
|
279
|
+
"apiToken": []
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"group": "agency-hosting"
|
|
283
|
+
},
|
|
250
284
|
{
|
|
251
285
|
"name": "agency-hosting_listOrdersV1",
|
|
252
286
|
"description": "Returns a paginated list of Agency Plan orders accessible to the authenticated client.",
|
|
@@ -273,6 +307,41 @@ export default [
|
|
|
273
307
|
],
|
|
274
308
|
"group": "agency-hosting"
|
|
275
309
|
},
|
|
310
|
+
{
|
|
311
|
+
"name": "agency-hosting_listOrderResourceUsageMetricsV1",
|
|
312
|
+
"description": "Returns aggregated CPU, memory, and process usage for the Agency Plan order\nover the selected time frame, plus the plan quotas and a per-website\nbreakdown. Each website is identified by uid. Suspended and deleted websites\nare excluded from both the order totals and the per-website breakdown.\nValues may be up to one hour stale. Disk and inode usage are on the\ndisk-usage-metrics endpoint.",
|
|
313
|
+
"method": "GET",
|
|
314
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics",
|
|
315
|
+
"inputSchema": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"order_id": {
|
|
319
|
+
"type": "integer",
|
|
320
|
+
"description": "Agency Plan order ID"
|
|
321
|
+
},
|
|
322
|
+
"time_frame_hours": {
|
|
323
|
+
"type": "integer",
|
|
324
|
+
"description": "Length of the window in hours, ending now. Bucket size grows with the window.",
|
|
325
|
+
"enum": [
|
|
326
|
+
1,
|
|
327
|
+
24,
|
|
328
|
+
168,
|
|
329
|
+
336,
|
|
330
|
+
720
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": [
|
|
335
|
+
"order_id"
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
"security": [
|
|
339
|
+
{
|
|
340
|
+
"apiToken": []
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"group": "agency-hosting"
|
|
344
|
+
},
|
|
276
345
|
{
|
|
277
346
|
"name": "agency-hosting_listPHPExtensionsForAWebsiteV1",
|
|
278
347
|
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
|
|
@@ -261,6 +261,40 @@ const tools: OpenApiTool[] = [
|
|
|
261
261
|
],
|
|
262
262
|
"group": "agency-hosting"
|
|
263
263
|
},
|
|
264
|
+
{
|
|
265
|
+
"name": "agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1",
|
|
266
|
+
"description": "Returns aggregated disk and inode usage for the Agency Plan order over the\nselected time frame, plus the plan quotas. Figures cover the whole order\naccount. Values may be up to one hour stale. CPU, memory, and process usage\nare on the resource-usage-metrics endpoint.",
|
|
267
|
+
"method": "GET",
|
|
268
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics",
|
|
269
|
+
"inputSchema": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"properties": {
|
|
272
|
+
"order_id": {
|
|
273
|
+
"type": "integer",
|
|
274
|
+
"description": "Agency Plan order ID"
|
|
275
|
+
},
|
|
276
|
+
"time_frame_days": {
|
|
277
|
+
"type": "integer",
|
|
278
|
+
"description": "Length of the window in days, ending now. Bucket size grows with the window.",
|
|
279
|
+
"enum": [
|
|
280
|
+
1,
|
|
281
|
+
7,
|
|
282
|
+
14,
|
|
283
|
+
30
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": [
|
|
288
|
+
"order_id"
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
"security": [
|
|
292
|
+
{
|
|
293
|
+
"apiToken": []
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"group": "agency-hosting"
|
|
297
|
+
},
|
|
264
298
|
{
|
|
265
299
|
"name": "agency-hosting_listOrdersV1",
|
|
266
300
|
"description": "Returns a paginated list of Agency Plan orders accessible to the authenticated client.",
|
|
@@ -287,6 +321,41 @@ const tools: OpenApiTool[] = [
|
|
|
287
321
|
],
|
|
288
322
|
"group": "agency-hosting"
|
|
289
323
|
},
|
|
324
|
+
{
|
|
325
|
+
"name": "agency-hosting_listOrderResourceUsageMetricsV1",
|
|
326
|
+
"description": "Returns aggregated CPU, memory, and process usage for the Agency Plan order\nover the selected time frame, plus the plan quotas and a per-website\nbreakdown. Each website is identified by uid. Suspended and deleted websites\nare excluded from both the order totals and the per-website breakdown.\nValues may be up to one hour stale. Disk and inode usage are on the\ndisk-usage-metrics endpoint.",
|
|
327
|
+
"method": "GET",
|
|
328
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics",
|
|
329
|
+
"inputSchema": {
|
|
330
|
+
"type": "object",
|
|
331
|
+
"properties": {
|
|
332
|
+
"order_id": {
|
|
333
|
+
"type": "integer",
|
|
334
|
+
"description": "Agency Plan order ID"
|
|
335
|
+
},
|
|
336
|
+
"time_frame_hours": {
|
|
337
|
+
"type": "integer",
|
|
338
|
+
"description": "Length of the window in hours, ending now. Bucket size grows with the window.",
|
|
339
|
+
"enum": [
|
|
340
|
+
1,
|
|
341
|
+
24,
|
|
342
|
+
168,
|
|
343
|
+
336,
|
|
344
|
+
720
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"required": [
|
|
349
|
+
"order_id"
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
"security": [
|
|
353
|
+
{
|
|
354
|
+
"apiToken": []
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"group": "agency-hosting"
|
|
358
|
+
},
|
|
290
359
|
{
|
|
291
360
|
"name": "agency-hosting_listPHPExtensionsForAWebsiteV1",
|
|
292
361
|
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
|
package/src/core/tools/all.js
CHANGED
|
@@ -504,6 +504,40 @@ export default [
|
|
|
504
504
|
],
|
|
505
505
|
"group": "agency-hosting"
|
|
506
506
|
},
|
|
507
|
+
{
|
|
508
|
+
"name": "agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1",
|
|
509
|
+
"description": "Returns aggregated disk and inode usage for the Agency Plan order over the\nselected time frame, plus the plan quotas. Figures cover the whole order\naccount. Values may be up to one hour stale. CPU, memory, and process usage\nare on the resource-usage-metrics endpoint.",
|
|
510
|
+
"method": "GET",
|
|
511
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics",
|
|
512
|
+
"inputSchema": {
|
|
513
|
+
"type": "object",
|
|
514
|
+
"properties": {
|
|
515
|
+
"order_id": {
|
|
516
|
+
"type": "integer",
|
|
517
|
+
"description": "Agency Plan order ID"
|
|
518
|
+
},
|
|
519
|
+
"time_frame_days": {
|
|
520
|
+
"type": "integer",
|
|
521
|
+
"description": "Length of the window in days, ending now. Bucket size grows with the window.",
|
|
522
|
+
"enum": [
|
|
523
|
+
1,
|
|
524
|
+
7,
|
|
525
|
+
14,
|
|
526
|
+
30
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"required": [
|
|
531
|
+
"order_id"
|
|
532
|
+
]
|
|
533
|
+
},
|
|
534
|
+
"security": [
|
|
535
|
+
{
|
|
536
|
+
"apiToken": []
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"group": "agency-hosting"
|
|
540
|
+
},
|
|
507
541
|
{
|
|
508
542
|
"name": "agency-hosting_listOrdersV1",
|
|
509
543
|
"description": "Returns a paginated list of Agency Plan orders accessible to the authenticated client.",
|
|
@@ -530,6 +564,41 @@ export default [
|
|
|
530
564
|
],
|
|
531
565
|
"group": "agency-hosting"
|
|
532
566
|
},
|
|
567
|
+
{
|
|
568
|
+
"name": "agency-hosting_listOrderResourceUsageMetricsV1",
|
|
569
|
+
"description": "Returns aggregated CPU, memory, and process usage for the Agency Plan order\nover the selected time frame, plus the plan quotas and a per-website\nbreakdown. Each website is identified by uid. Suspended and deleted websites\nare excluded from both the order totals and the per-website breakdown.\nValues may be up to one hour stale. Disk and inode usage are on the\ndisk-usage-metrics endpoint.",
|
|
570
|
+
"method": "GET",
|
|
571
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics",
|
|
572
|
+
"inputSchema": {
|
|
573
|
+
"type": "object",
|
|
574
|
+
"properties": {
|
|
575
|
+
"order_id": {
|
|
576
|
+
"type": "integer",
|
|
577
|
+
"description": "Agency Plan order ID"
|
|
578
|
+
},
|
|
579
|
+
"time_frame_hours": {
|
|
580
|
+
"type": "integer",
|
|
581
|
+
"description": "Length of the window in hours, ending now. Bucket size grows with the window.",
|
|
582
|
+
"enum": [
|
|
583
|
+
1,
|
|
584
|
+
24,
|
|
585
|
+
168,
|
|
586
|
+
336,
|
|
587
|
+
720
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"required": [
|
|
592
|
+
"order_id"
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
"security": [
|
|
596
|
+
{
|
|
597
|
+
"apiToken": []
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
"group": "agency-hosting"
|
|
601
|
+
},
|
|
533
602
|
{
|
|
534
603
|
"name": "agency-hosting_listPHPExtensionsForAWebsiteV1",
|
|
535
604
|
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
|
|
@@ -5117,6 +5186,116 @@ export default [
|
|
|
5117
5186
|
],
|
|
5118
5187
|
"group": "hosting"
|
|
5119
5188
|
},
|
|
5189
|
+
{
|
|
5190
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
5191
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
5192
|
+
"method": "GET",
|
|
5193
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5194
|
+
"inputSchema": {
|
|
5195
|
+
"type": "object",
|
|
5196
|
+
"properties": {
|
|
5197
|
+
"username": {
|
|
5198
|
+
"type": "string",
|
|
5199
|
+
"description": "username parameter"
|
|
5200
|
+
},
|
|
5201
|
+
"domain": {
|
|
5202
|
+
"type": "string",
|
|
5203
|
+
"description": "Domain name"
|
|
5204
|
+
},
|
|
5205
|
+
"page": {
|
|
5206
|
+
"type": "integer",
|
|
5207
|
+
"description": "Page number"
|
|
5208
|
+
},
|
|
5209
|
+
"per_page": {
|
|
5210
|
+
"type": "integer",
|
|
5211
|
+
"description": "Number of items per page"
|
|
5212
|
+
}
|
|
5213
|
+
},
|
|
5214
|
+
"required": [
|
|
5215
|
+
"username",
|
|
5216
|
+
"domain"
|
|
5217
|
+
]
|
|
5218
|
+
},
|
|
5219
|
+
"security": [
|
|
5220
|
+
{
|
|
5221
|
+
"apiToken": []
|
|
5222
|
+
}
|
|
5223
|
+
],
|
|
5224
|
+
"group": "hosting"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
5228
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
5229
|
+
"method": "POST",
|
|
5230
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5231
|
+
"inputSchema": {
|
|
5232
|
+
"type": "object",
|
|
5233
|
+
"properties": {
|
|
5234
|
+
"username": {
|
|
5235
|
+
"type": "string",
|
|
5236
|
+
"description": "username parameter"
|
|
5237
|
+
},
|
|
5238
|
+
"domain": {
|
|
5239
|
+
"type": "string",
|
|
5240
|
+
"description": "Domain name"
|
|
5241
|
+
},
|
|
5242
|
+
"from": {
|
|
5243
|
+
"type": "string",
|
|
5244
|
+
"description": "Source URL on the selected website"
|
|
5245
|
+
},
|
|
5246
|
+
"to": {
|
|
5247
|
+
"type": "string",
|
|
5248
|
+
"description": "Destination URL or IP address"
|
|
5249
|
+
}
|
|
5250
|
+
},
|
|
5251
|
+
"required": [
|
|
5252
|
+
"username",
|
|
5253
|
+
"domain",
|
|
5254
|
+
"from",
|
|
5255
|
+
"to"
|
|
5256
|
+
]
|
|
5257
|
+
},
|
|
5258
|
+
"security": [
|
|
5259
|
+
{
|
|
5260
|
+
"apiToken": []
|
|
5261
|
+
}
|
|
5262
|
+
],
|
|
5263
|
+
"group": "hosting"
|
|
5264
|
+
},
|
|
5265
|
+
{
|
|
5266
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
5267
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
5268
|
+
"method": "DELETE",
|
|
5269
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5270
|
+
"inputSchema": {
|
|
5271
|
+
"type": "object",
|
|
5272
|
+
"properties": {
|
|
5273
|
+
"username": {
|
|
5274
|
+
"type": "string",
|
|
5275
|
+
"description": "username parameter"
|
|
5276
|
+
},
|
|
5277
|
+
"domain": {
|
|
5278
|
+
"type": "string",
|
|
5279
|
+
"description": "Domain name"
|
|
5280
|
+
},
|
|
5281
|
+
"from": {
|
|
5282
|
+
"type": "string",
|
|
5283
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
5284
|
+
}
|
|
5285
|
+
},
|
|
5286
|
+
"required": [
|
|
5287
|
+
"username",
|
|
5288
|
+
"domain",
|
|
5289
|
+
"from"
|
|
5290
|
+
]
|
|
5291
|
+
},
|
|
5292
|
+
"security": [
|
|
5293
|
+
{
|
|
5294
|
+
"apiToken": []
|
|
5295
|
+
}
|
|
5296
|
+
],
|
|
5297
|
+
"group": "hosting"
|
|
5298
|
+
},
|
|
5120
5299
|
{
|
|
5121
5300
|
"name": "hosting_listWebsitesV1",
|
|
5122
5301
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -518,6 +518,40 @@ const tools: OpenApiTool[] = [
|
|
|
518
518
|
],
|
|
519
519
|
"group": "agency-hosting"
|
|
520
520
|
},
|
|
521
|
+
{
|
|
522
|
+
"name": "agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1",
|
|
523
|
+
"description": "Returns aggregated disk and inode usage for the Agency Plan order over the\nselected time frame, plus the plan quotas. Figures cover the whole order\naccount. Values may be up to one hour stale. CPU, memory, and process usage\nare on the resource-usage-metrics endpoint.",
|
|
524
|
+
"method": "GET",
|
|
525
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics",
|
|
526
|
+
"inputSchema": {
|
|
527
|
+
"type": "object",
|
|
528
|
+
"properties": {
|
|
529
|
+
"order_id": {
|
|
530
|
+
"type": "integer",
|
|
531
|
+
"description": "Agency Plan order ID"
|
|
532
|
+
},
|
|
533
|
+
"time_frame_days": {
|
|
534
|
+
"type": "integer",
|
|
535
|
+
"description": "Length of the window in days, ending now. Bucket size grows with the window.",
|
|
536
|
+
"enum": [
|
|
537
|
+
1,
|
|
538
|
+
7,
|
|
539
|
+
14,
|
|
540
|
+
30
|
|
541
|
+
]
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"required": [
|
|
545
|
+
"order_id"
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
"security": [
|
|
549
|
+
{
|
|
550
|
+
"apiToken": []
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
"group": "agency-hosting"
|
|
554
|
+
},
|
|
521
555
|
{
|
|
522
556
|
"name": "agency-hosting_listOrdersV1",
|
|
523
557
|
"description": "Returns a paginated list of Agency Plan orders accessible to the authenticated client.",
|
|
@@ -544,6 +578,41 @@ const tools: OpenApiTool[] = [
|
|
|
544
578
|
],
|
|
545
579
|
"group": "agency-hosting"
|
|
546
580
|
},
|
|
581
|
+
{
|
|
582
|
+
"name": "agency-hosting_listOrderResourceUsageMetricsV1",
|
|
583
|
+
"description": "Returns aggregated CPU, memory, and process usage for the Agency Plan order\nover the selected time frame, plus the plan quotas and a per-website\nbreakdown. Each website is identified by uid. Suspended and deleted websites\nare excluded from both the order totals and the per-website breakdown.\nValues may be up to one hour stale. Disk and inode usage are on the\ndisk-usage-metrics endpoint.",
|
|
584
|
+
"method": "GET",
|
|
585
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics",
|
|
586
|
+
"inputSchema": {
|
|
587
|
+
"type": "object",
|
|
588
|
+
"properties": {
|
|
589
|
+
"order_id": {
|
|
590
|
+
"type": "integer",
|
|
591
|
+
"description": "Agency Plan order ID"
|
|
592
|
+
},
|
|
593
|
+
"time_frame_hours": {
|
|
594
|
+
"type": "integer",
|
|
595
|
+
"description": "Length of the window in hours, ending now. Bucket size grows with the window.",
|
|
596
|
+
"enum": [
|
|
597
|
+
1,
|
|
598
|
+
24,
|
|
599
|
+
168,
|
|
600
|
+
336,
|
|
601
|
+
720
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"required": [
|
|
606
|
+
"order_id"
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"security": [
|
|
610
|
+
{
|
|
611
|
+
"apiToken": []
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"group": "agency-hosting"
|
|
615
|
+
},
|
|
547
616
|
{
|
|
548
617
|
"name": "agency-hosting_listPHPExtensionsForAWebsiteV1",
|
|
549
618
|
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
|
|
@@ -5131,6 +5200,116 @@ const tools: OpenApiTool[] = [
|
|
|
5131
5200
|
],
|
|
5132
5201
|
"group": "hosting"
|
|
5133
5202
|
},
|
|
5203
|
+
{
|
|
5204
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
5205
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
5206
|
+
"method": "GET",
|
|
5207
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5208
|
+
"inputSchema": {
|
|
5209
|
+
"type": "object",
|
|
5210
|
+
"properties": {
|
|
5211
|
+
"username": {
|
|
5212
|
+
"type": "string",
|
|
5213
|
+
"description": "username parameter"
|
|
5214
|
+
},
|
|
5215
|
+
"domain": {
|
|
5216
|
+
"type": "string",
|
|
5217
|
+
"description": "Domain name"
|
|
5218
|
+
},
|
|
5219
|
+
"page": {
|
|
5220
|
+
"type": "integer",
|
|
5221
|
+
"description": "Page number"
|
|
5222
|
+
},
|
|
5223
|
+
"per_page": {
|
|
5224
|
+
"type": "integer",
|
|
5225
|
+
"description": "Number of items per page"
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
"required": [
|
|
5229
|
+
"username",
|
|
5230
|
+
"domain"
|
|
5231
|
+
]
|
|
5232
|
+
},
|
|
5233
|
+
"security": [
|
|
5234
|
+
{
|
|
5235
|
+
"apiToken": []
|
|
5236
|
+
}
|
|
5237
|
+
],
|
|
5238
|
+
"group": "hosting"
|
|
5239
|
+
},
|
|
5240
|
+
{
|
|
5241
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
5242
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
5243
|
+
"method": "POST",
|
|
5244
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5245
|
+
"inputSchema": {
|
|
5246
|
+
"type": "object",
|
|
5247
|
+
"properties": {
|
|
5248
|
+
"username": {
|
|
5249
|
+
"type": "string",
|
|
5250
|
+
"description": "username parameter"
|
|
5251
|
+
},
|
|
5252
|
+
"domain": {
|
|
5253
|
+
"type": "string",
|
|
5254
|
+
"description": "Domain name"
|
|
5255
|
+
},
|
|
5256
|
+
"from": {
|
|
5257
|
+
"type": "string",
|
|
5258
|
+
"description": "Source URL on the selected website"
|
|
5259
|
+
},
|
|
5260
|
+
"to": {
|
|
5261
|
+
"type": "string",
|
|
5262
|
+
"description": "Destination URL or IP address"
|
|
5263
|
+
}
|
|
5264
|
+
},
|
|
5265
|
+
"required": [
|
|
5266
|
+
"username",
|
|
5267
|
+
"domain",
|
|
5268
|
+
"from",
|
|
5269
|
+
"to"
|
|
5270
|
+
]
|
|
5271
|
+
},
|
|
5272
|
+
"security": [
|
|
5273
|
+
{
|
|
5274
|
+
"apiToken": []
|
|
5275
|
+
}
|
|
5276
|
+
],
|
|
5277
|
+
"group": "hosting"
|
|
5278
|
+
},
|
|
5279
|
+
{
|
|
5280
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
5281
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
5282
|
+
"method": "DELETE",
|
|
5283
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5284
|
+
"inputSchema": {
|
|
5285
|
+
"type": "object",
|
|
5286
|
+
"properties": {
|
|
5287
|
+
"username": {
|
|
5288
|
+
"type": "string",
|
|
5289
|
+
"description": "username parameter"
|
|
5290
|
+
},
|
|
5291
|
+
"domain": {
|
|
5292
|
+
"type": "string",
|
|
5293
|
+
"description": "Domain name"
|
|
5294
|
+
},
|
|
5295
|
+
"from": {
|
|
5296
|
+
"type": "string",
|
|
5297
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
5298
|
+
}
|
|
5299
|
+
},
|
|
5300
|
+
"required": [
|
|
5301
|
+
"username",
|
|
5302
|
+
"domain",
|
|
5303
|
+
"from"
|
|
5304
|
+
]
|
|
5305
|
+
},
|
|
5306
|
+
"security": [
|
|
5307
|
+
{
|
|
5308
|
+
"apiToken": []
|
|
5309
|
+
}
|
|
5310
|
+
],
|
|
5311
|
+
"group": "hosting"
|
|
5312
|
+
},
|
|
5134
5313
|
{
|
|
5135
5314
|
"name": "hosting_listWebsitesV1",
|
|
5136
5315
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|
|
@@ -1690,6 +1690,116 @@ export default [
|
|
|
1690
1690
|
],
|
|
1691
1691
|
"group": "hosting"
|
|
1692
1692
|
},
|
|
1693
|
+
{
|
|
1694
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
1695
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
1696
|
+
"method": "GET",
|
|
1697
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1698
|
+
"inputSchema": {
|
|
1699
|
+
"type": "object",
|
|
1700
|
+
"properties": {
|
|
1701
|
+
"username": {
|
|
1702
|
+
"type": "string",
|
|
1703
|
+
"description": "username parameter"
|
|
1704
|
+
},
|
|
1705
|
+
"domain": {
|
|
1706
|
+
"type": "string",
|
|
1707
|
+
"description": "Domain name"
|
|
1708
|
+
},
|
|
1709
|
+
"page": {
|
|
1710
|
+
"type": "integer",
|
|
1711
|
+
"description": "Page number"
|
|
1712
|
+
},
|
|
1713
|
+
"per_page": {
|
|
1714
|
+
"type": "integer",
|
|
1715
|
+
"description": "Number of items per page"
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
"required": [
|
|
1719
|
+
"username",
|
|
1720
|
+
"domain"
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
"security": [
|
|
1724
|
+
{
|
|
1725
|
+
"apiToken": []
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1728
|
+
"group": "hosting"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
1732
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
1733
|
+
"method": "POST",
|
|
1734
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1735
|
+
"inputSchema": {
|
|
1736
|
+
"type": "object",
|
|
1737
|
+
"properties": {
|
|
1738
|
+
"username": {
|
|
1739
|
+
"type": "string",
|
|
1740
|
+
"description": "username parameter"
|
|
1741
|
+
},
|
|
1742
|
+
"domain": {
|
|
1743
|
+
"type": "string",
|
|
1744
|
+
"description": "Domain name"
|
|
1745
|
+
},
|
|
1746
|
+
"from": {
|
|
1747
|
+
"type": "string",
|
|
1748
|
+
"description": "Source URL on the selected website"
|
|
1749
|
+
},
|
|
1750
|
+
"to": {
|
|
1751
|
+
"type": "string",
|
|
1752
|
+
"description": "Destination URL or IP address"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
"required": [
|
|
1756
|
+
"username",
|
|
1757
|
+
"domain",
|
|
1758
|
+
"from",
|
|
1759
|
+
"to"
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1762
|
+
"security": [
|
|
1763
|
+
{
|
|
1764
|
+
"apiToken": []
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1767
|
+
"group": "hosting"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
1771
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
1772
|
+
"method": "DELETE",
|
|
1773
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1774
|
+
"inputSchema": {
|
|
1775
|
+
"type": "object",
|
|
1776
|
+
"properties": {
|
|
1777
|
+
"username": {
|
|
1778
|
+
"type": "string",
|
|
1779
|
+
"description": "username parameter"
|
|
1780
|
+
},
|
|
1781
|
+
"domain": {
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"description": "Domain name"
|
|
1784
|
+
},
|
|
1785
|
+
"from": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"required": [
|
|
1791
|
+
"username",
|
|
1792
|
+
"domain",
|
|
1793
|
+
"from"
|
|
1794
|
+
]
|
|
1795
|
+
},
|
|
1796
|
+
"security": [
|
|
1797
|
+
{
|
|
1798
|
+
"apiToken": []
|
|
1799
|
+
}
|
|
1800
|
+
],
|
|
1801
|
+
"group": "hosting"
|
|
1802
|
+
},
|
|
1693
1803
|
{
|
|
1694
1804
|
"name": "hosting_listWebsitesV1",
|
|
1695
1805
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|
|
@@ -1704,6 +1704,116 @@ const tools: OpenApiTool[] = [
|
|
|
1704
1704
|
],
|
|
1705
1705
|
"group": "hosting"
|
|
1706
1706
|
},
|
|
1707
|
+
{
|
|
1708
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
1709
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
1710
|
+
"method": "GET",
|
|
1711
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1712
|
+
"inputSchema": {
|
|
1713
|
+
"type": "object",
|
|
1714
|
+
"properties": {
|
|
1715
|
+
"username": {
|
|
1716
|
+
"type": "string",
|
|
1717
|
+
"description": "username parameter"
|
|
1718
|
+
},
|
|
1719
|
+
"domain": {
|
|
1720
|
+
"type": "string",
|
|
1721
|
+
"description": "Domain name"
|
|
1722
|
+
},
|
|
1723
|
+
"page": {
|
|
1724
|
+
"type": "integer",
|
|
1725
|
+
"description": "Page number"
|
|
1726
|
+
},
|
|
1727
|
+
"per_page": {
|
|
1728
|
+
"type": "integer",
|
|
1729
|
+
"description": "Number of items per page"
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
"required": [
|
|
1733
|
+
"username",
|
|
1734
|
+
"domain"
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
"security": [
|
|
1738
|
+
{
|
|
1739
|
+
"apiToken": []
|
|
1740
|
+
}
|
|
1741
|
+
],
|
|
1742
|
+
"group": "hosting"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
1746
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
1747
|
+
"method": "POST",
|
|
1748
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1749
|
+
"inputSchema": {
|
|
1750
|
+
"type": "object",
|
|
1751
|
+
"properties": {
|
|
1752
|
+
"username": {
|
|
1753
|
+
"type": "string",
|
|
1754
|
+
"description": "username parameter"
|
|
1755
|
+
},
|
|
1756
|
+
"domain": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"description": "Domain name"
|
|
1759
|
+
},
|
|
1760
|
+
"from": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"description": "Source URL on the selected website"
|
|
1763
|
+
},
|
|
1764
|
+
"to": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "Destination URL or IP address"
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
"required": [
|
|
1770
|
+
"username",
|
|
1771
|
+
"domain",
|
|
1772
|
+
"from",
|
|
1773
|
+
"to"
|
|
1774
|
+
]
|
|
1775
|
+
},
|
|
1776
|
+
"security": [
|
|
1777
|
+
{
|
|
1778
|
+
"apiToken": []
|
|
1779
|
+
}
|
|
1780
|
+
],
|
|
1781
|
+
"group": "hosting"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
1785
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
1786
|
+
"method": "DELETE",
|
|
1787
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1788
|
+
"inputSchema": {
|
|
1789
|
+
"type": "object",
|
|
1790
|
+
"properties": {
|
|
1791
|
+
"username": {
|
|
1792
|
+
"type": "string",
|
|
1793
|
+
"description": "username parameter"
|
|
1794
|
+
},
|
|
1795
|
+
"domain": {
|
|
1796
|
+
"type": "string",
|
|
1797
|
+
"description": "Domain name"
|
|
1798
|
+
},
|
|
1799
|
+
"from": {
|
|
1800
|
+
"type": "string",
|
|
1801
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"required": [
|
|
1805
|
+
"username",
|
|
1806
|
+
"domain",
|
|
1807
|
+
"from"
|
|
1808
|
+
]
|
|
1809
|
+
},
|
|
1810
|
+
"security": [
|
|
1811
|
+
{
|
|
1812
|
+
"apiToken": []
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"group": "hosting"
|
|
1816
|
+
},
|
|
1707
1817
|
{
|
|
1708
1818
|
"name": "hosting_listWebsitesV1",
|
|
1709
1819
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.41.0', tools });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.41.0', tools });
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
package/src/servers/horizons.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/mail.js
CHANGED
package/src/servers/mail.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -327,6 +327,26 @@ archive types: .zip, .tar, .tar.gz, .tgz.
|
|
|
327
327
|
response: any; // Response structure will depend on the API
|
|
328
328
|
};
|
|
329
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Returns aggregated disk and inode usage for the Agency Plan order over the
|
|
332
|
+
selected time frame, plus the plan quotas. Figures cover the whole order
|
|
333
|
+
account. Values may be up to one hour stale. CPU, memory, and process usage
|
|
334
|
+
are on the resource-usage-metrics endpoint.
|
|
335
|
+
*/
|
|
336
|
+
"agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1": {
|
|
337
|
+
params: {
|
|
338
|
+
/**
|
|
339
|
+
* Agency Plan order ID
|
|
340
|
+
*/
|
|
341
|
+
order_id: number;
|
|
342
|
+
/**
|
|
343
|
+
* Length of the window in days, ending now. Bucket size grows with the window.
|
|
344
|
+
*/
|
|
345
|
+
time_frame_days?: number;
|
|
346
|
+
};
|
|
347
|
+
response: any; // Response structure will depend on the API
|
|
348
|
+
};
|
|
349
|
+
|
|
330
350
|
/**
|
|
331
351
|
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
332
352
|
*/
|
|
@@ -344,6 +364,28 @@ archive types: .zip, .tar, .tar.gz, .tgz.
|
|
|
344
364
|
response: any; // Response structure will depend on the API
|
|
345
365
|
};
|
|
346
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Returns aggregated CPU, memory, and process usage for the Agency Plan order
|
|
369
|
+
over the selected time frame, plus the plan quotas and a per-website
|
|
370
|
+
breakdown. Each website is identified by uid. Suspended and deleted websites
|
|
371
|
+
are excluded from both the order totals and the per-website breakdown.
|
|
372
|
+
Values may be up to one hour stale. Disk and inode usage are on the
|
|
373
|
+
disk-usage-metrics endpoint.
|
|
374
|
+
*/
|
|
375
|
+
"agency-hosting_listOrderResourceUsageMetricsV1": {
|
|
376
|
+
params: {
|
|
377
|
+
/**
|
|
378
|
+
* Agency Plan order ID
|
|
379
|
+
*/
|
|
380
|
+
order_id: number;
|
|
381
|
+
/**
|
|
382
|
+
* Length of the window in hours, ending now. Bucket size grows with the window.
|
|
383
|
+
*/
|
|
384
|
+
time_frame_hours?: number;
|
|
385
|
+
};
|
|
386
|
+
response: any; // Response structure will depend on the API
|
|
387
|
+
};
|
|
388
|
+
|
|
347
389
|
/**
|
|
348
390
|
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
349
391
|
*/
|
|
@@ -3397,6 +3439,79 @@ Use the Get PHP details endpoint to see the versions available for the website.
|
|
|
3397
3439
|
response: any; // Response structure will depend on the API
|
|
3398
3440
|
};
|
|
3399
3441
|
|
|
3442
|
+
/**
|
|
3443
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
3444
|
+
*/
|
|
3445
|
+
"hosting_listWebsiteRedirectsV1": {
|
|
3446
|
+
params: {
|
|
3447
|
+
/**
|
|
3448
|
+
* username parameter
|
|
3449
|
+
*/
|
|
3450
|
+
username: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* Domain name
|
|
3453
|
+
*/
|
|
3454
|
+
domain: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* Page number
|
|
3457
|
+
*/
|
|
3458
|
+
page?: number;
|
|
3459
|
+
/**
|
|
3460
|
+
* Number of items per page
|
|
3461
|
+
*/
|
|
3462
|
+
per_page?: number;
|
|
3463
|
+
};
|
|
3464
|
+
response: any; // Response structure will depend on the API
|
|
3465
|
+
};
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
3469
|
+
*/
|
|
3470
|
+
"hosting_createWebsiteRedirectV1": {
|
|
3471
|
+
params: {
|
|
3472
|
+
/**
|
|
3473
|
+
* username parameter
|
|
3474
|
+
*/
|
|
3475
|
+
username: string;
|
|
3476
|
+
/**
|
|
3477
|
+
* Domain name
|
|
3478
|
+
*/
|
|
3479
|
+
domain: string;
|
|
3480
|
+
/**
|
|
3481
|
+
* Source URL on the selected website
|
|
3482
|
+
*/
|
|
3483
|
+
from: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* Destination URL or IP address
|
|
3486
|
+
*/
|
|
3487
|
+
to: string;
|
|
3488
|
+
};
|
|
3489
|
+
response: any; // Response structure will depend on the API
|
|
3490
|
+
};
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* Permanently deletes the redirect identified by its source URL.
|
|
3494
|
+
|
|
3495
|
+
Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
3496
|
+
*/
|
|
3497
|
+
"hosting_deleteWebsiteRedirectV1": {
|
|
3498
|
+
params: {
|
|
3499
|
+
/**
|
|
3500
|
+
* username parameter
|
|
3501
|
+
*/
|
|
3502
|
+
username: string;
|
|
3503
|
+
/**
|
|
3504
|
+
* Domain name
|
|
3505
|
+
*/
|
|
3506
|
+
domain: string;
|
|
3507
|
+
/**
|
|
3508
|
+
* Source URL returned by the list redirects endpoint.
|
|
3509
|
+
*/
|
|
3510
|
+
from: string;
|
|
3511
|
+
};
|
|
3512
|
+
response: any; // Response structure will depend on the API
|
|
3513
|
+
};
|
|
3514
|
+
|
|
3400
3515
|
/**
|
|
3401
3516
|
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.
|
|
3402
3517
|
|