hostinger-api-mcp 1.56.0 → 1.57.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 +25 -0
- package/README.md +83 -2
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +317 -0
- package/src/core/tools/all.ts +317 -0
- package/src/core/tools/hosting.js +317 -0
- package/src/core/tools/hosting.ts +317 -0
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +198 -0
package/src/core/tools/all.ts
CHANGED
|
@@ -6710,6 +6710,138 @@ const tools: OpenApiTool[] = [
|
|
|
6710
6710
|
],
|
|
6711
6711
|
"group": "hosting"
|
|
6712
6712
|
},
|
|
6713
|
+
{
|
|
6714
|
+
"name": "hosting_getNode_jsBuildSettingsV1",
|
|
6715
|
+
"title": "Get Node.js build settings",
|
|
6716
|
+
"annotations": {
|
|
6717
|
+
"title": "Get Node.js build settings",
|
|
6718
|
+
"readOnlyHint": true,
|
|
6719
|
+
"destructiveHint": false
|
|
6720
|
+
},
|
|
6721
|
+
"description": "Returns the build settings stored for the website: framework (`app_type`), Node.js version,\nroot and output directory, build script, entry file and package manager. Stored settings\ndrive Git auto-deployment builds. A build started through the API uses the values sent in\nthat request and saves them here only when no settings exist yet.\n\nReturns 404 until the first build or the first settings update stores them. Use this after\na failed build to check whether the framework or the entry file were detected wrong, then\nfix them with the `Update Node.js build settings` endpoint.",
|
|
6722
|
+
"method": "GET",
|
|
6723
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings",
|
|
6724
|
+
"inputSchema": {
|
|
6725
|
+
"type": "object",
|
|
6726
|
+
"properties": {
|
|
6727
|
+
"username": {
|
|
6728
|
+
"type": "string",
|
|
6729
|
+
"description": "username parameter"
|
|
6730
|
+
},
|
|
6731
|
+
"domain": {
|
|
6732
|
+
"type": "string",
|
|
6733
|
+
"description": "Domain name"
|
|
6734
|
+
}
|
|
6735
|
+
},
|
|
6736
|
+
"required": [
|
|
6737
|
+
"username",
|
|
6738
|
+
"domain"
|
|
6739
|
+
]
|
|
6740
|
+
},
|
|
6741
|
+
"security": [
|
|
6742
|
+
{
|
|
6743
|
+
"apiToken": []
|
|
6744
|
+
}
|
|
6745
|
+
],
|
|
6746
|
+
"group": "hosting"
|
|
6747
|
+
},
|
|
6748
|
+
{
|
|
6749
|
+
"name": "hosting_updateNode_jsBuildSettingsV1",
|
|
6750
|
+
"title": "Update Node.js build settings",
|
|
6751
|
+
"annotations": {
|
|
6752
|
+
"title": "Update Node.js build settings",
|
|
6753
|
+
"readOnlyHint": false,
|
|
6754
|
+
"destructiveHint": true,
|
|
6755
|
+
"idempotentHint": true
|
|
6756
|
+
},
|
|
6757
|
+
"description": "Replaces the build settings stored for the website. Send the full set: `node_version` is\nrequired and every nullable field you omit is stored as null. Creates the settings when\nnone exist yet.\n\nThis does not start a build. Stored settings drive Git auto-deployment builds; a build\nstarted through the API uses the values sent in that request, so to rebuild with corrected\nsettings call `Start Node.js build` with the same values. Typical fixes: a wrong `app_type`\nafter auto-detection, or a missing `entry_file` for express, fastify, nest, nuxt and hono\napps.",
|
|
6758
|
+
"method": "PUT",
|
|
6759
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings",
|
|
6760
|
+
"inputSchema": {
|
|
6761
|
+
"type": "object",
|
|
6762
|
+
"properties": {
|
|
6763
|
+
"username": {
|
|
6764
|
+
"type": "string",
|
|
6765
|
+
"description": "username parameter"
|
|
6766
|
+
},
|
|
6767
|
+
"domain": {
|
|
6768
|
+
"type": "string",
|
|
6769
|
+
"description": "Domain name"
|
|
6770
|
+
},
|
|
6771
|
+
"node_version": {
|
|
6772
|
+
"type": "integer",
|
|
6773
|
+
"description": "Node.js major version",
|
|
6774
|
+
"enum": [
|
|
6775
|
+
18,
|
|
6776
|
+
20,
|
|
6777
|
+
22,
|
|
6778
|
+
24
|
|
6779
|
+
]
|
|
6780
|
+
},
|
|
6781
|
+
"app_type": {
|
|
6782
|
+
"type": "string",
|
|
6783
|
+
"description": "Node.js application framework. Set it explicitly when auto-detection picked the wrong one.",
|
|
6784
|
+
"enum": [
|
|
6785
|
+
"create-react-app",
|
|
6786
|
+
"gatsby",
|
|
6787
|
+
"vite",
|
|
6788
|
+
"angular",
|
|
6789
|
+
"react",
|
|
6790
|
+
"vue",
|
|
6791
|
+
"parcel",
|
|
6792
|
+
"next",
|
|
6793
|
+
"nuxt",
|
|
6794
|
+
"nest",
|
|
6795
|
+
"express",
|
|
6796
|
+
"fastify",
|
|
6797
|
+
"astro",
|
|
6798
|
+
"svelte",
|
|
6799
|
+
"svelte-kit",
|
|
6800
|
+
"hono",
|
|
6801
|
+
"react-router",
|
|
6802
|
+
"nitro",
|
|
6803
|
+
"other"
|
|
6804
|
+
]
|
|
6805
|
+
},
|
|
6806
|
+
"root_directory": {
|
|
6807
|
+
"type": "string",
|
|
6808
|
+
"description": "Application root directory (where package.json is located) relative to public_html.\nOmit it, or send \".\", for public_html itself."
|
|
6809
|
+
},
|
|
6810
|
+
"output_directory": {
|
|
6811
|
+
"type": "string",
|
|
6812
|
+
"description": "Build output directory relative to the root directory"
|
|
6813
|
+
},
|
|
6814
|
+
"build_script": {
|
|
6815
|
+
"type": "string",
|
|
6816
|
+
"description": "The package.json script that builds the application"
|
|
6817
|
+
},
|
|
6818
|
+
"entry_file": {
|
|
6819
|
+
"type": "string",
|
|
6820
|
+
"description": "The main entry point file for the application\n(required for express, fastify, nest, nuxt and hono app types)"
|
|
6821
|
+
},
|
|
6822
|
+
"package_manager": {
|
|
6823
|
+
"type": "string",
|
|
6824
|
+
"description": "Package manager used to install dependencies",
|
|
6825
|
+
"enum": [
|
|
6826
|
+
"npm",
|
|
6827
|
+
"yarn",
|
|
6828
|
+
"pnpm"
|
|
6829
|
+
]
|
|
6830
|
+
}
|
|
6831
|
+
},
|
|
6832
|
+
"required": [
|
|
6833
|
+
"username",
|
|
6834
|
+
"domain",
|
|
6835
|
+
"node_version"
|
|
6836
|
+
]
|
|
6837
|
+
},
|
|
6838
|
+
"security": [
|
|
6839
|
+
{
|
|
6840
|
+
"apiToken": []
|
|
6841
|
+
}
|
|
6842
|
+
],
|
|
6843
|
+
"group": "hosting"
|
|
6844
|
+
},
|
|
6713
6845
|
{
|
|
6714
6846
|
"name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
|
|
6715
6847
|
"title": "Get Node.js build settings from archive",
|
|
@@ -6844,6 +6976,86 @@ const tools: OpenApiTool[] = [
|
|
|
6844
6976
|
],
|
|
6845
6977
|
"group": "hosting"
|
|
6846
6978
|
},
|
|
6979
|
+
{
|
|
6980
|
+
"name": "hosting_analyseFailedNode_jsBuildV1",
|
|
6981
|
+
"title": "Analyse failed Node.js build",
|
|
6982
|
+
"annotations": {
|
|
6983
|
+
"title": "Analyse failed Node.js build",
|
|
6984
|
+
"readOnlyHint": true,
|
|
6985
|
+
"destructiveHint": false
|
|
6986
|
+
},
|
|
6987
|
+
"description": "Returns an AI analysis of why a build failed and how to fix it, based on the build logs,\nthe project file list and package.json. Only builds in the `failed` state can be analysed;\nany other state returns 422. When no analysis could be produced both `analysis` and\n`solution` are null, in which case read `Get NodeJS build logs` instead.\n\nEach call runs the analysis again, so call it once per failed build and keep the result.\nLimited to 5 calls per minute per API client (429 above that).",
|
|
6988
|
+
"method": "GET",
|
|
6989
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/analysis",
|
|
6990
|
+
"inputSchema": {
|
|
6991
|
+
"type": "object",
|
|
6992
|
+
"properties": {
|
|
6993
|
+
"username": {
|
|
6994
|
+
"type": "string",
|
|
6995
|
+
"description": "username parameter"
|
|
6996
|
+
},
|
|
6997
|
+
"domain": {
|
|
6998
|
+
"type": "string",
|
|
6999
|
+
"description": "Domain name"
|
|
7000
|
+
},
|
|
7001
|
+
"uuid": {
|
|
7002
|
+
"type": "string",
|
|
7003
|
+
"description": "Build UUID"
|
|
7004
|
+
}
|
|
7005
|
+
},
|
|
7006
|
+
"required": [
|
|
7007
|
+
"username",
|
|
7008
|
+
"domain",
|
|
7009
|
+
"uuid"
|
|
7010
|
+
]
|
|
7011
|
+
},
|
|
7012
|
+
"security": [
|
|
7013
|
+
{
|
|
7014
|
+
"apiToken": []
|
|
7015
|
+
}
|
|
7016
|
+
],
|
|
7017
|
+
"group": "hosting"
|
|
7018
|
+
},
|
|
7019
|
+
{
|
|
7020
|
+
"name": "hosting_getNode_jsBuildDetailsV1",
|
|
7021
|
+
"title": "Get Node.js build details",
|
|
7022
|
+
"annotations": {
|
|
7023
|
+
"title": "Get Node.js build details",
|
|
7024
|
+
"readOnlyHint": true,
|
|
7025
|
+
"destructiveHint": false
|
|
7026
|
+
},
|
|
7027
|
+
"description": "Returns one build by UUID: its state (`pending`, `running`, `completed`, `failed`), the\noptions it ran with and timestamps. Poll this while a build is pending or running. When it\nis failed, read `Get NodeJS build logs` and `Analyse failed Node.js build` for the cause.\nReturns 404 when the UUID does not belong to a build of this website.",
|
|
7028
|
+
"method": "GET",
|
|
7029
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}",
|
|
7030
|
+
"inputSchema": {
|
|
7031
|
+
"type": "object",
|
|
7032
|
+
"properties": {
|
|
7033
|
+
"username": {
|
|
7034
|
+
"type": "string",
|
|
7035
|
+
"description": "username parameter"
|
|
7036
|
+
},
|
|
7037
|
+
"domain": {
|
|
7038
|
+
"type": "string",
|
|
7039
|
+
"description": "Domain name"
|
|
7040
|
+
},
|
|
7041
|
+
"uuid": {
|
|
7042
|
+
"type": "string",
|
|
7043
|
+
"description": "Build UUID"
|
|
7044
|
+
}
|
|
7045
|
+
},
|
|
7046
|
+
"required": [
|
|
7047
|
+
"username",
|
|
7048
|
+
"domain",
|
|
7049
|
+
"uuid"
|
|
7050
|
+
]
|
|
7051
|
+
},
|
|
7052
|
+
"security": [
|
|
7053
|
+
{
|
|
7054
|
+
"apiToken": []
|
|
7055
|
+
}
|
|
7056
|
+
],
|
|
7057
|
+
"group": "hosting"
|
|
7058
|
+
},
|
|
6847
7059
|
{
|
|
6848
7060
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
6849
7061
|
"title": "Get NodeJS build logs",
|
|
@@ -6888,6 +7100,111 @@ const tools: OpenApiTool[] = [
|
|
|
6888
7100
|
],
|
|
6889
7101
|
"group": "hosting"
|
|
6890
7102
|
},
|
|
7103
|
+
{
|
|
7104
|
+
"name": "hosting_getNode_jsRuntimeLogsV1",
|
|
7105
|
+
"title": "Get Node.js runtime logs",
|
|
7106
|
+
"annotations": {
|
|
7107
|
+
"title": "Get Node.js runtime logs",
|
|
7108
|
+
"readOnlyHint": true,
|
|
7109
|
+
"destructiveHint": false
|
|
7110
|
+
},
|
|
7111
|
+
"description": "Returns the Node.js application's runtime console log entries, oldest first, each with\ntimestamp, level and message. On the first call send `period` (`1h`, `1d`, `1w` or `1m`)\nand optionally `levels` and `limit` (1-5000, default 1000); when more entries match than\n`limit`, the newest are kept.\n\nTo poll for new entries send `total_lines + 1` from the previous response as `from_line`\nand omit `period`; `period` and `from_line` cannot be combined. Lines that are not JSON\nwith a timestamp, level and message are skipped, so `logs` may hold fewer than `limit`\nentries while `total_lines` counts every raw line. Entries with a timestamp before\n`last_deployed_at` belong to the previous deployment. Returns an empty `logs` list when\nthe application has not written a log file yet.",
|
|
7112
|
+
"method": "GET",
|
|
7113
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs",
|
|
7114
|
+
"inputSchema": {
|
|
7115
|
+
"type": "object",
|
|
7116
|
+
"properties": {
|
|
7117
|
+
"username": {
|
|
7118
|
+
"type": "string",
|
|
7119
|
+
"description": "username parameter"
|
|
7120
|
+
},
|
|
7121
|
+
"domain": {
|
|
7122
|
+
"type": "string",
|
|
7123
|
+
"description": "Domain name"
|
|
7124
|
+
},
|
|
7125
|
+
"period": {
|
|
7126
|
+
"type": "string",
|
|
7127
|
+
"description": "Time window for the first fetch. Required when `from_line` is not sent.",
|
|
7128
|
+
"enum": [
|
|
7129
|
+
"1h",
|
|
7130
|
+
"1d",
|
|
7131
|
+
"1w",
|
|
7132
|
+
"1m"
|
|
7133
|
+
]
|
|
7134
|
+
},
|
|
7135
|
+
"from_line": {
|
|
7136
|
+
"type": "integer",
|
|
7137
|
+
"description": "1-based line of the log file to start from. For polling send `total_lines + 1` from the\nprevious response. Cannot be combined with `period`."
|
|
7138
|
+
},
|
|
7139
|
+
"limit": {
|
|
7140
|
+
"type": "integer",
|
|
7141
|
+
"description": "Maximum number of log entries to return. When more entries match, the newest are kept."
|
|
7142
|
+
},
|
|
7143
|
+
"levels": {
|
|
7144
|
+
"type": "array",
|
|
7145
|
+
"description": "Return only entries with these log levels, sent as a comma-separated list, e.g. ERROR,WARN.\nMatching runs on the raw log line, so entries written with numeric levels (for example by\npino) are excluded while this filter is set.",
|
|
7146
|
+
"items": {
|
|
7147
|
+
"type": "string",
|
|
7148
|
+
"description": "levels parameter",
|
|
7149
|
+
"enum": [
|
|
7150
|
+
"LOG",
|
|
7151
|
+
"ERROR",
|
|
7152
|
+
"WARN",
|
|
7153
|
+
"INFO",
|
|
7154
|
+
"DEBUG",
|
|
7155
|
+
"TRACE"
|
|
7156
|
+
]
|
|
7157
|
+
}
|
|
7158
|
+
}
|
|
7159
|
+
},
|
|
7160
|
+
"required": [
|
|
7161
|
+
"username",
|
|
7162
|
+
"domain"
|
|
7163
|
+
]
|
|
7164
|
+
},
|
|
7165
|
+
"security": [
|
|
7166
|
+
{
|
|
7167
|
+
"apiToken": []
|
|
7168
|
+
}
|
|
7169
|
+
],
|
|
7170
|
+
"group": "hosting"
|
|
7171
|
+
},
|
|
7172
|
+
{
|
|
7173
|
+
"name": "hosting_clearNode_jsRuntimeLogsV1",
|
|
7174
|
+
"title": "Clear Node.js runtime logs",
|
|
7175
|
+
"annotations": {
|
|
7176
|
+
"title": "Clear Node.js runtime logs",
|
|
7177
|
+
"readOnlyHint": false,
|
|
7178
|
+
"destructiveHint": true,
|
|
7179
|
+
"idempotentHint": true
|
|
7180
|
+
},
|
|
7181
|
+
"description": "Empties the Node.js application's runtime log file. This cannot be undone, so confirm with\nthe user before calling it. Returns success even when no log file exists yet.\n\nUse it before reproducing a problem so the next `Get Node.js runtime logs` call returns\nonly fresh entries; start that call with `period` again instead of reusing a `from_line`\nfrom before the clear.",
|
|
7182
|
+
"method": "DELETE",
|
|
7183
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs",
|
|
7184
|
+
"inputSchema": {
|
|
7185
|
+
"type": "object",
|
|
7186
|
+
"properties": {
|
|
7187
|
+
"username": {
|
|
7188
|
+
"type": "string",
|
|
7189
|
+
"description": "username parameter"
|
|
7190
|
+
},
|
|
7191
|
+
"domain": {
|
|
7192
|
+
"type": "string",
|
|
7193
|
+
"description": "Domain name"
|
|
7194
|
+
}
|
|
7195
|
+
},
|
|
7196
|
+
"required": [
|
|
7197
|
+
"username",
|
|
7198
|
+
"domain"
|
|
7199
|
+
]
|
|
7200
|
+
},
|
|
7201
|
+
"security": [
|
|
7202
|
+
{
|
|
7203
|
+
"apiToken": []
|
|
7204
|
+
}
|
|
7205
|
+
],
|
|
7206
|
+
"group": "hosting"
|
|
7207
|
+
},
|
|
6891
7208
|
{
|
|
6892
7209
|
"name": "hosting_restartNode_jsApplicationV1",
|
|
6893
7210
|
"title": "Restart Node.js application",
|
|
@@ -1572,6 +1572,138 @@ export default [
|
|
|
1572
1572
|
],
|
|
1573
1573
|
"group": "hosting"
|
|
1574
1574
|
},
|
|
1575
|
+
{
|
|
1576
|
+
"name": "hosting_getNode_jsBuildSettingsV1",
|
|
1577
|
+
"title": "Get Node.js build settings",
|
|
1578
|
+
"annotations": {
|
|
1579
|
+
"title": "Get Node.js build settings",
|
|
1580
|
+
"readOnlyHint": true,
|
|
1581
|
+
"destructiveHint": false
|
|
1582
|
+
},
|
|
1583
|
+
"description": "Returns the build settings stored for the website: framework (`app_type`), Node.js version,\nroot and output directory, build script, entry file and package manager. Stored settings\ndrive Git auto-deployment builds. A build started through the API uses the values sent in\nthat request and saves them here only when no settings exist yet.\n\nReturns 404 until the first build or the first settings update stores them. Use this after\na failed build to check whether the framework or the entry file were detected wrong, then\nfix them with the `Update Node.js build settings` endpoint.",
|
|
1584
|
+
"method": "GET",
|
|
1585
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings",
|
|
1586
|
+
"inputSchema": {
|
|
1587
|
+
"type": "object",
|
|
1588
|
+
"properties": {
|
|
1589
|
+
"username": {
|
|
1590
|
+
"type": "string",
|
|
1591
|
+
"description": "username parameter"
|
|
1592
|
+
},
|
|
1593
|
+
"domain": {
|
|
1594
|
+
"type": "string",
|
|
1595
|
+
"description": "Domain name"
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
"required": [
|
|
1599
|
+
"username",
|
|
1600
|
+
"domain"
|
|
1601
|
+
]
|
|
1602
|
+
},
|
|
1603
|
+
"security": [
|
|
1604
|
+
{
|
|
1605
|
+
"apiToken": []
|
|
1606
|
+
}
|
|
1607
|
+
],
|
|
1608
|
+
"group": "hosting"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"name": "hosting_updateNode_jsBuildSettingsV1",
|
|
1612
|
+
"title": "Update Node.js build settings",
|
|
1613
|
+
"annotations": {
|
|
1614
|
+
"title": "Update Node.js build settings",
|
|
1615
|
+
"readOnlyHint": false,
|
|
1616
|
+
"destructiveHint": true,
|
|
1617
|
+
"idempotentHint": true
|
|
1618
|
+
},
|
|
1619
|
+
"description": "Replaces the build settings stored for the website. Send the full set: `node_version` is\nrequired and every nullable field you omit is stored as null. Creates the settings when\nnone exist yet.\n\nThis does not start a build. Stored settings drive Git auto-deployment builds; a build\nstarted through the API uses the values sent in that request, so to rebuild with corrected\nsettings call `Start Node.js build` with the same values. Typical fixes: a wrong `app_type`\nafter auto-detection, or a missing `entry_file` for express, fastify, nest, nuxt and hono\napps.",
|
|
1620
|
+
"method": "PUT",
|
|
1621
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings",
|
|
1622
|
+
"inputSchema": {
|
|
1623
|
+
"type": "object",
|
|
1624
|
+
"properties": {
|
|
1625
|
+
"username": {
|
|
1626
|
+
"type": "string",
|
|
1627
|
+
"description": "username parameter"
|
|
1628
|
+
},
|
|
1629
|
+
"domain": {
|
|
1630
|
+
"type": "string",
|
|
1631
|
+
"description": "Domain name"
|
|
1632
|
+
},
|
|
1633
|
+
"node_version": {
|
|
1634
|
+
"type": "integer",
|
|
1635
|
+
"description": "Node.js major version",
|
|
1636
|
+
"enum": [
|
|
1637
|
+
18,
|
|
1638
|
+
20,
|
|
1639
|
+
22,
|
|
1640
|
+
24
|
|
1641
|
+
]
|
|
1642
|
+
},
|
|
1643
|
+
"app_type": {
|
|
1644
|
+
"type": "string",
|
|
1645
|
+
"description": "Node.js application framework. Set it explicitly when auto-detection picked the wrong one.",
|
|
1646
|
+
"enum": [
|
|
1647
|
+
"create-react-app",
|
|
1648
|
+
"gatsby",
|
|
1649
|
+
"vite",
|
|
1650
|
+
"angular",
|
|
1651
|
+
"react",
|
|
1652
|
+
"vue",
|
|
1653
|
+
"parcel",
|
|
1654
|
+
"next",
|
|
1655
|
+
"nuxt",
|
|
1656
|
+
"nest",
|
|
1657
|
+
"express",
|
|
1658
|
+
"fastify",
|
|
1659
|
+
"astro",
|
|
1660
|
+
"svelte",
|
|
1661
|
+
"svelte-kit",
|
|
1662
|
+
"hono",
|
|
1663
|
+
"react-router",
|
|
1664
|
+
"nitro",
|
|
1665
|
+
"other"
|
|
1666
|
+
]
|
|
1667
|
+
},
|
|
1668
|
+
"root_directory": {
|
|
1669
|
+
"type": "string",
|
|
1670
|
+
"description": "Application root directory (where package.json is located) relative to public_html.\nOmit it, or send \".\", for public_html itself."
|
|
1671
|
+
},
|
|
1672
|
+
"output_directory": {
|
|
1673
|
+
"type": "string",
|
|
1674
|
+
"description": "Build output directory relative to the root directory"
|
|
1675
|
+
},
|
|
1676
|
+
"build_script": {
|
|
1677
|
+
"type": "string",
|
|
1678
|
+
"description": "The package.json script that builds the application"
|
|
1679
|
+
},
|
|
1680
|
+
"entry_file": {
|
|
1681
|
+
"type": "string",
|
|
1682
|
+
"description": "The main entry point file for the application\n(required for express, fastify, nest, nuxt and hono app types)"
|
|
1683
|
+
},
|
|
1684
|
+
"package_manager": {
|
|
1685
|
+
"type": "string",
|
|
1686
|
+
"description": "Package manager used to install dependencies",
|
|
1687
|
+
"enum": [
|
|
1688
|
+
"npm",
|
|
1689
|
+
"yarn",
|
|
1690
|
+
"pnpm"
|
|
1691
|
+
]
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
"required": [
|
|
1695
|
+
"username",
|
|
1696
|
+
"domain",
|
|
1697
|
+
"node_version"
|
|
1698
|
+
]
|
|
1699
|
+
},
|
|
1700
|
+
"security": [
|
|
1701
|
+
{
|
|
1702
|
+
"apiToken": []
|
|
1703
|
+
}
|
|
1704
|
+
],
|
|
1705
|
+
"group": "hosting"
|
|
1706
|
+
},
|
|
1575
1707
|
{
|
|
1576
1708
|
"name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
|
|
1577
1709
|
"title": "Get Node.js build settings from archive",
|
|
@@ -1706,6 +1838,86 @@ export default [
|
|
|
1706
1838
|
],
|
|
1707
1839
|
"group": "hosting"
|
|
1708
1840
|
},
|
|
1841
|
+
{
|
|
1842
|
+
"name": "hosting_analyseFailedNode_jsBuildV1",
|
|
1843
|
+
"title": "Analyse failed Node.js build",
|
|
1844
|
+
"annotations": {
|
|
1845
|
+
"title": "Analyse failed Node.js build",
|
|
1846
|
+
"readOnlyHint": true,
|
|
1847
|
+
"destructiveHint": false
|
|
1848
|
+
},
|
|
1849
|
+
"description": "Returns an AI analysis of why a build failed and how to fix it, based on the build logs,\nthe project file list and package.json. Only builds in the `failed` state can be analysed;\nany other state returns 422. When no analysis could be produced both `analysis` and\n`solution` are null, in which case read `Get NodeJS build logs` instead.\n\nEach call runs the analysis again, so call it once per failed build and keep the result.\nLimited to 5 calls per minute per API client (429 above that).",
|
|
1850
|
+
"method": "GET",
|
|
1851
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/analysis",
|
|
1852
|
+
"inputSchema": {
|
|
1853
|
+
"type": "object",
|
|
1854
|
+
"properties": {
|
|
1855
|
+
"username": {
|
|
1856
|
+
"type": "string",
|
|
1857
|
+
"description": "username parameter"
|
|
1858
|
+
},
|
|
1859
|
+
"domain": {
|
|
1860
|
+
"type": "string",
|
|
1861
|
+
"description": "Domain name"
|
|
1862
|
+
},
|
|
1863
|
+
"uuid": {
|
|
1864
|
+
"type": "string",
|
|
1865
|
+
"description": "Build UUID"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"required": [
|
|
1869
|
+
"username",
|
|
1870
|
+
"domain",
|
|
1871
|
+
"uuid"
|
|
1872
|
+
]
|
|
1873
|
+
},
|
|
1874
|
+
"security": [
|
|
1875
|
+
{
|
|
1876
|
+
"apiToken": []
|
|
1877
|
+
}
|
|
1878
|
+
],
|
|
1879
|
+
"group": "hosting"
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
"name": "hosting_getNode_jsBuildDetailsV1",
|
|
1883
|
+
"title": "Get Node.js build details",
|
|
1884
|
+
"annotations": {
|
|
1885
|
+
"title": "Get Node.js build details",
|
|
1886
|
+
"readOnlyHint": true,
|
|
1887
|
+
"destructiveHint": false
|
|
1888
|
+
},
|
|
1889
|
+
"description": "Returns one build by UUID: its state (`pending`, `running`, `completed`, `failed`), the\noptions it ran with and timestamps. Poll this while a build is pending or running. When it\nis failed, read `Get NodeJS build logs` and `Analyse failed Node.js build` for the cause.\nReturns 404 when the UUID does not belong to a build of this website.",
|
|
1890
|
+
"method": "GET",
|
|
1891
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}",
|
|
1892
|
+
"inputSchema": {
|
|
1893
|
+
"type": "object",
|
|
1894
|
+
"properties": {
|
|
1895
|
+
"username": {
|
|
1896
|
+
"type": "string",
|
|
1897
|
+
"description": "username parameter"
|
|
1898
|
+
},
|
|
1899
|
+
"domain": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "Domain name"
|
|
1902
|
+
},
|
|
1903
|
+
"uuid": {
|
|
1904
|
+
"type": "string",
|
|
1905
|
+
"description": "Build UUID"
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"required": [
|
|
1909
|
+
"username",
|
|
1910
|
+
"domain",
|
|
1911
|
+
"uuid"
|
|
1912
|
+
]
|
|
1913
|
+
},
|
|
1914
|
+
"security": [
|
|
1915
|
+
{
|
|
1916
|
+
"apiToken": []
|
|
1917
|
+
}
|
|
1918
|
+
],
|
|
1919
|
+
"group": "hosting"
|
|
1920
|
+
},
|
|
1709
1921
|
{
|
|
1710
1922
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
1711
1923
|
"title": "Get NodeJS build logs",
|
|
@@ -1750,6 +1962,111 @@ export default [
|
|
|
1750
1962
|
],
|
|
1751
1963
|
"group": "hosting"
|
|
1752
1964
|
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "hosting_getNode_jsRuntimeLogsV1",
|
|
1967
|
+
"title": "Get Node.js runtime logs",
|
|
1968
|
+
"annotations": {
|
|
1969
|
+
"title": "Get Node.js runtime logs",
|
|
1970
|
+
"readOnlyHint": true,
|
|
1971
|
+
"destructiveHint": false
|
|
1972
|
+
},
|
|
1973
|
+
"description": "Returns the Node.js application's runtime console log entries, oldest first, each with\ntimestamp, level and message. On the first call send `period` (`1h`, `1d`, `1w` or `1m`)\nand optionally `levels` and `limit` (1-5000, default 1000); when more entries match than\n`limit`, the newest are kept.\n\nTo poll for new entries send `total_lines + 1` from the previous response as `from_line`\nand omit `period`; `period` and `from_line` cannot be combined. Lines that are not JSON\nwith a timestamp, level and message are skipped, so `logs` may hold fewer than `limit`\nentries while `total_lines` counts every raw line. Entries with a timestamp before\n`last_deployed_at` belong to the previous deployment. Returns an empty `logs` list when\nthe application has not written a log file yet.",
|
|
1974
|
+
"method": "GET",
|
|
1975
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs",
|
|
1976
|
+
"inputSchema": {
|
|
1977
|
+
"type": "object",
|
|
1978
|
+
"properties": {
|
|
1979
|
+
"username": {
|
|
1980
|
+
"type": "string",
|
|
1981
|
+
"description": "username parameter"
|
|
1982
|
+
},
|
|
1983
|
+
"domain": {
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"description": "Domain name"
|
|
1986
|
+
},
|
|
1987
|
+
"period": {
|
|
1988
|
+
"type": "string",
|
|
1989
|
+
"description": "Time window for the first fetch. Required when `from_line` is not sent.",
|
|
1990
|
+
"enum": [
|
|
1991
|
+
"1h",
|
|
1992
|
+
"1d",
|
|
1993
|
+
"1w",
|
|
1994
|
+
"1m"
|
|
1995
|
+
]
|
|
1996
|
+
},
|
|
1997
|
+
"from_line": {
|
|
1998
|
+
"type": "integer",
|
|
1999
|
+
"description": "1-based line of the log file to start from. For polling send `total_lines + 1` from the\nprevious response. Cannot be combined with `period`."
|
|
2000
|
+
},
|
|
2001
|
+
"limit": {
|
|
2002
|
+
"type": "integer",
|
|
2003
|
+
"description": "Maximum number of log entries to return. When more entries match, the newest are kept."
|
|
2004
|
+
},
|
|
2005
|
+
"levels": {
|
|
2006
|
+
"type": "array",
|
|
2007
|
+
"description": "Return only entries with these log levels, sent as a comma-separated list, e.g. ERROR,WARN.\nMatching runs on the raw log line, so entries written with numeric levels (for example by\npino) are excluded while this filter is set.",
|
|
2008
|
+
"items": {
|
|
2009
|
+
"type": "string",
|
|
2010
|
+
"description": "levels parameter",
|
|
2011
|
+
"enum": [
|
|
2012
|
+
"LOG",
|
|
2013
|
+
"ERROR",
|
|
2014
|
+
"WARN",
|
|
2015
|
+
"INFO",
|
|
2016
|
+
"DEBUG",
|
|
2017
|
+
"TRACE"
|
|
2018
|
+
]
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
"required": [
|
|
2023
|
+
"username",
|
|
2024
|
+
"domain"
|
|
2025
|
+
]
|
|
2026
|
+
},
|
|
2027
|
+
"security": [
|
|
2028
|
+
{
|
|
2029
|
+
"apiToken": []
|
|
2030
|
+
}
|
|
2031
|
+
],
|
|
2032
|
+
"group": "hosting"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"name": "hosting_clearNode_jsRuntimeLogsV1",
|
|
2036
|
+
"title": "Clear Node.js runtime logs",
|
|
2037
|
+
"annotations": {
|
|
2038
|
+
"title": "Clear Node.js runtime logs",
|
|
2039
|
+
"readOnlyHint": false,
|
|
2040
|
+
"destructiveHint": true,
|
|
2041
|
+
"idempotentHint": true
|
|
2042
|
+
},
|
|
2043
|
+
"description": "Empties the Node.js application's runtime log file. This cannot be undone, so confirm with\nthe user before calling it. Returns success even when no log file exists yet.\n\nUse it before reproducing a problem so the next `Get Node.js runtime logs` call returns\nonly fresh entries; start that call with `period` again instead of reusing a `from_line`\nfrom before the clear.",
|
|
2044
|
+
"method": "DELETE",
|
|
2045
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs",
|
|
2046
|
+
"inputSchema": {
|
|
2047
|
+
"type": "object",
|
|
2048
|
+
"properties": {
|
|
2049
|
+
"username": {
|
|
2050
|
+
"type": "string",
|
|
2051
|
+
"description": "username parameter"
|
|
2052
|
+
},
|
|
2053
|
+
"domain": {
|
|
2054
|
+
"type": "string",
|
|
2055
|
+
"description": "Domain name"
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
"required": [
|
|
2059
|
+
"username",
|
|
2060
|
+
"domain"
|
|
2061
|
+
]
|
|
2062
|
+
},
|
|
2063
|
+
"security": [
|
|
2064
|
+
{
|
|
2065
|
+
"apiToken": []
|
|
2066
|
+
}
|
|
2067
|
+
],
|
|
2068
|
+
"group": "hosting"
|
|
2069
|
+
},
|
|
1753
2070
|
{
|
|
1754
2071
|
"name": "hosting_restartNode_jsApplicationV1",
|
|
1755
2072
|
"title": "Restart Node.js application",
|