hostinger-api-sdk 1.5.1 → 1.22.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/.github/workflows/build-release.yaml +29 -1
- package/README.md +2 -2
- package/api.ts +19008 -8147
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13441 -6234
- package/dist/api.js +10911 -4155
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +13441 -6234
- package/dist/esm/api.js +10589 -3919
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingCacheApi.md +61 -0
- package/docs/AgencyHostingCronJobsApi.md +183 -0
- package/docs/AgencyHostingDatabasesApi.md +305 -0
- package/docs/AgencyHostingDatacentersApi.md +61 -0
- package/docs/AgencyHostingDomainsApi.md +245 -0
- package/docs/AgencyHostingFilesApi.md +66 -0
- package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
- package/docs/AgencyHostingOrdersApi.md +64 -0
- package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
- package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
- package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
- package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
- package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
- package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
- package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
- package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
- package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
- package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
- package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
- package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
- package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
- package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
- package/docs/AgencyHostingWebsitesApi.md +228 -0
- package/docs/AgencyHostingWordPressApi.md +174 -0
- package/docs/BillingCatalogApi.md +2 -2
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingSubscriptionsApi.md +59 -0
- package/docs/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
- package/docs/BillingV1SubscriptionRenewalRenewRequest.md +22 -0
- package/docs/DomainsForwardingApi.md +59 -0
- package/docs/DomainsPortfolioApi.md +108 -0
- package/docs/DomainsTransferApi.md +108 -0
- package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
- package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
- package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
- package/docs/DomainsV1TransferTransferResource.md +26 -0
- package/docs/HostingDatabasesApi.md +63 -63
- package/docs/HostingNodeJSApi.md +122 -0
- package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
- package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
- package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
- package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +59 -0
- package/docs/MailAPITokensApi.md +185 -0
- package/docs/MailAliasesApi.md +186 -0
- package/docs/MailAutorepliesApi.md +246 -0
- package/docs/MailCatchallsApi.md +239 -0
- package/docs/MailForwardersApi.md +304 -0
- package/docs/MailListAPITokensV1200Response.md +22 -0
- package/docs/MailListAccessLogsV1200Response.md +22 -0
- package/docs/MailListActionLogsV1200Response.md +22 -0
- package/docs/MailListAliasesV1200Response.md +22 -0
- package/docs/MailListAutorepliesV1200Response.md +22 -0
- package/docs/MailListCatchAllsV1200Response.md +22 -0
- package/docs/MailListForwardersV1200Response.md +22 -0
- package/docs/MailListInboundLogsV1200Response.md +22 -0
- package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
- package/docs/MailListMailboxesV1200Response.md +22 -0
- package/docs/MailListOrdersV1200Response.md +22 -0
- package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
- package/docs/MailListWebhooksV1200Response.md +22 -0
- package/docs/MailLogsApi.md +410 -0
- package/docs/MailMailboxesApi.md +253 -0
- package/docs/MailOrdersApi.md +132 -0
- package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
- package/docs/MailV1AliasesAliasResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
- package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
- package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
- package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
- package/docs/MailV1CatchallsCatchallResource.md +32 -0
- package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
- package/docs/MailV1ForwardersForwarderResource.md +34 -0
- package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
- package/docs/MailV1LogsActionActionLogResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
- package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
- package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
- package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
- package/docs/MailV1MailboxesMailboxResource.md +38 -0
- package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
- package/docs/MailV1OrdersOrderDomainResource.md +22 -0
- package/docs/MailV1OrdersOrderPlanResource.md +22 -0
- package/docs/MailV1OrdersOrderResource.md +36 -0
- package/docs/MailV1OrdersPlanDomainResource.md +30 -0
- package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
- package/docs/MailV1OrdersPlanResource.md +26 -0
- package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
- package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
- package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
- package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
- package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
- package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
- package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
- package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
- package/docs/MailV1WebhooksWebhookResource.md +36 -0
- package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
- package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
- package/docs/MailWebhooksApi.md +488 -0
- package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
- package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
# MailWebhooksApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createWebhookV1**](#createwebhookv1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/webhooks | Create webhook|
|
|
8
|
+
|[**deleteWebhookV1**](#deletewebhookv1) | **DELETE** /api/mail/v1/webhooks/{webhookId} | Delete webhook|
|
|
9
|
+
|[**getWebhookV1**](#getwebhookv1) | **GET** /api/mail/v1/webhooks/{webhookId} | Get webhook|
|
|
10
|
+
|[**listWebhookDeliveryLogsV1**](#listwebhookdeliverylogsv1) | **GET** /api/mail/v1/orders/{orderId}/webhooks/delivery-logs | List webhook delivery logs|
|
|
11
|
+
|[**listWebhooksV1**](#listwebhooksv1) | **GET** /api/mail/v1/orders/{orderId}/webhooks | List webhooks|
|
|
12
|
+
|[**regenerateWebhookSecretV1**](#regeneratewebhooksecretv1) | **POST** /api/mail/v1/webhooks/{webhookId}/regenerate-secret | Regenerate webhook secret|
|
|
13
|
+
|[**testWebhookV1**](#testwebhookv1) | **POST** /api/mail/v1/webhooks/{webhookId}/test | Test webhook|
|
|
14
|
+
|[**updateWebhookV1**](#updatewebhookv1) | **PATCH** /api/mail/v1/webhooks/{webhookId} | Update webhook|
|
|
15
|
+
|
|
16
|
+
# **createWebhookV1**
|
|
17
|
+
> MailV1WebhooksWebhookCreatedResource createWebhookV1(mailV1SchemaCreateWebhookRequestSchema)
|
|
18
|
+
|
|
19
|
+
Create a webhook for the given mailbox. The generated secret is returned only in this response and is sent as a bearer token with every delivery.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
MailWebhooksApi,
|
|
26
|
+
Configuration,
|
|
27
|
+
MailV1SchemaCreateWebhookRequestSchema
|
|
28
|
+
} from 'hostinger-api-sdk';
|
|
29
|
+
|
|
30
|
+
const configuration = new Configuration();
|
|
31
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
32
|
+
|
|
33
|
+
let mailboxId: string; //Mailbox resource ID (default to undefined)
|
|
34
|
+
let mailV1SchemaCreateWebhookRequestSchema: MailV1SchemaCreateWebhookRequestSchema; //
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.createWebhookV1(
|
|
37
|
+
mailboxId,
|
|
38
|
+
mailV1SchemaCreateWebhookRequestSchema
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|Name | Type | Description | Notes|
|
|
45
|
+
|------------- | ------------- | ------------- | -------------|
|
|
46
|
+
| **mailV1SchemaCreateWebhookRequestSchema** | **MailV1SchemaCreateWebhookRequestSchema**| | |
|
|
47
|
+
| **mailboxId** | [**string**] | Mailbox resource ID | defaults to undefined|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
**MailV1WebhooksWebhookCreatedResource**
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[apiToken](../README.md#apiToken)
|
|
57
|
+
|
|
58
|
+
### HTTP request headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: application/json
|
|
61
|
+
- **Accept**: application/json
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
| Status code | Description | Response headers |
|
|
66
|
+
|-------------|-------------|------------------|
|
|
67
|
+
|**201** | Created response | - |
|
|
68
|
+
|**401** | Unauthenticated response | - |
|
|
69
|
+
|**400** | Error response | - |
|
|
70
|
+
|**404** | Error response | - |
|
|
71
|
+
|**409** | Error response | - |
|
|
72
|
+
|**422** | Error response | - |
|
|
73
|
+
|**500** | Error response | - |
|
|
74
|
+
|
|
75
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
|
+
|
|
77
|
+
# **deleteWebhookV1**
|
|
78
|
+
> CommonSuccessEmptyResource deleteWebhookV1()
|
|
79
|
+
|
|
80
|
+
Permanently delete a webhook. This action cannot be undone. After deletion the URL no longer receives event notifications.
|
|
81
|
+
|
|
82
|
+
### Example
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
import {
|
|
86
|
+
MailWebhooksApi,
|
|
87
|
+
Configuration
|
|
88
|
+
} from 'hostinger-api-sdk';
|
|
89
|
+
|
|
90
|
+
const configuration = new Configuration();
|
|
91
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
92
|
+
|
|
93
|
+
let webhookId: string; //Webhook ID (returned when the webhook was created) (default to undefined)
|
|
94
|
+
|
|
95
|
+
const { status, data } = await apiInstance.deleteWebhookV1(
|
|
96
|
+
webhookId
|
|
97
|
+
);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
|Name | Type | Description | Notes|
|
|
103
|
+
|------------- | ------------- | ------------- | -------------|
|
|
104
|
+
| **webhookId** | [**string**] | Webhook ID (returned when the webhook was created) | defaults to undefined|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**CommonSuccessEmptyResource**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[apiToken](../README.md#apiToken)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | Success response | - |
|
|
125
|
+
|**401** | Unauthenticated response | - |
|
|
126
|
+
|**404** | Error response | - |
|
|
127
|
+
|**422** | Error response | - |
|
|
128
|
+
|**500** | Error response | - |
|
|
129
|
+
|
|
130
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
131
|
+
|
|
132
|
+
# **getWebhookV1**
|
|
133
|
+
> MailV1WebhooksWebhookResource getWebhookV1()
|
|
134
|
+
|
|
135
|
+
Retrieve the details of a single webhook. The webhook secret is never included; it is returned only when a webhook is created or its secret is regenerated.
|
|
136
|
+
|
|
137
|
+
### Example
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
import {
|
|
141
|
+
MailWebhooksApi,
|
|
142
|
+
Configuration
|
|
143
|
+
} from 'hostinger-api-sdk';
|
|
144
|
+
|
|
145
|
+
const configuration = new Configuration();
|
|
146
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
147
|
+
|
|
148
|
+
let webhookId: string; //Webhook ID (returned when the webhook was created) (default to undefined)
|
|
149
|
+
|
|
150
|
+
const { status, data } = await apiInstance.getWebhookV1(
|
|
151
|
+
webhookId
|
|
152
|
+
);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
|Name | Type | Description | Notes|
|
|
158
|
+
|------------- | ------------- | ------------- | -------------|
|
|
159
|
+
| **webhookId** | [**string**] | Webhook ID (returned when the webhook was created) | defaults to undefined|
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Return type
|
|
163
|
+
|
|
164
|
+
**MailV1WebhooksWebhookResource**
|
|
165
|
+
|
|
166
|
+
### Authorization
|
|
167
|
+
|
|
168
|
+
[apiToken](../README.md#apiToken)
|
|
169
|
+
|
|
170
|
+
### HTTP request headers
|
|
171
|
+
|
|
172
|
+
- **Content-Type**: Not defined
|
|
173
|
+
- **Accept**: application/json
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### HTTP response details
|
|
177
|
+
| Status code | Description | Response headers |
|
|
178
|
+
|-------------|-------------|------------------|
|
|
179
|
+
|**200** | Success response | - |
|
|
180
|
+
|**401** | Unauthenticated response | - |
|
|
181
|
+
|**404** | Error response | - |
|
|
182
|
+
|**422** | Error response | - |
|
|
183
|
+
|**500** | Error response | - |
|
|
184
|
+
|
|
185
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
186
|
+
|
|
187
|
+
# **listWebhookDeliveryLogsV1**
|
|
188
|
+
> MailListWebhookDeliveryLogsV1200Response listWebhookDeliveryLogsV1()
|
|
189
|
+
|
|
190
|
+
Retrieve a paginated list of webhook delivery logs for the given mail order, including delivery outcome, duration, and retry counts. Supports filtering by mailbox.
|
|
191
|
+
|
|
192
|
+
### Example
|
|
193
|
+
|
|
194
|
+
```typescript
|
|
195
|
+
import {
|
|
196
|
+
MailWebhooksApi,
|
|
197
|
+
Configuration
|
|
198
|
+
} from 'hostinger-api-sdk';
|
|
199
|
+
|
|
200
|
+
const configuration = new Configuration();
|
|
201
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
202
|
+
|
|
203
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
204
|
+
let mailboxId: string; //Filter by the mailbox resource ID the webhooks are attached to (optional) (default to undefined)
|
|
205
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
206
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
207
|
+
|
|
208
|
+
const { status, data } = await apiInstance.listWebhookDeliveryLogsV1(
|
|
209
|
+
orderId,
|
|
210
|
+
mailboxId,
|
|
211
|
+
page,
|
|
212
|
+
perPage
|
|
213
|
+
);
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parameters
|
|
217
|
+
|
|
218
|
+
|Name | Type | Description | Notes|
|
|
219
|
+
|------------- | ------------- | ------------- | -------------|
|
|
220
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
221
|
+
| **mailboxId** | [**string**] | Filter by the mailbox resource ID the webhooks are attached to | (optional) defaults to undefined|
|
|
222
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
223
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
**MailListWebhookDeliveryLogsV1200Response**
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[apiToken](../README.md#apiToken)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: Not defined
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### HTTP response details
|
|
241
|
+
| Status code | Description | Response headers |
|
|
242
|
+
|-------------|-------------|------------------|
|
|
243
|
+
|**200** | Success response | - |
|
|
244
|
+
|**401** | Unauthenticated response | - |
|
|
245
|
+
|**404** | Error response | - |
|
|
246
|
+
|**422** | Error response | - |
|
|
247
|
+
|**500** | Error response | - |
|
|
248
|
+
|
|
249
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
250
|
+
|
|
251
|
+
# **listWebhooksV1**
|
|
252
|
+
> MailListWebhooksV1200Response listWebhooksV1()
|
|
253
|
+
|
|
254
|
+
Retrieve a paginated list of webhooks belonging to the given mail order. Supports filtering by mailbox and status. The webhook secret is never included; it is returned only when a webhook is created or its secret is regenerated.
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
import {
|
|
260
|
+
MailWebhooksApi,
|
|
261
|
+
Configuration
|
|
262
|
+
} from 'hostinger-api-sdk';
|
|
263
|
+
|
|
264
|
+
const configuration = new Configuration();
|
|
265
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
266
|
+
|
|
267
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
268
|
+
let mailboxId: string; //Filter by the mailbox resource ID the webhooks are attached to (optional) (default to undefined)
|
|
269
|
+
let status: 'active' | 'disabled' | 'paused'; //Filter webhooks by status (optional) (default to undefined)
|
|
270
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
271
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
272
|
+
|
|
273
|
+
const { status, data } = await apiInstance.listWebhooksV1(
|
|
274
|
+
orderId,
|
|
275
|
+
mailboxId,
|
|
276
|
+
status,
|
|
277
|
+
page,
|
|
278
|
+
perPage
|
|
279
|
+
);
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Parameters
|
|
283
|
+
|
|
284
|
+
|Name | Type | Description | Notes|
|
|
285
|
+
|------------- | ------------- | ------------- | -------------|
|
|
286
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
287
|
+
| **mailboxId** | [**string**] | Filter by the mailbox resource ID the webhooks are attached to | (optional) defaults to undefined|
|
|
288
|
+
| **status** | [**'active' | 'disabled' | 'paused'**]**Array<'active' | 'disabled' | 'paused'>** | Filter webhooks by status | (optional) defaults to undefined|
|
|
289
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
290
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### Return type
|
|
294
|
+
|
|
295
|
+
**MailListWebhooksV1200Response**
|
|
296
|
+
|
|
297
|
+
### Authorization
|
|
298
|
+
|
|
299
|
+
[apiToken](../README.md#apiToken)
|
|
300
|
+
|
|
301
|
+
### HTTP request headers
|
|
302
|
+
|
|
303
|
+
- **Content-Type**: Not defined
|
|
304
|
+
- **Accept**: application/json
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### HTTP response details
|
|
308
|
+
| Status code | Description | Response headers |
|
|
309
|
+
|-------------|-------------|------------------|
|
|
310
|
+
|**200** | Success response | - |
|
|
311
|
+
|**401** | Unauthenticated response | - |
|
|
312
|
+
|**404** | Error response | - |
|
|
313
|
+
|**422** | Error response | - |
|
|
314
|
+
|**500** | Error response | - |
|
|
315
|
+
|
|
316
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
317
|
+
|
|
318
|
+
# **regenerateWebhookSecretV1**
|
|
319
|
+
> MailV1WebhooksWebhookSecretResource regenerateWebhookSecretV1()
|
|
320
|
+
|
|
321
|
+
Regenerate the secret of a webhook. The previous secret is immediately invalidated. The new secret is returned only in this response and is sent as a bearer token with every delivery.
|
|
322
|
+
|
|
323
|
+
### Example
|
|
324
|
+
|
|
325
|
+
```typescript
|
|
326
|
+
import {
|
|
327
|
+
MailWebhooksApi,
|
|
328
|
+
Configuration
|
|
329
|
+
} from 'hostinger-api-sdk';
|
|
330
|
+
|
|
331
|
+
const configuration = new Configuration();
|
|
332
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
333
|
+
|
|
334
|
+
let webhookId: string; //Webhook ID (returned when the webhook was created) (default to undefined)
|
|
335
|
+
|
|
336
|
+
const { status, data } = await apiInstance.regenerateWebhookSecretV1(
|
|
337
|
+
webhookId
|
|
338
|
+
);
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Parameters
|
|
342
|
+
|
|
343
|
+
|Name | Type | Description | Notes|
|
|
344
|
+
|------------- | ------------- | ------------- | -------------|
|
|
345
|
+
| **webhookId** | [**string**] | Webhook ID (returned when the webhook was created) | defaults to undefined|
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
### Return type
|
|
349
|
+
|
|
350
|
+
**MailV1WebhooksWebhookSecretResource**
|
|
351
|
+
|
|
352
|
+
### Authorization
|
|
353
|
+
|
|
354
|
+
[apiToken](../README.md#apiToken)
|
|
355
|
+
|
|
356
|
+
### HTTP request headers
|
|
357
|
+
|
|
358
|
+
- **Content-Type**: Not defined
|
|
359
|
+
- **Accept**: application/json
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
### HTTP response details
|
|
363
|
+
| Status code | Description | Response headers |
|
|
364
|
+
|-------------|-------------|------------------|
|
|
365
|
+
|**200** | Success response | - |
|
|
366
|
+
|**401** | Unauthenticated response | - |
|
|
367
|
+
|**404** | Error response | - |
|
|
368
|
+
|**422** | Error response | - |
|
|
369
|
+
|**500** | Error response | - |
|
|
370
|
+
|
|
371
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
372
|
+
|
|
373
|
+
# **testWebhookV1**
|
|
374
|
+
> MailV1WebhooksWebhookTestResultResource testWebhookV1()
|
|
375
|
+
|
|
376
|
+
Send a test delivery to the webhook URL and return the result. Test requests are rate limited upstream.
|
|
377
|
+
|
|
378
|
+
### Example
|
|
379
|
+
|
|
380
|
+
```typescript
|
|
381
|
+
import {
|
|
382
|
+
MailWebhooksApi,
|
|
383
|
+
Configuration
|
|
384
|
+
} from 'hostinger-api-sdk';
|
|
385
|
+
|
|
386
|
+
const configuration = new Configuration();
|
|
387
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
388
|
+
|
|
389
|
+
let webhookId: string; //Webhook ID (returned when the webhook was created) (default to undefined)
|
|
390
|
+
|
|
391
|
+
const { status, data } = await apiInstance.testWebhookV1(
|
|
392
|
+
webhookId
|
|
393
|
+
);
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Parameters
|
|
397
|
+
|
|
398
|
+
|Name | Type | Description | Notes|
|
|
399
|
+
|------------- | ------------- | ------------- | -------------|
|
|
400
|
+
| **webhookId** | [**string**] | Webhook ID (returned when the webhook was created) | defaults to undefined|
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
### Return type
|
|
404
|
+
|
|
405
|
+
**MailV1WebhooksWebhookTestResultResource**
|
|
406
|
+
|
|
407
|
+
### Authorization
|
|
408
|
+
|
|
409
|
+
[apiToken](../README.md#apiToken)
|
|
410
|
+
|
|
411
|
+
### HTTP request headers
|
|
412
|
+
|
|
413
|
+
- **Content-Type**: Not defined
|
|
414
|
+
- **Accept**: application/json
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
### HTTP response details
|
|
418
|
+
| Status code | Description | Response headers |
|
|
419
|
+
|-------------|-------------|------------------|
|
|
420
|
+
|**200** | Success response | - |
|
|
421
|
+
|**401** | Unauthenticated response | - |
|
|
422
|
+
|**404** | Error response | - |
|
|
423
|
+
|**422** | Error response | - |
|
|
424
|
+
|**429** | Error response | - |
|
|
425
|
+
|**500** | Error response | - |
|
|
426
|
+
|
|
427
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
428
|
+
|
|
429
|
+
# **updateWebhookV1**
|
|
430
|
+
> MailV1WebhooksWebhookResource updateWebhookV1(mailV1SchemaUpdateWebhookRequestSchema)
|
|
431
|
+
|
|
432
|
+
Partially update a webhook. Only the fields included in the request body are changed; omitted fields retain their current values. Pass `\"description\": null` to clear the description.
|
|
433
|
+
|
|
434
|
+
### Example
|
|
435
|
+
|
|
436
|
+
```typescript
|
|
437
|
+
import {
|
|
438
|
+
MailWebhooksApi,
|
|
439
|
+
Configuration,
|
|
440
|
+
MailV1SchemaUpdateWebhookRequestSchema
|
|
441
|
+
} from 'hostinger-api-sdk';
|
|
442
|
+
|
|
443
|
+
const configuration = new Configuration();
|
|
444
|
+
const apiInstance = new MailWebhooksApi(configuration);
|
|
445
|
+
|
|
446
|
+
let webhookId: string; //Webhook ID (returned when the webhook was created) (default to undefined)
|
|
447
|
+
let mailV1SchemaUpdateWebhookRequestSchema: MailV1SchemaUpdateWebhookRequestSchema; //
|
|
448
|
+
|
|
449
|
+
const { status, data } = await apiInstance.updateWebhookV1(
|
|
450
|
+
webhookId,
|
|
451
|
+
mailV1SchemaUpdateWebhookRequestSchema
|
|
452
|
+
);
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### Parameters
|
|
456
|
+
|
|
457
|
+
|Name | Type | Description | Notes|
|
|
458
|
+
|------------- | ------------- | ------------- | -------------|
|
|
459
|
+
| **mailV1SchemaUpdateWebhookRequestSchema** | **MailV1SchemaUpdateWebhookRequestSchema**| | |
|
|
460
|
+
| **webhookId** | [**string**] | Webhook ID (returned when the webhook was created) | defaults to undefined|
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
### Return type
|
|
464
|
+
|
|
465
|
+
**MailV1WebhooksWebhookResource**
|
|
466
|
+
|
|
467
|
+
### Authorization
|
|
468
|
+
|
|
469
|
+
[apiToken](../README.md#apiToken)
|
|
470
|
+
|
|
471
|
+
### HTTP request headers
|
|
472
|
+
|
|
473
|
+
- **Content-Type**: application/json
|
|
474
|
+
- **Accept**: application/json
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
### HTTP response details
|
|
478
|
+
| Status code | Description | Response headers |
|
|
479
|
+
|-------------|-------------|------------------|
|
|
480
|
+
|**200** | Success response | - |
|
|
481
|
+
|**401** | Unauthenticated response | - |
|
|
482
|
+
|**400** | Error response | - |
|
|
483
|
+
|**404** | Error response | - |
|
|
484
|
+
|**422** | Error response | - |
|
|
485
|
+
|**500** | Error response | - |
|
|
486
|
+
|
|
487
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
488
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# WordPressV1InstallationsWordPressMcpDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | JWT used to authenticate against the installation MCP server | [optional] [default to undefined]
|
|
9
|
+
**mcp_url** | **string** | MCP (Model Context Protocol) endpoint URL for the WordPress installation | [optional] [default to undefined]
|
|
10
|
+
**expires_in** | **number** | Token lifetime in seconds from the moment it was issued | [optional] [default to undefined]
|
|
11
|
+
**expires_at** | **string** | Date-time at which the token expires | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { WordPressV1InstallationsWordPressMcpDetailsResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: WordPressV1InstallationsWordPressMcpDetailsResource = {
|
|
19
|
+
token,
|
|
20
|
+
mcp_url,
|
|
21
|
+
expires_in,
|
|
22
|
+
expires_at,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# WordPressV1InstallationsWordPressMcpInstallationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | WordPress installation (software) id | [optional] [default to undefined]
|
|
9
|
+
**username** | **string** | Hosting account username | [optional] [default to undefined]
|
|
10
|
+
**domain** | **string** | Domain the installation belongs to | [optional] [default to undefined]
|
|
11
|
+
**directory** | **string** | Installation directory on the server | [optional] [default to undefined]
|
|
12
|
+
**mcp_details** | [**WordPressV1InstallationsWordPressMcpDetailsResource**](WordPressV1InstallationsWordPressMcpDetailsResource.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { WordPressV1InstallationsWordPressMcpInstallationResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: WordPressV1InstallationsWordPressMcpInstallationResource = {
|
|
20
|
+
id,
|
|
21
|
+
username,
|
|
22
|
+
domain,
|
|
23
|
+
directory,
|
|
24
|
+
mcp_details,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.23.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hostinger-api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.1",
|
|
4
4
|
"description": "Hostinger API TypeScript SDK",
|
|
5
5
|
"author": "Hostinger",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"axios": "^1.8.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "12.11.5 -
|
|
31
|
+
"@types/node": "12.11.5 - 26.1.2",
|
|
32
32
|
"typescript": "^4.0 || ^5.0"
|
|
33
33
|
}
|
|
34
34
|
}
|