hostinger-api-mcp 1.45.2 → 1.45.4
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 +135 -9
- 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 +808 -24
- package/src/core/tools/all.ts +808 -24
- package/src/core/tools/ecommerce.js +792 -8
- package/src/core/tools/ecommerce.ts +792 -8
- package/src/core/tools/hosting.js +2 -2
- package/src/core/tools/hosting.ts +2 -2
- 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 +448 -11
package/src/core/tools/all.js
CHANGED
|
@@ -3317,6 +3317,122 @@ export default [
|
|
|
3317
3317
|
],
|
|
3318
3318
|
"group": "domains"
|
|
3319
3319
|
},
|
|
3320
|
+
{
|
|
3321
|
+
"name": "ecommerce_listDiscountsV1",
|
|
3322
|
+
"description": "List a store's discounts. Filter by free text over code and name, or by disabled state.\nAmounts for fixed discounts are integers in the smallest currency unit; percentage\ndiscounts carry a whole-number value between 1 and 100.",
|
|
3323
|
+
"method": "GET",
|
|
3324
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/discounts",
|
|
3325
|
+
"inputSchema": {
|
|
3326
|
+
"type": "object",
|
|
3327
|
+
"properties": {
|
|
3328
|
+
"store_id": {
|
|
3329
|
+
"type": "string",
|
|
3330
|
+
"description": "The ID of the store to list discounts for."
|
|
3331
|
+
},
|
|
3332
|
+
"q": {
|
|
3333
|
+
"type": "string",
|
|
3334
|
+
"description": "Free-text search over discount code and name."
|
|
3335
|
+
},
|
|
3336
|
+
"is_disabled": {
|
|
3337
|
+
"type": "string",
|
|
3338
|
+
"description": "Filter by disabled state.",
|
|
3339
|
+
"enum": [
|
|
3340
|
+
"true",
|
|
3341
|
+
"false"
|
|
3342
|
+
]
|
|
3343
|
+
},
|
|
3344
|
+
"page": {
|
|
3345
|
+
"type": "integer",
|
|
3346
|
+
"description": "Page number"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"required": [
|
|
3350
|
+
"store_id"
|
|
3351
|
+
]
|
|
3352
|
+
},
|
|
3353
|
+
"security": [
|
|
3354
|
+
{
|
|
3355
|
+
"apiToken": []
|
|
3356
|
+
}
|
|
3357
|
+
],
|
|
3358
|
+
"group": "ecommerce"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"name": "ecommerce_createADiscountV1",
|
|
3362
|
+
"description": "Create a discount for a store. Fixed discounts take an amount in the smallest currency\nunit (e.g. $10 is 1000); percentage discounts take a whole-number value between 1 and 100.\nFree-shipping discounts ignore value. Returns the created discount.",
|
|
3363
|
+
"method": "POST",
|
|
3364
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/discounts",
|
|
3365
|
+
"inputSchema": {
|
|
3366
|
+
"type": "object",
|
|
3367
|
+
"properties": {
|
|
3368
|
+
"store_id": {
|
|
3369
|
+
"type": "string",
|
|
3370
|
+
"description": "The ID of the store to create the discount for."
|
|
3371
|
+
},
|
|
3372
|
+
"code": {
|
|
3373
|
+
"type": "string",
|
|
3374
|
+
"description": "The discount code customers enter at checkout."
|
|
3375
|
+
},
|
|
3376
|
+
"name": {
|
|
3377
|
+
"type": "string",
|
|
3378
|
+
"description": "A human-friendly discount name."
|
|
3379
|
+
},
|
|
3380
|
+
"type": {
|
|
3381
|
+
"type": "string",
|
|
3382
|
+
"description": "The discount type.",
|
|
3383
|
+
"enum": [
|
|
3384
|
+
"percentage",
|
|
3385
|
+
"fixed",
|
|
3386
|
+
"free_shipping"
|
|
3387
|
+
]
|
|
3388
|
+
},
|
|
3389
|
+
"value": {
|
|
3390
|
+
"type": "integer",
|
|
3391
|
+
"description": "For percentage discounts a whole number 1-100; for fixed discounts an amount in the smallest currency unit (e.g. $10 is 1000). Ignored for free_shipping."
|
|
3392
|
+
},
|
|
3393
|
+
"allocation": {
|
|
3394
|
+
"type": "string",
|
|
3395
|
+
"description": "Whether the discount applies to the cart total or to each eligible item.",
|
|
3396
|
+
"enum": [
|
|
3397
|
+
"total",
|
|
3398
|
+
"item"
|
|
3399
|
+
]
|
|
3400
|
+
},
|
|
3401
|
+
"starts_at": {
|
|
3402
|
+
"type": "string",
|
|
3403
|
+
"description": "When the discount becomes active. A bare date (2026-11-27) anchors to time_zone. Defaults to now when omitted."
|
|
3404
|
+
},
|
|
3405
|
+
"ends_at": {
|
|
3406
|
+
"type": "string",
|
|
3407
|
+
"description": "When the discount expires. A bare date runs to the end of that day in time_zone. Never expires when omitted."
|
|
3408
|
+
},
|
|
3409
|
+
"usage_limit": {
|
|
3410
|
+
"type": "integer",
|
|
3411
|
+
"description": "Maximum number of times the discount can be redeemed."
|
|
3412
|
+
},
|
|
3413
|
+
"min_cart_value": {
|
|
3414
|
+
"type": "integer",
|
|
3415
|
+
"description": "Minimum cart value in the smallest currency unit required for the discount to apply."
|
|
3416
|
+
},
|
|
3417
|
+
"time_zone": {
|
|
3418
|
+
"type": "string",
|
|
3419
|
+
"description": "IANA time zone used to interpret starts_at and ends_at."
|
|
3420
|
+
}
|
|
3421
|
+
},
|
|
3422
|
+
"required": [
|
|
3423
|
+
"store_id",
|
|
3424
|
+
"code",
|
|
3425
|
+
"type",
|
|
3426
|
+
"value"
|
|
3427
|
+
]
|
|
3428
|
+
},
|
|
3429
|
+
"security": [
|
|
3430
|
+
{
|
|
3431
|
+
"apiToken": []
|
|
3432
|
+
}
|
|
3433
|
+
],
|
|
3434
|
+
"group": "ecommerce"
|
|
3435
|
+
},
|
|
3320
3436
|
{
|
|
3321
3437
|
"name": "ecommerce_getCustomStorefrontSetupInstructionsV1",
|
|
3322
3438
|
"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.",
|
|
@@ -3335,24 +3451,364 @@ export default [
|
|
|
3335
3451
|
"group": "ecommerce"
|
|
3336
3452
|
},
|
|
3337
3453
|
{
|
|
3338
|
-
"name": "
|
|
3339
|
-
"description": "
|
|
3340
|
-
"method": "POST",
|
|
3341
|
-
"path": "/api/ecommerce/v1/stores/{store_id}/
|
|
3454
|
+
"name": "ecommerce_cancelAnOrderV1",
|
|
3455
|
+
"description": "Cancel the order and optionally email the customer. Returns the updated order summary.",
|
|
3456
|
+
"method": "POST",
|
|
3457
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/orders/{order_id}/cancel",
|
|
3458
|
+
"inputSchema": {
|
|
3459
|
+
"type": "object",
|
|
3460
|
+
"properties": {
|
|
3461
|
+
"store_id": {
|
|
3462
|
+
"type": "string",
|
|
3463
|
+
"description": "The ID of the store that owns the order."
|
|
3464
|
+
},
|
|
3465
|
+
"order_id": {
|
|
3466
|
+
"type": "string",
|
|
3467
|
+
"description": "The ID of the order to cancel."
|
|
3468
|
+
},
|
|
3469
|
+
"notify_customer": {
|
|
3470
|
+
"type": "boolean",
|
|
3471
|
+
"description": "Whether to email the customer about the cancellation. Defaults to true."
|
|
3472
|
+
}
|
|
3473
|
+
},
|
|
3474
|
+
"required": [
|
|
3475
|
+
"store_id",
|
|
3476
|
+
"order_id"
|
|
3477
|
+
]
|
|
3478
|
+
},
|
|
3479
|
+
"security": [
|
|
3480
|
+
{
|
|
3481
|
+
"apiToken": []
|
|
3482
|
+
}
|
|
3483
|
+
],
|
|
3484
|
+
"group": "ecommerce"
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"name": "ecommerce_fulfilAnOrderV1",
|
|
3488
|
+
"description": "Create a fulfilment for the order and attach tracking in one call. Omit items to fulfil\nevery remaining unfulfilled item. Returns the updated order summary.",
|
|
3489
|
+
"method": "POST",
|
|
3490
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/orders/{order_id}/fulfill",
|
|
3491
|
+
"inputSchema": {
|
|
3492
|
+
"type": "object",
|
|
3493
|
+
"properties": {
|
|
3494
|
+
"store_id": {
|
|
3495
|
+
"type": "string",
|
|
3496
|
+
"description": "The ID of the store that owns the order."
|
|
3497
|
+
},
|
|
3498
|
+
"order_id": {
|
|
3499
|
+
"type": "string",
|
|
3500
|
+
"description": "The ID of the order to fulfil."
|
|
3501
|
+
},
|
|
3502
|
+
"items": {
|
|
3503
|
+
"type": "array",
|
|
3504
|
+
"description": "Line items to fulfil. Omit to fulfil every remaining unfulfilled item.",
|
|
3505
|
+
"items": {
|
|
3506
|
+
"type": "object",
|
|
3507
|
+
"description": "items parameter",
|
|
3508
|
+
"properties": {
|
|
3509
|
+
"line_item_id": {
|
|
3510
|
+
"type": "string",
|
|
3511
|
+
"description": "The line item to fulfil, from the order detail items[].id."
|
|
3512
|
+
},
|
|
3513
|
+
"quantity": {
|
|
3514
|
+
"type": "integer",
|
|
3515
|
+
"description": "Quantity of the line item to fulfil."
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3518
|
+
"required": [
|
|
3519
|
+
"line_item_id",
|
|
3520
|
+
"quantity"
|
|
3521
|
+
]
|
|
3522
|
+
}
|
|
3523
|
+
},
|
|
3524
|
+
"tracking_number": {
|
|
3525
|
+
"type": "string",
|
|
3526
|
+
"description": "Carrier tracking number for the shipment."
|
|
3527
|
+
},
|
|
3528
|
+
"tracking_url": {
|
|
3529
|
+
"type": "string",
|
|
3530
|
+
"description": "Public tracking URL for the shipment. Requires tracking_number."
|
|
3531
|
+
},
|
|
3532
|
+
"notify_customer": {
|
|
3533
|
+
"type": "boolean",
|
|
3534
|
+
"description": "Whether to email the customer about the fulfilment. Defaults to true."
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
"required": [
|
|
3538
|
+
"store_id",
|
|
3539
|
+
"order_id"
|
|
3540
|
+
]
|
|
3541
|
+
},
|
|
3542
|
+
"security": [
|
|
3543
|
+
{
|
|
3544
|
+
"apiToken": []
|
|
3545
|
+
}
|
|
3546
|
+
],
|
|
3547
|
+
"group": "ecommerce"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"name": "ecommerce_listOrdersV1",
|
|
3551
|
+
"description": "List a store's orders newest first as summaries. Filter by status, payment or fulfilment\nstatus, customer email, order number or a free-text query. Amounts are in the smallest\ncurrency unit. Retrieve a single order for its line items, addresses and fulfilments.",
|
|
3552
|
+
"method": "GET",
|
|
3553
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/orders",
|
|
3554
|
+
"inputSchema": {
|
|
3555
|
+
"type": "object",
|
|
3556
|
+
"properties": {
|
|
3557
|
+
"store_id": {
|
|
3558
|
+
"type": "string",
|
|
3559
|
+
"description": "The ID of the store to list orders for."
|
|
3560
|
+
},
|
|
3561
|
+
"status": {
|
|
3562
|
+
"type": "array",
|
|
3563
|
+
"description": "Order statuses to include.",
|
|
3564
|
+
"items": {
|
|
3565
|
+
"type": "string",
|
|
3566
|
+
"description": "status parameter",
|
|
3567
|
+
"enum": [
|
|
3568
|
+
"pending",
|
|
3569
|
+
"completed",
|
|
3570
|
+
"archived",
|
|
3571
|
+
"canceled",
|
|
3572
|
+
"requires_action"
|
|
3573
|
+
]
|
|
3574
|
+
}
|
|
3575
|
+
},
|
|
3576
|
+
"payment_status": {
|
|
3577
|
+
"type": "array",
|
|
3578
|
+
"description": "Payment statuses to include. A paid order is \"captured\".",
|
|
3579
|
+
"items": {
|
|
3580
|
+
"type": "string",
|
|
3581
|
+
"description": "payment_status parameter",
|
|
3582
|
+
"enum": [
|
|
3583
|
+
"not_paid",
|
|
3584
|
+
"awaiting",
|
|
3585
|
+
"captured",
|
|
3586
|
+
"partially_refunded",
|
|
3587
|
+
"refunded",
|
|
3588
|
+
"canceled",
|
|
3589
|
+
"requires_action",
|
|
3590
|
+
"not_required"
|
|
3591
|
+
]
|
|
3592
|
+
}
|
|
3593
|
+
},
|
|
3594
|
+
"fulfillment_status": {
|
|
3595
|
+
"type": "array",
|
|
3596
|
+
"description": "Fulfilment statuses to include.",
|
|
3597
|
+
"items": {
|
|
3598
|
+
"type": "string",
|
|
3599
|
+
"description": "fulfillment_status parameter",
|
|
3600
|
+
"enum": [
|
|
3601
|
+
"not_fulfilled",
|
|
3602
|
+
"partially_fulfilled",
|
|
3603
|
+
"fulfilled",
|
|
3604
|
+
"partially_shipped",
|
|
3605
|
+
"shipped",
|
|
3606
|
+
"partially_returned",
|
|
3607
|
+
"returned",
|
|
3608
|
+
"canceled",
|
|
3609
|
+
"requires_action"
|
|
3610
|
+
]
|
|
3611
|
+
}
|
|
3612
|
+
},
|
|
3613
|
+
"email": {
|
|
3614
|
+
"type": "string",
|
|
3615
|
+
"description": "Customer email, matched exactly."
|
|
3616
|
+
},
|
|
3617
|
+
"display_id": {
|
|
3618
|
+
"type": "string",
|
|
3619
|
+
"description": "The order number the merchant and customer see."
|
|
3620
|
+
},
|
|
3621
|
+
"q": {
|
|
3622
|
+
"type": "string",
|
|
3623
|
+
"description": "Free-text search over customer name, email, order number and line items."
|
|
3624
|
+
},
|
|
3625
|
+
"created_at_from": {
|
|
3626
|
+
"type": "string",
|
|
3627
|
+
"description": "Earliest creation time to include, inclusive. Accepts a date or ISO date-time (UTC)."
|
|
3628
|
+
},
|
|
3629
|
+
"created_at_to": {
|
|
3630
|
+
"type": "string",
|
|
3631
|
+
"description": "Latest creation time to include, inclusive. A bare date covers that whole day."
|
|
3632
|
+
},
|
|
3633
|
+
"page": {
|
|
3634
|
+
"type": "integer",
|
|
3635
|
+
"description": "Page number"
|
|
3636
|
+
}
|
|
3637
|
+
},
|
|
3638
|
+
"required": [
|
|
3639
|
+
"store_id"
|
|
3640
|
+
]
|
|
3641
|
+
},
|
|
3642
|
+
"security": [
|
|
3643
|
+
{
|
|
3644
|
+
"apiToken": []
|
|
3645
|
+
}
|
|
3646
|
+
],
|
|
3647
|
+
"group": "ecommerce"
|
|
3648
|
+
},
|
|
3649
|
+
{
|
|
3650
|
+
"name": "ecommerce_retrieveAnOrderV1",
|
|
3651
|
+
"description": "Retrieve one order in full: line items (each with the id the fulfil endpoint needs),\naddresses, the totals breakdown and fulfilments with tracking. Amounts are in the\nsmallest currency unit.",
|
|
3652
|
+
"method": "GET",
|
|
3653
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/orders/{order_id}",
|
|
3654
|
+
"inputSchema": {
|
|
3655
|
+
"type": "object",
|
|
3656
|
+
"properties": {
|
|
3657
|
+
"store_id": {
|
|
3658
|
+
"type": "string",
|
|
3659
|
+
"description": "The ID of the store that owns the order."
|
|
3660
|
+
},
|
|
3661
|
+
"order_id": {
|
|
3662
|
+
"type": "string",
|
|
3663
|
+
"description": "The ID of the order to retrieve."
|
|
3664
|
+
}
|
|
3665
|
+
},
|
|
3666
|
+
"required": [
|
|
3667
|
+
"store_id",
|
|
3668
|
+
"order_id"
|
|
3669
|
+
]
|
|
3670
|
+
},
|
|
3671
|
+
"security": [
|
|
3672
|
+
{
|
|
3673
|
+
"apiToken": []
|
|
3674
|
+
}
|
|
3675
|
+
],
|
|
3676
|
+
"group": "ecommerce"
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
"name": "ecommerce_enableManualPaymentMethodV1",
|
|
3680
|
+
"description": "Enable a manual payment method so the store can accept orders without an online payment provider.",
|
|
3681
|
+
"method": "POST",
|
|
3682
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/payment-methods/manual",
|
|
3683
|
+
"inputSchema": {
|
|
3684
|
+
"type": "object",
|
|
3685
|
+
"properties": {
|
|
3686
|
+
"store_id": {
|
|
3687
|
+
"type": "string",
|
|
3688
|
+
"description": "The ID of the store to enable manual payment for."
|
|
3689
|
+
},
|
|
3690
|
+
"title": {
|
|
3691
|
+
"type": "string",
|
|
3692
|
+
"description": "Optional display name shown to customers at checkout."
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
"required": [
|
|
3696
|
+
"store_id"
|
|
3697
|
+
]
|
|
3698
|
+
},
|
|
3699
|
+
"security": [
|
|
3700
|
+
{
|
|
3701
|
+
"apiToken": []
|
|
3702
|
+
}
|
|
3703
|
+
],
|
|
3704
|
+
"group": "ecommerce"
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
"name": "ecommerce_createAPaymentProviderConnectLinkV1",
|
|
3708
|
+
"description": "Create an onboarding link for connecting a payment gateway to the store. Returns the gateway\nonboarding URL for the merchant to open and a deep-link into the store admin.",
|
|
3709
|
+
"method": "POST",
|
|
3710
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/payment-providers/{provider_id}/connect-link",
|
|
3711
|
+
"inputSchema": {
|
|
3712
|
+
"type": "object",
|
|
3713
|
+
"properties": {
|
|
3714
|
+
"store_id": {
|
|
3715
|
+
"type": "string",
|
|
3716
|
+
"description": "The ID of the store to connect the payment provider to."
|
|
3717
|
+
},
|
|
3718
|
+
"provider_id": {
|
|
3719
|
+
"type": "string",
|
|
3720
|
+
"description": "The ID of the payment gateway to connect, e.g. stripe."
|
|
3721
|
+
}
|
|
3722
|
+
},
|
|
3723
|
+
"required": [
|
|
3724
|
+
"store_id",
|
|
3725
|
+
"provider_id"
|
|
3726
|
+
]
|
|
3727
|
+
},
|
|
3728
|
+
"security": [
|
|
3729
|
+
{
|
|
3730
|
+
"apiToken": []
|
|
3731
|
+
}
|
|
3732
|
+
],
|
|
3733
|
+
"group": "ecommerce"
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
"name": "ecommerce_listStorePaymentProvidersV1",
|
|
3737
|
+
"description": "List a store's payment providers, split into providers already connected to the store and\ngateways available to install. Never exposes gateway credentials, secrets, or configuration.",
|
|
3738
|
+
"method": "GET",
|
|
3739
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/payment-providers",
|
|
3740
|
+
"inputSchema": {
|
|
3741
|
+
"type": "object",
|
|
3742
|
+
"properties": {
|
|
3743
|
+
"store_id": {
|
|
3744
|
+
"type": "string",
|
|
3745
|
+
"description": "The ID of the store to list payment providers for."
|
|
3746
|
+
},
|
|
3747
|
+
"include_currency_unsupported": {
|
|
3748
|
+
"type": "boolean",
|
|
3749
|
+
"description": "Include gateways that do not support the store currency in the available list."
|
|
3750
|
+
}
|
|
3751
|
+
},
|
|
3752
|
+
"required": [
|
|
3753
|
+
"store_id"
|
|
3754
|
+
]
|
|
3755
|
+
},
|
|
3756
|
+
"security": [
|
|
3757
|
+
{
|
|
3758
|
+
"apiToken": []
|
|
3759
|
+
}
|
|
3760
|
+
],
|
|
3761
|
+
"group": "ecommerce"
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
"name": "ecommerce_createAProductImageUploadURLV1",
|
|
3765
|
+
"description": "Returns a signed URL to upload a product image to (multipart/form-data POST). Then call the\nattach-image endpoint with the returned object_name to scan and attach it to the product.",
|
|
3766
|
+
"method": "POST",
|
|
3767
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}/images/upload-url",
|
|
3768
|
+
"inputSchema": {
|
|
3769
|
+
"type": "object",
|
|
3770
|
+
"properties": {
|
|
3771
|
+
"store_id": {
|
|
3772
|
+
"type": "string",
|
|
3773
|
+
"description": "The ID of the store the product belongs to."
|
|
3774
|
+
},
|
|
3775
|
+
"product_id": {
|
|
3776
|
+
"type": "string",
|
|
3777
|
+
"description": "The ID of the product the image will be attached to."
|
|
3778
|
+
}
|
|
3779
|
+
},
|
|
3780
|
+
"required": [
|
|
3781
|
+
"store_id",
|
|
3782
|
+
"product_id"
|
|
3783
|
+
]
|
|
3784
|
+
},
|
|
3785
|
+
"security": [
|
|
3786
|
+
{
|
|
3787
|
+
"apiToken": []
|
|
3788
|
+
}
|
|
3789
|
+
],
|
|
3790
|
+
"group": "ecommerce"
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
"name": "ecommerce_deleteAProductV1",
|
|
3794
|
+
"description": "Delete a product and its variants from the store. A subscription product with active\nsubscribers is archived instead of deleted so its data stays available.",
|
|
3795
|
+
"method": "DELETE",
|
|
3796
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}",
|
|
3342
3797
|
"inputSchema": {
|
|
3343
3798
|
"type": "object",
|
|
3344
3799
|
"properties": {
|
|
3345
3800
|
"store_id": {
|
|
3346
3801
|
"type": "string",
|
|
3347
|
-
"description": "The ID of the store
|
|
3802
|
+
"description": "The ID of the store that owns the product."
|
|
3348
3803
|
},
|
|
3349
|
-
"
|
|
3804
|
+
"product_id": {
|
|
3350
3805
|
"type": "string",
|
|
3351
|
-
"description": "
|
|
3806
|
+
"description": "The ID of the product to delete."
|
|
3352
3807
|
}
|
|
3353
3808
|
},
|
|
3354
3809
|
"required": [
|
|
3355
|
-
"store_id"
|
|
3810
|
+
"store_id",
|
|
3811
|
+
"product_id"
|
|
3356
3812
|
]
|
|
3357
3813
|
},
|
|
3358
3814
|
"security": [
|
|
@@ -3363,20 +3819,37 @@ export default [
|
|
|
3363
3819
|
"group": "ecommerce"
|
|
3364
3820
|
},
|
|
3365
3821
|
{
|
|
3366
|
-
"name": "
|
|
3367
|
-
"description": "
|
|
3368
|
-
"method": "
|
|
3369
|
-
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}
|
|
3822
|
+
"name": "ecommerce_updateAProductV1",
|
|
3823
|
+
"description": "Update a product's name, description or status. Set status to published to make it buyable,\ndraft to hide it, or archived to retire it. Variants, prices and inventory are managed\nthrough the variant endpoints, not here. Returns the updated product summary.",
|
|
3824
|
+
"method": "PATCH",
|
|
3825
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}",
|
|
3370
3826
|
"inputSchema": {
|
|
3371
3827
|
"type": "object",
|
|
3372
3828
|
"properties": {
|
|
3373
3829
|
"store_id": {
|
|
3374
3830
|
"type": "string",
|
|
3375
|
-
"description": "The ID of the store the product
|
|
3831
|
+
"description": "The ID of the store that owns the product."
|
|
3376
3832
|
},
|
|
3377
3833
|
"product_id": {
|
|
3378
3834
|
"type": "string",
|
|
3379
|
-
"description": "The ID of the product
|
|
3835
|
+
"description": "The ID of the product to update."
|
|
3836
|
+
},
|
|
3837
|
+
"name": {
|
|
3838
|
+
"type": "string",
|
|
3839
|
+
"description": "The product name."
|
|
3840
|
+
},
|
|
3841
|
+
"description": {
|
|
3842
|
+
"type": "string",
|
|
3843
|
+
"description": "The product description."
|
|
3844
|
+
},
|
|
3845
|
+
"status": {
|
|
3846
|
+
"type": "string",
|
|
3847
|
+
"description": "Set \"published\" to make the product buyable, \"draft\" to hide it, or \"archived\" to retire it.",
|
|
3848
|
+
"enum": [
|
|
3849
|
+
"draft",
|
|
3850
|
+
"published",
|
|
3851
|
+
"archived"
|
|
3852
|
+
]
|
|
3380
3853
|
}
|
|
3381
3854
|
},
|
|
3382
3855
|
"required": [
|
|
@@ -3437,6 +3910,73 @@ export default [
|
|
|
3437
3910
|
],
|
|
3438
3911
|
"group": "ecommerce"
|
|
3439
3912
|
},
|
|
3913
|
+
{
|
|
3914
|
+
"name": "ecommerce_listProductsV1",
|
|
3915
|
+
"description": "List a store's products newest first as lean summaries (name, status, thumbnail, variant\ncount and price range). Prices are integers in the smallest currency unit and live on\nvariants. Filter by status, free text or a set of product ids. Use include=variants to\nembed each product's variants with prices and inventory, and include=media to embed its media.",
|
|
3916
|
+
"method": "GET",
|
|
3917
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products",
|
|
3918
|
+
"inputSchema": {
|
|
3919
|
+
"type": "object",
|
|
3920
|
+
"properties": {
|
|
3921
|
+
"store_id": {
|
|
3922
|
+
"type": "string",
|
|
3923
|
+
"description": "The ID of the store to list products for."
|
|
3924
|
+
},
|
|
3925
|
+
"product_ids": {
|
|
3926
|
+
"type": "array",
|
|
3927
|
+
"description": "Restrict to these product ids. Doubles as a single-product lookup. Up to 200 ids.",
|
|
3928
|
+
"items": {
|
|
3929
|
+
"type": "string",
|
|
3930
|
+
"description": "product_ids parameter"
|
|
3931
|
+
}
|
|
3932
|
+
},
|
|
3933
|
+
"status": {
|
|
3934
|
+
"type": "array",
|
|
3935
|
+
"description": "Product statuses to include.",
|
|
3936
|
+
"items": {
|
|
3937
|
+
"type": "string",
|
|
3938
|
+
"description": "status parameter",
|
|
3939
|
+
"enum": [
|
|
3940
|
+
"draft",
|
|
3941
|
+
"proposed",
|
|
3942
|
+
"published",
|
|
3943
|
+
"rejected",
|
|
3944
|
+
"archived"
|
|
3945
|
+
]
|
|
3946
|
+
}
|
|
3947
|
+
},
|
|
3948
|
+
"q": {
|
|
3949
|
+
"type": "string",
|
|
3950
|
+
"description": "Free-text search over product title and SKU."
|
|
3951
|
+
},
|
|
3952
|
+
"include": {
|
|
3953
|
+
"type": "array",
|
|
3954
|
+
"description": "Opt-in heavy data: \"variants\" embeds each product's variants; \"media\" embeds its media.",
|
|
3955
|
+
"items": {
|
|
3956
|
+
"type": "string",
|
|
3957
|
+
"description": "include parameter",
|
|
3958
|
+
"enum": [
|
|
3959
|
+
"variants",
|
|
3960
|
+
"media"
|
|
3961
|
+
]
|
|
3962
|
+
}
|
|
3963
|
+
},
|
|
3964
|
+
"page": {
|
|
3965
|
+
"type": "integer",
|
|
3966
|
+
"description": "Page number"
|
|
3967
|
+
}
|
|
3968
|
+
},
|
|
3969
|
+
"required": [
|
|
3970
|
+
"store_id"
|
|
3971
|
+
]
|
|
3972
|
+
},
|
|
3973
|
+
"security": [
|
|
3974
|
+
{
|
|
3975
|
+
"apiToken": []
|
|
3976
|
+
}
|
|
3977
|
+
],
|
|
3978
|
+
"group": "ecommerce"
|
|
3979
|
+
},
|
|
3440
3980
|
{
|
|
3441
3981
|
"name": "ecommerce_createPhysicalProductV1",
|
|
3442
3982
|
"description": "Create a published physical product with a single variant priced in the store currency.",
|
|
@@ -3545,8 +4085,8 @@ export default [
|
|
|
3545
4085
|
"group": "ecommerce"
|
|
3546
4086
|
},
|
|
3547
4087
|
{
|
|
3548
|
-
"name": "
|
|
3549
|
-
"description": "Create a
|
|
4088
|
+
"name": "ecommerce_createASalesChannelV1",
|
|
4089
|
+
"description": "Create a sales channel for a store. A \"custom\" channel is headless: build your own frontend and keep\nyour catalog, orders, shipping and payments in sync through the Ecommerce API. A \"quick-link\" channel\nis a hosted one-page store whose handle is auto-generated.",
|
|
3550
4090
|
"method": "POST",
|
|
3551
4091
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
3552
4092
|
"inputSchema": {
|
|
@@ -3558,24 +4098,24 @@ export default [
|
|
|
3558
4098
|
},
|
|
3559
4099
|
"type": {
|
|
3560
4100
|
"type": "string",
|
|
3561
|
-
"description": "Sales channel type.
|
|
4101
|
+
"description": "Sales channel type. \"custom\" is a headless channel: it requires a name and takes an optional public url.\n\"quick-link\" is a one-page store whose handle is auto-generated; it supports neither name nor url.",
|
|
3562
4102
|
"enum": [
|
|
3563
|
-
"custom"
|
|
4103
|
+
"custom",
|
|
4104
|
+
"quick-link"
|
|
3564
4105
|
]
|
|
3565
4106
|
},
|
|
3566
4107
|
"name": {
|
|
3567
4108
|
"type": "string",
|
|
3568
|
-
"description": "Merchant-facing custom name
|
|
4109
|
+
"description": "Merchant-facing custom name. Required for custom channels; not supported for quick-link."
|
|
3569
4110
|
},
|
|
3570
4111
|
"url": {
|
|
3571
4112
|
"type": "string",
|
|
3572
|
-
"description": "Optional public
|
|
4113
|
+
"description": "Optional public url for the channel. Custom channels only; not supported for quick-link."
|
|
3573
4114
|
}
|
|
3574
4115
|
},
|
|
3575
4116
|
"required": [
|
|
3576
4117
|
"store_id",
|
|
3577
|
-
"type"
|
|
3578
|
-
"name"
|
|
4118
|
+
"type"
|
|
3579
4119
|
]
|
|
3580
4120
|
},
|
|
3581
4121
|
"security": [
|
|
@@ -3776,6 +4316,250 @@ export default [
|
|
|
3776
4316
|
],
|
|
3777
4317
|
"group": "ecommerce"
|
|
3778
4318
|
},
|
|
4319
|
+
{
|
|
4320
|
+
"name": "ecommerce_updateProductVariantsInBatchV1",
|
|
4321
|
+
"description": "Update up to 100 existing variants in place by id — title, inventory, stock tracking and\nprices. Variants omitted from the request are left untouched. Prices replace the variant's\nexisting prices in full. Returns the updated variants.",
|
|
4322
|
+
"method": "PATCH",
|
|
4323
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants/batch",
|
|
4324
|
+
"inputSchema": {
|
|
4325
|
+
"type": "object",
|
|
4326
|
+
"properties": {
|
|
4327
|
+
"store_id": {
|
|
4328
|
+
"type": "string",
|
|
4329
|
+
"description": "The ID of the store that owns the product."
|
|
4330
|
+
},
|
|
4331
|
+
"product_id": {
|
|
4332
|
+
"type": "string",
|
|
4333
|
+
"description": "The ID of the product whose variants are being updated."
|
|
4334
|
+
},
|
|
4335
|
+
"variants": {
|
|
4336
|
+
"type": "array",
|
|
4337
|
+
"description": "Variants to update in place by id, up to 100. Variants omitted from the list are left untouched.",
|
|
4338
|
+
"items": {
|
|
4339
|
+
"type": "object",
|
|
4340
|
+
"description": "variants parameter",
|
|
4341
|
+
"properties": {
|
|
4342
|
+
"variant_id": {
|
|
4343
|
+
"type": "string",
|
|
4344
|
+
"description": "The id of the variant to update."
|
|
4345
|
+
},
|
|
4346
|
+
"title": {
|
|
4347
|
+
"type": "string",
|
|
4348
|
+
"description": "The variant title."
|
|
4349
|
+
},
|
|
4350
|
+
"inventory_quantity": {
|
|
4351
|
+
"type": "integer",
|
|
4352
|
+
"description": "Units in stock."
|
|
4353
|
+
},
|
|
4354
|
+
"manage_inventory": {
|
|
4355
|
+
"type": "boolean",
|
|
4356
|
+
"description": "Whether stock is tracked for this variant."
|
|
4357
|
+
},
|
|
4358
|
+
"prices": {
|
|
4359
|
+
"type": "array",
|
|
4360
|
+
"description": "The full list of prices for the variant, replacing the existing ones. A free item is amount: 0.",
|
|
4361
|
+
"items": {
|
|
4362
|
+
"type": "object",
|
|
4363
|
+
"description": "prices parameter",
|
|
4364
|
+
"properties": {
|
|
4365
|
+
"amount": {
|
|
4366
|
+
"type": "integer",
|
|
4367
|
+
"description": "Price in the smallest currency unit (e.g. cents)."
|
|
4368
|
+
},
|
|
4369
|
+
"sale_amount": {
|
|
4370
|
+
"type": "integer",
|
|
4371
|
+
"description": "Optional sale price in the smallest currency unit; must be lower than amount."
|
|
4372
|
+
},
|
|
4373
|
+
"currency": {
|
|
4374
|
+
"type": "string",
|
|
4375
|
+
"description": "ISO 4217 currency code. Defaults to the store's default currency."
|
|
4376
|
+
}
|
|
4377
|
+
},
|
|
4378
|
+
"required": [
|
|
4379
|
+
"amount"
|
|
4380
|
+
]
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4384
|
+
"required": [
|
|
4385
|
+
"variant_id"
|
|
4386
|
+
]
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
"required": [
|
|
4391
|
+
"store_id",
|
|
4392
|
+
"product_id",
|
|
4393
|
+
"variants"
|
|
4394
|
+
]
|
|
4395
|
+
},
|
|
4396
|
+
"security": [
|
|
4397
|
+
{
|
|
4398
|
+
"apiToken": []
|
|
4399
|
+
}
|
|
4400
|
+
],
|
|
4401
|
+
"group": "ecommerce"
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
"name": "ecommerce_deleteAProductVariantV1",
|
|
4405
|
+
"description": "Delete a single variant from the product.",
|
|
4406
|
+
"method": "DELETE",
|
|
4407
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants/{variant_id}",
|
|
4408
|
+
"inputSchema": {
|
|
4409
|
+
"type": "object",
|
|
4410
|
+
"properties": {
|
|
4411
|
+
"store_id": {
|
|
4412
|
+
"type": "string",
|
|
4413
|
+
"description": "The ID of the store that owns the product."
|
|
4414
|
+
},
|
|
4415
|
+
"product_id": {
|
|
4416
|
+
"type": "string",
|
|
4417
|
+
"description": "The ID of the product that owns the variant."
|
|
4418
|
+
},
|
|
4419
|
+
"variant_id": {
|
|
4420
|
+
"type": "string",
|
|
4421
|
+
"description": "The ID of the variant to delete."
|
|
4422
|
+
}
|
|
4423
|
+
},
|
|
4424
|
+
"required": [
|
|
4425
|
+
"store_id",
|
|
4426
|
+
"product_id",
|
|
4427
|
+
"variant_id"
|
|
4428
|
+
]
|
|
4429
|
+
},
|
|
4430
|
+
"security": [
|
|
4431
|
+
{
|
|
4432
|
+
"apiToken": []
|
|
4433
|
+
}
|
|
4434
|
+
],
|
|
4435
|
+
"group": "ecommerce"
|
|
4436
|
+
},
|
|
4437
|
+
{
|
|
4438
|
+
"name": "ecommerce_listProductVariantsV1",
|
|
4439
|
+
"description": "List a product's variants, ordered by rank, with their options, prices and inventory.\nPrices are integers in the smallest currency unit and live on variants.",
|
|
4440
|
+
"method": "GET",
|
|
4441
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants",
|
|
4442
|
+
"inputSchema": {
|
|
4443
|
+
"type": "object",
|
|
4444
|
+
"properties": {
|
|
4445
|
+
"store_id": {
|
|
4446
|
+
"type": "string",
|
|
4447
|
+
"description": "The ID of the store that owns the product."
|
|
4448
|
+
},
|
|
4449
|
+
"product_id": {
|
|
4450
|
+
"type": "string",
|
|
4451
|
+
"description": "The ID of the product to list variants for."
|
|
4452
|
+
},
|
|
4453
|
+
"page": {
|
|
4454
|
+
"type": "integer",
|
|
4455
|
+
"description": "Page number"
|
|
4456
|
+
}
|
|
4457
|
+
},
|
|
4458
|
+
"required": [
|
|
4459
|
+
"store_id",
|
|
4460
|
+
"product_id"
|
|
4461
|
+
]
|
|
4462
|
+
},
|
|
4463
|
+
"security": [
|
|
4464
|
+
{
|
|
4465
|
+
"apiToken": []
|
|
4466
|
+
}
|
|
4467
|
+
],
|
|
4468
|
+
"group": "ecommerce"
|
|
4469
|
+
},
|
|
4470
|
+
{
|
|
4471
|
+
"name": "ecommerce_createAProductVariantV1",
|
|
4472
|
+
"description": "Add a variant to a product along one or more option dimensions (e.g. Size, Color). Options\nmissing from the product are created automatically; provide a value for every option the\nproduct already has. Prices are integers in the smallest currency unit and default to the\nstore currency. Returns the created variant.",
|
|
4473
|
+
"method": "POST",
|
|
4474
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants",
|
|
4475
|
+
"inputSchema": {
|
|
4476
|
+
"type": "object",
|
|
4477
|
+
"properties": {
|
|
4478
|
+
"store_id": {
|
|
4479
|
+
"type": "string",
|
|
4480
|
+
"description": "The ID of the store that owns the product."
|
|
4481
|
+
},
|
|
4482
|
+
"product_id": {
|
|
4483
|
+
"type": "string",
|
|
4484
|
+
"description": "The ID of the product to add the variant to."
|
|
4485
|
+
},
|
|
4486
|
+
"title": {
|
|
4487
|
+
"type": "string",
|
|
4488
|
+
"description": "The variant title. Defaults to the option values joined with ' / ' (e.g. 'Red / L')."
|
|
4489
|
+
},
|
|
4490
|
+
"sku": {
|
|
4491
|
+
"type": "string",
|
|
4492
|
+
"description": "The variant SKU."
|
|
4493
|
+
},
|
|
4494
|
+
"options": {
|
|
4495
|
+
"type": "array",
|
|
4496
|
+
"description": "Option name/value pairs that distinguish this variant, e.g. [{name: Size, value: M}]. Options missing from the product are created; provide a value for every option the product already has.",
|
|
4497
|
+
"items": {
|
|
4498
|
+
"type": "object",
|
|
4499
|
+
"description": "options parameter",
|
|
4500
|
+
"properties": {
|
|
4501
|
+
"name": {
|
|
4502
|
+
"type": "string",
|
|
4503
|
+
"description": "Option name, e.g. Size."
|
|
4504
|
+
},
|
|
4505
|
+
"value": {
|
|
4506
|
+
"type": "string",
|
|
4507
|
+
"description": "Option value for this variant, e.g. M."
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
"required": [
|
|
4511
|
+
"name",
|
|
4512
|
+
"value"
|
|
4513
|
+
]
|
|
4514
|
+
}
|
|
4515
|
+
},
|
|
4516
|
+
"prices": {
|
|
4517
|
+
"type": "array",
|
|
4518
|
+
"description": "Prices per currency. Amounts are integers in the smallest currency unit. A free item is amount: 0.",
|
|
4519
|
+
"items": {
|
|
4520
|
+
"type": "object",
|
|
4521
|
+
"description": "prices parameter",
|
|
4522
|
+
"properties": {
|
|
4523
|
+
"amount": {
|
|
4524
|
+
"type": "integer",
|
|
4525
|
+
"description": "Price in the smallest currency unit (e.g. cents)."
|
|
4526
|
+
},
|
|
4527
|
+
"sale_amount": {
|
|
4528
|
+
"type": "integer",
|
|
4529
|
+
"description": "Optional sale price in the smallest currency unit; must be lower than amount."
|
|
4530
|
+
},
|
|
4531
|
+
"currency": {
|
|
4532
|
+
"type": "string",
|
|
4533
|
+
"description": "ISO 4217 currency code. Defaults to the store's default currency when omitted."
|
|
4534
|
+
}
|
|
4535
|
+
},
|
|
4536
|
+
"required": [
|
|
4537
|
+
"amount"
|
|
4538
|
+
]
|
|
4539
|
+
}
|
|
4540
|
+
},
|
|
4541
|
+
"inventory_quantity": {
|
|
4542
|
+
"type": "integer",
|
|
4543
|
+
"description": "Units in stock. Defaults to 0."
|
|
4544
|
+
},
|
|
4545
|
+
"manage_inventory": {
|
|
4546
|
+
"type": "boolean",
|
|
4547
|
+
"description": "Whether stock is tracked for this variant. Defaults to false."
|
|
4548
|
+
}
|
|
4549
|
+
},
|
|
4550
|
+
"required": [
|
|
4551
|
+
"store_id",
|
|
4552
|
+
"product_id",
|
|
4553
|
+
"options"
|
|
4554
|
+
]
|
|
4555
|
+
},
|
|
4556
|
+
"security": [
|
|
4557
|
+
{
|
|
4558
|
+
"apiToken": []
|
|
4559
|
+
}
|
|
4560
|
+
],
|
|
4561
|
+
"group": "ecommerce"
|
|
4562
|
+
},
|
|
3779
4563
|
{
|
|
3780
4564
|
"name": "horizons_createWebsiteV1",
|
|
3781
4565
|
"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",
|
|
@@ -4817,7 +5601,7 @@ export default [
|
|
|
4817
5601
|
},
|
|
4818
5602
|
{
|
|
4819
5603
|
"name": "hosting_startNode_jsBuildV1",
|
|
4820
|
-
"description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThe `source_type` must be `archive` and `source_options.archive_path` must point to an\nexisting archive file on the server (relative to the website document root).\nUse the `Generate Upload URL` endpoint to obtain credentials and upload the archive first.\n\nTo auto-detect build settings from an archive before starting, first call the\n`Get Node.js Build Settings from Archive` endpoint
|
|
5604
|
+
"description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThe `source_type` must be `archive` and `source_options.archive_path` must point to an\nexisting archive file on the server (relative to the website document root).\nUse the `Generate Upload URL` endpoint to obtain credentials and upload the archive first.\n\nTo auto-detect build settings from an archive before starting, first call the\n`Get Node.js Build Settings from Archive` endpoint.\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
|
|
4821
5605
|
"method": "POST",
|
|
4822
5606
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
|
|
4823
5607
|
"inputSchema": {
|
|
@@ -4930,7 +5714,7 @@ export default [
|
|
|
4930
5714
|
},
|
|
4931
5715
|
{
|
|
4932
5716
|
"name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
|
|
4933
|
-
"description": "Auto-detect Node.js build settings from a package.json inside an archive already on the server.\n\nUse this before calling `Start Node.js Build` to preview what settings will be used,\nor to let the user review and override values (framework, node version, root directory,\noutput directory, build script) before committing to a build.\n\nThe archive must already be present on the website's file storage. Use the\n`Generate Upload URL` endpoint to obtain credentials and upload the archive first
|
|
5717
|
+
"description": "Auto-detect Node.js build settings from a package.json inside an archive already on the server.\n\nUse this before calling `Start Node.js Build` to preview what settings will be used,\nor to let the user review and override values (framework, node version, root directory,\noutput directory, build script) before committing to a build.\n\nThe archive must already be present on the website's file storage. Use the\n`Generate Upload URL` endpoint to obtain credentials and upload the archive first.",
|
|
4934
5718
|
"method": "GET",
|
|
4935
5719
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive",
|
|
4936
5720
|
"inputSchema": {
|