hostinger-api-mcp 1.18.0 → 1.20.0
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 +97 -2
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +338 -0
- package/src/core/tools/all.ts +338 -0
- package/src/core/tools/mail.js +338 -0
- package/src/core/tools/mail.ts +338 -0
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +219 -0
package/types.d.ts
CHANGED
|
@@ -2841,6 +2841,73 @@ complete. The response returns before the removal finishes.
|
|
|
2841
2841
|
response: any; // Response structure will depend on the API
|
|
2842
2842
|
};
|
|
2843
2843
|
|
|
2844
|
+
/**
|
|
2845
|
+
* Create an API token for the given mail order. The token grants access
|
|
2846
|
+
to the [Hostinger Email API](https://api.mail.hostinger.com/), where
|
|
2847
|
+
you can provision and manage the mailboxes it is scoped to.
|
|
2848
|
+
|
|
2849
|
+
The plaintext token is returned only in this response, never again.
|
|
2850
|
+
A maximum of 10 tokens can exist per order. Use
|
|
2851
|
+
`scope.has_all_mailboxes` to cover all current and future mailboxes,
|
|
2852
|
+
or list specific mailboxes in `scope.mailbox_ids`.
|
|
2853
|
+
*/
|
|
2854
|
+
"mail_createAPITokenV1": {
|
|
2855
|
+
params: {
|
|
2856
|
+
/**
|
|
2857
|
+
* Order resource ID
|
|
2858
|
+
*/
|
|
2859
|
+
orderId: string;
|
|
2860
|
+
/**
|
|
2861
|
+
* Human-readable label for this token
|
|
2862
|
+
*/
|
|
2863
|
+
name: string;
|
|
2864
|
+
/**
|
|
2865
|
+
* Mailbox scope this token can access
|
|
2866
|
+
*/
|
|
2867
|
+
scope: object;
|
|
2868
|
+
};
|
|
2869
|
+
response: any; // Response structure will depend on the API
|
|
2870
|
+
};
|
|
2871
|
+
|
|
2872
|
+
/**
|
|
2873
|
+
* Revoke an API token. The token immediately loses access to the
|
|
2874
|
+
[Hostinger Email API](https://api.mail.hostinger.com/). This action
|
|
2875
|
+
cannot be undone.
|
|
2876
|
+
*/
|
|
2877
|
+
"mail_revokeAPITokenV1": {
|
|
2878
|
+
params: {
|
|
2879
|
+
/**
|
|
2880
|
+
* API token ID (returned when the token was created)
|
|
2881
|
+
*/
|
|
2882
|
+
tokenId: string;
|
|
2883
|
+
};
|
|
2884
|
+
response: any; // Response structure will depend on the API
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2887
|
+
/**
|
|
2888
|
+
* Retrieve a paginated list of
|
|
2889
|
+
[Hostinger Email API](https://api.mail.hostinger.com/) tokens across
|
|
2890
|
+
all your mail orders, optionally filtered by order. Plaintext tokens
|
|
2891
|
+
are never included; they are returned only when a token is created.
|
|
2892
|
+
*/
|
|
2893
|
+
"mail_listAPITokensV1": {
|
|
2894
|
+
params: {
|
|
2895
|
+
/**
|
|
2896
|
+
* Filter tokens by order resource ID. Single value or comma-separated list.
|
|
2897
|
+
*/
|
|
2898
|
+
order_id?: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Page number
|
|
2901
|
+
*/
|
|
2902
|
+
page?: number;
|
|
2903
|
+
/**
|
|
2904
|
+
* Number of items per page
|
|
2905
|
+
*/
|
|
2906
|
+
per_page?: number;
|
|
2907
|
+
};
|
|
2908
|
+
response: any; // Response structure will depend on the API
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2844
2911
|
/**
|
|
2845
2912
|
* Retrieve paginated access logs for the domain attached to the given
|
|
2846
2913
|
mail order. Supports filtering by account, date range, protocol,
|
|
@@ -3255,6 +3322,158 @@ every delivery.
|
|
|
3255
3322
|
response: any; // Response structure will depend on the API
|
|
3256
3323
|
};
|
|
3257
3324
|
|
|
3325
|
+
/**
|
|
3326
|
+
* Retrieve a paginated list of webhook delivery logs for the given mail
|
|
3327
|
+
order, including delivery outcome, duration, and retry counts.
|
|
3328
|
+
Supports filtering by mailbox.
|
|
3329
|
+
*/
|
|
3330
|
+
"mail_listWebhookDeliveryLogsV1": {
|
|
3331
|
+
params: {
|
|
3332
|
+
/**
|
|
3333
|
+
* Order resource ID
|
|
3334
|
+
*/
|
|
3335
|
+
orderId: string;
|
|
3336
|
+
/**
|
|
3337
|
+
* Filter by the mailbox resource ID the webhooks are attached to
|
|
3338
|
+
*/
|
|
3339
|
+
mailbox_id?: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Page number
|
|
3342
|
+
*/
|
|
3343
|
+
page?: number;
|
|
3344
|
+
/**
|
|
3345
|
+
* Number of items per page
|
|
3346
|
+
*/
|
|
3347
|
+
per_page?: number;
|
|
3348
|
+
};
|
|
3349
|
+
response: any; // Response structure will depend on the API
|
|
3350
|
+
};
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* Retrieve the details of a single webhook. The webhook secret is never
|
|
3354
|
+
included; it is returned only when a webhook is created or its secret
|
|
3355
|
+
is regenerated.
|
|
3356
|
+
*/
|
|
3357
|
+
"mail_getWebhookV1": {
|
|
3358
|
+
params: {
|
|
3359
|
+
/**
|
|
3360
|
+
* Webhook ID (returned when the webhook was created)
|
|
3361
|
+
*/
|
|
3362
|
+
webhookId: string;
|
|
3363
|
+
};
|
|
3364
|
+
response: any; // Response structure will depend on the API
|
|
3365
|
+
};
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* Permanently delete a webhook. This action cannot be undone. After
|
|
3369
|
+
deletion the URL no longer receives event notifications.
|
|
3370
|
+
*/
|
|
3371
|
+
"mail_deleteWebhookV1": {
|
|
3372
|
+
params: {
|
|
3373
|
+
/**
|
|
3374
|
+
* Webhook ID (returned when the webhook was created)
|
|
3375
|
+
*/
|
|
3376
|
+
webhookId: string;
|
|
3377
|
+
};
|
|
3378
|
+
response: any; // Response structure will depend on the API
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Partially update a webhook. Only the fields included in the request
|
|
3383
|
+
body are changed; omitted fields retain their current values. Pass
|
|
3384
|
+
`"description": null` to clear the description.
|
|
3385
|
+
*/
|
|
3386
|
+
"mail_updateWebhookV1": {
|
|
3387
|
+
params: {
|
|
3388
|
+
/**
|
|
3389
|
+
* Webhook ID (returned when the webhook was created)
|
|
3390
|
+
*/
|
|
3391
|
+
webhookId: string;
|
|
3392
|
+
/**
|
|
3393
|
+
* New human-readable name for the webhook
|
|
3394
|
+
*/
|
|
3395
|
+
name?: string;
|
|
3396
|
+
/**
|
|
3397
|
+
* New description, or null to clear it
|
|
3398
|
+
*/
|
|
3399
|
+
description?: string;
|
|
3400
|
+
/**
|
|
3401
|
+
* Replaces the full list of subscribed events
|
|
3402
|
+
*/
|
|
3403
|
+
events?: array;
|
|
3404
|
+
/**
|
|
3405
|
+
* New status for the webhook
|
|
3406
|
+
*/
|
|
3407
|
+
status?: string;
|
|
3408
|
+
/**
|
|
3409
|
+
* New URL to deliver events to
|
|
3410
|
+
*/
|
|
3411
|
+
url?: string;
|
|
3412
|
+
};
|
|
3413
|
+
response: any; // Response structure will depend on the API
|
|
3414
|
+
};
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Retrieve a paginated list of webhooks belonging to the given mail
|
|
3418
|
+
order. Supports filtering by mailbox and status. The webhook secret
|
|
3419
|
+
is never included; it is returned only when a webhook is created or
|
|
3420
|
+
its secret is regenerated.
|
|
3421
|
+
*/
|
|
3422
|
+
"mail_listWebhooksV1": {
|
|
3423
|
+
params: {
|
|
3424
|
+
/**
|
|
3425
|
+
* Order resource ID
|
|
3426
|
+
*/
|
|
3427
|
+
orderId: string;
|
|
3428
|
+
/**
|
|
3429
|
+
* Filter by the mailbox resource ID the webhooks are attached to
|
|
3430
|
+
*/
|
|
3431
|
+
mailbox_id?: string;
|
|
3432
|
+
/**
|
|
3433
|
+
* Filter webhooks by status
|
|
3434
|
+
*/
|
|
3435
|
+
status?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* Page number
|
|
3438
|
+
*/
|
|
3439
|
+
page?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* Number of items per page
|
|
3442
|
+
*/
|
|
3443
|
+
per_page?: number;
|
|
3444
|
+
};
|
|
3445
|
+
response: any; // Response structure will depend on the API
|
|
3446
|
+
};
|
|
3447
|
+
|
|
3448
|
+
/**
|
|
3449
|
+
* Regenerate the secret of a webhook. The previous secret is
|
|
3450
|
+
immediately invalidated. The new secret is returned only in this
|
|
3451
|
+
response and is sent as a bearer token with every delivery.
|
|
3452
|
+
*/
|
|
3453
|
+
"mail_regenerateWebhookSecretV1": {
|
|
3454
|
+
params: {
|
|
3455
|
+
/**
|
|
3456
|
+
* Webhook ID (returned when the webhook was created)
|
|
3457
|
+
*/
|
|
3458
|
+
webhookId: string;
|
|
3459
|
+
};
|
|
3460
|
+
response: any; // Response structure will depend on the API
|
|
3461
|
+
};
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* Send a test delivery to the webhook URL and return the result. Test
|
|
3465
|
+
requests are rate limited upstream.
|
|
3466
|
+
*/
|
|
3467
|
+
"mail_testWebhookV1": {
|
|
3468
|
+
params: {
|
|
3469
|
+
/**
|
|
3470
|
+
* Webhook ID (returned when the webhook was created)
|
|
3471
|
+
*/
|
|
3472
|
+
webhookId: string;
|
|
3473
|
+
};
|
|
3474
|
+
response: any; // Response structure will depend on the API
|
|
3475
|
+
};
|
|
3476
|
+
|
|
3258
3477
|
/**
|
|
3259
3478
|
* Delete a contact with the specified UUID.
|
|
3260
3479
|
|