hostinger-api-mcp 1.60.0 → 1.60.2
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/CHANGELOG.md +32 -0
- package/README.md +82 -7
- 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/all.js +228 -4
- package/src/core/tools/all.ts +228 -4
- package/src/core/tools/hosting.js +228 -4
- package/src/core/tools/hosting.ts +228 -4
- 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 +157 -7
|
@@ -1410,6 +1410,213 @@ const tools: OpenApiTool[] = [
|
|
|
1410
1410
|
],
|
|
1411
1411
|
"group": "hosting"
|
|
1412
1412
|
},
|
|
1413
|
+
{
|
|
1414
|
+
"name": "hosting_getGitAutoDeploymentSettingsV1",
|
|
1415
|
+
"title": "Get Git auto-deployment settings",
|
|
1416
|
+
"annotations": {
|
|
1417
|
+
"title": "Get Git auto-deployment settings",
|
|
1418
|
+
"readOnlyHint": true,
|
|
1419
|
+
"destructiveHint": false
|
|
1420
|
+
},
|
|
1421
|
+
"description": "Returns the Git auto-deployment settings of the website: which repository and branch deploy\ninto which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the\nrepository link but ignores pushes.\n\nWhen the website has no auto-deployment configured every field is null. Save settings with\n`Update Git auto-deployment settings`.",
|
|
1422
|
+
"method": "GET",
|
|
1423
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings",
|
|
1424
|
+
"inputSchema": {
|
|
1425
|
+
"type": "object",
|
|
1426
|
+
"properties": {
|
|
1427
|
+
"username": {
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
"description": "username parameter"
|
|
1430
|
+
},
|
|
1431
|
+
"domain": {
|
|
1432
|
+
"type": "string",
|
|
1433
|
+
"description": "Domain name"
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
"required": [
|
|
1437
|
+
"username",
|
|
1438
|
+
"domain"
|
|
1439
|
+
]
|
|
1440
|
+
},
|
|
1441
|
+
"security": [
|
|
1442
|
+
{
|
|
1443
|
+
"apiToken": []
|
|
1444
|
+
}
|
|
1445
|
+
],
|
|
1446
|
+
"group": "hosting"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "hosting_updateGitAutoDeploymentSettingsV1",
|
|
1450
|
+
"title": "Update Git auto-deployment settings",
|
|
1451
|
+
"annotations": {
|
|
1452
|
+
"title": "Update Git auto-deployment settings",
|
|
1453
|
+
"readOnlyHint": false,
|
|
1454
|
+
"destructiveHint": true,
|
|
1455
|
+
"idempotentHint": true
|
|
1456
|
+
},
|
|
1457
|
+
"description": "Creates or replaces the Git auto-deployment settings of the website: repository, branch, the\ndirectory under the document root to deploy into, and `is_enabled`. Send the full set;\n`is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must\nbe an installation from `List Git installations` that belongs to the same customer as the\nwebsite.\n\nFor PHP and static websites, saving with `is_enabled` true deploys the branch right away and\nevery later push to that branch deploys again. For Node.js and Website Builder websites saving\ndoes not clone anything. On a Node.js website start the first deploy with\n`Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build\nsettings stored for the website.",
|
|
1458
|
+
"method": "PUT",
|
|
1459
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings",
|
|
1460
|
+
"inputSchema": {
|
|
1461
|
+
"type": "object",
|
|
1462
|
+
"properties": {
|
|
1463
|
+
"username": {
|
|
1464
|
+
"type": "string",
|
|
1465
|
+
"description": "username parameter"
|
|
1466
|
+
},
|
|
1467
|
+
"domain": {
|
|
1468
|
+
"type": "string",
|
|
1469
|
+
"description": "Domain name"
|
|
1470
|
+
},
|
|
1471
|
+
"installation_uuid": {
|
|
1472
|
+
"type": "string",
|
|
1473
|
+
"description": "Active Git installation from `List Git installations`"
|
|
1474
|
+
},
|
|
1475
|
+
"owner": {
|
|
1476
|
+
"type": "string",
|
|
1477
|
+
"description": "Repository owner login, as returned by `List Git installation repositories`. GitLab group\npaths use slashes."
|
|
1478
|
+
},
|
|
1479
|
+
"repository": {
|
|
1480
|
+
"type": "string",
|
|
1481
|
+
"description": "Repository name without the .git suffix"
|
|
1482
|
+
},
|
|
1483
|
+
"branch": {
|
|
1484
|
+
"type": "string",
|
|
1485
|
+
"description": "Branch to deploy"
|
|
1486
|
+
},
|
|
1487
|
+
"directory": {
|
|
1488
|
+
"type": "string",
|
|
1489
|
+
"description": "Subdirectory under the website document root to deploy into. Empty, null or omitted means\nthe document root."
|
|
1490
|
+
},
|
|
1491
|
+
"is_enabled": {
|
|
1492
|
+
"type": "boolean",
|
|
1493
|
+
"description": "Whether pushes to the branch deploy automatically"
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
"required": [
|
|
1497
|
+
"username",
|
|
1498
|
+
"domain",
|
|
1499
|
+
"installation_uuid",
|
|
1500
|
+
"owner",
|
|
1501
|
+
"repository",
|
|
1502
|
+
"branch"
|
|
1503
|
+
]
|
|
1504
|
+
},
|
|
1505
|
+
"security": [
|
|
1506
|
+
{
|
|
1507
|
+
"apiToken": []
|
|
1508
|
+
}
|
|
1509
|
+
],
|
|
1510
|
+
"group": "hosting"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "hosting_deleteGitAutoDeploymentSettingsV1",
|
|
1514
|
+
"title": "Delete Git auto-deployment settings",
|
|
1515
|
+
"annotations": {
|
|
1516
|
+
"title": "Delete Git auto-deployment settings",
|
|
1517
|
+
"readOnlyHint": false,
|
|
1518
|
+
"destructiveHint": true,
|
|
1519
|
+
"idempotentHint": true
|
|
1520
|
+
},
|
|
1521
|
+
"description": "Removes the Git auto-deployment settings of the website. Files already deployed stay on the\nwebsite; pushes stop deploying until settings are saved again. Succeeds also when nothing is\nconfigured.",
|
|
1522
|
+
"method": "DELETE",
|
|
1523
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings",
|
|
1524
|
+
"inputSchema": {
|
|
1525
|
+
"type": "object",
|
|
1526
|
+
"properties": {
|
|
1527
|
+
"username": {
|
|
1528
|
+
"type": "string",
|
|
1529
|
+
"description": "username parameter"
|
|
1530
|
+
},
|
|
1531
|
+
"domain": {
|
|
1532
|
+
"type": "string",
|
|
1533
|
+
"description": "Domain name"
|
|
1534
|
+
}
|
|
1535
|
+
},
|
|
1536
|
+
"required": [
|
|
1537
|
+
"username",
|
|
1538
|
+
"domain"
|
|
1539
|
+
]
|
|
1540
|
+
},
|
|
1541
|
+
"security": [
|
|
1542
|
+
{
|
|
1543
|
+
"apiToken": []
|
|
1544
|
+
}
|
|
1545
|
+
],
|
|
1546
|
+
"group": "hosting"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"name": "hosting_listGitInstallationsV1",
|
|
1550
|
+
"title": "List Git installations",
|
|
1551
|
+
"annotations": {
|
|
1552
|
+
"title": "List Git installations",
|
|
1553
|
+
"readOnlyHint": true,
|
|
1554
|
+
"destructiveHint": false
|
|
1555
|
+
},
|
|
1556
|
+
"description": "Lists the Git provider accounts the customer has connected. Only installations with status\n`active` are returned unless the `status` filter says otherwise.\n\nAn empty list means the customer has no active installation. Check `status=suspended` and\n`status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be\nconnected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App,\nImport Git Repository); this endpoint then lists the new installation.\n\nUse `uuid` as the path parameter of `List Git installation repositories`, and as\n`installation_uuid` in `Start Node.js build` with `source_type` `git` and in\n`Update Git auto-deployment settings`.",
|
|
1557
|
+
"method": "GET",
|
|
1558
|
+
"path": "/api/hosting/v1/git/installations",
|
|
1559
|
+
"inputSchema": {
|
|
1560
|
+
"type": "object",
|
|
1561
|
+
"properties": {
|
|
1562
|
+
"provider": {
|
|
1563
|
+
"type": "string",
|
|
1564
|
+
"description": "Filter by Git provider",
|
|
1565
|
+
"enum": [
|
|
1566
|
+
"github",
|
|
1567
|
+
"gitlab",
|
|
1568
|
+
"bitbucket"
|
|
1569
|
+
]
|
|
1570
|
+
},
|
|
1571
|
+
"status": {
|
|
1572
|
+
"type": "string",
|
|
1573
|
+
"description": "Filter by installation status",
|
|
1574
|
+
"enum": [
|
|
1575
|
+
"pending",
|
|
1576
|
+
"active",
|
|
1577
|
+
"suspended"
|
|
1578
|
+
]
|
|
1579
|
+
}
|
|
1580
|
+
},
|
|
1581
|
+
"required": []
|
|
1582
|
+
},
|
|
1583
|
+
"security": [
|
|
1584
|
+
{
|
|
1585
|
+
"apiToken": []
|
|
1586
|
+
}
|
|
1587
|
+
],
|
|
1588
|
+
"group": "hosting"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"name": "hosting_listGitInstallationRepositoriesV1",
|
|
1592
|
+
"title": "List Git installation repositories",
|
|
1593
|
+
"annotations": {
|
|
1594
|
+
"title": "List Git installation repositories",
|
|
1595
|
+
"readOnlyHint": true,
|
|
1596
|
+
"destructiveHint": false
|
|
1597
|
+
},
|
|
1598
|
+
"description": "Lists the repositories the Git installation can access, read live from the provider. Works\nfor github and gitlab installations. Use an active installation: a suspended or pending one\nis still queried and the call fails with whatever the provider answers. The list is cut at\nthe first 500 repositories in the order the provider returns them; when the account has\nmore, name the repository directly instead of searching this list.\n\n`owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of\n`Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the\ninstallation does not belong to the customer. Limited to 10 calls per minute per API client\n(429 above that).",
|
|
1599
|
+
"method": "GET",
|
|
1600
|
+
"path": "/api/hosting/v1/git/installations/{uuid}/repositories",
|
|
1601
|
+
"inputSchema": {
|
|
1602
|
+
"type": "object",
|
|
1603
|
+
"properties": {
|
|
1604
|
+
"uuid": {
|
|
1605
|
+
"type": "string",
|
|
1606
|
+
"description": "Git installation UUID from the List Git installations endpoint"
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1609
|
+
"required": [
|
|
1610
|
+
"uuid"
|
|
1611
|
+
]
|
|
1612
|
+
},
|
|
1613
|
+
"security": [
|
|
1614
|
+
{
|
|
1615
|
+
"apiToken": []
|
|
1616
|
+
}
|
|
1617
|
+
],
|
|
1618
|
+
"group": "hosting"
|
|
1619
|
+
},
|
|
1413
1620
|
{
|
|
1414
1621
|
"name": "hosting_listNodeJSBuildsV1",
|
|
1415
1622
|
"title": "List NodeJS builds",
|
|
@@ -1475,7 +1682,7 @@ const tools: OpenApiTool[] = [
|
|
|
1475
1682
|
"readOnlyHint": false,
|
|
1476
1683
|
"destructiveHint": false
|
|
1477
1684
|
},
|
|
1478
|
-
"description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\
|
|
1685
|
+
"description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nWith `source_type` `archive`, `source_options.archive_path` must point to an existing\narchive file on the server (relative to the website document root). Use the\n`Generate Upload URL` endpoint to obtain credentials and upload the archive first. To\nauto-detect build settings from an archive before starting, first call the\n`Get Node.js Build Settings from Archive` endpoint.\n\nWith `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and\n`installation_uuid`. Take the installation from `List Git installations` and the owner and\nrepository from `List Git installation repositories`; the branch is cloned at its current\nhead. The installation must belong to the same customer as the website.\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
|
|
1479
1686
|
"method": "POST",
|
|
1480
1687
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
|
|
1481
1688
|
"inputSchema": {
|
|
@@ -1551,18 +1758,35 @@ const tools: OpenApiTool[] = [
|
|
|
1551
1758
|
},
|
|
1552
1759
|
"source_type": {
|
|
1553
1760
|
"type": "string",
|
|
1554
|
-
"description": "
|
|
1761
|
+
"description": "Where the files come from: `archive` (an uploaded archive on the website) or `git`\n(a branch of a repository reachable through a Git installation).",
|
|
1555
1762
|
"enum": [
|
|
1556
|
-
"archive"
|
|
1763
|
+
"archive",
|
|
1764
|
+
"git"
|
|
1557
1765
|
]
|
|
1558
1766
|
},
|
|
1559
1767
|
"source_options": {
|
|
1560
1768
|
"type": "object",
|
|
1561
|
-
"description": "Source-specific options",
|
|
1769
|
+
"description": "Source-specific options. For `archive` send `archive_path`. For `git` send `owner`,\n`repository`, `branch` and `installation_uuid`, taken from `List Git installations`\nand `List Git installation repositories`.",
|
|
1562
1770
|
"properties": {
|
|
1563
1771
|
"archive_path": {
|
|
1564
1772
|
"type": "string",
|
|
1565
1773
|
"description": "The path to the archive file relative to the document root of the vhost (required if source is \"archive\")"
|
|
1774
|
+
},
|
|
1775
|
+
"owner": {
|
|
1776
|
+
"type": "string",
|
|
1777
|
+
"description": "Repository owner login (required if source is \"git\"). GitLab group paths use\nslashes."
|
|
1778
|
+
},
|
|
1779
|
+
"repository": {
|
|
1780
|
+
"type": "string",
|
|
1781
|
+
"description": "Repository name without the .git suffix (required if source is \"git\")"
|
|
1782
|
+
},
|
|
1783
|
+
"branch": {
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
"description": "Branch to build (required if source is \"git\")"
|
|
1786
|
+
},
|
|
1787
|
+
"installation_uuid": {
|
|
1788
|
+
"type": "string",
|
|
1789
|
+
"description": "Git installation used to access the repository (required if source is \"git\")"
|
|
1566
1790
|
}
|
|
1567
1791
|
}
|
|
1568
1792
|
}
|
|
@@ -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.60.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.60.2', 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.60.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.60.2', 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
|
@@ -3770,6 +3770,149 @@ containing secrets (e.g. credential files) — none of these are returned by thi
|
|
|
3770
3770
|
response: any; // Response structure will depend on the API
|
|
3771
3771
|
};
|
|
3772
3772
|
|
|
3773
|
+
/**
|
|
3774
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy
|
|
3775
|
+
into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the
|
|
3776
|
+
repository link but ignores pushes.
|
|
3777
|
+
|
|
3778
|
+
When the website has no auto-deployment configured every field is null. Save settings with
|
|
3779
|
+
`Update Git auto-deployment settings`.
|
|
3780
|
+
*/
|
|
3781
|
+
"hosting_getGitAutoDeploymentSettingsV1": {
|
|
3782
|
+
params: {
|
|
3783
|
+
/**
|
|
3784
|
+
* username parameter
|
|
3785
|
+
*/
|
|
3786
|
+
username: string;
|
|
3787
|
+
/**
|
|
3788
|
+
* Domain name
|
|
3789
|
+
*/
|
|
3790
|
+
domain: string;
|
|
3791
|
+
};
|
|
3792
|
+
response: any; // Response structure will depend on the API
|
|
3793
|
+
};
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the
|
|
3797
|
+
directory under the document root to deploy into, and `is_enabled`. Send the full set;
|
|
3798
|
+
`is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must
|
|
3799
|
+
be an installation from `List Git installations` that belongs to the same customer as the
|
|
3800
|
+
website.
|
|
3801
|
+
|
|
3802
|
+
For PHP and static websites, saving with `is_enabled` true deploys the branch right away and
|
|
3803
|
+
every later push to that branch deploys again. For Node.js and Website Builder websites saving
|
|
3804
|
+
does not clone anything. On a Node.js website start the first deploy with
|
|
3805
|
+
`Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build
|
|
3806
|
+
settings stored for the website.
|
|
3807
|
+
*/
|
|
3808
|
+
"hosting_updateGitAutoDeploymentSettingsV1": {
|
|
3809
|
+
params: {
|
|
3810
|
+
/**
|
|
3811
|
+
* username parameter
|
|
3812
|
+
*/
|
|
3813
|
+
username: string;
|
|
3814
|
+
/**
|
|
3815
|
+
* Domain name
|
|
3816
|
+
*/
|
|
3817
|
+
domain: string;
|
|
3818
|
+
/**
|
|
3819
|
+
* Active Git installation from `List Git installations`
|
|
3820
|
+
*/
|
|
3821
|
+
installation_uuid: string;
|
|
3822
|
+
/**
|
|
3823
|
+
* Repository owner login, as returned by `List Git installation repositories`. GitLab group
|
|
3824
|
+
paths use slashes.
|
|
3825
|
+
*/
|
|
3826
|
+
owner: string;
|
|
3827
|
+
/**
|
|
3828
|
+
* Repository name without the .git suffix
|
|
3829
|
+
*/
|
|
3830
|
+
repository: string;
|
|
3831
|
+
/**
|
|
3832
|
+
* Branch to deploy
|
|
3833
|
+
*/
|
|
3834
|
+
branch: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* Subdirectory under the website document root to deploy into. Empty, null or omitted means
|
|
3837
|
+
the document root.
|
|
3838
|
+
*/
|
|
3839
|
+
directory?: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* Whether pushes to the branch deploy automatically
|
|
3842
|
+
*/
|
|
3843
|
+
is_enabled?: boolean;
|
|
3844
|
+
};
|
|
3845
|
+
response: any; // Response structure will depend on the API
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
/**
|
|
3849
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the
|
|
3850
|
+
website; pushes stop deploying until settings are saved again. Succeeds also when nothing is
|
|
3851
|
+
configured.
|
|
3852
|
+
*/
|
|
3853
|
+
"hosting_deleteGitAutoDeploymentSettingsV1": {
|
|
3854
|
+
params: {
|
|
3855
|
+
/**
|
|
3856
|
+
* username parameter
|
|
3857
|
+
*/
|
|
3858
|
+
username: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Domain name
|
|
3861
|
+
*/
|
|
3862
|
+
domain: string;
|
|
3863
|
+
};
|
|
3864
|
+
response: any; // Response structure will depend on the API
|
|
3865
|
+
};
|
|
3866
|
+
|
|
3867
|
+
/**
|
|
3868
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status
|
|
3869
|
+
`active` are returned unless the `status` filter says otherwise.
|
|
3870
|
+
|
|
3871
|
+
An empty list means the customer has no active installation. Check `status=suspended` and
|
|
3872
|
+
`status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be
|
|
3873
|
+
connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App,
|
|
3874
|
+
Import Git Repository); this endpoint then lists the new installation.
|
|
3875
|
+
|
|
3876
|
+
Use `uuid` as the path parameter of `List Git installation repositories`, and as
|
|
3877
|
+
`installation_uuid` in `Start Node.js build` with `source_type` `git` and in
|
|
3878
|
+
`Update Git auto-deployment settings`.
|
|
3879
|
+
*/
|
|
3880
|
+
"hosting_listGitInstallationsV1": {
|
|
3881
|
+
params: {
|
|
3882
|
+
/**
|
|
3883
|
+
* Filter by Git provider
|
|
3884
|
+
*/
|
|
3885
|
+
provider?: string;
|
|
3886
|
+
/**
|
|
3887
|
+
* Filter by installation status
|
|
3888
|
+
*/
|
|
3889
|
+
status?: string;
|
|
3890
|
+
};
|
|
3891
|
+
response: any; // Response structure will depend on the API
|
|
3892
|
+
};
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works
|
|
3896
|
+
for github and gitlab installations. Use an active installation: a suspended or pending one
|
|
3897
|
+
is still queried and the call fails with whatever the provider answers. The list is cut at
|
|
3898
|
+
the first 500 repositories in the order the provider returns them; when the account has
|
|
3899
|
+
more, name the repository directly instead of searching this list.
|
|
3900
|
+
|
|
3901
|
+
`owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of
|
|
3902
|
+
`Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the
|
|
3903
|
+
installation does not belong to the customer. Limited to 10 calls per minute per API client
|
|
3904
|
+
(429 above that).
|
|
3905
|
+
*/
|
|
3906
|
+
"hosting_listGitInstallationRepositoriesV1": {
|
|
3907
|
+
params: {
|
|
3908
|
+
/**
|
|
3909
|
+
* Git installation UUID from the List Git installations endpoint
|
|
3910
|
+
*/
|
|
3911
|
+
uuid: string;
|
|
3912
|
+
};
|
|
3913
|
+
response: any; // Response structure will depend on the API
|
|
3914
|
+
};
|
|
3915
|
+
|
|
3773
3916
|
/**
|
|
3774
3917
|
* Retrieve a paginated list of Node.js build processes for a specific website.
|
|
3775
3918
|
|
|
@@ -3809,13 +3952,17 @@ Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs`
|
|
|
3809
3952
|
WARNING: on success this overwrites the website's existing contents and cannot be
|
|
3810
3953
|
undone — verify this is intended before calling this endpoint.
|
|
3811
3954
|
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
To auto-detect build settings from an archive before starting, first call the
|
|
3955
|
+
With `source_type` `archive`, `source_options.archive_path` must point to an existing
|
|
3956
|
+
archive file on the server (relative to the website document root). Use the
|
|
3957
|
+
`Generate Upload URL` endpoint to obtain credentials and upload the archive first. To
|
|
3958
|
+
auto-detect build settings from an archive before starting, first call the
|
|
3817
3959
|
`Get Node.js Build Settings from Archive` endpoint.
|
|
3818
3960
|
|
|
3961
|
+
With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and
|
|
3962
|
+
`installation_uuid`. Take the installation from `List Git installations` and the owner and
|
|
3963
|
+
repository from `List Git installation repositories`; the branch is cloned at its current
|
|
3964
|
+
head. The installation must belong to the same customer as the website.
|
|
3965
|
+
|
|
3819
3966
|
The returned build `uuid` can be used to poll progress and retrieve logs via
|
|
3820
3967
|
the `Get Node.js Build Logs` endpoint.
|
|
3821
3968
|
*/
|
|
@@ -3858,11 +4005,14 @@ the `Get Node.js Build Logs` endpoint.
|
|
|
3858
4005
|
*/
|
|
3859
4006
|
package_manager?: string;
|
|
3860
4007
|
/**
|
|
3861
|
-
*
|
|
4008
|
+
* Where the files come from: `archive` (an uploaded archive on the website) or `git`
|
|
4009
|
+
(a branch of a repository reachable through a Git installation).
|
|
3862
4010
|
*/
|
|
3863
4011
|
source_type: string;
|
|
3864
4012
|
/**
|
|
3865
|
-
* Source-specific options
|
|
4013
|
+
* Source-specific options. For `archive` send `archive_path`. For `git` send `owner`,
|
|
4014
|
+
`repository`, `branch` and `installation_uuid`, taken from `List Git installations`
|
|
4015
|
+
and `List Git installation repositories`.
|
|
3866
4016
|
*/
|
|
3867
4017
|
source_options: object;
|
|
3868
4018
|
};
|