hostinger-api-mcp 0.2.1 → 0.2.3
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/.env.example +1 -1
- package/README.md +40 -10
- package/package.json +1 -1
- package/src/core/oauth.js +15 -1
- package/src/core/oauth.ts +13 -1
- package/src/core/runtime.js +18 -17
- package/src/core/runtime.ts +18 -17
- package/src/core/tools/all.js +113 -0
- package/src/core/tools/all.ts +113 -0
- package/src/core/tools/hosting.js +105 -0
- package/src/core/tools/hosting.ts +105 -0
- package/src/core/tools/reach.js +8 -0
- package/src/core/tools/reach.ts +8 -0
- 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/hosting.js +1 -1
- package/src/servers/hosting.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/types.d.ts +83 -0
package/.env.example
CHANGED
|
@@ -4,7 +4,7 @@ TRANSPORT=stdio # Fixed to stdio
|
|
|
4
4
|
# Debug
|
|
5
5
|
DEBUG=false
|
|
6
6
|
|
|
7
|
-
# OAuth Configuration (used when
|
|
7
|
+
# OAuth Configuration (used when HOSTINGER_API_TOKEN is not set — stdio mode only)
|
|
8
8
|
# Uncomment to override the default OAuth issuer:
|
|
9
9
|
# OAUTH_ISSUER=https://auth.hostinger.com
|
|
10
10
|
|
package/README.md
CHANGED
|
@@ -49,11 +49,11 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (121 total)
|
|
53
53
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
54
54
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
55
55
|
- `hostinger-domains-mcp` — 18 tools for domains
|
|
56
|
-
- `hostinger-hosting-mcp` —
|
|
56
|
+
- `hostinger-hosting-mcp` — 16 tools for hosting
|
|
57
57
|
- `hostinger-reach-mcp` — 10 tools for reach
|
|
58
58
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
59
59
|
|
|
@@ -63,8 +63,9 @@ Pick the binary that matches your agent's scope. `hostinger-api-mcp` remains the
|
|
|
63
63
|
|
|
64
64
|
The following environment variables can be configured when running the server:
|
|
65
65
|
- `DEBUG`: Enable debug logging (true/false) (default: false)
|
|
66
|
-
- `
|
|
67
|
-
- `
|
|
66
|
+
- `HOSTINGER_API_TOKEN`: Your API token, which will be sent in the `Authorization` header. When set, OAuth is bypassed entirely.
|
|
67
|
+
- `API_TOKEN`: Deprecated alias for `HOSTINGER_API_TOKEN`. Will be removed in a future version — prefer `HOSTINGER_API_TOKEN`.
|
|
68
|
+
- `OAUTH_ISSUER`: OAuth server base URL (default: `https://auth.hostinger.com`). Only used when `HOSTINGER_API_TOKEN` is not set.
|
|
68
69
|
|
|
69
70
|
## Authentication
|
|
70
71
|
|
|
@@ -72,11 +73,11 @@ The server supports two authentication methods:
|
|
|
72
73
|
|
|
73
74
|
### API Token (recommended for CI/scripts)
|
|
74
75
|
|
|
75
|
-
Set `
|
|
76
|
+
Set `HOSTINGER_API_TOKEN` in the environment or `.env` file. When present it always takes precedence — no OAuth code runs.
|
|
76
77
|
|
|
77
78
|
### OAuth 2.0 with PKCE (interactive sign-in)
|
|
78
79
|
|
|
79
|
-
When `
|
|
80
|
+
When `HOSTINGER_API_TOKEN` is not set and the server runs in stdio mode, OAuth 2.0 with PKCE is used automatically on the first authenticated tool call:
|
|
80
81
|
|
|
81
82
|
1. A dynamic OAuth client is registered with the issuer (RFC 7591) — once per machine.
|
|
82
83
|
2. A browser window opens to the authorization page.
|
|
@@ -99,7 +100,7 @@ hostinger-api-mcp --login
|
|
|
99
100
|
hostinger-api-mcp --logout
|
|
100
101
|
```
|
|
101
102
|
|
|
102
|
-
**HTTP transport note:** OAuth sign-in is not supported in `--http` mode. Set `
|
|
103
|
+
**HTTP transport note:** OAuth sign-in is not supported in `--http` mode. Set `HOSTINGER_API_TOKEN` before using `--http`.
|
|
103
104
|
|
|
104
105
|
## Usage
|
|
105
106
|
|
|
@@ -112,7 +113,7 @@ hostinger-api-mcp --logout
|
|
|
112
113
|
"command": "hostinger-api-mcp",
|
|
113
114
|
"env": {
|
|
114
115
|
"DEBUG": "false",
|
|
115
|
-
"
|
|
116
|
+
"HOSTINGER_API_TOKEN": "YOUR API TOKEN"
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -143,7 +144,7 @@ hostinger-api-mcp --http --host 0.0.0.0 --port 8150
|
|
|
143
144
|
|
|
144
145
|
```
|
|
145
146
|
Options:
|
|
146
|
-
--http Use HTTP streaming transport (requires
|
|
147
|
+
--http Use HTTP streaming transport (requires HOSTINGER_API_TOKEN env var)
|
|
147
148
|
--stdio Use Server-Sent Events transport (default)
|
|
148
149
|
--host {host} Hostname or IP address to listen on (default: 127.0.0.1)
|
|
149
150
|
--port {port} Port to bind to (default: 8100)
|
|
@@ -166,7 +167,7 @@ import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/
|
|
|
166
167
|
const transport = new StreamableHTTPClientTransport({
|
|
167
168
|
url: "http://localhost:8100/",
|
|
168
169
|
headers: {
|
|
169
|
-
"Authorization": `Bearer ${process.env.
|
|
170
|
+
"Authorization": `Bearer ${process.env.HOSTINGER_API_TOKEN}`
|
|
170
171
|
}
|
|
171
172
|
});
|
|
172
173
|
|
|
@@ -611,6 +612,35 @@ and you can always connect a custom domain to your site later.
|
|
|
611
612
|
- **Method**: `POST`
|
|
612
613
|
- **Path**: `/api/hosting/v1/domains/free-subdomains`
|
|
613
614
|
|
|
615
|
+
#### hosting_listWebsiteSubdomainsV1
|
|
616
|
+
|
|
617
|
+
Retrieve all subdomains created under the selected website.
|
|
618
|
+
|
|
619
|
+
Use this endpoint to inspect subdomain configuration for a specific website,
|
|
620
|
+
including the parent domain and root directory assigned to each subdomain.
|
|
621
|
+
|
|
622
|
+
- **Method**: `GET`
|
|
623
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
|
|
624
|
+
|
|
625
|
+
#### hosting_createWebsiteSubdomainV1
|
|
626
|
+
|
|
627
|
+
Create a new subdomain for the selected website.
|
|
628
|
+
|
|
629
|
+
Provide a subdomain prefix and, optionally, a custom directory or the
|
|
630
|
+
website public directory to use as the subdomain root.
|
|
631
|
+
|
|
632
|
+
- **Method**: `POST`
|
|
633
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
|
|
634
|
+
|
|
635
|
+
#### hosting_deleteWebsiteSubdomainV1
|
|
636
|
+
|
|
637
|
+
Delete an existing subdomain from the selected website.
|
|
638
|
+
|
|
639
|
+
Use this endpoint to remove subdomains that are no longer needed.
|
|
640
|
+
|
|
641
|
+
- **Method**: `DELETE`
|
|
642
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}`
|
|
643
|
+
|
|
614
644
|
#### hosting_verifyDomainOwnershipV1
|
|
615
645
|
|
|
616
646
|
Verify ownership of a single domain and return the verification status.
|
package/package.json
CHANGED
package/src/core/oauth.js
CHANGED
|
@@ -41,6 +41,20 @@ export class OAuthRefreshError extends Error {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Resolve the bearer token from the environment. HOSTINGER_API_TOKEN is the
|
|
46
|
+
* preferred name; API_TOKEN and APITOKEN are kept as backwards-compatible
|
|
47
|
+
* aliases (API_TOKEN is deprecated and will be removed in a future version).
|
|
48
|
+
* Empty values fall through, matching the previous `||` behavior.
|
|
49
|
+
*/
|
|
50
|
+
export function getEnvToken() {
|
|
51
|
+
return (
|
|
52
|
+
process.env["HOSTINGER_API_TOKEN"] ||
|
|
53
|
+
process.env["API_TOKEN"] ||
|
|
54
|
+
process.env["APITOKEN"]
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
44
58
|
export class OAuthProvider {
|
|
45
59
|
constructor(issuerBaseUrl) {
|
|
46
60
|
this.issuer = (
|
|
@@ -52,7 +66,7 @@ export class OAuthProvider {
|
|
|
52
66
|
}
|
|
53
67
|
|
|
54
68
|
async getAccessToken() {
|
|
55
|
-
const envToken =
|
|
69
|
+
const envToken = getEnvToken();
|
|
56
70
|
if (envToken) {
|
|
57
71
|
return envToken;
|
|
58
72
|
}
|
package/src/core/oauth.ts
CHANGED
|
@@ -56,6 +56,18 @@ export class OAuthRefreshError extends Error {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Resolve the bearer token from the environment. HOSTINGER_API_TOKEN is the
|
|
61
|
+
* preferred name; API_TOKEN and APITOKEN are kept as backwards-compatible
|
|
62
|
+
* aliases (API_TOKEN is deprecated and will be removed in a future version).
|
|
63
|
+
* Empty values fall through, matching the previous `||` behavior.
|
|
64
|
+
*/
|
|
65
|
+
export function getEnvToken(): string | undefined {
|
|
66
|
+
return process.env['HOSTINGER_API_TOKEN']
|
|
67
|
+
|| process.env['API_TOKEN']
|
|
68
|
+
|| process.env['APITOKEN'];
|
|
69
|
+
}
|
|
70
|
+
|
|
59
71
|
export class OAuthProvider {
|
|
60
72
|
private readonly issuer: string;
|
|
61
73
|
private _loginInProgress: Promise<string> | null = null;
|
|
@@ -65,7 +77,7 @@ export class OAuthProvider {
|
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
async getAccessToken(): Promise<string> {
|
|
68
|
-
const envToken =
|
|
80
|
+
const envToken = getEnvToken();
|
|
69
81
|
if (envToken) {
|
|
70
82
|
return envToken;
|
|
71
83
|
}
|
package/src/core/runtime.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ListToolsRequestSchema,
|
|
12
12
|
CallToolRequestSchema,
|
|
13
13
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
14
|
-
import { OAuthProvider } from "./oauth.js";
|
|
14
|
+
import { OAuthProvider, getEnvToken } from "./oauth.js";
|
|
15
15
|
import * as tus from "tus-js-client";
|
|
16
16
|
import fs from "fs";
|
|
17
17
|
import path from "path";
|
|
@@ -29,7 +29,7 @@ const SECURITY_SCHEMES = {
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* MCP Server for Hostinger API
|
|
32
|
-
* Generated from OpenAPI spec version 0.
|
|
32
|
+
* Generated from OpenAPI spec version 0.14.0
|
|
33
33
|
*/
|
|
34
34
|
class MCPServer {
|
|
35
35
|
constructor({ name, version, tools }) {
|
|
@@ -86,8 +86,8 @@ class MCPServer {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Resolve a bearer token. API_TOKEN env
|
|
90
|
-
* OAuth provider handles login/refresh transparently.
|
|
89
|
+
* Resolve a bearer token. HOSTINGER_API_TOKEN / API_TOKEN env vars take
|
|
90
|
+
* precedence; otherwise the OAuth provider handles login/refresh transparently.
|
|
91
91
|
*/
|
|
92
92
|
async getAuthToken() {
|
|
93
93
|
return await this.oauth.getAccessToken();
|
|
@@ -1893,7 +1893,7 @@ class MCPServer {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
};
|
|
1895
1895
|
|
|
1896
|
-
const envToken =
|
|
1896
|
+
const envToken = getEnvToken();
|
|
1897
1897
|
let bearerToken = await this.getAuthToken();
|
|
1898
1898
|
config.headers['Authorization'] = `Bearer ${bearerToken}`;
|
|
1899
1899
|
|
|
@@ -2075,17 +2075,18 @@ export async function startServer({ name, version, tools }) {
|
|
|
2075
2075
|
${name}
|
|
2076
2076
|
Usage: ${name} [options]
|
|
2077
2077
|
Options:
|
|
2078
|
-
--http
|
|
2079
|
-
--stdio
|
|
2080
|
-
--host <host>
|
|
2081
|
-
--port <port>
|
|
2082
|
-
--login
|
|
2083
|
-
--logout
|
|
2084
|
-
--help
|
|
2078
|
+
--http Use HTTP streaming transport (requires HOSTINGER_API_TOKEN env var)
|
|
2079
|
+
--stdio Use standard input/output transport (default)
|
|
2080
|
+
--host <host> Host to bind to (default: 127.0.0.1)
|
|
2081
|
+
--port <port> Port to bind to (default: 8100)
|
|
2082
|
+
--login Run OAuth sign-in flow and exit
|
|
2083
|
+
--logout Revoke stored OAuth credentials and exit
|
|
2084
|
+
--help Show this help message
|
|
2085
2085
|
Environment Variables:
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2086
|
+
HOSTINGER_API_TOKEN Hostinger API token (overrides OAuth when set)
|
|
2087
|
+
API_TOKEN Deprecated alias for HOSTINGER_API_TOKEN (will be removed in a future version)
|
|
2088
|
+
OAUTH_ISSUER OAuth server base URL (default: https://auth.hostinger.com)
|
|
2089
|
+
DEBUG Enable debug logging (true/false)
|
|
2089
2090
|
`);
|
|
2090
2091
|
process.exit(0);
|
|
2091
2092
|
}
|
|
@@ -2106,9 +2107,9 @@ export async function startServer({ name, version, tools }) {
|
|
|
2106
2107
|
}
|
|
2107
2108
|
|
|
2108
2109
|
if (argv.http) {
|
|
2109
|
-
const envToken =
|
|
2110
|
+
const envToken = getEnvToken();
|
|
2110
2111
|
if (!envToken) {
|
|
2111
|
-
console.error('[Error] HTTP transport requires the
|
|
2112
|
+
console.error('[Error] HTTP transport requires the HOSTINGER_API_TOKEN environment variable. OAuth sign-in is only supported in stdio mode.');
|
|
2112
2113
|
process.exit(1);
|
|
2113
2114
|
}
|
|
2114
2115
|
}
|
package/src/core/runtime.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
CallToolRequestSchema,
|
|
13
13
|
Tool,
|
|
14
14
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
15
|
-
import { OAuthProvider } from "./oauth.js";
|
|
15
|
+
import { OAuthProvider, getEnvToken } from "./oauth.js";
|
|
16
16
|
import axios,{ AxiosRequestConfig, AxiosError, AxiosResponse } from "axios";
|
|
17
17
|
import * as tus from "tus-js-client";
|
|
18
18
|
import fs from "fs";
|
|
@@ -47,7 +47,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* MCP Server for Hostinger API
|
|
50
|
-
* Generated from OpenAPI spec version 0.
|
|
50
|
+
* Generated from OpenAPI spec version 0.14.0
|
|
51
51
|
*/
|
|
52
52
|
class MCPServer {
|
|
53
53
|
private readonly name: string;
|
|
@@ -112,8 +112,8 @@ class MCPServer {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Resolve a bearer token. API_TOKEN env
|
|
116
|
-
* OAuth provider handles login/refresh transparently.
|
|
115
|
+
* Resolve a bearer token. HOSTINGER_API_TOKEN / API_TOKEN env vars take
|
|
116
|
+
* precedence; otherwise the OAuth provider handles login/refresh transparently.
|
|
117
117
|
*/
|
|
118
118
|
private async getAuthToken(): Promise<string> {
|
|
119
119
|
return await this.oauth.getAccessToken();
|
|
@@ -1924,7 +1924,7 @@ class MCPServer {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
};
|
|
1926
1926
|
|
|
1927
|
-
const envToken =
|
|
1927
|
+
const envToken = getEnvToken();
|
|
1928
1928
|
let bearerToken = await this.getAuthToken();
|
|
1929
1929
|
if (config.headers) {
|
|
1930
1930
|
config.headers['Authorization'] = `Bearer ${bearerToken}`;
|
|
@@ -2112,17 +2112,18 @@ export async function startServer({ name, version, tools }: { name: string; vers
|
|
|
2112
2112
|
${name}
|
|
2113
2113
|
Usage: ${name} [options]
|
|
2114
2114
|
Options:
|
|
2115
|
-
--http
|
|
2116
|
-
--stdio
|
|
2117
|
-
--host <host>
|
|
2118
|
-
--port <port>
|
|
2119
|
-
--login
|
|
2120
|
-
--logout
|
|
2121
|
-
--help
|
|
2115
|
+
--http Use HTTP streaming transport (requires HOSTINGER_API_TOKEN env var)
|
|
2116
|
+
--stdio Use standard input/output transport (default)
|
|
2117
|
+
--host <host> Host to bind to (default: 127.0.0.1)
|
|
2118
|
+
--port <port> Port to bind to (default: 8100)
|
|
2119
|
+
--login Run OAuth sign-in flow and exit
|
|
2120
|
+
--logout Revoke stored OAuth credentials and exit
|
|
2121
|
+
--help Show this help message
|
|
2122
2122
|
Environment Variables:
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2123
|
+
HOSTINGER_API_TOKEN Hostinger API token (overrides OAuth when set)
|
|
2124
|
+
API_TOKEN Deprecated alias for HOSTINGER_API_TOKEN (will be removed in a future version)
|
|
2125
|
+
OAUTH_ISSUER OAuth server base URL (default: https://auth.hostinger.com)
|
|
2126
|
+
DEBUG Enable debug logging (true/false)
|
|
2126
2127
|
`);
|
|
2127
2128
|
process.exit(0);
|
|
2128
2129
|
}
|
|
@@ -2143,9 +2144,9 @@ export async function startServer({ name, version, tools }: { name: string; vers
|
|
|
2143
2144
|
}
|
|
2144
2145
|
|
|
2145
2146
|
if (argv.http) {
|
|
2146
|
-
const envToken =
|
|
2147
|
+
const envToken = getEnvToken();
|
|
2147
2148
|
if (!envToken) {
|
|
2148
|
-
console.error('[Error] HTTP transport requires the
|
|
2149
|
+
console.error('[Error] HTTP transport requires the HOSTINGER_API_TOKEN environment variable. OAuth sign-in is only supported in stdio mode.');
|
|
2149
2150
|
process.exit(1);
|
|
2150
2151
|
}
|
|
2151
2152
|
}
|
package/src/core/tools/all.js
CHANGED
|
@@ -1328,6 +1328,111 @@ export default [
|
|
|
1328
1328
|
],
|
|
1329
1329
|
"group": "hosting"
|
|
1330
1330
|
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
1333
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
1334
|
+
"method": "GET",
|
|
1335
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1336
|
+
"inputSchema": {
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"properties": {
|
|
1339
|
+
"username": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"description": "username parameter"
|
|
1342
|
+
},
|
|
1343
|
+
"domain": {
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"description": "Domain name"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
"required": [
|
|
1349
|
+
"username",
|
|
1350
|
+
"domain"
|
|
1351
|
+
]
|
|
1352
|
+
},
|
|
1353
|
+
"security": [
|
|
1354
|
+
{
|
|
1355
|
+
"apiToken": []
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
"group": "hosting"
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
1362
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
1363
|
+
"method": "POST",
|
|
1364
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1365
|
+
"inputSchema": {
|
|
1366
|
+
"type": "object",
|
|
1367
|
+
"properties": {
|
|
1368
|
+
"username": {
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"description": "username parameter"
|
|
1371
|
+
},
|
|
1372
|
+
"domain": {
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
"description": "Domain name"
|
|
1375
|
+
},
|
|
1376
|
+
"subdomain": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
1379
|
+
},
|
|
1380
|
+
"directory": {
|
|
1381
|
+
"type": "string",
|
|
1382
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
1383
|
+
},
|
|
1384
|
+
"is_using_public_directory": {
|
|
1385
|
+
"type": "boolean",
|
|
1386
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
"required": [
|
|
1390
|
+
"username",
|
|
1391
|
+
"domain",
|
|
1392
|
+
"subdomain"
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
"security": [
|
|
1396
|
+
{
|
|
1397
|
+
"apiToken": []
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
1400
|
+
"group": "hosting"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
1404
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
1405
|
+
"method": "DELETE",
|
|
1406
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
1407
|
+
"inputSchema": {
|
|
1408
|
+
"type": "object",
|
|
1409
|
+
"properties": {
|
|
1410
|
+
"username": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"description": "username parameter"
|
|
1413
|
+
},
|
|
1414
|
+
"domain": {
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
"description": "Domain name"
|
|
1417
|
+
},
|
|
1418
|
+
"subdomain": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"description": "subdomain parameter"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"required": [
|
|
1424
|
+
"username",
|
|
1425
|
+
"domain",
|
|
1426
|
+
"subdomain"
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1429
|
+
"security": [
|
|
1430
|
+
{
|
|
1431
|
+
"apiToken": []
|
|
1432
|
+
}
|
|
1433
|
+
],
|
|
1434
|
+
"group": "hosting"
|
|
1435
|
+
},
|
|
1331
1436
|
{
|
|
1332
1437
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
1333
1438
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
|
@@ -1570,6 +1675,10 @@ export default [
|
|
|
1570
1675
|
"type": "string",
|
|
1571
1676
|
"description": "surname parameter"
|
|
1572
1677
|
},
|
|
1678
|
+
"phone": {
|
|
1679
|
+
"type": "string",
|
|
1680
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
1681
|
+
},
|
|
1573
1682
|
"note": {
|
|
1574
1683
|
"type": "string",
|
|
1575
1684
|
"description": "note parameter"
|
|
@@ -1787,6 +1896,10 @@ export default [
|
|
|
1787
1896
|
"type": "string",
|
|
1788
1897
|
"description": "surname parameter"
|
|
1789
1898
|
},
|
|
1899
|
+
"phone": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
1902
|
+
},
|
|
1790
1903
|
"note": {
|
|
1791
1904
|
"type": "string",
|
|
1792
1905
|
"description": "note parameter"
|
package/src/core/tools/all.ts
CHANGED
|
@@ -1338,6 +1338,111 @@ const tools: OpenApiTool[] = [
|
|
|
1338
1338
|
],
|
|
1339
1339
|
"group": "hosting"
|
|
1340
1340
|
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
1343
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
1344
|
+
"method": "GET",
|
|
1345
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1346
|
+
"inputSchema": {
|
|
1347
|
+
"type": "object",
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"username": {
|
|
1350
|
+
"type": "string",
|
|
1351
|
+
"description": "username parameter"
|
|
1352
|
+
},
|
|
1353
|
+
"domain": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"description": "Domain name"
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
"required": [
|
|
1359
|
+
"username",
|
|
1360
|
+
"domain"
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1363
|
+
"security": [
|
|
1364
|
+
{
|
|
1365
|
+
"apiToken": []
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"group": "hosting"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
1372
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
1373
|
+
"method": "POST",
|
|
1374
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1375
|
+
"inputSchema": {
|
|
1376
|
+
"type": "object",
|
|
1377
|
+
"properties": {
|
|
1378
|
+
"username": {
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"description": "username parameter"
|
|
1381
|
+
},
|
|
1382
|
+
"domain": {
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"description": "Domain name"
|
|
1385
|
+
},
|
|
1386
|
+
"subdomain": {
|
|
1387
|
+
"type": "string",
|
|
1388
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
1389
|
+
},
|
|
1390
|
+
"directory": {
|
|
1391
|
+
"type": "string",
|
|
1392
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
1393
|
+
},
|
|
1394
|
+
"is_using_public_directory": {
|
|
1395
|
+
"type": "boolean",
|
|
1396
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"required": [
|
|
1400
|
+
"username",
|
|
1401
|
+
"domain",
|
|
1402
|
+
"subdomain"
|
|
1403
|
+
]
|
|
1404
|
+
},
|
|
1405
|
+
"security": [
|
|
1406
|
+
{
|
|
1407
|
+
"apiToken": []
|
|
1408
|
+
}
|
|
1409
|
+
],
|
|
1410
|
+
"group": "hosting"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
1414
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
1415
|
+
"method": "DELETE",
|
|
1416
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
1417
|
+
"inputSchema": {
|
|
1418
|
+
"type": "object",
|
|
1419
|
+
"properties": {
|
|
1420
|
+
"username": {
|
|
1421
|
+
"type": "string",
|
|
1422
|
+
"description": "username parameter"
|
|
1423
|
+
},
|
|
1424
|
+
"domain": {
|
|
1425
|
+
"type": "string",
|
|
1426
|
+
"description": "Domain name"
|
|
1427
|
+
},
|
|
1428
|
+
"subdomain": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"description": "subdomain parameter"
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"required": [
|
|
1434
|
+
"username",
|
|
1435
|
+
"domain",
|
|
1436
|
+
"subdomain"
|
|
1437
|
+
]
|
|
1438
|
+
},
|
|
1439
|
+
"security": [
|
|
1440
|
+
{
|
|
1441
|
+
"apiToken": []
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"group": "hosting"
|
|
1445
|
+
},
|
|
1341
1446
|
{
|
|
1342
1447
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
1343
1448
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
|
@@ -1580,6 +1685,10 @@ const tools: OpenApiTool[] = [
|
|
|
1580
1685
|
"type": "string",
|
|
1581
1686
|
"description": "surname parameter"
|
|
1582
1687
|
},
|
|
1688
|
+
"phone": {
|
|
1689
|
+
"type": "string",
|
|
1690
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
1691
|
+
},
|
|
1583
1692
|
"note": {
|
|
1584
1693
|
"type": "string",
|
|
1585
1694
|
"description": "note parameter"
|
|
@@ -1797,6 +1906,10 @@ const tools: OpenApiTool[] = [
|
|
|
1797
1906
|
"type": "string",
|
|
1798
1907
|
"description": "surname parameter"
|
|
1799
1908
|
},
|
|
1909
|
+
"phone": {
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
1912
|
+
},
|
|
1800
1913
|
"note": {
|
|
1801
1914
|
"type": "string",
|
|
1802
1915
|
"description": "note parameter"
|
|
@@ -298,6 +298,111 @@ export default [
|
|
|
298
298
|
],
|
|
299
299
|
"group": "hosting"
|
|
300
300
|
},
|
|
301
|
+
{
|
|
302
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
303
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
304
|
+
"method": "GET",
|
|
305
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
306
|
+
"inputSchema": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"properties": {
|
|
309
|
+
"username": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"description": "username parameter"
|
|
312
|
+
},
|
|
313
|
+
"domain": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "Domain name"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"required": [
|
|
319
|
+
"username",
|
|
320
|
+
"domain"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"security": [
|
|
324
|
+
{
|
|
325
|
+
"apiToken": []
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"group": "hosting"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
332
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
333
|
+
"method": "POST",
|
|
334
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
335
|
+
"inputSchema": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"username": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "username parameter"
|
|
341
|
+
},
|
|
342
|
+
"domain": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "Domain name"
|
|
345
|
+
},
|
|
346
|
+
"subdomain": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
349
|
+
},
|
|
350
|
+
"directory": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
353
|
+
},
|
|
354
|
+
"is_using_public_directory": {
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"required": [
|
|
360
|
+
"username",
|
|
361
|
+
"domain",
|
|
362
|
+
"subdomain"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"security": [
|
|
366
|
+
{
|
|
367
|
+
"apiToken": []
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"group": "hosting"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
374
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
375
|
+
"method": "DELETE",
|
|
376
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
377
|
+
"inputSchema": {
|
|
378
|
+
"type": "object",
|
|
379
|
+
"properties": {
|
|
380
|
+
"username": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"description": "username parameter"
|
|
383
|
+
},
|
|
384
|
+
"domain": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"description": "Domain name"
|
|
387
|
+
},
|
|
388
|
+
"subdomain": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "subdomain parameter"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"required": [
|
|
394
|
+
"username",
|
|
395
|
+
"domain",
|
|
396
|
+
"subdomain"
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"security": [
|
|
400
|
+
{
|
|
401
|
+
"apiToken": []
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"group": "hosting"
|
|
405
|
+
},
|
|
301
406
|
{
|
|
302
407
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
303
408
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
|
@@ -308,6 +308,111 @@ const tools: OpenApiTool[] = [
|
|
|
308
308
|
],
|
|
309
309
|
"group": "hosting"
|
|
310
310
|
},
|
|
311
|
+
{
|
|
312
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
313
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
314
|
+
"method": "GET",
|
|
315
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
316
|
+
"inputSchema": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"properties": {
|
|
319
|
+
"username": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "username parameter"
|
|
322
|
+
},
|
|
323
|
+
"domain": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"description": "Domain name"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"required": [
|
|
329
|
+
"username",
|
|
330
|
+
"domain"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"security": [
|
|
334
|
+
{
|
|
335
|
+
"apiToken": []
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"group": "hosting"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
342
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
343
|
+
"method": "POST",
|
|
344
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
345
|
+
"inputSchema": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"username": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"description": "username parameter"
|
|
351
|
+
},
|
|
352
|
+
"domain": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"description": "Domain name"
|
|
355
|
+
},
|
|
356
|
+
"subdomain": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
359
|
+
},
|
|
360
|
+
"directory": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
363
|
+
},
|
|
364
|
+
"is_using_public_directory": {
|
|
365
|
+
"type": "boolean",
|
|
366
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"required": [
|
|
370
|
+
"username",
|
|
371
|
+
"domain",
|
|
372
|
+
"subdomain"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"security": [
|
|
376
|
+
{
|
|
377
|
+
"apiToken": []
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"group": "hosting"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
384
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
385
|
+
"method": "DELETE",
|
|
386
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
387
|
+
"inputSchema": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"username": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"description": "username parameter"
|
|
393
|
+
},
|
|
394
|
+
"domain": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"description": "Domain name"
|
|
397
|
+
},
|
|
398
|
+
"subdomain": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "subdomain parameter"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": [
|
|
404
|
+
"username",
|
|
405
|
+
"domain",
|
|
406
|
+
"subdomain"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
"security": [
|
|
410
|
+
{
|
|
411
|
+
"apiToken": []
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"group": "hosting"
|
|
415
|
+
},
|
|
311
416
|
{
|
|
312
417
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
313
418
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
package/src/core/tools/reach.js
CHANGED
|
@@ -95,6 +95,10 @@ export default [
|
|
|
95
95
|
"type": "string",
|
|
96
96
|
"description": "surname parameter"
|
|
97
97
|
},
|
|
98
|
+
"phone": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
101
|
+
},
|
|
98
102
|
"note": {
|
|
99
103
|
"type": "string",
|
|
100
104
|
"description": "note parameter"
|
|
@@ -312,6 +316,10 @@ export default [
|
|
|
312
316
|
"type": "string",
|
|
313
317
|
"description": "surname parameter"
|
|
314
318
|
},
|
|
319
|
+
"phone": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
322
|
+
},
|
|
315
323
|
"note": {
|
|
316
324
|
"type": "string",
|
|
317
325
|
"description": "note parameter"
|
package/src/core/tools/reach.ts
CHANGED
|
@@ -105,6 +105,10 @@ const tools: OpenApiTool[] = [
|
|
|
105
105
|
"type": "string",
|
|
106
106
|
"description": "surname parameter"
|
|
107
107
|
},
|
|
108
|
+
"phone": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
111
|
+
},
|
|
108
112
|
"note": {
|
|
109
113
|
"type": "string",
|
|
110
114
|
"description": "note parameter"
|
|
@@ -322,6 +326,10 @@ const tools: OpenApiTool[] = [
|
|
|
322
326
|
"type": "string",
|
|
323
327
|
"description": "surname parameter"
|
|
324
328
|
},
|
|
329
|
+
"phone": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)"
|
|
332
|
+
},
|
|
325
333
|
"note": {
|
|
326
334
|
"type": "string",
|
|
327
335
|
"description": "note parameter"
|
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/hosting.js
CHANGED
package/src/servers/hosting.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/types.d.ts
CHANGED
|
@@ -824,6 +824,81 @@ and you can always connect a custom domain to your site later.
|
|
|
824
824
|
response: any; // Response structure will depend on the API
|
|
825
825
|
};
|
|
826
826
|
|
|
827
|
+
/**
|
|
828
|
+
* Retrieve all subdomains created under the selected website.
|
|
829
|
+
|
|
830
|
+
Use this endpoint to inspect subdomain configuration for a specific website,
|
|
831
|
+
including the parent domain and root directory assigned to each subdomain.
|
|
832
|
+
*/
|
|
833
|
+
"hosting_listWebsiteSubdomainsV1": {
|
|
834
|
+
params: {
|
|
835
|
+
/**
|
|
836
|
+
* username parameter
|
|
837
|
+
*/
|
|
838
|
+
username: string;
|
|
839
|
+
/**
|
|
840
|
+
* Domain name
|
|
841
|
+
*/
|
|
842
|
+
domain: string;
|
|
843
|
+
};
|
|
844
|
+
response: any; // Response structure will depend on the API
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Create a new subdomain for the selected website.
|
|
849
|
+
|
|
850
|
+
Provide a subdomain prefix and, optionally, a custom directory or the
|
|
851
|
+
website public directory to use as the subdomain root.
|
|
852
|
+
*/
|
|
853
|
+
"hosting_createWebsiteSubdomainV1": {
|
|
854
|
+
params: {
|
|
855
|
+
/**
|
|
856
|
+
* username parameter
|
|
857
|
+
*/
|
|
858
|
+
username: string;
|
|
859
|
+
/**
|
|
860
|
+
* Domain name
|
|
861
|
+
*/
|
|
862
|
+
domain: string;
|
|
863
|
+
/**
|
|
864
|
+
* Subdomain prefix to create under the selected website
|
|
865
|
+
*/
|
|
866
|
+
subdomain: string;
|
|
867
|
+
/**
|
|
868
|
+
* Directory name for the subdomain relative to the website root
|
|
869
|
+
*/
|
|
870
|
+
directory?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Use the website public directory as the subdomain root directory
|
|
873
|
+
*/
|
|
874
|
+
is_using_public_directory?: boolean;
|
|
875
|
+
};
|
|
876
|
+
response: any; // Response structure will depend on the API
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Delete an existing subdomain from the selected website.
|
|
881
|
+
|
|
882
|
+
Use this endpoint to remove subdomains that are no longer needed.
|
|
883
|
+
*/
|
|
884
|
+
"hosting_deleteWebsiteSubdomainV1": {
|
|
885
|
+
params: {
|
|
886
|
+
/**
|
|
887
|
+
* username parameter
|
|
888
|
+
*/
|
|
889
|
+
username: string;
|
|
890
|
+
/**
|
|
891
|
+
* Domain name
|
|
892
|
+
*/
|
|
893
|
+
domain: string;
|
|
894
|
+
/**
|
|
895
|
+
* subdomain parameter
|
|
896
|
+
*/
|
|
897
|
+
subdomain: string;
|
|
898
|
+
};
|
|
899
|
+
response: any; // Response structure will depend on the API
|
|
900
|
+
};
|
|
901
|
+
|
|
827
902
|
/**
|
|
828
903
|
* Verify ownership of a single domain and return the verification status.
|
|
829
904
|
|
|
@@ -1019,6 +1094,10 @@ the contact will be created with a pending status and a confirmation email will
|
|
|
1019
1094
|
* surname parameter
|
|
1020
1095
|
*/
|
|
1021
1096
|
surname?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* Phone number in E.164 format (leading "+" then 7-15 digits)
|
|
1099
|
+
*/
|
|
1100
|
+
phone?: string;
|
|
1022
1101
|
/**
|
|
1023
1102
|
* note parameter
|
|
1024
1103
|
*/
|
|
@@ -1129,6 +1208,10 @@ and a confirmation email will be sent.
|
|
|
1129
1208
|
* surname parameter
|
|
1130
1209
|
*/
|
|
1131
1210
|
surname?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* Phone number in E.164 format (leading "+" then 7-15 digits)
|
|
1213
|
+
*/
|
|
1214
|
+
phone?: string;
|
|
1132
1215
|
/**
|
|
1133
1216
|
* note parameter
|
|
1134
1217
|
*/
|