hostinger-api-mcp 1.1.2 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -4
- 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 +263 -1
- package/src/core/tools/all.ts +263 -1
- package/src/core/tools/ecommerce.js +62 -1
- package/src/core/tools/ecommerce.ts +62 -1
- package/src/core/tools/hosting.js +201 -0
- package/src/core/tools/hosting.ts +201 -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 +175 -1
package/src/core/tools/all.ts
CHANGED
|
@@ -1455,7 +1455,7 @@ const tools: OpenApiTool[] = [
|
|
|
1455
1455
|
"group": "ecommerce"
|
|
1456
1456
|
},
|
|
1457
1457
|
{
|
|
1458
|
-
"name": "
|
|
1458
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
1459
1459
|
"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.",
|
|
1460
1460
|
"method": "POST",
|
|
1461
1461
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -1495,6 +1495,43 @@ const tools: OpenApiTool[] = [
|
|
|
1495
1495
|
],
|
|
1496
1496
|
"group": "ecommerce"
|
|
1497
1497
|
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
1500
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
1501
|
+
"method": "PATCH",
|
|
1502
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
1503
|
+
"inputSchema": {
|
|
1504
|
+
"type": "object",
|
|
1505
|
+
"properties": {
|
|
1506
|
+
"store_id": {
|
|
1507
|
+
"type": "string",
|
|
1508
|
+
"description": "The ID of the store that owns the sales channel."
|
|
1509
|
+
},
|
|
1510
|
+
"sales_channel_id": {
|
|
1511
|
+
"type": "string",
|
|
1512
|
+
"description": "The ID of the sales channel to update."
|
|
1513
|
+
},
|
|
1514
|
+
"name": {
|
|
1515
|
+
"type": "string",
|
|
1516
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
1517
|
+
},
|
|
1518
|
+
"url": {
|
|
1519
|
+
"type": "string",
|
|
1520
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
"required": [
|
|
1524
|
+
"store_id",
|
|
1525
|
+
"sales_channel_id"
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
"security": [
|
|
1529
|
+
{
|
|
1530
|
+
"apiToken": []
|
|
1531
|
+
}
|
|
1532
|
+
],
|
|
1533
|
+
"group": "ecommerce"
|
|
1534
|
+
},
|
|
1498
1535
|
{
|
|
1499
1536
|
"name": "ecommerce_setStoreShippingV1",
|
|
1500
1537
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -1625,6 +1662,30 @@ const tools: OpenApiTool[] = [
|
|
|
1625
1662
|
],
|
|
1626
1663
|
"group": "ecommerce"
|
|
1627
1664
|
},
|
|
1665
|
+
{
|
|
1666
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
1667
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
1668
|
+
"method": "GET",
|
|
1669
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
1670
|
+
"inputSchema": {
|
|
1671
|
+
"type": "object",
|
|
1672
|
+
"properties": {
|
|
1673
|
+
"store_id": {
|
|
1674
|
+
"type": "string",
|
|
1675
|
+
"description": "The ID of the store to read metadata for."
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
"required": [
|
|
1679
|
+
"store_id"
|
|
1680
|
+
]
|
|
1681
|
+
},
|
|
1682
|
+
"security": [
|
|
1683
|
+
{
|
|
1684
|
+
"apiToken": []
|
|
1685
|
+
}
|
|
1686
|
+
],
|
|
1687
|
+
"group": "ecommerce"
|
|
1688
|
+
},
|
|
1628
1689
|
{
|
|
1629
1690
|
"name": "horizons_createWebsiteV1",
|
|
1630
1691
|
"description": "Create new Hostinger Horizons website from the given message.\\n\nUse this tool when user asks you to create a website, landing page, blog\nor any other type of application.\\n\nThis tool initiates the website creation process and returns a website URL and ID.\nThe generation happens asynchronously.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat Hostinger Horizons is now creating their website and it will be ready in a few minutes\nand you should provide the website URL to the user immediately\nDo not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface\nin the provided website URL.\nIf the tool call fails with an error, you should provide a clear explanation of the error\nand do not generate code yourself in the chat.\n\\n\nTECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n\nThe environment is limited to the following technologies.\nYou MUST NOT use, suggest, or implement any technology outside this list:\\n\n\\n\n- Language: JavaScript ONLY.\n- Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n\n- Framework: React.\\n\n- Navigation: React Router.\\n\n- Styling: TailwindCSS.\\n\n- Components: shadcn/ui (built with @radix-ui primitives).\\n\n- Icons: Lucide React.\\n\n- Animations: Framer Motion.\\n\n\\n\nBACKEND & DATA STORAGE:\\n\n- Horizons integrated backend is the EXCLUSIVE solution for persistent data storage,\nauthentication, and database needs.\\n\n- Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n\n- Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n\n\\n\nMAPS:\\n\n- OpenStreetMap is the default provider.\\n\n- Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n",
|
|
@@ -2603,6 +2664,207 @@ const tools: OpenApiTool[] = [
|
|
|
2603
2664
|
],
|
|
2604
2665
|
"group": "hosting"
|
|
2605
2666
|
},
|
|
2667
|
+
{
|
|
2668
|
+
"name": "hosting_resetPHPExtensionsV1",
|
|
2669
|
+
"description": "Resets all PHP extensions of the website to their default state.\n\nUse it to recover from extension conflicts or restore the original configuration.",
|
|
2670
|
+
"method": "PATCH",
|
|
2671
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset",
|
|
2672
|
+
"inputSchema": {
|
|
2673
|
+
"type": "object",
|
|
2674
|
+
"properties": {
|
|
2675
|
+
"username": {
|
|
2676
|
+
"type": "string",
|
|
2677
|
+
"description": "username parameter"
|
|
2678
|
+
},
|
|
2679
|
+
"domain": {
|
|
2680
|
+
"type": "string",
|
|
2681
|
+
"description": "Domain name"
|
|
2682
|
+
}
|
|
2683
|
+
},
|
|
2684
|
+
"required": [
|
|
2685
|
+
"username",
|
|
2686
|
+
"domain"
|
|
2687
|
+
]
|
|
2688
|
+
},
|
|
2689
|
+
"security": [
|
|
2690
|
+
{
|
|
2691
|
+
"apiToken": []
|
|
2692
|
+
}
|
|
2693
|
+
],
|
|
2694
|
+
"group": "hosting"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"name": "hosting_getPHPDetailsV1",
|
|
2698
|
+
"description": "Returns the full PHP configuration for the website: current version, available versions\n(supported and unsupported), enabled/disabled extensions, options with their current value,\ndefault, type and the plan limit (`max`), and conflicting extension groups.\n\nUse it to check the current PHP setup before updating the version, extensions or options.",
|
|
2699
|
+
"method": "GET",
|
|
2700
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/details",
|
|
2701
|
+
"inputSchema": {
|
|
2702
|
+
"type": "object",
|
|
2703
|
+
"properties": {
|
|
2704
|
+
"username": {
|
|
2705
|
+
"type": "string",
|
|
2706
|
+
"description": "username parameter"
|
|
2707
|
+
},
|
|
2708
|
+
"domain": {
|
|
2709
|
+
"type": "string",
|
|
2710
|
+
"description": "Domain name"
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
"required": [
|
|
2714
|
+
"username",
|
|
2715
|
+
"domain"
|
|
2716
|
+
]
|
|
2717
|
+
},
|
|
2718
|
+
"security": [
|
|
2719
|
+
{
|
|
2720
|
+
"apiToken": []
|
|
2721
|
+
}
|
|
2722
|
+
],
|
|
2723
|
+
"group": "hosting"
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
"name": "hosting_getPHPInfoV1",
|
|
2727
|
+
"description": "Returns the full phpinfo page (HTML) for the website.\n\nUse it to debug PHP issues or inspect the complete PHP environment of the website.",
|
|
2728
|
+
"method": "GET",
|
|
2729
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info",
|
|
2730
|
+
"inputSchema": {
|
|
2731
|
+
"type": "object",
|
|
2732
|
+
"properties": {
|
|
2733
|
+
"username": {
|
|
2734
|
+
"type": "string",
|
|
2735
|
+
"description": "username parameter"
|
|
2736
|
+
},
|
|
2737
|
+
"domain": {
|
|
2738
|
+
"type": "string",
|
|
2739
|
+
"description": "Domain name"
|
|
2740
|
+
}
|
|
2741
|
+
},
|
|
2742
|
+
"required": [
|
|
2743
|
+
"username",
|
|
2744
|
+
"domain"
|
|
2745
|
+
]
|
|
2746
|
+
},
|
|
2747
|
+
"security": [
|
|
2748
|
+
{
|
|
2749
|
+
"apiToken": []
|
|
2750
|
+
}
|
|
2751
|
+
],
|
|
2752
|
+
"group": "hosting"
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"name": "hosting_updatePHPExtensionsV1",
|
|
2756
|
+
"description": "Enables or disables PHP extensions (modules) for the website.\n\nUse the Get PHP details endpoint to check the current extension states before changing them.",
|
|
2757
|
+
"method": "PATCH",
|
|
2758
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions",
|
|
2759
|
+
"inputSchema": {
|
|
2760
|
+
"type": "object",
|
|
2761
|
+
"properties": {
|
|
2762
|
+
"username": {
|
|
2763
|
+
"type": "string",
|
|
2764
|
+
"description": "username parameter"
|
|
2765
|
+
},
|
|
2766
|
+
"domain": {
|
|
2767
|
+
"type": "string",
|
|
2768
|
+
"description": "Domain name"
|
|
2769
|
+
},
|
|
2770
|
+
"enable": {
|
|
2771
|
+
"type": "array",
|
|
2772
|
+
"description": "PHP extensions to enable.",
|
|
2773
|
+
"items": {
|
|
2774
|
+
"type": "string",
|
|
2775
|
+
"description": "enable parameter"
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2778
|
+
"disable": {
|
|
2779
|
+
"type": "array",
|
|
2780
|
+
"description": "PHP extensions to disable.",
|
|
2781
|
+
"items": {
|
|
2782
|
+
"type": "string",
|
|
2783
|
+
"description": "disable parameter"
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
"required": [
|
|
2788
|
+
"username",
|
|
2789
|
+
"domain"
|
|
2790
|
+
]
|
|
2791
|
+
},
|
|
2792
|
+
"security": [
|
|
2793
|
+
{
|
|
2794
|
+
"apiToken": []
|
|
2795
|
+
}
|
|
2796
|
+
],
|
|
2797
|
+
"group": "hosting"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"name": "hosting_updatePHPOptionsV1",
|
|
2801
|
+
"description": "Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`).\nOnly provide the options you want to change, inside the `options` object.\n\nValues above the account plan limit are silently capped to that limit, so the request can succeed\nwith a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.",
|
|
2802
|
+
"method": "PATCH",
|
|
2803
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/options",
|
|
2804
|
+
"inputSchema": {
|
|
2805
|
+
"type": "object",
|
|
2806
|
+
"properties": {
|
|
2807
|
+
"username": {
|
|
2808
|
+
"type": "string",
|
|
2809
|
+
"description": "username parameter"
|
|
2810
|
+
},
|
|
2811
|
+
"domain": {
|
|
2812
|
+
"type": "string",
|
|
2813
|
+
"description": "Domain name"
|
|
2814
|
+
},
|
|
2815
|
+
"options": {
|
|
2816
|
+
"type": "object",
|
|
2817
|
+
"description": "Map of PHP options to update, keyed by option name. Only include options you want to change.",
|
|
2818
|
+
"properties": {}
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"required": [
|
|
2822
|
+
"username",
|
|
2823
|
+
"domain",
|
|
2824
|
+
"options"
|
|
2825
|
+
]
|
|
2826
|
+
},
|
|
2827
|
+
"security": [
|
|
2828
|
+
{
|
|
2829
|
+
"apiToken": []
|
|
2830
|
+
}
|
|
2831
|
+
],
|
|
2832
|
+
"group": "hosting"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"name": "hosting_updatePHPVersionV1",
|
|
2836
|
+
"description": "Changes the PHP version of the website.\n\nUse the Get PHP details endpoint to see the versions available for the website.",
|
|
2837
|
+
"method": "PATCH",
|
|
2838
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/version",
|
|
2839
|
+
"inputSchema": {
|
|
2840
|
+
"type": "object",
|
|
2841
|
+
"properties": {
|
|
2842
|
+
"username": {
|
|
2843
|
+
"type": "string",
|
|
2844
|
+
"description": "username parameter"
|
|
2845
|
+
},
|
|
2846
|
+
"domain": {
|
|
2847
|
+
"type": "string",
|
|
2848
|
+
"description": "Domain name"
|
|
2849
|
+
},
|
|
2850
|
+
"version": {
|
|
2851
|
+
"type": "string",
|
|
2852
|
+
"description": "PHP version to switch the website to."
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2855
|
+
"required": [
|
|
2856
|
+
"username",
|
|
2857
|
+
"domain",
|
|
2858
|
+
"version"
|
|
2859
|
+
]
|
|
2860
|
+
},
|
|
2861
|
+
"security": [
|
|
2862
|
+
{
|
|
2863
|
+
"apiToken": []
|
|
2864
|
+
}
|
|
2865
|
+
],
|
|
2866
|
+
"group": "hosting"
|
|
2867
|
+
},
|
|
2606
2868
|
{
|
|
2607
2869
|
"name": "hosting_listWebsitesV1",
|
|
2608
2870
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|
|
@@ -158,7 +158,7 @@ export default [
|
|
|
158
158
|
"group": "ecommerce"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"name": "
|
|
161
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
162
162
|
"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.",
|
|
163
163
|
"method": "POST",
|
|
164
164
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -198,6 +198,43 @@ export default [
|
|
|
198
198
|
],
|
|
199
199
|
"group": "ecommerce"
|
|
200
200
|
},
|
|
201
|
+
{
|
|
202
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
203
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
204
|
+
"method": "PATCH",
|
|
205
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
206
|
+
"inputSchema": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"store_id": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"description": "The ID of the store that owns the sales channel."
|
|
212
|
+
},
|
|
213
|
+
"sales_channel_id": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"description": "The ID of the sales channel to update."
|
|
216
|
+
},
|
|
217
|
+
"name": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
220
|
+
},
|
|
221
|
+
"url": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"store_id",
|
|
228
|
+
"sales_channel_id"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"security": [
|
|
232
|
+
{
|
|
233
|
+
"apiToken": []
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"group": "ecommerce"
|
|
237
|
+
},
|
|
201
238
|
{
|
|
202
239
|
"name": "ecommerce_setStoreShippingV1",
|
|
203
240
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -327,5 +364,29 @@ export default [
|
|
|
327
364
|
}
|
|
328
365
|
],
|
|
329
366
|
"group": "ecommerce"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
370
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
371
|
+
"method": "GET",
|
|
372
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
373
|
+
"inputSchema": {
|
|
374
|
+
"type": "object",
|
|
375
|
+
"properties": {
|
|
376
|
+
"store_id": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"description": "The ID of the store to read metadata for."
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"required": [
|
|
382
|
+
"store_id"
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"security": [
|
|
386
|
+
{
|
|
387
|
+
"apiToken": []
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"group": "ecommerce"
|
|
330
391
|
}
|
|
331
392
|
];
|
|
@@ -168,7 +168,7 @@ const tools: OpenApiTool[] = [
|
|
|
168
168
|
"group": "ecommerce"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"name": "
|
|
171
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
172
172
|
"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.",
|
|
173
173
|
"method": "POST",
|
|
174
174
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -208,6 +208,43 @@ const tools: OpenApiTool[] = [
|
|
|
208
208
|
],
|
|
209
209
|
"group": "ecommerce"
|
|
210
210
|
},
|
|
211
|
+
{
|
|
212
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
213
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
214
|
+
"method": "PATCH",
|
|
215
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
216
|
+
"inputSchema": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"store_id": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "The ID of the store that owns the sales channel."
|
|
222
|
+
},
|
|
223
|
+
"sales_channel_id": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "The ID of the sales channel to update."
|
|
226
|
+
},
|
|
227
|
+
"name": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
230
|
+
},
|
|
231
|
+
"url": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": [
|
|
237
|
+
"store_id",
|
|
238
|
+
"sales_channel_id"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"security": [
|
|
242
|
+
{
|
|
243
|
+
"apiToken": []
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"group": "ecommerce"
|
|
247
|
+
},
|
|
211
248
|
{
|
|
212
249
|
"name": "ecommerce_setStoreShippingV1",
|
|
213
250
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -337,6 +374,30 @@ const tools: OpenApiTool[] = [
|
|
|
337
374
|
}
|
|
338
375
|
],
|
|
339
376
|
"group": "ecommerce"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
380
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
381
|
+
"method": "GET",
|
|
382
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
383
|
+
"inputSchema": {
|
|
384
|
+
"type": "object",
|
|
385
|
+
"properties": {
|
|
386
|
+
"store_id": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "The ID of the store to read metadata for."
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"required": [
|
|
392
|
+
"store_id"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"security": [
|
|
396
|
+
{
|
|
397
|
+
"apiToken": []
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"group": "ecommerce"
|
|
340
401
|
}
|
|
341
402
|
];
|
|
342
403
|
export default tools;
|
|
@@ -1166,6 +1166,207 @@ export default [
|
|
|
1166
1166
|
],
|
|
1167
1167
|
"group": "hosting"
|
|
1168
1168
|
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "hosting_resetPHPExtensionsV1",
|
|
1171
|
+
"description": "Resets all PHP extensions of the website to their default state.\n\nUse it to recover from extension conflicts or restore the original configuration.",
|
|
1172
|
+
"method": "PATCH",
|
|
1173
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset",
|
|
1174
|
+
"inputSchema": {
|
|
1175
|
+
"type": "object",
|
|
1176
|
+
"properties": {
|
|
1177
|
+
"username": {
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"description": "username parameter"
|
|
1180
|
+
},
|
|
1181
|
+
"domain": {
|
|
1182
|
+
"type": "string",
|
|
1183
|
+
"description": "Domain name"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
"required": [
|
|
1187
|
+
"username",
|
|
1188
|
+
"domain"
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
|
+
"security": [
|
|
1192
|
+
{
|
|
1193
|
+
"apiToken": []
|
|
1194
|
+
}
|
|
1195
|
+
],
|
|
1196
|
+
"group": "hosting"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "hosting_getPHPDetailsV1",
|
|
1200
|
+
"description": "Returns the full PHP configuration for the website: current version, available versions\n(supported and unsupported), enabled/disabled extensions, options with their current value,\ndefault, type and the plan limit (`max`), and conflicting extension groups.\n\nUse it to check the current PHP setup before updating the version, extensions or options.",
|
|
1201
|
+
"method": "GET",
|
|
1202
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/details",
|
|
1203
|
+
"inputSchema": {
|
|
1204
|
+
"type": "object",
|
|
1205
|
+
"properties": {
|
|
1206
|
+
"username": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"description": "username parameter"
|
|
1209
|
+
},
|
|
1210
|
+
"domain": {
|
|
1211
|
+
"type": "string",
|
|
1212
|
+
"description": "Domain name"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"required": [
|
|
1216
|
+
"username",
|
|
1217
|
+
"domain"
|
|
1218
|
+
]
|
|
1219
|
+
},
|
|
1220
|
+
"security": [
|
|
1221
|
+
{
|
|
1222
|
+
"apiToken": []
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
"group": "hosting"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"name": "hosting_getPHPInfoV1",
|
|
1229
|
+
"description": "Returns the full phpinfo page (HTML) for the website.\n\nUse it to debug PHP issues or inspect the complete PHP environment of the website.",
|
|
1230
|
+
"method": "GET",
|
|
1231
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info",
|
|
1232
|
+
"inputSchema": {
|
|
1233
|
+
"type": "object",
|
|
1234
|
+
"properties": {
|
|
1235
|
+
"username": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"description": "username parameter"
|
|
1238
|
+
},
|
|
1239
|
+
"domain": {
|
|
1240
|
+
"type": "string",
|
|
1241
|
+
"description": "Domain name"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"required": [
|
|
1245
|
+
"username",
|
|
1246
|
+
"domain"
|
|
1247
|
+
]
|
|
1248
|
+
},
|
|
1249
|
+
"security": [
|
|
1250
|
+
{
|
|
1251
|
+
"apiToken": []
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
"group": "hosting"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"name": "hosting_updatePHPExtensionsV1",
|
|
1258
|
+
"description": "Enables or disables PHP extensions (modules) for the website.\n\nUse the Get PHP details endpoint to check the current extension states before changing them.",
|
|
1259
|
+
"method": "PATCH",
|
|
1260
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions",
|
|
1261
|
+
"inputSchema": {
|
|
1262
|
+
"type": "object",
|
|
1263
|
+
"properties": {
|
|
1264
|
+
"username": {
|
|
1265
|
+
"type": "string",
|
|
1266
|
+
"description": "username parameter"
|
|
1267
|
+
},
|
|
1268
|
+
"domain": {
|
|
1269
|
+
"type": "string",
|
|
1270
|
+
"description": "Domain name"
|
|
1271
|
+
},
|
|
1272
|
+
"enable": {
|
|
1273
|
+
"type": "array",
|
|
1274
|
+
"description": "PHP extensions to enable.",
|
|
1275
|
+
"items": {
|
|
1276
|
+
"type": "string",
|
|
1277
|
+
"description": "enable parameter"
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
"disable": {
|
|
1281
|
+
"type": "array",
|
|
1282
|
+
"description": "PHP extensions to disable.",
|
|
1283
|
+
"items": {
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"description": "disable parameter"
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
"required": [
|
|
1290
|
+
"username",
|
|
1291
|
+
"domain"
|
|
1292
|
+
]
|
|
1293
|
+
},
|
|
1294
|
+
"security": [
|
|
1295
|
+
{
|
|
1296
|
+
"apiToken": []
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
"group": "hosting"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "hosting_updatePHPOptionsV1",
|
|
1303
|
+
"description": "Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`).\nOnly provide the options you want to change, inside the `options` object.\n\nValues above the account plan limit are silently capped to that limit, so the request can succeed\nwith a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.",
|
|
1304
|
+
"method": "PATCH",
|
|
1305
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/options",
|
|
1306
|
+
"inputSchema": {
|
|
1307
|
+
"type": "object",
|
|
1308
|
+
"properties": {
|
|
1309
|
+
"username": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"description": "username parameter"
|
|
1312
|
+
},
|
|
1313
|
+
"domain": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"description": "Domain name"
|
|
1316
|
+
},
|
|
1317
|
+
"options": {
|
|
1318
|
+
"type": "object",
|
|
1319
|
+
"description": "Map of PHP options to update, keyed by option name. Only include options you want to change.",
|
|
1320
|
+
"properties": {}
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
"required": [
|
|
1324
|
+
"username",
|
|
1325
|
+
"domain",
|
|
1326
|
+
"options"
|
|
1327
|
+
]
|
|
1328
|
+
},
|
|
1329
|
+
"security": [
|
|
1330
|
+
{
|
|
1331
|
+
"apiToken": []
|
|
1332
|
+
}
|
|
1333
|
+
],
|
|
1334
|
+
"group": "hosting"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "hosting_updatePHPVersionV1",
|
|
1338
|
+
"description": "Changes the PHP version of the website.\n\nUse the Get PHP details endpoint to see the versions available for the website.",
|
|
1339
|
+
"method": "PATCH",
|
|
1340
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/version",
|
|
1341
|
+
"inputSchema": {
|
|
1342
|
+
"type": "object",
|
|
1343
|
+
"properties": {
|
|
1344
|
+
"username": {
|
|
1345
|
+
"type": "string",
|
|
1346
|
+
"description": "username parameter"
|
|
1347
|
+
},
|
|
1348
|
+
"domain": {
|
|
1349
|
+
"type": "string",
|
|
1350
|
+
"description": "Domain name"
|
|
1351
|
+
},
|
|
1352
|
+
"version": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"description": "PHP version to switch the website to."
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
"required": [
|
|
1358
|
+
"username",
|
|
1359
|
+
"domain",
|
|
1360
|
+
"version"
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1363
|
+
"security": [
|
|
1364
|
+
{
|
|
1365
|
+
"apiToken": []
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"group": "hosting"
|
|
1369
|
+
},
|
|
1169
1370
|
{
|
|
1170
1371
|
"name": "hosting_listWebsitesV1",
|
|
1171
1372
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|