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.
Files changed (178) hide show
  1. package/.github/workflows/build-release.yaml +29 -1
  2. package/README.md +2 -2
  3. package/api.ts +19008 -8147
  4. package/base.ts +1 -1
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +13441 -6234
  8. package/dist/api.js +10911 -4155
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +13441 -6234
  16. package/dist/esm/api.js +10589 -3919
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AgencyHostingCacheApi.md +61 -0
  28. package/docs/AgencyHostingCronJobsApi.md +183 -0
  29. package/docs/AgencyHostingDatabasesApi.md +305 -0
  30. package/docs/AgencyHostingDatacentersApi.md +61 -0
  31. package/docs/AgencyHostingDomainsApi.md +245 -0
  32. package/docs/AgencyHostingFilesApi.md +66 -0
  33. package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
  34. package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
  35. package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
  36. package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
  37. package/docs/AgencyHostingOrdersApi.md +64 -0
  38. package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
  39. package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
  40. package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
  41. package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
  42. package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
  43. package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
  44. package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
  45. package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
  46. package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
  47. package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
  48. package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
  49. package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
  50. package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
  51. package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
  52. package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
  53. package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
  54. package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
  55. package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
  56. package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
  57. package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
  58. package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
  59. package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
  60. package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
  61. package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
  62. package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
  63. package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
  64. package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
  65. package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
  66. package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
  67. package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
  68. package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
  69. package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
  70. package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
  71. package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
  72. package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
  73. package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
  74. package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
  75. package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
  76. package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
  77. package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
  78. package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
  79. package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
  80. package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
  81. package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
  82. package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
  83. package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
  84. package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
  85. package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
  86. package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
  87. package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
  88. package/docs/AgencyHostingWebsitesApi.md +228 -0
  89. package/docs/AgencyHostingWordPressApi.md +174 -0
  90. package/docs/BillingCatalogApi.md +2 -2
  91. package/docs/BillingOrdersApi.md +63 -0
  92. package/docs/BillingSubscriptionsApi.md +59 -0
  93. package/docs/BillingV1OrderPurchaseRequest.md +24 -0
  94. package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
  95. package/docs/BillingV1SubscriptionRenewalRenewRequest.md +22 -0
  96. package/docs/DomainsForwardingApi.md +59 -0
  97. package/docs/DomainsPortfolioApi.md +108 -0
  98. package/docs/DomainsTransferApi.md +108 -0
  99. package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
  100. package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
  101. package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
  102. package/docs/DomainsV1TransferTransferResource.md +26 -0
  103. package/docs/HostingDatabasesApi.md +63 -63
  104. package/docs/HostingNodeJSApi.md +122 -0
  105. package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
  106. package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
  107. package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
  108. package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
  109. package/docs/HostingWebsitesApi.md +59 -0
  110. package/docs/MailAPITokensApi.md +185 -0
  111. package/docs/MailAliasesApi.md +186 -0
  112. package/docs/MailAutorepliesApi.md +246 -0
  113. package/docs/MailCatchallsApi.md +239 -0
  114. package/docs/MailForwardersApi.md +304 -0
  115. package/docs/MailListAPITokensV1200Response.md +22 -0
  116. package/docs/MailListAccessLogsV1200Response.md +22 -0
  117. package/docs/MailListActionLogsV1200Response.md +22 -0
  118. package/docs/MailListAliasesV1200Response.md +22 -0
  119. package/docs/MailListAutorepliesV1200Response.md +22 -0
  120. package/docs/MailListCatchAllsV1200Response.md +22 -0
  121. package/docs/MailListForwardersV1200Response.md +22 -0
  122. package/docs/MailListInboundLogsV1200Response.md +22 -0
  123. package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
  124. package/docs/MailListMailboxesV1200Response.md +22 -0
  125. package/docs/MailListOrdersV1200Response.md +22 -0
  126. package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
  127. package/docs/MailListWebhooksV1200Response.md +22 -0
  128. package/docs/MailLogsApi.md +410 -0
  129. package/docs/MailMailboxesApi.md +253 -0
  130. package/docs/MailOrdersApi.md +132 -0
  131. package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
  132. package/docs/MailV1AliasesAliasResource.md +30 -0
  133. package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
  134. package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
  135. package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
  136. package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
  137. package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
  138. package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
  139. package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
  140. package/docs/MailV1CatchallsCatchallResource.md +32 -0
  141. package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
  142. package/docs/MailV1ForwardersForwarderResource.md +34 -0
  143. package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
  144. package/docs/MailV1LogsActionActionLogResource.md +32 -0
  145. package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
  146. package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
  147. package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
  148. package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
  149. package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
  150. package/docs/MailV1MailboxesMailboxResource.md +38 -0
  151. package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
  152. package/docs/MailV1OrdersOrderDomainResource.md +22 -0
  153. package/docs/MailV1OrdersOrderPlanResource.md +22 -0
  154. package/docs/MailV1OrdersOrderResource.md +36 -0
  155. package/docs/MailV1OrdersPlanDomainResource.md +30 -0
  156. package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
  157. package/docs/MailV1OrdersPlanResource.md +26 -0
  158. package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
  159. package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
  160. package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
  161. package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
  162. package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
  163. package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
  164. package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
  165. package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
  166. package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
  167. package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
  168. package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
  169. package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
  170. package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
  171. package/docs/MailV1WebhooksWebhookResource.md +36 -0
  172. package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
  173. package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
  174. package/docs/MailWebhooksApi.md +488 -0
  175. package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
  176. package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
  177. package/index.ts +1 -1
  178. package/package.json +2 -2
