hostinger-api-sdk 1.5.1 → 1.21.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 +18917 -8154
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13394 -6243
- package/dist/api.js +10470 -3788
- 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 +13394 -6243
- package/dist/esm/api.js +10463 -3867
- 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/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.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,186 @@
|
|
|
1
|
+
# MailAliasesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAliasV1**](#createaliasv1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/aliases | Create alias|
|
|
8
|
+
|[**deleteAliasV1**](#deletealiasv1) | **DELETE** /api/mail/v1/aliases/{aliasId} | Delete alias|
|
|
9
|
+
|[**listAliasesV1**](#listaliasesv1) | **GET** /api/mail/v1/orders/{orderId}/aliases | List aliases|
|
|
10
|
+
|
|
11
|
+
# **createAliasV1**
|
|
12
|
+
> MailV1AliasesAliasResource createAliasV1(mailV1SchemaCreateAliasRequestSchema)
|
|
13
|
+
|
|
14
|
+
Create an alias for the given mailbox. The alias address is formed from the given local part and the domain of the mailbox. Messages sent to the alias are delivered to the mailbox.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
MailAliasesApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
MailV1SchemaCreateAliasRequestSchema
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new MailAliasesApi(configuration);
|
|
27
|
+
|
|
28
|
+
let mailboxId: string; //Mailbox resource ID (default to undefined)
|
|
29
|
+
let mailV1SchemaCreateAliasRequestSchema: MailV1SchemaCreateAliasRequestSchema; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.createAliasV1(
|
|
32
|
+
mailboxId,
|
|
33
|
+
mailV1SchemaCreateAliasRequestSchema
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **mailV1SchemaCreateAliasRequestSchema** | **MailV1SchemaCreateAliasRequestSchema**| | |
|
|
42
|
+
| **mailboxId** | [**string**] | Mailbox resource ID | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**MailV1AliasesAliasResource**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[apiToken](../README.md#apiToken)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**201** | Created response | - |
|
|
63
|
+
|**401** | Unauthenticated response | - |
|
|
64
|
+
|**404** | Error response | - |
|
|
65
|
+
|**409** | Error response | - |
|
|
66
|
+
|**422** | Error response | - |
|
|
67
|
+
|**500** | Error response | - |
|
|
68
|
+
|
|
69
|
+
[[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)
|
|
70
|
+
|
|
71
|
+
# **deleteAliasV1**
|
|
72
|
+
> CommonSuccessEmptyResource deleteAliasV1()
|
|
73
|
+
|
|
74
|
+
Delete an alias. Messages sent to the alias address are no longer delivered to the mailbox.
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
MailAliasesApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from 'hostinger-api-sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new MailAliasesApi(configuration);
|
|
86
|
+
|
|
87
|
+
let aliasId: string; //Alias resource ID (default to undefined)
|
|
88
|
+
|
|
89
|
+
const { status, data } = await apiInstance.deleteAliasV1(
|
|
90
|
+
aliasId
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **aliasId** | [**string**] | Alias resource ID | defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
**CommonSuccessEmptyResource**
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[apiToken](../README.md#apiToken)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: application/json
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
| Status code | Description | Response headers |
|
|
117
|
+
|-------------|-------------|------------------|
|
|
118
|
+
|**200** | Success response | - |
|
|
119
|
+
|**401** | Unauthenticated response | - |
|
|
120
|
+
|**404** | Error response | - |
|
|
121
|
+
|**422** | Error response | - |
|
|
122
|
+
|**500** | Error response | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
126
|
+
# **listAliasesV1**
|
|
127
|
+
> MailListAliasesV1200Response listAliasesV1()
|
|
128
|
+
|
|
129
|
+
Retrieve a paginated list of aliases across all mailboxes of a mail order.
|
|
130
|
+
|
|
131
|
+
### Example
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
import {
|
|
135
|
+
MailAliasesApi,
|
|
136
|
+
Configuration
|
|
137
|
+
} from 'hostinger-api-sdk';
|
|
138
|
+
|
|
139
|
+
const configuration = new Configuration();
|
|
140
|
+
const apiInstance = new MailAliasesApi(configuration);
|
|
141
|
+
|
|
142
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
143
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
144
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
145
|
+
|
|
146
|
+
const { status, data } = await apiInstance.listAliasesV1(
|
|
147
|
+
orderId,
|
|
148
|
+
page,
|
|
149
|
+
perPage
|
|
150
|
+
);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
158
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
159
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Return type
|
|
163
|
+
|
|
164
|
+
**MailListAliasesV1200Response**
|
|
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
|
+
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# MailAutorepliesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAutoreplyV1**](#createautoreplyv1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/autoreplies | Create autoreply|
|
|
8
|
+
|[**deleteAutoreplyV1**](#deleteautoreplyv1) | **DELETE** /api/mail/v1/autoreplies/{autoreplyId} | Delete autoreply|
|
|
9
|
+
|[**listAutorepliesV1**](#listautorepliesv1) | **GET** /api/mail/v1/orders/{orderId}/autoreplies | List autoreplies|
|
|
10
|
+
|[**updateAutoreplyV1**](#updateautoreplyv1) | **PUT** /api/mail/v1/autoreplies/{autoreplyId} | Update autoreply|
|
|
11
|
+
|
|
12
|
+
# **createAutoreplyV1**
|
|
13
|
+
> MailV1AutorepliesAutoreplyResource createAutoreplyV1(mailV1SchemaUpsertAutoreplyRequestSchema)
|
|
14
|
+
|
|
15
|
+
Create an automatic reply for the given mailbox. A mailbox can have only one autoreply. Omit `starts_at` to activate the autoreply immediately and omit `ends_at` to keep it active indefinitely.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
MailAutorepliesApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
MailV1SchemaUpsertAutoreplyRequestSchema
|
|
24
|
+
} from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
28
|
+
|
|
29
|
+
let mailboxId: string; //Mailbox resource ID (default to undefined)
|
|
30
|
+
let mailV1SchemaUpsertAutoreplyRequestSchema: MailV1SchemaUpsertAutoreplyRequestSchema; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.createAutoreplyV1(
|
|
33
|
+
mailboxId,
|
|
34
|
+
mailV1SchemaUpsertAutoreplyRequestSchema
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **mailV1SchemaUpsertAutoreplyRequestSchema** | **MailV1SchemaUpsertAutoreplyRequestSchema**| | |
|
|
43
|
+
| **mailboxId** | [**string**] | Mailbox resource ID | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**MailV1AutorepliesAutoreplyResource**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiToken](../README.md#apiToken)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**201** | Created response | - |
|
|
64
|
+
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**404** | Error response | - |
|
|
66
|
+
|**409** | Error response | - |
|
|
67
|
+
|**422** | Error response | - |
|
|
68
|
+
|**500** | Error response | - |
|
|
69
|
+
|
|
70
|
+
[[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)
|
|
71
|
+
|
|
72
|
+
# **deleteAutoreplyV1**
|
|
73
|
+
> CommonSuccessEmptyResource deleteAutoreplyV1()
|
|
74
|
+
|
|
75
|
+
Delete the autoreply of a mailbox. The mailbox stops sending automatic replies immediately.
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
MailAutorepliesApi,
|
|
82
|
+
Configuration
|
|
83
|
+
} from 'hostinger-api-sdk';
|
|
84
|
+
|
|
85
|
+
const configuration = new Configuration();
|
|
86
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
87
|
+
|
|
88
|
+
let autoreplyId: string; //Autoreply resource ID (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.deleteAutoreplyV1(
|
|
91
|
+
autoreplyId
|
|
92
|
+
);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
|Name | Type | Description | Notes|
|
|
98
|
+
|------------- | ------------- | ------------- | -------------|
|
|
99
|
+
| **autoreplyId** | [**string**] | Autoreply resource ID | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**CommonSuccessEmptyResource**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[apiToken](../README.md#apiToken)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Success response | - |
|
|
120
|
+
|**401** | Unauthenticated response | - |
|
|
121
|
+
|**404** | Error response | - |
|
|
122
|
+
|**422** | Error response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
127
|
+
# **listAutorepliesV1**
|
|
128
|
+
> MailListAutorepliesV1200Response listAutorepliesV1()
|
|
129
|
+
|
|
130
|
+
Retrieve a paginated list of autoreplies across all mailboxes of a mail order.
|
|
131
|
+
|
|
132
|
+
### Example
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import {
|
|
136
|
+
MailAutorepliesApi,
|
|
137
|
+
Configuration
|
|
138
|
+
} from 'hostinger-api-sdk';
|
|
139
|
+
|
|
140
|
+
const configuration = new Configuration();
|
|
141
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
142
|
+
|
|
143
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
144
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
145
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
146
|
+
|
|
147
|
+
const { status, data } = await apiInstance.listAutorepliesV1(
|
|
148
|
+
orderId,
|
|
149
|
+
page,
|
|
150
|
+
perPage
|
|
151
|
+
);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
|Name | Type | Description | Notes|
|
|
157
|
+
|------------- | ------------- | ------------- | -------------|
|
|
158
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
159
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
160
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
**MailListAutorepliesV1200Response**
|
|
166
|
+
|
|
167
|
+
### Authorization
|
|
168
|
+
|
|
169
|
+
[apiToken](../README.md#apiToken)
|
|
170
|
+
|
|
171
|
+
### HTTP request headers
|
|
172
|
+
|
|
173
|
+
- **Content-Type**: Not defined
|
|
174
|
+
- **Accept**: application/json
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### HTTP response details
|
|
178
|
+
| Status code | Description | Response headers |
|
|
179
|
+
|-------------|-------------|------------------|
|
|
180
|
+
|**200** | Success response | - |
|
|
181
|
+
|**401** | Unauthenticated response | - |
|
|
182
|
+
|**404** | Error response | - |
|
|
183
|
+
|**422** | Error response | - |
|
|
184
|
+
|**500** | Error response | - |
|
|
185
|
+
|
|
186
|
+
[[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)
|
|
187
|
+
|
|
188
|
+
# **updateAutoreplyV1**
|
|
189
|
+
> MailV1AutorepliesAutoreplyResource updateAutoreplyV1(mailV1SchemaUpsertAutoreplyRequestSchema)
|
|
190
|
+
|
|
191
|
+
Replace the autoreply with the given content and schedule. Omitted optional fields are cleared: omit `starts_at` to activate the autoreply immediately and omit `ends_at` to keep it active indefinitely.
|
|
192
|
+
|
|
193
|
+
### Example
|
|
194
|
+
|
|
195
|
+
```typescript
|
|
196
|
+
import {
|
|
197
|
+
MailAutorepliesApi,
|
|
198
|
+
Configuration,
|
|
199
|
+
MailV1SchemaUpsertAutoreplyRequestSchema
|
|
200
|
+
} from 'hostinger-api-sdk';
|
|
201
|
+
|
|
202
|
+
const configuration = new Configuration();
|
|
203
|
+
const apiInstance = new MailAutorepliesApi(configuration);
|
|
204
|
+
|
|
205
|
+
let autoreplyId: string; //Autoreply resource ID (default to undefined)
|
|
206
|
+
let mailV1SchemaUpsertAutoreplyRequestSchema: MailV1SchemaUpsertAutoreplyRequestSchema; //
|
|
207
|
+
|
|
208
|
+
const { status, data } = await apiInstance.updateAutoreplyV1(
|
|
209
|
+
autoreplyId,
|
|
210
|
+
mailV1SchemaUpsertAutoreplyRequestSchema
|
|
211
|
+
);
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
|Name | Type | Description | Notes|
|
|
217
|
+
|------------- | ------------- | ------------- | -------------|
|
|
218
|
+
| **mailV1SchemaUpsertAutoreplyRequestSchema** | **MailV1SchemaUpsertAutoreplyRequestSchema**| | |
|
|
219
|
+
| **autoreplyId** | [**string**] | Autoreply resource ID | defaults to undefined|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**MailV1AutorepliesAutoreplyResource**
|
|
225
|
+
|
|
226
|
+
### Authorization
|
|
227
|
+
|
|
228
|
+
[apiToken](../README.md#apiToken)
|
|
229
|
+
|
|
230
|
+
### HTTP request headers
|
|
231
|
+
|
|
232
|
+
- **Content-Type**: application/json
|
|
233
|
+
- **Accept**: application/json
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
| Status code | Description | Response headers |
|
|
238
|
+
|-------------|-------------|------------------|
|
|
239
|
+
|**200** | Success response | - |
|
|
240
|
+
|**401** | Unauthenticated response | - |
|
|
241
|
+
|**404** | Error response | - |
|
|
242
|
+
|**422** | Error response | - |
|
|
243
|
+
|**500** | Error response | - |
|
|
244
|
+
|
|
245
|
+
[[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)
|
|
246
|
+
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
# MailCatchallsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createCatchAllV1**](#createcatchallv1) | **POST** /api/mail/v1/mailboxes/{mailboxId}/catchalls | Create catch-all|
|
|
8
|
+
|[**deleteCatchAllV1**](#deletecatchallv1) | **DELETE** /api/mail/v1/catchalls/{catchallId} | Delete catch-all|
|
|
9
|
+
|[**listCatchAllsV1**](#listcatchallsv1) | **GET** /api/mail/v1/orders/{orderId}/catchalls | List catch-alls|
|
|
10
|
+
|[**resendCatchAllConfirmationV1**](#resendcatchallconfirmationv1) | **POST** /api/mail/v1/catchalls/{catchallId}/confirmation/resend | Resend catch-all confirmation|
|
|
11
|
+
|
|
12
|
+
# **createCatchAllV1**
|
|
13
|
+
> MailV1CatchallsCatchallResource createCatchAllV1()
|
|
14
|
+
|
|
15
|
+
Create a catch-all that routes all messages sent to unknown addresses of the domain to the given mailbox. The mailbox address receives a confirmation email and the catch-all becomes active only after it is confirmed. A domain can have only one catch-all.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
MailCatchallsApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new MailCatchallsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let mailboxId: string; //Mailbox resource ID (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createCatchAllV1(
|
|
31
|
+
mailboxId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **mailboxId** | [**string**] | Mailbox resource ID | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**MailV1CatchallsCatchallResource**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[apiToken](../README.md#apiToken)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**201** | Created response | - |
|
|
60
|
+
|**401** | Unauthenticated response | - |
|
|
61
|
+
|**404** | Error response | - |
|
|
62
|
+
|**409** | Error response | - |
|
|
63
|
+
|**422** | Error response | - |
|
|
64
|
+
|**500** | Error response | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **deleteCatchAllV1**
|
|
69
|
+
> CommonSuccessEmptyResource deleteCatchAllV1()
|
|
70
|
+
|
|
71
|
+
Delete a catch-all. Messages sent to unknown addresses of the domain are no longer routed to the mailbox.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
MailCatchallsApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from 'hostinger-api-sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new MailCatchallsApi(configuration);
|
|
83
|
+
|
|
84
|
+
let catchallId: string; //Catch-all resource ID (default to undefined)
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.deleteCatchAllV1(
|
|
87
|
+
catchallId
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **catchallId** | [**string**] | Catch-all resource ID | defaults to undefined|
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Return type
|
|
99
|
+
|
|
100
|
+
**CommonSuccessEmptyResource**
|
|
101
|
+
|
|
102
|
+
### Authorization
|
|
103
|
+
|
|
104
|
+
[apiToken](../README.md#apiToken)
|
|
105
|
+
|
|
106
|
+
### HTTP request headers
|
|
107
|
+
|
|
108
|
+
- **Content-Type**: Not defined
|
|
109
|
+
- **Accept**: application/json
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### HTTP response details
|
|
113
|
+
| Status code | Description | Response headers |
|
|
114
|
+
|-------------|-------------|------------------|
|
|
115
|
+
|**200** | Success response | - |
|
|
116
|
+
|**401** | Unauthenticated response | - |
|
|
117
|
+
|**404** | Error response | - |
|
|
118
|
+
|**422** | Error response | - |
|
|
119
|
+
|**500** | Error response | - |
|
|
120
|
+
|
|
121
|
+
[[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)
|
|
122
|
+
|
|
123
|
+
# **listCatchAllsV1**
|
|
124
|
+
> MailListCatchAllsV1200Response listCatchAllsV1()
|
|
125
|
+
|
|
126
|
+
Retrieve a paginated list of catch-alls across all mailboxes of a mail order.
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
MailCatchallsApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from 'hostinger-api-sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new MailCatchallsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
140
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
141
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.listCatchAllsV1(
|
|
144
|
+
orderId,
|
|
145
|
+
page,
|
|
146
|
+
perPage
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
155
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
156
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**MailListCatchAllsV1200Response**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[apiToken](../README.md#apiToken)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### HTTP response details
|
|
174
|
+
| Status code | Description | Response headers |
|
|
175
|
+
|-------------|-------------|------------------|
|
|
176
|
+
|**200** | Success response | - |
|
|
177
|
+
|**401** | Unauthenticated response | - |
|
|
178
|
+
|**404** | Error response | - |
|
|
179
|
+
|**422** | Error response | - |
|
|
180
|
+
|**500** | Error response | - |
|
|
181
|
+
|
|
182
|
+
[[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)
|
|
183
|
+
|
|
184
|
+
# **resendCatchAllConfirmationV1**
|
|
185
|
+
> CommonSuccessEmptyResource resendCatchAllConfirmationV1()
|
|
186
|
+
|
|
187
|
+
Resend the confirmation email to the mailbox address of an unconfirmed catch-all.
|
|
188
|
+
|
|
189
|
+
### Example
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
import {
|
|
193
|
+
MailCatchallsApi,
|
|
194
|
+
Configuration
|
|
195
|
+
} from 'hostinger-api-sdk';
|
|
196
|
+
|
|
197
|
+
const configuration = new Configuration();
|
|
198
|
+
const apiInstance = new MailCatchallsApi(configuration);
|
|
199
|
+
|
|
200
|
+
let catchallId: string; //Catch-all resource ID (default to undefined)
|
|
201
|
+
|
|
202
|
+
const { status, data } = await apiInstance.resendCatchAllConfirmationV1(
|
|
203
|
+
catchallId
|
|
204
|
+
);
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Parameters
|
|
208
|
+
|
|
209
|
+
|Name | Type | Description | Notes|
|
|
210
|
+
|------------- | ------------- | ------------- | -------------|
|
|
211
|
+
| **catchallId** | [**string**] | Catch-all resource ID | defaults to undefined|
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Return type
|
|
215
|
+
|
|
216
|
+
**CommonSuccessEmptyResource**
|
|
217
|
+
|
|
218
|
+
### Authorization
|
|
219
|
+
|
|
220
|
+
[apiToken](../README.md#apiToken)
|
|
221
|
+
|
|
222
|
+
### HTTP request headers
|
|
223
|
+
|
|
224
|
+
- **Content-Type**: Not defined
|
|
225
|
+
- **Accept**: application/json
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### HTTP response details
|
|
229
|
+
| Status code | Description | Response headers |
|
|
230
|
+
|-------------|-------------|------------------|
|
|
231
|
+
|**200** | Success response | - |
|
|
232
|
+
|**401** | Unauthenticated response | - |
|
|
233
|
+
|**404** | Error response | - |
|
|
234
|
+
|**409** | Error response | - |
|
|
235
|
+
|**422** | Error response | - |
|
|
236
|
+
|**500** | Error response | - |
|
|
237
|
+
|
|
238
|
+
[[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)
|
|
239
|
+
|