hostinger-api-mcp 3.6.1 → 3.7.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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ Generated at release time from the diff between the previous and current
4
4
  build. Tool changes are listed individually; everything else is summarised
5
5
  by area.
6
6
 
7
+ ## v3.7.0 — 2026-10-22
8
+
9
+ ### Operations
10
+
11
+ - Added `hosting_nodejs_build-settings-from-repository` — Get Node.js build settings from repository
12
+
13
+ ### Also in this release
14
+
15
+ - Documentation: `README.md`
16
+ - Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
17
+ - Build and packaging: `types.d.ts`
18
+
7
19
  ## v3.6.1 — 2026-10-22
8
20
 
9
21
  ### Also in this release
package/README.md CHANGED
@@ -69,7 +69,7 @@ pnpm update -g @hostinger/mcp
69
69
 
70
70
  This package installs the following MCP server commands:
71
71
 
72
- - `hostinger-api-mcp` — unified server over every operation (409 total)
72
+ - `hostinger-api-mcp` — unified server over every operation (410 total)
73
73
  - `hostinger-agency-hosting-mcp` — 42 operations for agency-hosting
74
74
  - `hostinger-agent-readiness-mcp` — 3 operations for agent-readiness
75
75
  - `hostinger-billing-mcp` — 9 operations for billing
@@ -77,7 +77,7 @@ This package installs the following MCP server commands:
77
77
  - `hostinger-domains-mcp` — 42 operations for domains
78
78
  - `hostinger-ecommerce-mcp` — 29 operations for ecommerce
79
79
  - `hostinger-horizons-mcp` — 6 operations for horizons
80
- - `hostinger-hosting-mcp` — 66 operations for hosting
80
+ - `hostinger-hosting-mcp` — 67 operations for hosting
81
81
  - `hostinger-mail-mcp` — 38 operations for mail
82
82
  - `hostinger-reach-mcp` — 62 operations for reach
83
83
  - `hostinger-vps-mcp` — 67 operations for vps
@@ -2248,6 +2248,21 @@ to it.
2248
2248
  - **Method**: `POST`
2249
2249
  - **Path**: `/api/hosting/v1/headless/agent-reports`
2250
2250
 
2251
+ #### hosting_nodejs_build-settings-from-repository
2252
+
2253
+ Determine the build settings for a Node.js application from the package.json file of a branch
2254
+ in a Git repository. Use before starting a Git-source build to find out the auto-detected
2255
+ settings instead of guessing them.
2256
+
2257
+ The repository is read through a Git installation: take `installation_uuid` from
2258
+ `List Git installations` and `owner` and `repository` from `List Git installation repositories`.
2259
+
2260
+ Returns 422 when the installation is not found, the repository or branch is not found, or
2261
+ the branch has no package.json.
2262
+
2263
+ - **Method**: `GET`
2264
+ - **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
2265
+
2251
2266
  #### hosting_nodejs_list-environment-variables
2252
2267
 
2253
2268
  Lists the Node.js environment variables currently set for the website. Values are always
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "3.6.1",
3
+ "version": "3.7.0",
4
4
  "description": "Hostinger API — manage domains, DNS, hosting, VPS, billing and more from Gemini CLI.",