@@ -0,0 +1,185 @@
1
+ # MailAPITokensApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createAPITokenV1**](#createapitokenv1) | **POST** /api/mail/v1/orders/{orderId}/api-tokens | Create API token|
8
+ |[**listAPITokensV1**](#listapitokensv1) | **GET** /api/mail/v1/api-tokens | List API tokens|
9
+ |[**revokeAPITokenV1**](#revokeapitokenv1) | **DELETE** /api/mail/v1/api-tokens/{tokenId} | Revoke API token|
10
+
11
+ # **createAPITokenV1**
12
+ > MailV1ApiTokensApiTokenCreatedResource createAPITokenV1(mailV1SchemaCreateApiTokenRequestSchema)
13
+
14
+ Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ MailAPITokensApi,
21
+ Configuration,
22
+ MailV1SchemaCreateApiTokenRequestSchema
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new MailAPITokensApi(configuration);
27
+
28
+ let orderId: string; //Order resource ID (default to undefined)
29
+ let mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema; //
30
+
31
+ const { status, data } = await apiInstance.createAPITokenV1(
32
+ orderId,
33
+ mailV1SchemaCreateApiTokenRequestSchema
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **mailV1SchemaCreateApiTokenRequestSchema** | **MailV1SchemaCreateApiTokenRequestSchema**| | |
42
+ | **orderId** | [**string**] | Order resource ID | defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **MailV1ApiTokensApiTokenCreatedResource**
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
+ # **listAPITokensV1**
72
+ > MailListAPITokensV1200Response listAPITokensV1()
73
+
74
+ Retrieve a paginated list of [Hostinger Email API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
75
+
76
+ ### Example
77
+
78
+ ```typescript
79
+ import {
80
+ MailAPITokensApi,
81
+ Configuration
82
+ } from 'hostinger-api-sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new MailAPITokensApi(configuration);
86
+
87
+ let orderId: string; //Filter tokens by order resource ID. Single value or comma-separated list. (optional) (default to undefined)
88
+ let page: number; //Page number (optional) (default to undefined)
89
+ let perPage: number; //Number of items per page (optional) (default to 25)
90
+
91
+ const { status, data } = await apiInstance.listAPITokensV1(
92
+ orderId,
93
+ page,
94
+ perPage
95
+ );
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ |Name | Type | Description | Notes|
101
+ |------------- | ------------- | ------------- | -------------|
102
+ | **orderId** | [**string**] | Filter tokens by order resource ID. Single value or comma-separated list. | (optional) defaults to undefined|
103
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
104
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
105
+
106
+
107
+ ### Return type
108
+
109
+ **MailListAPITokensV1200Response**
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
+ |**422** | Error response | - |
127
+ |**500** | Error response | - |
128
+
129
+ [[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)
130
+
131
+ # **revokeAPITokenV1**
132
+ > CommonSuccessEmptyResource revokeAPITokenV1()
133
+
134
+ Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
135
+
136
+ ### Example
137
+
138
+ ```typescript
139
+ import {
140
+ MailAPITokensApi,
141
+ Configuration
142
+ } from 'hostinger-api-sdk';
143
+
144
+ const configuration = new Configuration();
145
+ const apiInstance = new MailAPITokensApi(configuration);
146
+
147
+ let tokenId: string; //API token ID (returned when the token was created) (default to undefined)
148
+
149
+ const { status, data } = await apiInstance.revokeAPITokenV1(
150
+ tokenId
151
+ );
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ |Name | Type | Description | Notes|
157
+ |------------- | ------------- | ------------- | -------------|
158
+ | **tokenId** | [**string**] | API token ID (returned when the token was created) | defaults to undefined|
159
+
160
+
161
+ ### Return type
162
+
163
+ **CommonSuccessEmptyResource**
164
+
165
+ ### Authorization
166
+
167
+ [apiToken](../README.md#apiToken)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: Not defined
172
+ - **Accept**: application/json
173
+
174
+
175
+ ### HTTP response details
176
+ | Status code | Description | Response headers |
177
+ |-------------|-------------|------------------|
178
+ |**200** | Success response | - |
179
+ |**401** | Unauthenticated response | - |
180
+ |**404** | Error response | - |
181
+ |**422** | Error response | - |
182
+ |**500** | Error response | - |
183
+
184
+ [[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)
185
+
@@ -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
+