hostinger-api-mcp 1.0.0 → 1.1.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/README.md +204 -3
- 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 +565 -0
- package/src/core/tools/all.ts +565 -0
- package/src/core/tools/ecommerce.js +82 -0
- package/src/core/tools/ecommerce.ts +82 -0
- package/src/core/tools/wordpress.js +483 -0
- package/src/core/tools/wordpress.ts +483 -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/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/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 +402 -0
package/src/core/tools/all.js
CHANGED
|
@@ -1287,6 +1287,23 @@ export default [
|
|
|
1287
1287
|
],
|
|
1288
1288
|
"group": "domains"
|
|
1289
1289
|
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "ecommerce_getCustomStorefrontSetupInstructionsV1",
|
|
1292
|
+
"description": "Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales\nchannel to your store and keeping your catalog, orders, shipping and payments in sync through\nthe Ecommerce API.",
|
|
1293
|
+
"method": "GET",
|
|
1294
|
+
"path": "/api/ecommerce/v1/miscellaneous/custom-storefront-instructions",
|
|
1295
|
+
"inputSchema": {
|
|
1296
|
+
"type": "object",
|
|
1297
|
+
"properties": {},
|
|
1298
|
+
"required": []
|
|
1299
|
+
},
|
|
1300
|
+
"security": [
|
|
1301
|
+
{
|
|
1302
|
+
"apiToken": []
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
"group": "ecommerce"
|
|
1306
|
+
},
|
|
1290
1307
|
{
|
|
1291
1308
|
"name": "ecommerce_enableManualPaymentMethodV1",
|
|
1292
1309
|
"description": "Enable a manual payment method so the store can accept orders without an online payment provider.",
|
|
@@ -1403,6 +1420,71 @@ export default [
|
|
|
1403
1420
|
],
|
|
1404
1421
|
"group": "ecommerce"
|
|
1405
1422
|
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "ecommerce_listSalesChannelsV1",
|
|
1425
|
+
"description": "List a store's active sales channels with their full metadata.",
|
|
1426
|
+
"method": "GET",
|
|
1427
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
1428
|
+
"inputSchema": {
|
|
1429
|
+
"type": "object",
|
|
1430
|
+
"properties": {
|
|
1431
|
+
"store_id": {
|
|
1432
|
+
"type": "string",
|
|
1433
|
+
"description": "The ID of the store to list sales channels for."
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
"required": [
|
|
1437
|
+
"store_id"
|
|
1438
|
+
]
|
|
1439
|
+
},
|
|
1440
|
+
"security": [
|
|
1441
|
+
{
|
|
1442
|
+
"apiToken": []
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"group": "ecommerce"
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "ecommerce_createACustomSalesChannelV1",
|
|
1449
|
+
"description": "Create a custom sales channel for a store. Build your own frontend and keep your catalog,\norders, shipping and payments in sync through the Ecommerce API.",
|
|
1450
|
+
"method": "POST",
|
|
1451
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
1452
|
+
"inputSchema": {
|
|
1453
|
+
"type": "object",
|
|
1454
|
+
"properties": {
|
|
1455
|
+
"store_id": {
|
|
1456
|
+
"type": "string",
|
|
1457
|
+
"description": "The ID of the store to create the sales channel for."
|
|
1458
|
+
},
|
|
1459
|
+
"type": {
|
|
1460
|
+
"type": "string",
|
|
1461
|
+
"description": "Sales channel type. Only \"custom\" channels can be created via the API.",
|
|
1462
|
+
"enum": [
|
|
1463
|
+
"custom"
|
|
1464
|
+
]
|
|
1465
|
+
},
|
|
1466
|
+
"name": {
|
|
1467
|
+
"type": "string",
|
|
1468
|
+
"description": "Merchant-facing custom name shown in the sales channels list."
|
|
1469
|
+
},
|
|
1470
|
+
"url": {
|
|
1471
|
+
"type": "string",
|
|
1472
|
+
"description": "Optional public address where the custom sales channel lives."
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
"required": [
|
|
1476
|
+
"store_id",
|
|
1477
|
+
"type",
|
|
1478
|
+
"name"
|
|
1479
|
+
]
|
|
1480
|
+
},
|
|
1481
|
+
"security": [
|
|
1482
|
+
{
|
|
1483
|
+
"apiToken": []
|
|
1484
|
+
}
|
|
1485
|
+
],
|
|
1486
|
+
"group": "ecommerce"
|
|
1487
|
+
},
|
|
1406
1488
|
{
|
|
1407
1489
|
"name": "ecommerce_setStoreShippingV1",
|
|
1408
1490
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -4946,6 +5028,74 @@ export default [
|
|
|
4946
5028
|
],
|
|
4947
5029
|
"group": "wordpress"
|
|
4948
5030
|
},
|
|
5031
|
+
{
|
|
5032
|
+
"name": "hosting_activateWordPressPluginV1",
|
|
5033
|
+
"description": "Activate an installed plugin on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the activation\njob has been queued.",
|
|
5034
|
+
"method": "POST",
|
|
5035
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate",
|
|
5036
|
+
"inputSchema": {
|
|
5037
|
+
"type": "object",
|
|
5038
|
+
"properties": {
|
|
5039
|
+
"username": {
|
|
5040
|
+
"type": "string",
|
|
5041
|
+
"description": "username parameter"
|
|
5042
|
+
},
|
|
5043
|
+
"software": {
|
|
5044
|
+
"type": "string",
|
|
5045
|
+
"description": "WordPress installation (software) identifier"
|
|
5046
|
+
},
|
|
5047
|
+
"plugin": {
|
|
5048
|
+
"type": "string",
|
|
5049
|
+
"description": "Slug of the installed plugin to activate."
|
|
5050
|
+
}
|
|
5051
|
+
},
|
|
5052
|
+
"required": [
|
|
5053
|
+
"username",
|
|
5054
|
+
"software",
|
|
5055
|
+
"plugin"
|
|
5056
|
+
]
|
|
5057
|
+
},
|
|
5058
|
+
"security": [
|
|
5059
|
+
{
|
|
5060
|
+
"apiToken": []
|
|
5061
|
+
}
|
|
5062
|
+
],
|
|
5063
|
+
"group": "wordpress"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
"name": "hosting_deactivateWordPressPluginV1",
|
|
5067
|
+
"description": "Deactivate an installed plugin on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the\ndeactivation job has been queued.",
|
|
5068
|
+
"method": "POST",
|
|
5069
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate",
|
|
5070
|
+
"inputSchema": {
|
|
5071
|
+
"type": "object",
|
|
5072
|
+
"properties": {
|
|
5073
|
+
"username": {
|
|
5074
|
+
"type": "string",
|
|
5075
|
+
"description": "username parameter"
|
|
5076
|
+
},
|
|
5077
|
+
"software": {
|
|
5078
|
+
"type": "string",
|
|
5079
|
+
"description": "WordPress installation (software) identifier"
|
|
5080
|
+
},
|
|
5081
|
+
"plugin": {
|
|
5082
|
+
"type": "string",
|
|
5083
|
+
"description": "Slug of the installed plugin to deactivate."
|
|
5084
|
+
}
|
|
5085
|
+
},
|
|
5086
|
+
"required": [
|
|
5087
|
+
"username",
|
|
5088
|
+
"software",
|
|
5089
|
+
"plugin"
|
|
5090
|
+
]
|
|
5091
|
+
},
|
|
5092
|
+
"security": [
|
|
5093
|
+
{
|
|
5094
|
+
"apiToken": []
|
|
5095
|
+
}
|
|
5096
|
+
],
|
|
5097
|
+
"group": "wordpress"
|
|
5098
|
+
},
|
|
4949
5099
|
{
|
|
4950
5100
|
"name": "hosting_installWordPressPluginsV1",
|
|
4951
5101
|
"description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.",
|
|
@@ -4984,6 +5134,290 @@ export default [
|
|
|
4984
5134
|
],
|
|
4985
5135
|
"group": "wordpress"
|
|
4986
5136
|
},
|
|
5137
|
+
{
|
|
5138
|
+
"name": "hosting_listAvailableWordPressPluginsV1",
|
|
5139
|
+
"description": "List plugins recommended for installation on a WordPress installation that are\nnot yet installed.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
|
|
5140
|
+
"method": "GET",
|
|
5141
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available",
|
|
5142
|
+
"inputSchema": {
|
|
5143
|
+
"type": "object",
|
|
5144
|
+
"properties": {
|
|
5145
|
+
"username": {
|
|
5146
|
+
"type": "string",
|
|
5147
|
+
"description": "username parameter"
|
|
5148
|
+
},
|
|
5149
|
+
"software": {
|
|
5150
|
+
"type": "string",
|
|
5151
|
+
"description": "WordPress installation (software) identifier"
|
|
5152
|
+
}
|
|
5153
|
+
},
|
|
5154
|
+
"required": [
|
|
5155
|
+
"username",
|
|
5156
|
+
"software"
|
|
5157
|
+
]
|
|
5158
|
+
},
|
|
5159
|
+
"security": [
|
|
5160
|
+
{
|
|
5161
|
+
"apiToken": []
|
|
5162
|
+
}
|
|
5163
|
+
],
|
|
5164
|
+
"group": "wordpress"
|
|
5165
|
+
},
|
|
5166
|
+
{
|
|
5167
|
+
"name": "hosting_listInstalledWordPressPluginsV1",
|
|
5168
|
+
"description": "List plugins installed on a WordPress installation, including their status,\navailable updates and known vulnerabilities.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
|
|
5169
|
+
"method": "GET",
|
|
5170
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins",
|
|
5171
|
+
"inputSchema": {
|
|
5172
|
+
"type": "object",
|
|
5173
|
+
"properties": {
|
|
5174
|
+
"username": {
|
|
5175
|
+
"type": "string",
|
|
5176
|
+
"description": "username parameter"
|
|
5177
|
+
},
|
|
5178
|
+
"software": {
|
|
5179
|
+
"type": "string",
|
|
5180
|
+
"description": "WordPress installation (software) identifier"
|
|
5181
|
+
},
|
|
5182
|
+
"category": {
|
|
5183
|
+
"type": "string",
|
|
5184
|
+
"description": "Filter installed plugins by category.",
|
|
5185
|
+
"enum": [
|
|
5186
|
+
"cache"
|
|
5187
|
+
]
|
|
5188
|
+
}
|
|
5189
|
+
},
|
|
5190
|
+
"required": [
|
|
5191
|
+
"username",
|
|
5192
|
+
"software"
|
|
5193
|
+
]
|
|
5194
|
+
},
|
|
5195
|
+
"security": [
|
|
5196
|
+
{
|
|
5197
|
+
"apiToken": []
|
|
5198
|
+
}
|
|
5199
|
+
],
|
|
5200
|
+
"group": "wordpress"
|
|
5201
|
+
},
|
|
5202
|
+
{
|
|
5203
|
+
"name": "hosting_searchWordPressPluginsV1",
|
|
5204
|
+
"description": "Search the WordPress.org plugin directory for plugins available to install.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.",
|
|
5205
|
+
"method": "GET",
|
|
5206
|
+
"path": "/api/hosting/v1/wordpress/plugins",
|
|
5207
|
+
"inputSchema": {
|
|
5208
|
+
"type": "object",
|
|
5209
|
+
"properties": {
|
|
5210
|
+
"search": {
|
|
5211
|
+
"type": "string",
|
|
5212
|
+
"description": "Search term to match against plugin names. Minimum 3 characters."
|
|
5213
|
+
}
|
|
5214
|
+
},
|
|
5215
|
+
"required": [
|
|
5216
|
+
"search"
|
|
5217
|
+
]
|
|
5218
|
+
},
|
|
5219
|
+
"security": [
|
|
5220
|
+
{
|
|
5221
|
+
"apiToken": []
|
|
5222
|
+
}
|
|
5223
|
+
],
|
|
5224
|
+
"group": "wordpress"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"name": "hosting_listSuggestedWordPressPluginsV1",
|
|
5228
|
+
"description": "List curated plugin suggestions grouped by website type.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.",
|
|
5229
|
+
"method": "GET",
|
|
5230
|
+
"path": "/api/hosting/v1/wordpress/plugins/suggested",
|
|
5231
|
+
"inputSchema": {
|
|
5232
|
+
"type": "object",
|
|
5233
|
+
"properties": {
|
|
5234
|
+
"order_id": {
|
|
5235
|
+
"type": "integer",
|
|
5236
|
+
"description": "Optionally scope suggestions to a specific order."
|
|
5237
|
+
}
|
|
5238
|
+
},
|
|
5239
|
+
"required": []
|
|
5240
|
+
},
|
|
5241
|
+
"security": [
|
|
5242
|
+
{
|
|
5243
|
+
"apiToken": []
|
|
5244
|
+
}
|
|
5245
|
+
],
|
|
5246
|
+
"group": "wordpress"
|
|
5247
|
+
},
|
|
5248
|
+
{
|
|
5249
|
+
"name": "hosting_checkIfWooCommerceIsInstalledV1",
|
|
5250
|
+
"description": "Check whether WooCommerce is installed on any WordPress installation of a\ndomain. Optionally filter by domain to scope the check.",
|
|
5251
|
+
"method": "GET",
|
|
5252
|
+
"path": "/api/hosting/v1/wordpress/plugins/is-woocommerce-installed",
|
|
5253
|
+
"inputSchema": {
|
|
5254
|
+
"type": "object",
|
|
5255
|
+
"properties": {
|
|
5256
|
+
"domain": {
|
|
5257
|
+
"type": "string",
|
|
5258
|
+
"description": "Filter by domain name (exact match)"
|
|
5259
|
+
}
|
|
5260
|
+
},
|
|
5261
|
+
"required": []
|
|
5262
|
+
},
|
|
5263
|
+
"security": [
|
|
5264
|
+
{
|
|
5265
|
+
"apiToken": []
|
|
5266
|
+
}
|
|
5267
|
+
],
|
|
5268
|
+
"group": "wordpress"
|
|
5269
|
+
},
|
|
5270
|
+
{
|
|
5271
|
+
"name": "hosting_uninstallWordPressPluginsV1",
|
|
5272
|
+
"description": "Uninstall one or more plugins from a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the uninstall\njob has been queued.",
|
|
5273
|
+
"method": "POST",
|
|
5274
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall",
|
|
5275
|
+
"inputSchema": {
|
|
5276
|
+
"type": "object",
|
|
5277
|
+
"properties": {
|
|
5278
|
+
"username": {
|
|
5279
|
+
"type": "string",
|
|
5280
|
+
"description": "username parameter"
|
|
5281
|
+
},
|
|
5282
|
+
"software": {
|
|
5283
|
+
"type": "string",
|
|
5284
|
+
"description": "WordPress installation (software) identifier"
|
|
5285
|
+
},
|
|
5286
|
+
"plugins": {
|
|
5287
|
+
"type": "array",
|
|
5288
|
+
"description": "Slugs of the installed plugins to uninstall.",
|
|
5289
|
+
"items": {
|
|
5290
|
+
"type": "string",
|
|
5291
|
+
"description": "Plugin slug"
|
|
5292
|
+
}
|
|
5293
|
+
}
|
|
5294
|
+
},
|
|
5295
|
+
"required": [
|
|
5296
|
+
"username",
|
|
5297
|
+
"software",
|
|
5298
|
+
"plugins"
|
|
5299
|
+
]
|
|
5300
|
+
},
|
|
5301
|
+
"security": [
|
|
5302
|
+
{
|
|
5303
|
+
"apiToken": []
|
|
5304
|
+
}
|
|
5305
|
+
],
|
|
5306
|
+
"group": "wordpress"
|
|
5307
|
+
},
|
|
5308
|
+
{
|
|
5309
|
+
"name": "hosting_updateHostingerWordPressPluginV1",
|
|
5310
|
+
"description": "Update a Hostinger plugin to its latest version on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.",
|
|
5311
|
+
"method": "POST",
|
|
5312
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update",
|
|
5313
|
+
"inputSchema": {
|
|
5314
|
+
"type": "object",
|
|
5315
|
+
"properties": {
|
|
5316
|
+
"username": {
|
|
5317
|
+
"type": "string",
|
|
5318
|
+
"description": "username parameter"
|
|
5319
|
+
},
|
|
5320
|
+
"software": {
|
|
5321
|
+
"type": "string",
|
|
5322
|
+
"description": "WordPress installation (software) identifier"
|
|
5323
|
+
},
|
|
5324
|
+
"slug": {
|
|
5325
|
+
"type": "string",
|
|
5326
|
+
"description": "Slug of the Hostinger plugin to update to its latest version.",
|
|
5327
|
+
"enum": [
|
|
5328
|
+
"hostinger",
|
|
5329
|
+
"hostinger-ai-assistant",
|
|
5330
|
+
"hostinger-affiliate-plugin",
|
|
5331
|
+
"hostinger-easy-onboarding",
|
|
5332
|
+
"hostinger-reach"
|
|
5333
|
+
]
|
|
5334
|
+
}
|
|
5335
|
+
},
|
|
5336
|
+
"required": [
|
|
5337
|
+
"username",
|
|
5338
|
+
"software",
|
|
5339
|
+
"slug"
|
|
5340
|
+
]
|
|
5341
|
+
},
|
|
5342
|
+
"security": [
|
|
5343
|
+
{
|
|
5344
|
+
"apiToken": []
|
|
5345
|
+
}
|
|
5346
|
+
],
|
|
5347
|
+
"group": "wordpress"
|
|
5348
|
+
},
|
|
5349
|
+
{
|
|
5350
|
+
"name": "hosting_updateWordPressPluginsV1",
|
|
5351
|
+
"description": "Update one or more installed plugins to their latest version on a WordPress\ninstallation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.",
|
|
5352
|
+
"method": "POST",
|
|
5353
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update",
|
|
5354
|
+
"inputSchema": {
|
|
5355
|
+
"type": "object",
|
|
5356
|
+
"properties": {
|
|
5357
|
+
"username": {
|
|
5358
|
+
"type": "string",
|
|
5359
|
+
"description": "username parameter"
|
|
5360
|
+
},
|
|
5361
|
+
"software": {
|
|
5362
|
+
"type": "string",
|
|
5363
|
+
"description": "WordPress installation (software) identifier"
|
|
5364
|
+
},
|
|
5365
|
+
"plugins": {
|
|
5366
|
+
"type": "array",
|
|
5367
|
+
"description": "Slugs of the installed plugins to update to their latest version.",
|
|
5368
|
+
"items": {
|
|
5369
|
+
"type": "string",
|
|
5370
|
+
"description": "Plugin slug"
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
},
|
|
5374
|
+
"required": [
|
|
5375
|
+
"username",
|
|
5376
|
+
"software",
|
|
5377
|
+
"plugins"
|
|
5378
|
+
]
|
|
5379
|
+
},
|
|
5380
|
+
"security": [
|
|
5381
|
+
{
|
|
5382
|
+
"apiToken": []
|
|
5383
|
+
}
|
|
5384
|
+
],
|
|
5385
|
+
"group": "wordpress"
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"name": "hosting_activateWordPressThemeV1",
|
|
5389
|
+
"description": "Activate an installed theme on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the activation\njob has been queued.",
|
|
5390
|
+
"method": "POST",
|
|
5391
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate",
|
|
5392
|
+
"inputSchema": {
|
|
5393
|
+
"type": "object",
|
|
5394
|
+
"properties": {
|
|
5395
|
+
"username": {
|
|
5396
|
+
"type": "string",
|
|
5397
|
+
"description": "username parameter"
|
|
5398
|
+
},
|
|
5399
|
+
"software": {
|
|
5400
|
+
"type": "string",
|
|
5401
|
+
"description": "WordPress installation (software) identifier"
|
|
5402
|
+
},
|
|
5403
|
+
"theme": {
|
|
5404
|
+
"type": "string",
|
|
5405
|
+
"description": "Slug of the installed theme to activate."
|
|
5406
|
+
}
|
|
5407
|
+
},
|
|
5408
|
+
"required": [
|
|
5409
|
+
"username",
|
|
5410
|
+
"software",
|
|
5411
|
+
"theme"
|
|
5412
|
+
]
|
|
5413
|
+
},
|
|
5414
|
+
"security": [
|
|
5415
|
+
{
|
|
5416
|
+
"apiToken": []
|
|
5417
|
+
}
|
|
5418
|
+
],
|
|
5419
|
+
"group": "wordpress"
|
|
5420
|
+
},
|
|
4987
5421
|
{
|
|
4988
5422
|
"name": "hosting_installWordPressThemeV1",
|
|
4989
5423
|
"description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.",
|
|
@@ -5037,5 +5471,136 @@ export default [
|
|
|
5037
5471
|
}
|
|
5038
5472
|
],
|
|
5039
5473
|
"group": "wordpress"
|
|
5474
|
+
},
|
|
5475
|
+
{
|
|
5476
|
+
"name": "hosting_listInstalledWordPressThemesV1",
|
|
5477
|
+
"description": "List themes installed on a WordPress installation, including their status,\navailable updates and known vulnerabilities.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).",
|
|
5478
|
+
"method": "GET",
|
|
5479
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes",
|
|
5480
|
+
"inputSchema": {
|
|
5481
|
+
"type": "object",
|
|
5482
|
+
"properties": {
|
|
5483
|
+
"username": {
|
|
5484
|
+
"type": "string",
|
|
5485
|
+
"description": "username parameter"
|
|
5486
|
+
},
|
|
5487
|
+
"software": {
|
|
5488
|
+
"type": "string",
|
|
5489
|
+
"description": "WordPress installation (software) identifier"
|
|
5490
|
+
}
|
|
5491
|
+
},
|
|
5492
|
+
"required": [
|
|
5493
|
+
"username",
|
|
5494
|
+
"software"
|
|
5495
|
+
]
|
|
5496
|
+
},
|
|
5497
|
+
"security": [
|
|
5498
|
+
{
|
|
5499
|
+
"apiToken": []
|
|
5500
|
+
}
|
|
5501
|
+
],
|
|
5502
|
+
"group": "wordpress"
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
"name": "hosting_listWordPressThemesV1",
|
|
5506
|
+
"description": "List WordPress themes available to install.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.",
|
|
5507
|
+
"method": "GET",
|
|
5508
|
+
"path": "/api/hosting/v1/wordpress/themes",
|
|
5509
|
+
"inputSchema": {
|
|
5510
|
+
"type": "object",
|
|
5511
|
+
"properties": {
|
|
5512
|
+
"order_id": {
|
|
5513
|
+
"type": "integer",
|
|
5514
|
+
"description": "Optionally scope themes to a specific order."
|
|
5515
|
+
},
|
|
5516
|
+
"search": {
|
|
5517
|
+
"type": "string",
|
|
5518
|
+
"description": "Search term to match against theme names."
|
|
5519
|
+
}
|
|
5520
|
+
},
|
|
5521
|
+
"required": []
|
|
5522
|
+
},
|
|
5523
|
+
"security": [
|
|
5524
|
+
{
|
|
5525
|
+
"apiToken": []
|
|
5526
|
+
}
|
|
5527
|
+
],
|
|
5528
|
+
"group": "wordpress"
|
|
5529
|
+
},
|
|
5530
|
+
{
|
|
5531
|
+
"name": "hosting_uninstallWordPressThemesV1",
|
|
5532
|
+
"description": "Uninstall one or more themes from a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the uninstall\njob has been queued.",
|
|
5533
|
+
"method": "POST",
|
|
5534
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall",
|
|
5535
|
+
"inputSchema": {
|
|
5536
|
+
"type": "object",
|
|
5537
|
+
"properties": {
|
|
5538
|
+
"username": {
|
|
5539
|
+
"type": "string",
|
|
5540
|
+
"description": "username parameter"
|
|
5541
|
+
},
|
|
5542
|
+
"software": {
|
|
5543
|
+
"type": "string",
|
|
5544
|
+
"description": "WordPress installation (software) identifier"
|
|
5545
|
+
},
|
|
5546
|
+
"themes": {
|
|
5547
|
+
"type": "array",
|
|
5548
|
+
"description": "Slugs of the installed themes to uninstall.",
|
|
5549
|
+
"items": {
|
|
5550
|
+
"type": "string",
|
|
5551
|
+
"description": "Theme slug"
|
|
5552
|
+
}
|
|
5553
|
+
}
|
|
5554
|
+
},
|
|
5555
|
+
"required": [
|
|
5556
|
+
"username",
|
|
5557
|
+
"software",
|
|
5558
|
+
"themes"
|
|
5559
|
+
]
|
|
5560
|
+
},
|
|
5561
|
+
"security": [
|
|
5562
|
+
{
|
|
5563
|
+
"apiToken": []
|
|
5564
|
+
}
|
|
5565
|
+
],
|
|
5566
|
+
"group": "wordpress"
|
|
5567
|
+
},
|
|
5568
|
+
{
|
|
5569
|
+
"name": "hosting_updateWordPressThemesV1",
|
|
5570
|
+
"description": "Update one or more installed themes to their latest version on a WordPress\ninstallation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.",
|
|
5571
|
+
"method": "POST",
|
|
5572
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update",
|
|
5573
|
+
"inputSchema": {
|
|
5574
|
+
"type": "object",
|
|
5575
|
+
"properties": {
|
|
5576
|
+
"username": {
|
|
5577
|
+
"type": "string",
|
|
5578
|
+
"description": "username parameter"
|
|
5579
|
+
},
|
|
5580
|
+
"software": {
|
|
5581
|
+
"type": "string",
|
|
5582
|
+
"description": "WordPress installation (software) identifier"
|
|
5583
|
+
},
|
|
5584
|
+
"themes": {
|
|
5585
|
+
"type": "array",
|
|
5586
|
+
"description": "Slugs of the installed themes to update to their latest version.",
|
|
5587
|
+
"items": {
|
|
5588
|
+
"type": "string",
|
|
5589
|
+
"description": "Theme slug"
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5592
|
+
},
|
|
5593
|
+
"required": [
|
|
5594
|
+
"username",
|
|
5595
|
+
"software",
|
|
5596
|
+
"themes"
|
|
5597
|
+
]
|
|
5598
|
+
},
|
|
5599
|
+
"security": [
|
|
5600
|
+
{
|
|
5601
|
+
"apiToken": []
|
|
5602
|
+
}
|
|
5603
|
+
],
|
|
5604
|
+
"group": "wordpress"
|
|
5040
5605
|
}
|
|
5041
5606
|
];
|