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,22 @@
|
|
|
1
|
+
# MailListInboundLogsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<MailV1LogsCommonDeliveryLogResource>**](MailV1LogsCommonDeliveryLogResource.md) | Array of [`Mail.V1.Logs.Common.DeliveryLogResource`](#model/mailv1logscommondeliverylogresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MailListInboundLogsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MailListInboundLogsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# MailListMailboxActionLogsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<MailV1LogsMailboxActionsMailboxActionLogResource>**](MailV1LogsMailboxActionsMailboxActionLogResource.md) | Array of [`Mail.V1.Logs.MailboxActions.MailboxActionLogResource`](#model/mailv1logsmailboxactionsmailboxactionlogresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MailListMailboxActionLogsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MailListMailboxActionLogsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# MailListMailboxesV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<MailV1MailboxesMailboxResource>**](MailV1MailboxesMailboxResource.md) | Array of [`Mail.V1.Mailboxes.MailboxResource`](#model/mailv1mailboxesmailboxresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MailListMailboxesV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MailListMailboxesV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# MailListOrdersV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<MailV1OrdersOrderResource>**](MailV1OrdersOrderResource.md) | Array of [`Mail.V1.Orders.OrderResource`](#model/mailv1ordersorderresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MailListOrdersV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MailListOrdersV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# MailListWebhookDeliveryLogsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<MailV1WebhooksWebhookDeliveryLogResource>**](MailV1WebhooksWebhookDeliveryLogResource.md) | Array of [`Mail.V1.Webhooks.WebhookDeliveryLogResource`](#model/mailv1webhookswebhookdeliverylogresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MailListWebhookDeliveryLogsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MailListWebhookDeliveryLogsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,22 @@
|
|
|
1
|
+
# MailListWebhooksV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<MailV1WebhooksWebhookResource>**](MailV1WebhooksWebhookResource.md) | Array of [`Mail.V1.Webhooks.WebhookResource`](#model/mailv1webhookswebhookresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MailListWebhooksV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MailListWebhooksV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,410 @@
|
|
|
1
|
+
# MailLogsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**listAccessLogsV1**](#listaccesslogsv1) | **GET** /api/mail/v1/orders/{orderId}/logs/access | List access logs|
|
|
8
|
+
|[**listActionLogsV1**](#listactionlogsv1) | **GET** /api/mail/v1/orders/{orderId}/logs/action | List action logs|
|
|
9
|
+
|[**listInboundLogsV1**](#listinboundlogsv1) | **GET** /api/mail/v1/orders/{orderId}/logs/inbound | List inbound logs|
|
|
10
|
+
|[**listMailboxActionLogsV1**](#listmailboxactionlogsv1) | **GET** /api/mail/v1/orders/{orderId}/logs/mailbox-actions | List mailbox action logs|
|
|
11
|
+
|[**listOutboundLogsV1**](#listoutboundlogsv1) | **GET** /api/mail/v1/orders/{orderId}/logs/outbound | List outbound logs|
|
|
12
|
+
|
|
13
|
+
# **listAccessLogsV1**
|
|
14
|
+
> MailListAccessLogsV1200Response listAccessLogsV1()
|
|
15
|
+
|
|
16
|
+
Retrieve paginated access logs for the domain attached to the given mail order. Supports filtering by account, date range, protocol, status, and deletion flag. Results are sorted by timestamp descending.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
MailLogsApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new MailLogsApi(configuration);
|
|
28
|
+
|
|
29
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
30
|
+
let account: string; //Filter log entries by a specific email account (optional) (default to undefined)
|
|
31
|
+
let date: string; //Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. (optional) (default to undefined)
|
|
32
|
+
let fromDate: string; //Date range start (RFC 3339) (optional) (default to undefined)
|
|
33
|
+
let toDate: string; //Date range end (RFC 3339) (optional) (default to undefined)
|
|
34
|
+
let status: 'Successful' | 'Failed'; //Filter log entries by status (optional) (default to undefined)
|
|
35
|
+
let protocol: 'imap' | 'pop3' | 'smtp'; //Filter access log entries by protocol (optional) (default to undefined)
|
|
36
|
+
let hasDeletions: boolean; //Filter access log entries by whether the session had deletions (optional) (default to undefined)
|
|
37
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
38
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
39
|
+
|
|
40
|
+
const { status, data } = await apiInstance.listAccessLogsV1(
|
|
41
|
+
orderId,
|
|
42
|
+
account,
|
|
43
|
+
date,
|
|
44
|
+
fromDate,
|
|
45
|
+
toDate,
|
|
46
|
+
status,
|
|
47
|
+
protocol,
|
|
48
|
+
hasDeletions,
|
|
49
|
+
page,
|
|
50
|
+
perPage
|
|
51
|
+
);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Parameters
|
|
55
|
+
|
|
56
|
+
|Name | Type | Description | Notes|
|
|
57
|
+
|------------- | ------------- | ------------- | -------------|
|
|
58
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
59
|
+
| **account** | [**string**] | Filter log entries by a specific email account | (optional) defaults to undefined|
|
|
60
|
+
| **date** | [**string**] | Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. | (optional) defaults to undefined|
|
|
61
|
+
| **fromDate** | [**string**] | Date range start (RFC 3339) | (optional) defaults to undefined|
|
|
62
|
+
| **toDate** | [**string**] | Date range end (RFC 3339) | (optional) defaults to undefined|
|
|
63
|
+
| **status** | [**'Successful' | 'Failed'**]**Array<'Successful' | 'Failed'>** | Filter log entries by status | (optional) defaults to undefined|
|
|
64
|
+
| **protocol** | [**'imap' | 'pop3' | 'smtp'**]**Array<'imap' | 'pop3' | 'smtp'>** | Filter access log entries by protocol | (optional) defaults to undefined|
|
|
65
|
+
| **hasDeletions** | [**boolean**] | Filter access log entries by whether the session had deletions | (optional) defaults to undefined|
|
|
66
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
67
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
**MailListAccessLogsV1200Response**
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
[apiToken](../README.md#apiToken)
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: Not defined
|
|
81
|
+
- **Accept**: application/json
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### HTTP response details
|
|
85
|
+
| Status code | Description | Response headers |
|
|
86
|
+
|-------------|-------------|------------------|
|
|
87
|
+
|**200** | Success response | - |
|
|
88
|
+
|**401** | Unauthenticated response | - |
|
|
89
|
+
|**404** | Error response | - |
|
|
90
|
+
|**422** | Error response | - |
|
|
91
|
+
|**500** | Error response | - |
|
|
92
|
+
|
|
93
|
+
[[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)
|
|
94
|
+
|
|
95
|
+
# **listActionLogsV1**
|
|
96
|
+
> MailListActionLogsV1200Response listActionLogsV1()
|
|
97
|
+
|
|
98
|
+
Retrieve paginated account action logs (administrative and user actions) for the given mail order. Supports filtering by account, date range, and status. Results are sorted by timestamp descending.
|
|
99
|
+
|
|
100
|
+
### Example
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import {
|
|
104
|
+
MailLogsApi,
|
|
105
|
+
Configuration
|
|
106
|
+
} from 'hostinger-api-sdk';
|
|
107
|
+
|
|
108
|
+
const configuration = new Configuration();
|
|
109
|
+
const apiInstance = new MailLogsApi(configuration);
|
|
110
|
+
|
|
111
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
112
|
+
let account: string; //Filter log entries by a specific email account (optional) (default to undefined)
|
|
113
|
+
let date: string; //Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. (optional) (default to undefined)
|
|
114
|
+
let fromDate: string; //Date range start (RFC 3339) (optional) (default to undefined)
|
|
115
|
+
let toDate: string; //Date range end (RFC 3339) (optional) (default to undefined)
|
|
116
|
+
let status: 'Successful' | 'Failed'; //Filter log entries by status (optional) (default to undefined)
|
|
117
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
118
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
119
|
+
|
|
120
|
+
const { status, data } = await apiInstance.listActionLogsV1(
|
|
121
|
+
orderId,
|
|
122
|
+
account,
|
|
123
|
+
date,
|
|
124
|
+
fromDate,
|
|
125
|
+
toDate,
|
|
126
|
+
status,
|
|
127
|
+
page,
|
|
128
|
+
perPage
|
|
129
|
+
);
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Parameters
|
|
133
|
+
|
|
134
|
+
|Name | Type | Description | Notes|
|
|
135
|
+
|------------- | ------------- | ------------- | -------------|
|
|
136
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
137
|
+
| **account** | [**string**] | Filter log entries by a specific email account | (optional) defaults to undefined|
|
|
138
|
+
| **date** | [**string**] | Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. | (optional) defaults to undefined|
|
|
139
|
+
| **fromDate** | [**string**] | Date range start (RFC 3339) | (optional) defaults to undefined|
|
|
140
|
+
| **toDate** | [**string**] | Date range end (RFC 3339) | (optional) defaults to undefined|
|
|
141
|
+
| **status** | [**'Successful' | 'Failed'**]**Array<'Successful' | 'Failed'>** | Filter log entries by status | (optional) defaults to undefined|
|
|
142
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
143
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**MailListActionLogsV1200Response**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
[apiToken](../README.md#apiToken)
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### HTTP response details
|
|
161
|
+
| Status code | Description | Response headers |
|
|
162
|
+
|-------------|-------------|------------------|
|
|
163
|
+
|**200** | Success response | - |
|
|
164
|
+
|**401** | Unauthenticated response | - |
|
|
165
|
+
|**404** | Error response | - |
|
|
166
|
+
|**422** | Error response | - |
|
|
167
|
+
|**500** | Error response | - |
|
|
168
|
+
|
|
169
|
+
[[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)
|
|
170
|
+
|
|
171
|
+
# **listInboundLogsV1**
|
|
172
|
+
> MailListInboundLogsV1200Response listInboundLogsV1()
|
|
173
|
+
|
|
174
|
+
Retrieve paginated inbound (received mail) delivery logs for the domain attached to the given mail order. Supports filtering by account, date range, status, sender, and recipient. Results are sorted by timestamp descending.
|
|
175
|
+
|
|
176
|
+
### Example
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import {
|
|
180
|
+
MailLogsApi,
|
|
181
|
+
Configuration
|
|
182
|
+
} from 'hostinger-api-sdk';
|
|
183
|
+
|
|
184
|
+
const configuration = new Configuration();
|
|
185
|
+
const apiInstance = new MailLogsApi(configuration);
|
|
186
|
+
|
|
187
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
188
|
+
let account: string; //Filter log entries by a specific email account (optional) (default to undefined)
|
|
189
|
+
let date: string; //Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. (optional) (default to undefined)
|
|
190
|
+
let fromDate: string; //Date range start (RFC 3339) (optional) (default to undefined)
|
|
191
|
+
let toDate: string; //Date range end (RFC 3339) (optional) (default to undefined)
|
|
192
|
+
let status: 'Successful' | 'Failed'; //Filter log entries by status (optional) (default to undefined)
|
|
193
|
+
let sender: string; //Filter log entries by sender. Accepts a full email address or a domain. (optional) (default to undefined)
|
|
194
|
+
let recipient: string; //Filter log entries by recipient. Accepts a full email address or a domain. (optional) (default to undefined)
|
|
195
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
196
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
197
|
+
|
|
198
|
+
const { status, data } = await apiInstance.listInboundLogsV1(
|
|
199
|
+
orderId,
|
|
200
|
+
account,
|
|
201
|
+
date,
|
|
202
|
+
fromDate,
|
|
203
|
+
toDate,
|
|
204
|
+
status,
|
|
205
|
+
sender,
|
|
206
|
+
recipient,
|
|
207
|
+
page,
|
|
208
|
+
perPage
|
|
209
|
+
);
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Parameters
|
|
213
|
+
|
|
214
|
+
|Name | Type | Description | Notes|
|
|
215
|
+
|------------- | ------------- | ------------- | -------------|
|
|
216
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
217
|
+
| **account** | [**string**] | Filter log entries by a specific email account | (optional) defaults to undefined|
|
|
218
|
+
| **date** | [**string**] | Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. | (optional) defaults to undefined|
|
|
219
|
+
| **fromDate** | [**string**] | Date range start (RFC 3339) | (optional) defaults to undefined|
|
|
220
|
+
| **toDate** | [**string**] | Date range end (RFC 3339) | (optional) defaults to undefined|
|
|
221
|
+
| **status** | [**'Successful' | 'Failed'**]**Array<'Successful' | 'Failed'>** | Filter log entries by status | (optional) defaults to undefined|
|
|
222
|
+
| **sender** | [**string**] | Filter log entries by sender. Accepts a full email address or a domain. | (optional) defaults to undefined|
|
|
223
|
+
| **recipient** | [**string**] | Filter log entries by recipient. Accepts a full email address or a domain. | (optional) defaults to undefined|
|
|
224
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
225
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Return type
|
|
229
|
+
|
|
230
|
+
**MailListInboundLogsV1200Response**
|
|
231
|
+
|
|
232
|
+
### Authorization
|
|
233
|
+
|
|
234
|
+
[apiToken](../README.md#apiToken)
|
|
235
|
+
|
|
236
|
+
### HTTP request headers
|
|
237
|
+
|
|
238
|
+
- **Content-Type**: Not defined
|
|
239
|
+
- **Accept**: application/json
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### HTTP response details
|
|
243
|
+
| Status code | Description | Response headers |
|
|
244
|
+
|-------------|-------------|------------------|
|
|
245
|
+
|**200** | Success response | - |
|
|
246
|
+
|**401** | Unauthenticated response | - |
|
|
247
|
+
|**404** | Error response | - |
|
|
248
|
+
|**422** | Error response | - |
|
|
249
|
+
|**500** | Error response | - |
|
|
250
|
+
|
|
251
|
+
[[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)
|
|
252
|
+
|
|
253
|
+
# **listMailboxActionLogsV1**
|
|
254
|
+
> MailListMailboxActionLogsV1200Response listMailboxActionLogsV1()
|
|
255
|
+
|
|
256
|
+
Retrieve paginated mailbox action logs (message and mailbox events) for a mailbox in the given mail order. The mailbox email must belong to the order\'s domain. Supports date range and event type filters. Results are sorted by timestamp descending.
|
|
257
|
+
|
|
258
|
+
### Example
|
|
259
|
+
|
|
260
|
+
```typescript
|
|
261
|
+
import {
|
|
262
|
+
MailLogsApi,
|
|
263
|
+
Configuration
|
|
264
|
+
} from 'hostinger-api-sdk';
|
|
265
|
+
|
|
266
|
+
const configuration = new Configuration();
|
|
267
|
+
const apiInstance = new MailLogsApi(configuration);
|
|
268
|
+
|
|
269
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
270
|
+
let email: string; //Mailbox email address. Must belong to the order\'s domain. (default to undefined)
|
|
271
|
+
let date: string; //Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. (optional) (default to undefined)
|
|
272
|
+
let fromDate: string; //Date range start (RFC 3339) (optional) (default to undefined)
|
|
273
|
+
let toDate: string; //Date range end (RFC 3339) (optional) (default to undefined)
|
|
274
|
+
let event: 'MessageNew' | 'MessageRead' | 'MessageAppend' | 'MessageExpunge' | 'MailboxCreate' | 'MailboxDelete' | 'MailboxRename'; //Filter mailbox action log entries by event type (optional) (default to undefined)
|
|
275
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
276
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
277
|
+
|
|
278
|
+
const { status, data } = await apiInstance.listMailboxActionLogsV1(
|
|
279
|
+
orderId,
|
|
280
|
+
email,
|
|
281
|
+
date,
|
|
282
|
+
fromDate,
|
|
283
|
+
toDate,
|
|
284
|
+
event,
|
|
285
|
+
page,
|
|
286
|
+
perPage
|
|
287
|
+
);
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### Parameters
|
|
291
|
+
|
|
292
|
+
|Name | Type | Description | Notes|
|
|
293
|
+
|------------- | ------------- | ------------- | -------------|
|
|
294
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
295
|
+
| **email** | [**string**] | Mailbox email address. Must belong to the order\'s domain. | defaults to undefined|
|
|
296
|
+
| **date** | [**string**] | Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. | (optional) defaults to undefined|
|
|
297
|
+
| **fromDate** | [**string**] | Date range start (RFC 3339) | (optional) defaults to undefined|
|
|
298
|
+
| **toDate** | [**string**] | Date range end (RFC 3339) | (optional) defaults to undefined|
|
|
299
|
+
| **event** | [**'MessageNew' | 'MessageRead' | 'MessageAppend' | 'MessageExpunge' | 'MailboxCreate' | 'MailboxDelete' | 'MailboxRename'**]**Array<'MessageNew' | 'MessageRead' | 'MessageAppend' | 'MessageExpunge' | 'MailboxCreate' | 'MailboxDelete' | 'MailboxRename'>** | Filter mailbox action log entries by event type | (optional) defaults to undefined|
|
|
300
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
301
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Return type
|
|
305
|
+
|
|
306
|
+
**MailListMailboxActionLogsV1200Response**
|
|
307
|
+
|
|
308
|
+
### Authorization
|
|
309
|
+
|
|
310
|
+
[apiToken](../README.md#apiToken)
|
|
311
|
+
|
|
312
|
+
### HTTP request headers
|
|
313
|
+
|
|
314
|
+
- **Content-Type**: Not defined
|
|
315
|
+
- **Accept**: application/json
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### HTTP response details
|
|
319
|
+
| Status code | Description | Response headers |
|
|
320
|
+
|-------------|-------------|------------------|
|
|
321
|
+
|**200** | Success response | - |
|
|
322
|
+
|**401** | Unauthenticated response | - |
|
|
323
|
+
|**404** | Error response | - |
|
|
324
|
+
|**422** | Error response | - |
|
|
325
|
+
|**500** | Error response | - |
|
|
326
|
+
|
|
327
|
+
[[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)
|
|
328
|
+
|
|
329
|
+
# **listOutboundLogsV1**
|
|
330
|
+
> MailListInboundLogsV1200Response listOutboundLogsV1()
|
|
331
|
+
|
|
332
|
+
Retrieve paginated outbound (sent mail) delivery logs for the domain attached to the given mail order. Supports filtering by account, date range, status, sender, and recipient. Results are sorted by timestamp descending.
|
|
333
|
+
|
|
334
|
+
### Example
|
|
335
|
+
|
|
336
|
+
```typescript
|
|
337
|
+
import {
|
|
338
|
+
MailLogsApi,
|
|
339
|
+
Configuration
|
|
340
|
+
} from 'hostinger-api-sdk';
|
|
341
|
+
|
|
342
|
+
const configuration = new Configuration();
|
|
343
|
+
const apiInstance = new MailLogsApi(configuration);
|
|
344
|
+
|
|
345
|
+
let orderId: string; //Order resource ID (default to undefined)
|
|
346
|
+
let account: string; //Filter log entries by a specific email account (optional) (default to undefined)
|
|
347
|
+
let date: string; //Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. (optional) (default to undefined)
|
|
348
|
+
let fromDate: string; //Date range start (RFC 3339) (optional) (default to undefined)
|
|
349
|
+
let toDate: string; //Date range end (RFC 3339) (optional) (default to undefined)
|
|
350
|
+
let status: 'Successful' | 'Failed'; //Filter log entries by status (optional) (default to undefined)
|
|
351
|
+
let sender: string; //Filter log entries by sender. Accepts a full email address or a domain. (optional) (default to undefined)
|
|
352
|
+
let recipient: string; //Filter log entries by recipient. Accepts a full email address or a domain. (optional) (default to undefined)
|
|
353
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
354
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
355
|
+
|
|
356
|
+
const { status, data } = await apiInstance.listOutboundLogsV1(
|
|
357
|
+
orderId,
|
|
358
|
+
account,
|
|
359
|
+
date,
|
|
360
|
+
fromDate,
|
|
361
|
+
toDate,
|
|
362
|
+
status,
|
|
363
|
+
sender,
|
|
364
|
+
recipient,
|
|
365
|
+
page,
|
|
366
|
+
perPage
|
|
367
|
+
);
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Parameters
|
|
371
|
+
|
|
372
|
+
|Name | Type | Description | Notes|
|
|
373
|
+
|------------- | ------------- | ------------- | -------------|
|
|
374
|
+
| **orderId** | [**string**] | Order resource ID | defaults to undefined|
|
|
375
|
+
| **account** | [**string**] | Filter log entries by a specific email account | (optional) defaults to undefined|
|
|
376
|
+
| **date** | [**string**] | Exact date filter (YYYY-MM-DD). Takes precedence over `from_date`/`to_date` when both are given. | (optional) defaults to undefined|
|
|
377
|
+
| **fromDate** | [**string**] | Date range start (RFC 3339) | (optional) defaults to undefined|
|
|
378
|
+
| **toDate** | [**string**] | Date range end (RFC 3339) | (optional) defaults to undefined|
|
|
379
|
+
| **status** | [**'Successful' | 'Failed'**]**Array<'Successful' | 'Failed'>** | Filter log entries by status | (optional) defaults to undefined|
|
|
380
|
+
| **sender** | [**string**] | Filter log entries by sender. Accepts a full email address or a domain. | (optional) defaults to undefined|
|
|
381
|
+
| **recipient** | [**string**] | Filter log entries by recipient. Accepts a full email address or a domain. | (optional) defaults to undefined|
|
|
382
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
383
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### Return type
|
|
387
|
+
|
|
388
|
+
**MailListInboundLogsV1200Response**
|
|
389
|
+
|
|
390
|
+
### Authorization
|
|
391
|
+
|
|
392
|
+
[apiToken](../README.md#apiToken)
|
|
393
|
+
|
|
394
|
+
### HTTP request headers
|
|
395
|
+
|
|
396
|
+
- **Content-Type**: Not defined
|
|
397
|
+
- **Accept**: application/json
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
### HTTP response details
|
|
401
|
+
| Status code | Description | Response headers |
|
|
402
|
+
|-------------|-------------|------------------|
|
|
403
|
+
|**200** | Success response | - |
|
|
404
|
+
|**401** | Unauthenticated response | - |
|
|
405
|
+
|**404** | Error response | - |
|
|
406
|
+
|**422** | Error response | - |
|
|
407
|
+
|**500** | Error response | - |
|
|
408
|
+
|
|
409
|
+
[[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)
|
|
410
|
+
|