@hostinger/mcp 3.1.0 → 3.2.1
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 +33 -0
- package/README.md +47 -301
- package/gemini-extension.json +1 -1
- package/package.json +2 -1
- package/server.json +2 -2
- package/skills/audit-hosting/SKILL.md +1 -1
- package/skills/deploy-to-hosting/SKILL.md +32 -15
- package/skills/headless/references/DATABASE.md +3 -3
- package/skills/headless/references/DEPLOYMENT.md +10 -12
- package/skills/migrate-to-hosting/SKILL.md +3 -3
- package/skills/troubleshoot-website/SKILL.md +2 -2
- package/src/core/catalog.js +4 -0
- package/src/core/catalog.ts +6 -1
- package/src/core/instructions.agency-hosting.js +2 -0
- package/src/core/instructions.agency-hosting.ts +3 -0
- package/src/core/instructions.js +1 -1
- package/src/core/instructions.ts +1 -1
- package/src/core/runtime.js +1925 -1228
- package/src/core/runtime.ts +1891 -1193
- package/src/core/skills.js +18 -18
- package/src/core/skills.ts +18 -18
- package/src/core/tools/agency-hosting.ts +2 -0
- package/src/core/tools/agent-readiness.ts +2 -0
- package/src/core/tools/all.js +223 -30
- package/src/core/tools/all.ts +225 -30
- package/src/core/tools/billing.ts +2 -0
- package/src/core/tools/dns.ts +2 -0
- package/src/core/tools/domains.ts +2 -0
- package/src/core/tools/ecommerce.ts +2 -0
- package/src/core/tools/horizons.ts +2 -0
- package/src/core/tools/hosting.js +207 -25
- package/src/core/tools/hosting.ts +209 -25
- package/src/core/tools/mail.ts +2 -0
- package/src/core/tools/reach.ts +2 -0
- package/src/core/tools/vps.ts +2 -0
- package/src/core/tools/wordpress.js +10 -2
- package/src/core/tools/wordpress.ts +12 -2
- package/src/servers/agency-hosting.js +2 -2
- package/src/servers/agency-hosting.ts +2 -2
- package/src/servers/agent-readiness.js +1 -1
- package/src/servers/agent-readiness.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 +131 -22
package/src/core/tools/all.js
CHANGED
|
@@ -1,5 +1,165 @@
|
|
|
1
1
|
// Auto-generated tool list for group: all
|
|
2
2
|
export default [
|
|
3
|
+
{
|
|
4
|
+
"name": "hosting_deploy",
|
|
5
|
+
"title": "Deploy website, nodejs app, WordPress plugin or theme",
|
|
6
|
+
"annotations": {
|
|
7
|
+
"title": "Deploy website, nodejs app, WordPress plugin or theme",
|
|
8
|
+
"readOnlyHint": false,
|
|
9
|
+
"destructiveHint": true
|
|
10
|
+
},
|
|
11
|
+
"topic": "hosting",
|
|
12
|
+
"description": "Deploy, publish or upload a website to Hostinger web hosting (Shared, Cloud): static HTML, PHP, a nodejs (Node.js) app, a whole WordPress site, or a WordPress plugin or theme, from a local directory, an archive or a GitHub or GitLab repository. It detects what the project is and does the upload, build and Git setup itself: do not call upload or build operations, and do not archive the directory yourself. WARNING: it overwrites the website's contents and cannot be undone; confirm the domain with the user before deploying to a site that already has content. A Node.js build runs on the server: this returns a buildUuid at once, then call hosting_get-deployment until the build state is completed or failed. Static, PHP, plugin and theme deploys are done when this returns; a WordPress site import only starts, and its files are extracted a few minutes later. From Git, pass type (static or nodejs) unless the site already runs a Node.js app or you pass Node.js settings; a static or PHP site deploys the branch now and again on every push; a Node.js site builds the branch now and on every later push, with the settings stored for the site (when none are stored, pass appType and nodeVersion from the project's engines, plus outputDirectory and buildScript if the app has a build step). Git needs GitHub or GitLab connected once in hPanel.",
|
|
13
|
+
"method": "",
|
|
14
|
+
"path": "",
|
|
15
|
+
"inputSchema": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"domain": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Domain name of the website to deploy to (e.g., example.com)"
|
|
21
|
+
},
|
|
22
|
+
"path": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Local directory (preferred; it is archived for you, skipping node_modules, .git and .env files, but not reading .gitignore, so keep build output out) or archive (zip, tar, tar.gz, tgz, 7z, gz, gzip). Not together with git."
|
|
25
|
+
},
|
|
26
|
+
"git": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"description": "Deploy a repository branch instead of local files. Not together with path.",
|
|
29
|
+
"properties": {
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "owner/name, e.g. hostinger/my-site (GitLab group paths may have more slashes)"
|
|
33
|
+
},
|
|
34
|
+
"branch": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Branch to deploy, e.g. main"
|
|
37
|
+
},
|
|
38
|
+
"directory": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Folder under the website's document root to deploy into (static deploys only; default the document root), e.g. my-api"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"repository",
|
|
45
|
+
"branch"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"type": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": [
|
|
51
|
+
"static",
|
|
52
|
+
"nodejs",
|
|
53
|
+
"wordpress-site",
|
|
54
|
+
"wordpress-plugin",
|
|
55
|
+
"wordpress-theme"
|
|
56
|
+
],
|
|
57
|
+
"description": "What is deployed. Detected for a directory (a Plugin Name: or Theme Name: header, wp-config.php or wp-content, a package.json with a build or start script); required for an archive, when detection reports ambiguity, and for a Git deploy unless the site already runs a Node.js app or Node.js settings are passed. static also covers PHP."
|
|
58
|
+
},
|
|
59
|
+
"slug": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "WordPress plugin or theme slug: lower-case letters, digits, - and _ (default: the directory name)"
|
|
62
|
+
},
|
|
63
|
+
"activate": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "Activate the theme after deployment (WordPress themes only, default: false)"
|
|
66
|
+
},
|
|
67
|
+
"databaseDump": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Path to a .sql dump; required for a WordPress site import"
|
|
70
|
+
},
|
|
71
|
+
"nodeVersion": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"enum": [
|
|
74
|
+
18,
|
|
75
|
+
20,
|
|
76
|
+
22,
|
|
77
|
+
24
|
|
78
|
+
],
|
|
79
|
+
"description": "Node.js major version (default: detected from an archive, or stored for the site, else 22; set it from the project's engines for a Git deploy)"
|
|
80
|
+
},
|
|
81
|
+
"appType": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "Node.js framework, e.g. next, nuxt, vite, express, react, vue, astro; overrides detection or stored settings"
|
|
84
|
+
},
|
|
85
|
+
"rootDirectory": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Directory with the package.json, relative to the site root (default .)"
|
|
88
|
+
},
|
|
89
|
+
"outputDirectory": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Build output directory relative to the root directory, e.g. dist"
|
|
92
|
+
},
|
|
93
|
+
"buildScript": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "The package.json script that builds the app, e.g. build"
|
|
96
|
+
},
|
|
97
|
+
"entryFile": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Entry file of a server app. Relative to the root directory for express, fastify, hono, react-router and other; for a compiled (TypeScript) app give the built file, e.g. dist/server.js, because detection guesses a root-level file. Relative to the output directory for nest, nuxt, nitro, astro and svelte-kit (main.js, not dist/main.js). Ignored for next."
|
|
100
|
+
},
|
|
101
|
+
"packageManager": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"enum": [
|
|
104
|
+
"npm",
|
|
105
|
+
"yarn",
|
|
106
|
+
"pnpm"
|
|
107
|
+
],
|
|
108
|
+
"description": "Package manager used to install dependencies"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"domain"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"security": [],
|
|
116
|
+
"custom": true,
|
|
117
|
+
"replacesHidden": true,
|
|
118
|
+
"templateFile": "deploy.template.js",
|
|
119
|
+
"templateFileTS": "deploy.template.ts",
|
|
120
|
+
"handlerMethod": "handleHostingDeploy",
|
|
121
|
+
"group": "hosting"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "hosting_get-deployment",
|
|
125
|
+
"title": "Get deployment status, build status, build logs and failure analysis",
|
|
126
|
+
"annotations": {
|
|
127
|
+
"title": "Get deployment status, build status, build logs and failure analysis",
|
|
128
|
+
"readOnlyHint": true,
|
|
129
|
+
"destructiveHint": false
|
|
130
|
+
},
|
|
131
|
+
"topic": "hosting",
|
|
132
|
+
"description": "Check deployment status, build status, build logs and why a build failed (failure analysis) for a website's nodejs (Node.js) deployment: the state of its latest build (or of buildUuid), the end of the build log, the failure analysis when the build failed, and the build settings and Git auto-deployment settings stored for the site. Use it after hosting_deploy starts a Node.js build, and to find out why a deployment failed. Poll until the build state is completed or failed, with growing pauses. The log comes back in full; pass fromLine (the lines count from the previous call) to read only new output. A website without Node.js builds returns build: null with an explanation, because static, PHP, plugin and theme deploys are complete when hosting_deploy returns, and a WordPress site import is ready a few minutes after it starts.",
|
|
133
|
+
"method": "",
|
|
134
|
+
"path": "",
|
|
135
|
+
"inputSchema": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"domain": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "Domain name of the website (e.g., example.com)"
|
|
141
|
+
},
|
|
142
|
+
"buildUuid": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "Build to inspect, as returned by hosting_deploy (default: the latest build)"
|
|
145
|
+
},
|
|
146
|
+
"fromLine": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"description": "Read the build log from this line on (default 0, the whole log). Pass the lines count returned by the previous call to get only new output."
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"domain"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"security": [],
|
|
156
|
+
"custom": true,
|
|
157
|
+
"replacesHidden": true,
|
|
158
|
+
"templateFile": "get-deployment.template.js",
|
|
159
|
+
"templateFileTS": "get-deployment.template.ts",
|
|
160
|
+
"handlerMethod": "handleHostingGetDeployment",
|
|
161
|
+
"group": "hosting"
|
|
162
|
+
},
|
|
3
163
|
{
|
|
4
164
|
"name": "agency-hosting_deploy-node-static-website",
|
|
5
165
|
"title": "Deploy node-static website",
|
|
@@ -119,7 +279,8 @@ export default [
|
|
|
119
279
|
"templateFile": "import-wordpress.template.js",
|
|
120
280
|
"templateFileTS": "import-wordpress.template.ts",
|
|
121
281
|
"handlerMethod": "handleWordpressWebsiteImport",
|
|
122
|
-
"group": "hosting"
|
|
282
|
+
"group": "hosting",
|
|
283
|
+
"hidden": true
|
|
123
284
|
},
|
|
124
285
|
{
|
|
125
286
|
"name": "hosting_deploy-wordpress-plugin",
|
|
@@ -160,7 +321,8 @@ export default [
|
|
|
160
321
|
"templateFile": "deploy-wordpress-plugin.template.js",
|
|
161
322
|
"templateFileTS": "deploy-wordpress-plugin.template.ts",
|
|
162
323
|
"handlerMethod": "handleWordpressPluginDeploy",
|
|
163
|
-
"group": "hosting"
|
|
324
|
+
"group": "hosting",
|
|
325
|
+
"hidden": true
|
|
164
326
|
},
|
|
165
327
|
{
|
|
166
328
|
"name": "hosting_deploy-wordpress-theme",
|
|
@@ -205,7 +367,8 @@ export default [
|
|
|
205
367
|
"templateFile": "deploy-wordpress-theme.template.js",
|
|
206
368
|
"templateFileTS": "deploy-wordpress-theme.template.ts",
|
|
207
369
|
"handlerMethod": "handleWordpressThemeDeploy",
|
|
208
|
-
"group": "hosting"
|
|
370
|
+
"group": "hosting",
|
|
371
|
+
"hidden": true
|
|
209
372
|
},
|
|
210
373
|
{
|
|
211
374
|
"name": "hosting_deploy-js-application",
|
|
@@ -245,7 +408,8 @@ export default [
|
|
|
245
408
|
"templateFile": "deploy-javascript-app.template.js",
|
|
246
409
|
"templateFileTS": "deploy-javascript-app.template.ts",
|
|
247
410
|
"handlerMethod": "handleJavascriptApplicationDeploy",
|
|
248
|
-
"group": "hosting"
|
|
411
|
+
"group": "hosting",
|
|
412
|
+
"hidden": true
|
|
249
413
|
},
|
|
250
414
|
{
|
|
251
415
|
"name": "hosting_deploy-static-website",
|
|
@@ -285,7 +449,8 @@ export default [
|
|
|
285
449
|
"templateFile": "deploy-static-website.template.js",
|
|
286
450
|
"templateFileTS": "deploy-static-website.template.ts",
|
|
287
451
|
"handlerMethod": "handleStaticWebsiteDeploy",
|
|
288
|
-
"group": "hosting"
|
|
452
|
+
"group": "hosting",
|
|
453
|
+
"hidden": true
|
|
289
454
|
},
|
|
290
455
|
{
|
|
291
456
|
"name": "hosting_list-js-deployments",
|
|
@@ -337,7 +502,8 @@ export default [
|
|
|
337
502
|
"templateFile": "list-javascript-deployments.template.js",
|
|
338
503
|
"templateFileTS": "list-javascript-deployments.template.ts",
|
|
339
504
|
"handlerMethod": "handleListJavascriptDeployments",
|
|
340
|
-
"group": "hosting"
|
|
505
|
+
"group": "hosting",
|
|
506
|
+
"hidden": true
|
|
341
507
|
},
|
|
342
508
|
{
|
|
343
509
|
"name": "hosting_show-js-deployment-logs",
|
|
@@ -377,7 +543,8 @@ export default [
|
|
|
377
543
|
"templateFile": "show-javascript-deployment-logs.template.js",
|
|
378
544
|
"templateFileTS": "show-javascript-deployment-logs.template.ts",
|
|
379
545
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
380
|
-
"group": "hosting"
|
|
546
|
+
"group": "hosting",
|
|
547
|
+
"hidden": true
|
|
381
548
|
},
|
|
382
549
|
{
|
|
383
550
|
"name": "agency-hosting_datacenters_list",
|
|
@@ -7014,7 +7181,8 @@ export default [
|
|
|
7014
7181
|
"apiToken": []
|
|
7015
7182
|
}
|
|
7016
7183
|
],
|
|
7017
|
-
"group": "hosting"
|
|
7184
|
+
"group": "hosting",
|
|
7185
|
+
"hidden": true
|
|
7018
7186
|
},
|
|
7019
7187
|
{
|
|
7020
7188
|
"name": "hosting_files_list-website-and-directories",
|
|
@@ -7162,7 +7330,8 @@ export default [
|
|
|
7162
7330
|
"apiToken": []
|
|
7163
7331
|
}
|
|
7164
7332
|
],
|
|
7165
|
-
"group": "hosting"
|
|
7333
|
+
"group": "hosting",
|
|
7334
|
+
"hidden": true
|
|
7166
7335
|
},
|
|
7167
7336
|
{
|
|
7168
7337
|
"name": "hosting_git_update-auto-deployment-settings",
|
|
@@ -7226,7 +7395,8 @@ export default [
|
|
|
7226
7395
|
"apiToken": []
|
|
7227
7396
|
}
|
|
7228
7397
|
],
|
|
7229
|
-
"group": "hosting"
|
|
7398
|
+
"group": "hosting",
|
|
7399
|
+
"hidden": true
|
|
7230
7400
|
},
|
|
7231
7401
|
{
|
|
7232
7402
|
"name": "hosting_git_delete-auto-deployment-settings",
|
|
@@ -7304,7 +7474,8 @@ export default [
|
|
|
7304
7474
|
"apiToken": []
|
|
7305
7475
|
}
|
|
7306
7476
|
],
|
|
7307
|
-
"group": "hosting"
|
|
7477
|
+
"group": "hosting",
|
|
7478
|
+
"hidden": true
|
|
7308
7479
|
},
|
|
7309
7480
|
{
|
|
7310
7481
|
"name": "hosting_git_list-installation-repositories",
|
|
@@ -7334,7 +7505,8 @@ export default [
|
|
|
7334
7505
|
"apiToken": []
|
|
7335
7506
|
}
|
|
7336
7507
|
],
|
|
7337
|
-
"group": "hosting"
|
|
7508
|
+
"group": "hosting",
|
|
7509
|
+
"hidden": true
|
|
7338
7510
|
},
|
|
7339
7511
|
{
|
|
7340
7512
|
"name": "hosting_git_deploy-website-repository",
|
|
@@ -7758,7 +7930,8 @@ export default [
|
|
|
7758
7930
|
"apiToken": []
|
|
7759
7931
|
}
|
|
7760
7932
|
],
|
|
7761
|
-
"group": "hosting"
|
|
7933
|
+
"group": "hosting",
|
|
7934
|
+
"hidden": true
|
|
7762
7935
|
},
|
|
7763
7936
|
{
|
|
7764
7937
|
"name": "hosting_nodejs_start-build",
|
|
@@ -7894,7 +8067,8 @@ export default [
|
|
|
7894
8067
|
"apiToken": []
|
|
7895
8068
|
}
|
|
7896
8069
|
],
|
|
7897
|
-
"group": "hosting"
|
|
8070
|
+
"group": "hosting",
|
|
8071
|
+
"hidden": true
|
|
7898
8072
|
},
|
|
7899
8073
|
{
|
|
7900
8074
|
"name": "hosting_nodejs_build-settings",
|
|
@@ -7929,7 +8103,8 @@ export default [
|
|
|
7929
8103
|
"apiToken": []
|
|
7930
8104
|
}
|
|
7931
8105
|
],
|
|
7932
|
-
"group": "hosting"
|
|
8106
|
+
"group": "hosting",
|
|
8107
|
+
"hidden": true
|
|
7933
8108
|
},
|
|
7934
8109
|
{
|
|
7935
8110
|
"name": "hosting_nodejs_update-build-settings",
|
|
@@ -8026,7 +8201,8 @@ export default [
|
|
|
8026
8201
|
"apiToken": []
|
|
8027
8202
|
}
|
|
8028
8203
|
],
|
|
8029
|
-
"group": "hosting"
|
|
8204
|
+
"group": "hosting",
|
|
8205
|
+
"hidden": true
|
|
8030
8206
|
},
|
|
8031
8207
|
{
|
|
8032
8208
|
"name": "hosting_nodejs_build-settings-from-archive",
|
|
@@ -8066,7 +8242,8 @@ export default [
|
|
|
8066
8242
|
"apiToken": []
|
|
8067
8243
|
}
|
|
8068
8244
|
],
|
|
8069
|
-
"group": "hosting"
|
|
8245
|
+
"group": "hosting",
|
|
8246
|
+
"hidden": true
|
|
8070
8247
|
},
|
|
8071
8248
|
{
|
|
8072
8249
|
"name": "hosting_nodejs_list-environment-variables",
|
|
@@ -8200,7 +8377,8 @@ export default [
|
|
|
8200
8377
|
"apiToken": []
|
|
8201
8378
|
}
|
|
8202
8379
|
],
|
|
8203
|
-
"group": "hosting"
|
|
8380
|
+
"group": "hosting",
|
|
8381
|
+
"hidden": true
|
|
8204
8382
|
},
|
|
8205
8383
|
{
|
|
8206
8384
|
"name": "hosting_nodejs_build",
|
|
@@ -8240,7 +8418,8 @@ export default [
|
|
|
8240
8418
|
"apiToken": []
|
|
8241
8419
|
}
|
|
8242
8420
|
],
|
|
8243
|
-
"group": "hosting"
|
|
8421
|
+
"group": "hosting",
|
|
8422
|
+
"hidden": true
|
|
8244
8423
|
},
|
|
8245
8424
|
{
|
|
8246
8425
|
"name": "hosting_nodejs_build-logs",
|
|
@@ -8284,7 +8463,8 @@ export default [
|
|
|
8284
8463
|
"apiToken": []
|
|
8285
8464
|
}
|
|
8286
8465
|
],
|
|
8287
|
-
"group": "hosting"
|
|
8466
|
+
"group": "hosting",
|
|
8467
|
+
"hidden": true
|
|
8288
8468
|
},
|
|
8289
8469
|
{
|
|
8290
8470
|
"name": "hosting_nodejs_runtime-logs",
|
|
@@ -8528,7 +8708,7 @@ export default [
|
|
|
8528
8708
|
"readOnlyHint": true,
|
|
8529
8709
|
"destructiveHint": false
|
|
8530
8710
|
},
|
|
8531
|
-
"description": "Returns the website setups started in the last 24 hours for the hosting accounts\naccessible to the authenticated client, newest first. Narrow the list with the\n`order_id`, `subscription_id` or `domain` filters.\n\nMeant for polling right after creating a website or starting a website setup: the\nwebsite shows up in the websites list before its server-side setup has finished, and\nwhile the setup is `running` endpoints that operate on that website may respond with\n`404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and\nwait for `status: completed` before uploading files, deploying or creating databases.\n`failed` means the setup stopped before finishing or has not reported progress for\nover an hour. Setups older than 24 hours are not listed.\n\n`type` is the website type the setup was started with (`wordpress`, `
|
|
8711
|
+
"description": "Returns the website setups started in the last 24 hours for the hosting accounts\naccessible to the authenticated client, newest first. Narrow the list with the\n`order_id`, `subscription_id` or `domain` filters.\n\nMeant for polling right after creating a website or starting a website setup: the\nwebsite shows up in the websites list before its server-side setup has finished, and\nwhile the setup is `running` endpoints that operate on that website may respond with\n`404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and\nwait for `status: completed` before uploading files, deploying or creating databases.\n`failed` means the setup stopped before finishing or has not reported progress for\nover an hour. Setups older than 24 hours are not listed.\n\n`type` is the website type the setup was started with (`wordpress`, `headless_empty`,\n`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty\nwebsite.",
|
|
8532
8712
|
"method": "GET",
|
|
8533
8713
|
"path": "/api/hosting/v1/onboardings",
|
|
8534
8714
|
"inputSchema": {
|
|
@@ -8564,7 +8744,7 @@ export default [
|
|
|
8564
8744
|
"readOnlyHint": false,
|
|
8565
8745
|
"destructiveHint": false
|
|
8566
8746
|
},
|
|
8567
|
-
"description": "Starts a website setup on a Web or Cloud hosting order and returns the created setup\nright away; the website itself is provisioned asynchronously. Poll the list website\nsetups endpoint with the `domain` filter every 10 to 15
|
|
8747
|
+
"description": "Starts a website setup on a Web or Cloud hosting order and returns the created setup\nright away; the website itself is provisioned asynchronously. Poll the list website\nsetups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15\nseconds and wait for `status: completed` before uploading files, deploying or creating\ndatabases.\n\nOmit `type` for an empty website. `type: wordpress` installs WordPress in the website\nroot with the admin user, email and password from `wordpress`, the domain as the site\ntitle, and `en_US` when `wordpress.language` is omitted. The headless types\n(`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`)\ncreate a headless website; `headless_wordpress` additionally installs WordPress into the\n`cms` directory of the website root with generated credentials. `headless_empty` installs\nnothing: WordPress can be added later through\n`POST /api/hosting/v1/accounts/{username}/wordpress/installations`\n(`wordpress_installations_install`) with `type: headless`.\n\nOmit `domain` to set the website up on a generated temporary free subdomain. To know the\nfree subdomain before the call, so a timed-out call can be looked up and retried on the\nsame domain, generate one through `POST /api/hosting/v1/domains/free-subdomains`\n(`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for\n24 hours, only from the client that generated it.\n\nWhen the order has no hosting account yet, the setup creates one first, in the datacenter\ngiven by `datacenter_code` or the order's default datacenter when it is omitted.\nReturns 404 when the order does not exist or is not accessible to the authenticated\nclient, and 409 with a `Retry-After` header while a setup for the same domain is still\nrunning.",
|
|
8568
8748
|
"method": "POST",
|
|
8569
8749
|
"path": "/api/hosting/v1/orders/{order_id}/onboardings",
|
|
8570
8750
|
"inputSchema": {
|
|
@@ -8576,9 +8756,10 @@ export default [
|
|
|
8576
8756
|
},
|
|
8577
8757
|
"type": {
|
|
8578
8758
|
"type": "string",
|
|
8579
|
-
"description": "Website type. Omit or `null` for an empty website. `wordpress` installs WordPress in the website root and requires `wordpress`. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory with generated credentials.",
|
|
8759
|
+
"description": "Website type. Omit or `null` for an empty website. `wordpress` installs WordPress in the website root and requires `wordpress`. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory with generated credentials. `headless_empty` installs nothing, so WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`.",
|
|
8580
8760
|
"enum": [
|
|
8581
8761
|
"wordpress",
|
|
8762
|
+
"headless_empty",
|
|
8582
8763
|
"headless_wordpress",
|
|
8583
8764
|
"headless_ecommerce",
|
|
8584
8765
|
"headless_pocketbase"
|
|
@@ -8586,7 +8767,7 @@ export default [
|
|
|
8586
8767
|
},
|
|
8587
8768
|
"domain": {
|
|
8588
8769
|
"type": "string",
|
|
8589
|
-
"description": "Customer-owned domain. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`. Omit or `null` to set the website up on a generated temporary free subdomain."
|
|
8770
|
+
"description": "Customer-owned domain, or a free subdomain you generated through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) in the last 24 hours. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`. Omit or `null` to set the website up on a generated temporary free subdomain."
|
|
8590
8771
|
},
|
|
8591
8772
|
"datacenter_code": {
|
|
8592
8773
|
"type": "string",
|
|
@@ -9355,7 +9536,8 @@ export default [
|
|
|
9355
9536
|
"apiToken": []
|
|
9356
9537
|
}
|
|
9357
9538
|
],
|
|
9358
|
-
"group": "hosting"
|
|
9539
|
+
"group": "hosting",
|
|
9540
|
+
"hidden": true
|
|
9359
9541
|
},
|
|
9360
9542
|
{
|
|
9361
9543
|
"name": "hosting_websites_delete",
|
|
@@ -16401,7 +16583,8 @@ export default [
|
|
|
16401
16583
|
"apiToken": []
|
|
16402
16584
|
}
|
|
16403
16585
|
],
|
|
16404
|
-
"group": "wordpress"
|
|
16586
|
+
"group": "wordpress",
|
|
16587
|
+
"hidden": true
|
|
16405
16588
|
},
|
|
16406
16589
|
{
|
|
16407
16590
|
"name": "wordpress_installations_install",
|
|
@@ -16411,7 +16594,7 @@ export default [
|
|
|
16411
16594
|
"readOnlyHint": false,
|
|
16412
16595
|
"destructiveHint": false
|
|
16413
16596
|
},
|
|
16414
|
-
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/
|
|
16597
|
+
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/orders/{order_id}/onboardings\n(`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings\n(`hosting_websites_list-setups`) with the `domain` filter until its `status` is\n`completed`.\n\nSend `type: headless` to turn a headless website (for example one created by\n`hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress\nwebsite: WordPress is installed into the `cms` directory with the Hostinger headless\nMU plugin and the website is marked as a headless WordPress website. `directory` is\nnot allowed with it. The target website must already be headless: the headless\ninstall rewrites the root `.htaccess`, so on any other website the request is\nrejected with 422.\n\nCall GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`)\nfiltered by username and domain before proceeding to check whether WordPress is\nalready installed on the target domain/path. If WordPress already exists and\n`overwrite` is false (the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations\n(`wordpress_installations_list`) filtered by username and domain to track\nprogress. When the installation appears in that list, WordPress is ready.\n\nReturns 422 when the account already uses all the databases its plan allows,\nunless `database.name` is an existing database on the account.",
|
|
16415
16598
|
"method": "POST",
|
|
16416
16599
|
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
16417
16600
|
"inputSchema": {
|
|
@@ -16433,9 +16616,17 @@ export default [
|
|
|
16433
16616
|
"type": "string",
|
|
16434
16617
|
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
16435
16618
|
},
|
|
16619
|
+
"type": {
|
|
16620
|
+
"type": "string",
|
|
16621
|
+
"description": "Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_start-setup`) with `type: headless_empty`; any other website is rejected with 422.",
|
|
16622
|
+
"enum": [
|
|
16623
|
+
"default",
|
|
16624
|
+
"headless"
|
|
16625
|
+
]
|
|
16626
|
+
},
|
|
16436
16627
|
"directory": {
|
|
16437
16628
|
"type": "string",
|
|
16438
|
-
"description": "
|
|
16629
|
+
"description": "Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`."
|
|
16439
16630
|
},
|
|
16440
16631
|
"overwrite": {
|
|
16441
16632
|
"type": "boolean",
|
|
@@ -17075,7 +17266,8 @@ export default [
|
|
|
17075
17266
|
"apiToken": []
|
|
17076
17267
|
}
|
|
17077
17268
|
],
|
|
17078
|
-
"group": "wordpress"
|
|
17269
|
+
"group": "wordpress",
|
|
17270
|
+
"hidden": true
|
|
17079
17271
|
},
|
|
17080
17272
|
{
|
|
17081
17273
|
"name": "wordpress_plugins_install",
|
|
@@ -17506,7 +17698,8 @@ export default [
|
|
|
17506
17698
|
"apiToken": []
|
|
17507
17699
|
}
|
|
17508
17700
|
],
|
|
17509
|
-
"group": "wordpress"
|
|
17701
|
+
"group": "wordpress",
|
|
17702
|
+
"hidden": true
|
|
17510
17703
|
},
|
|
17511
17704
|
{
|
|
17512
17705
|
"name": "wordpress_themes_install",
|