5
5
  "mcpServers": {
6
6
  "hostinger": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "3.6.1",
3
+ "version": "3.7.0",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
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": "3.6.1",
9
+ "version": "3.7.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@hostinger/mcp",
14
- "version": "3.6.1",
14
+ "version": "3.7.0",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
@@ -66,7 +66,7 @@ const GetSkillRequestSchema = z.object({
66
66
 
67
67
  /**
68
68
  * MCP Server for Hostinger API
69
- * Generated from OpenAPI spec version 2.1.3
69
+ * Generated from OpenAPI spec version 2.2.0
70
70
  */
71
71
  class MCPServer {
72
72
  constructor({ name, version, tools, instructions, skills = [] }) {
@@ -97,7 +97,7 @@ interface Skill { uri: string; frontmatter: Record<string, unknown>; resources:
97
97
 
98
98
  /**
99
99
  * MCP Server for Hostinger API
100
- * Generated from OpenAPI spec version 2.1.3
100
+ * Generated from OpenAPI spec version 2.2.0
101
101
  */
102
102
  class MCPServer {
103
103
  private readonly name: string;
@@ -8386,6 +8386,61 @@ export default [
8386
8386
  "group": "hosting",
8387
8387
  "hidden": true
8388
8388
  },
8389
+ {
8390
+ "name": "hosting_nodejs_build-settings-from-repository",
8391
+ "title": "Get Node.js build settings from repository",
8392
+ "annotations": {
8393
+ "title": "Get Node.js build settings from repository",
8394
+ "readOnlyHint": true,
8395
+ "destructiveHint": false
8396
+ },
8397
+ "description": "Determine the build settings for a Node.js application from the package.json file of a branch\nin a Git repository. Use before starting a Git-source build to find out the auto-detected\nsettings instead of guessing them.\n\nThe repository is read through a Git installation: take `installation_uuid` from\n`List Git installations` and `owner` and `repository` from `List Git installation repositories`.\n\nReturns 422 when the installation is not found, the repository or branch is not found, or\nthe branch has no package.json.",
8398
+ "method": "GET",
8399
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository",
8400
+ "inputSchema": {
8401
+ "type": "object",
8402
+ "properties": {
8403
+ "username": {
8404
+ "type": "string",
8405
+ "description": "username parameter"
8406
+ },
8407
+ "domain": {
8408
+ "type": "string",
8409
+ "description": "Domain name"
8410
+ },
8411
+ "owner": {
8412
+ "type": "string",
8413
+ "description": "Repository owner login. GitLab group paths use slashes."
8414
+ },
8415
+ "repository": {
8416
+ "type": "string",
8417
+ "description": "Repository name without the .git suffix"
8418
+ },
8419
+ "branch": {
8420
+ "type": "string",
8421
+ "description": "Branch whose package.json is inspected"
8422
+ },
8423
+ "installation_uuid": {
8424
+ "type": "string",
8425
+ "description": "Git installation used to access the repository, taken from `List Git installations`"
8426
+ }
8427
+ },
8428
+ "required": [
8429
+ "username",
8430
+ "domain",
8431
+ "owner",
8432
+ "repository",
8433
+ "branch",
8434
+ "installation_uuid"
8435
+ ]
8436
+ },
8437
+ "security": [
8438
+ {
8439
+ "apiToken": []
8440
+ }
8441
+ ],
8442
+ "group": "hosting"
8443
+ },
8389
8444
  {
8390
8445
  "name": "hosting_nodejs_list-environment-variables",
8391
8446
  "title": "List Node.js environment variables",
@@ -8402,6 +8402,61 @@ const tools: OpenApiTool[] = [
8402
8402
  "group": "hosting",
8403
8403
  "hidden": true
8404
8404
  },
8405
+ {
8406
+ "name": "hosting_nodejs_build-settings-from-repository",
8407
+ "title": "Get Node.js build settings from repository",
8408
+ "annotations": {
8409
+ "title": "Get Node.js build settings from repository",
8410
+ "readOnlyHint": true,
8411
+ "destructiveHint": false
8412
+ },
8413
+ "description": "Determine the build settings for a Node.js application from the package.json file of a branch\nin a Git repository. Use before starting a Git-source build to find out the auto-detected\nsettings instead of guessing them.\n\nThe repository is read through a Git installation: take `installation_uuid` from\n`List Git installations` and `owner` and `repository` from `List Git installation repositories`.\n\nReturns 422 when the installation is not found, the repository or branch is not found, or\nthe branch has no package.json.",
8414
+ "method": "GET",
8415
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository",
8416
+ "inputSchema": {
8417
+ "type": "object",
8418
+ "properties": {
8419
+ "username": {
8420
+ "type": "string",
8421
+ "description": "username parameter"
8422
+ },
8423
+ "domain": {
8424
+ "type": "string",
8425
+ "description": "Domain name"
8426
+ },
8427
+ "owner": {
8428
+ "type": "string",
8429
+ "description": "Repository owner login. GitLab group paths use slashes."
8430
+ },
8431
+ "repository": {
8432
+ "type": "string",
8433
+ "description": "Repository name without the .git suffix"
8434
+ },
8435
+ "branch": {
8436
+ "type": "string",
8437
+ "description": "Branch whose package.json is inspected"
8438
+ },
8439
+ "installation_uuid": {
8440
+ "type": "string",
8441
+ "description": "Git installation used to access the repository, taken from `List Git installations`"
8442
+ }
8443
+ },
8444
+ "required": [
8445
+ "username",
8446
+ "domain",
8447
+ "owner",
8448
+ "repository",
8449
+ "branch",
8450
+ "installation_uuid"
8451
+ ]
8452
+ },
8453
+ "security": [
8454
+ {
8455
+ "apiToken": []
8456
+ }
8457
+ ],
8458
+ "group": "hosting"
8459
+ },
8405
8460
  {
8406
8461
  "name": "hosting_nodejs_list-environment-variables",
8407
8462
  "title": "List Node.js environment variables",
@@ -2696,6 +2696,61 @@ export default [
2696
2696
  "group": "hosting",
2697
2697
  "hidden": true
2698
2698
  },
2699
+ {
2700
+ "name": "hosting_nodejs_build-settings-from-repository",
2701
+ "title": "Get Node.js build settings from repository",
2702
+ "annotations": {
2703
+ "title": "Get Node.js build settings from repository",
2704
+ "readOnlyHint": true,
2705
+ "destructiveHint": false
2706
+ },
2707
+ "description": "Determine the build settings for a Node.js application from the package.json file of a branch\nin a Git repository. Use before starting a Git-source build to find out the auto-detected\nsettings instead of guessing them.\n\nThe repository is read through a Git installation: take `installation_uuid` from\n`List Git installations` and `owner` and `repository` from `List Git installation repositories`.\n\nReturns 422 when the installation is not found, the repository or branch is not found, or\nthe branch has no package.json.",
2708
+ "method": "GET",
2709
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository",
2710
+ "inputSchema": {
2711
+ "type": "object",
2712
+ "properties": {
2713
+ "username": {
2714
+ "type": "string",
2715
+ "description": "username parameter"
2716
+ },
2717
+ "domain": {
2718
+ "type": "string",
2719
+ "description": "Domain name"
2720
+ },
2721
+ "owner": {
2722
+ "type": "string",
2723
+ "description": "Repository owner login. GitLab group paths use slashes."
2724
+ },
2725
+ "repository": {
2726
+ "type": "string",
2727
+ "description": "Repository name without the .git suffix"
2728
+ },
2729
+ "branch": {
2730
+ "type": "string",
2731
+ "description": "Branch whose package.json is inspected"
2732
+ },
2733
+ "installation_uuid": {
2734
+ "type": "string",
2735
+ "description": "Git installation used to access the repository, taken from `List Git installations`"
2736
+ }
2737
+ },
2738
+ "required": [
2739
+ "username",
2740
+ "domain",
2741
+ "owner",
2742
+ "repository",
2743
+ "branch",
2744
+ "installation_uuid"
2745
+ ]
2746
+ },
2747
+ "security": [
2748
+ {
2749
+ "apiToken": []
2750
+ }
2751
+ ],
2752
+ "group": "hosting"
2753
+ },
2699
2754
  {
2700
2755
  "name": "hosting_nodejs_list-environment-variables",
2701
2756
  "title": "List Node.js environment variables",
@@ -2712,6 +2712,61 @@ const tools: OpenApiTool[] = [
2712
2712
  "group": "hosting",
2713
2713
  "hidden": true
2714
2714
  },
2715
+ {
2716
+ "name": "hosting_nodejs_build-settings-from-repository",
2717
+ "title": "Get Node.js build settings from repository",
2718
+ "annotations": {
2719
+ "title": "Get Node.js build settings from repository",
2720
+ "readOnlyHint": true,
2721
+ "destructiveHint": false
2722
+ },
2723
+ "description": "Determine the build settings for a Node.js application from the package.json file of a branch\nin a Git repository. Use before starting a Git-source build to find out the auto-detected\nsettings instead of guessing them.\n\nThe repository is read through a Git installation: take `installation_uuid` from\n`List Git installations` and `owner` and `repository` from `List Git installation repositories`.\n\nReturns 422 when the installation is not found, the repository or branch is not found, or\nthe branch has no package.json.",
2724
+ "method": "GET",
2725
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository",
2726
+ "inputSchema": {
2727
+ "type": "object",
2728
+ "properties": {
2729
+ "username": {
2730
+ "type": "string",
2731
+ "description": "username parameter"
2732
+ },
2733
+ "domain": {
2734
+ "type": "string",
2735
+ "description": "Domain name"
2736
+ },
2737
+ "owner": {
2738
+ "type": "string",
2739
+ "description": "Repository owner login. GitLab group paths use slashes."
2740
+ },
2741
+ "repository": {
2742
+ "type": "string",
2743
+ "description": "Repository name without the .git suffix"
2744
+ },
2745
+ "branch": {
2746
+ "type": "string",
2747
+ "description": "Branch whose package.json is inspected"
2748
+ },
2749
+ "installation_uuid": {
2750
+ "type": "string",
2751
+ "description": "Git installation used to access the repository, taken from `List Git installations`"
2752
+ }
2753
+ },
2754
+ "required": [
2755
+ "username",
2756
+ "domain",
2757
+ "owner",
2758
+ "repository",
2759
+ "branch",
2760
+ "installation_uuid"
2761
+ ]
2762
+ },
2763
+ "security": [
2764
+ {
2765
+ "apiToken": []
2766
+ }
2767
+ ],
2768
+ "group": "hosting"
2769
+ },
2715
2770
  {
2716
2771
  "name": "hosting_nodejs_list-environment-variables",
2717
2772
  "title": "List Node.js environment variables",
@@ -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: '3.6.1', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.7.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: '3.6.1', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.7.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: '3.6.1', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '3.7.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: '3.6.1', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '3.7.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '3.7.0', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '3.7.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: '3.6.1', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '3.7.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: '3.6.1', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '3.7.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: '3.6.1', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '3.7.0', tools });
package/types.d.ts CHANGED
@@ -4738,6 +4738,47 @@ The archive must already be present on the website's file storage. Use the
4738
4738
  response: any; // Response structure will depend on the API
4739
4739
  };
4740
4740
 
4741
+ /**
4742
+ * Determine the build settings for a Node.js application from the package.json file of a branch
4743
+ in a Git repository. Use before starting a Git-source build to find out the auto-detected
4744
+ settings instead of guessing them.
4745
+
4746
+ The repository is read through a Git installation: take `installation_uuid` from
4747
+ `List Git installations` and `owner` and `repository` from `List Git installation repositories`.
4748
+
4749
+ Returns 422 when the installation is not found, the repository or branch is not found, or
4750
+ the branch has no package.json.
4751
+ */
4752
+ "hosting_nodejs_build-settings-from-repository": {
4753
+ params: {
4754
+ /**
4755
+ * username parameter
4756
+ */
4757
+ username: string;
4758
+ /**
4759
+ * Domain name
4760
+ */
4761
+ domain: string;
4762
+ /**
4763
+ * Repository owner login. GitLab group paths use slashes.
4764
+ */
4765
+ owner: string;
4766
+ /**
4767
+ * Repository name without the .git suffix
4768
+ */
4769
+ repository: string;
4770
+ /**
4771
+ * Branch whose package.json is inspected
4772
+ */
4773
+ branch: string;
4774
+ /**
4775
+ * Git installation used to access the repository, taken from `List Git installations`
4776
+ */
4777
+ installation_uuid: string;
4778
+ };
4779
+ response: any; // Response structure will depend on the API
4780
+ };
4781
+
4741
4782
  /**
4742
4783
  * Lists the Node.js environment variables currently set for the website. Values are always
4743
4784
  masked as `********` and cannot be read back through this API. Use this endpoint to see