hostinger-api-sdk 1.5.0 → 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.
Files changed (179) hide show
  1. package/.github/workflows/build-release.yaml +29 -1
  2. package/README.md +2 -2
  3. package/api.ts +18747 -8098
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +13312 -6201
  8. package/dist/api.js +10299 -3751
  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 +13312 -6201
  16. package/dist/esm/api.js +10191 -3729
  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/BillingV1OrderPurchaseRequest.md +24 -0
  93. package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
  94. package/docs/DomainsForwardingApi.md +59 -0
  95. package/docs/DomainsPortfolioApi.md +108 -0
  96. package/docs/DomainsTransferApi.md +108 -0
  97. package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
  98. package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
  99. package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
  100. package/docs/DomainsV1TransferTransferResource.md +26 -0
  101. package/docs/HostingCacheApi.md +26 -130
  102. package/docs/HostingDatabasesApi.md +63 -63
  103. package/docs/HostingNodeJSApi.md +122 -0
  104. package/docs/HostingV1CacheToggleCacheRequest.md +20 -0
  105. package/docs/HostingV1CacheToggleCachelessModeRequest.md +20 -0
  106. package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
  107. package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
  108. package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
  109. package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
  110. package/docs/HostingWebsitesApi.md +59 -0
  111. package/docs/MailAPITokensApi.md +185 -0
  112. package/docs/MailAliasesApi.md +186 -0
  113. package/docs/MailAutorepliesApi.md +246 -0
  114. package/docs/MailCatchallsApi.md +239 -0
  115. package/docs/MailForwardersApi.md +304 -0
  116. package/docs/MailListAPITokensV1200Response.md +22 -0
  117. package/docs/MailListAccessLogsV1200Response.md +22 -0
  118. package/docs/MailListActionLogsV1200Response.md +22 -0
  119. package/docs/MailListAliasesV1200Response.md +22 -0
  120. package/docs/MailListAutorepliesV1200Response.md +22 -0
  121. package/docs/MailListCatchAllsV1200Response.md +22 -0
  122. package/docs/MailListForwardersV1200Response.md +22 -0
  123. package/docs/MailListInboundLogsV1200Response.md +22 -0
  124. package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
  125. package/docs/MailListMailboxesV1200Response.md +22 -0
  126. package/docs/MailListOrdersV1200Response.md +22 -0
  127. package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
  128. package/docs/MailListWebhooksV1200Response.md +22 -0
  129. package/docs/MailLogsApi.md +410 -0
  130. package/docs/MailMailboxesApi.md +253 -0
  131. package/docs/MailOrdersApi.md +132 -0
  132. package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
  133. package/docs/MailV1AliasesAliasResource.md +30 -0
  134. package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
  135. package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
  136. package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
  137. package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
  138. package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
  139. package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
  140. package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
  141. package/docs/MailV1CatchallsCatchallResource.md +32 -0
  142. package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
  143. package/docs/MailV1ForwardersForwarderResource.md +34 -0
  144. package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
  145. package/docs/MailV1LogsActionActionLogResource.md +32 -0
  146. package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
  147. package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
  148. package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
  149. package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
  150. package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
  151. package/docs/MailV1MailboxesMailboxResource.md +38 -0
  152. package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
  153. package/docs/MailV1OrdersOrderDomainResource.md +22 -0
  154. package/docs/MailV1OrdersOrderPlanResource.md +22 -0
  155. package/docs/MailV1OrdersOrderResource.md +36 -0
  156. package/docs/MailV1OrdersPlanDomainResource.md +30 -0
  157. package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
  158. package/docs/MailV1OrdersPlanResource.md +26 -0
  159. package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
  160. package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
  161. package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
  162. package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
  163. package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
  164. package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
  165. package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
  166. package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
  167. package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
  168. package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
  169. package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
  170. package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
  171. package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
  172. package/docs/MailV1WebhooksWebhookResource.md +36 -0
  173. package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
  174. package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
  175. package/docs/MailWebhooksApi.md +488 -0
  176. package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
  177. package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
  178. package/index.ts +1 -1
  179. package/package.json +2 -2
@@ -8,8 +8,10 @@ All URIs are relative to *https://developers.hostinger.com*
8
8
  |[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
9
9
  |[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
10
10
  |[**enablePrivacyProtectionV1**](#enableprivacyprotectionv1) | **PUT** /api/domains/v1/portfolio/{domain}/privacy-protection | Enable privacy protection|
11
+ |[**getDomainAuthorizationCodeV1**](#getdomainauthorizationcodev1) | **GET** /api/domains/v1/portfolio/{domain}/auth-code | Get domain authorization code|
11
12
  |[**getDomainDetailsV1**](#getdomaindetailsv1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain details|
12
13
  |[**getDomainListV1**](#getdomainlistv1) | **GET** /api/domains/v1/portfolio | Get domain list|
14
+ |[**getDomainRenewalInformationV1**](#getdomainrenewalinformationv1) | **GET** /api/domains/v1/portfolio/{domain}/renewal | Get domain renewal information|
13
15
  |[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
14
16
  |[**updateDomainNameserversV1**](#updatedomainnameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers|
15
17
 
@@ -225,6 +227,59 @@ const { status, data } = await apiInstance.enablePrivacyProtectionV1(
225
227
 
226
228
  [[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)
227
229
 
230
+ # **getDomainAuthorizationCodeV1**
231
+ > DomainsV1PortfolioAuthCodeAuthCodeResource getDomainAuthorizationCodeV1()
232
+
233
+ Retrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar. Requesting a new code invalidates any code retrieved previously. Use this endpoint to obtain the code required to transfer a domain to another registrar.
234
+
235
+ ### Example
236
+
237
+ ```typescript
238
+ import {
239
+ DomainsPortfolioApi,
240
+ Configuration
241
+ } from 'hostinger-api-sdk';
242
+
243
+ const configuration = new Configuration();
244
+ const apiInstance = new DomainsPortfolioApi(configuration);
245
+
246
+ let domain: string; //Domain name (default to undefined)
247
+
248
+ const { status, data } = await apiInstance.getDomainAuthorizationCodeV1(
249
+ domain
250
+ );
251
+ ```
252
+
253
+ ### Parameters
254
+
255
+ |Name | Type | Description | Notes|
256
+ |------------- | ------------- | ------------- | -------------|
257
+ | **domain** | [**string**] | Domain name | defaults to undefined|
258
+
259
+
260
+ ### Return type
261
+
262
+ **DomainsV1PortfolioAuthCodeAuthCodeResource**
263
+
264
+ ### Authorization
265
+
266
+ [apiToken](../README.md#apiToken)
267
+
268
+ ### HTTP request headers
269
+
270
+ - **Content-Type**: Not defined
271
+ - **Accept**: application/json
272
+
273
+
274
+ ### HTTP response details
275
+ | Status code | Description | Response headers |
276
+ |-------------|-------------|------------------|
277
+ |**200** | Success response | - |
278
+ |**401** | Unauthenticated response | - |
279
+ |**500** | Error response | - |
280
+
281
+ [[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)
282
+
228
283
  # **getDomainDetailsV1**
229
284
  > DomainsV1DomainDomainExtendedResource getDomainDetailsV1()
230
285
 
@@ -315,6 +370,59 @@ This endpoint does not have any parameters.
315
370
  - **Accept**: application/json
316
371
 
317
372
 
373
+ ### HTTP response details
374
+ | Status code | Description | Response headers |
375
+ |-------------|-------------|------------------|
376
+ |**200** | Success response | - |
377
+ |**401** | Unauthenticated response | - |
378
+ |**500** | Error response | - |
379
+
380
+ [[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)
381
+
382
+ # **getDomainRenewalInformationV1**
383
+ > DomainsV1PortfolioRenewalRenewalInformationResource getDomainRenewalInformationV1()
384
+
385
+ Retrieve renewal information for a specified domain, including its status and current expiration date. Use this endpoint to build renewal automation and expiry monitoring for a single domain.
386
+
387
+ ### Example
388
+
389
+ ```typescript
390
+ import {
391
+ DomainsPortfolioApi,
392
+ Configuration
393
+ } from 'hostinger-api-sdk';
394
+
395
+ const configuration = new Configuration();
396
+ const apiInstance = new DomainsPortfolioApi(configuration);
397
+
398
+ let domain: string; //Domain name (default to undefined)
399
+
400
+ const { status, data } = await apiInstance.getDomainRenewalInformationV1(
401
+ domain
402
+ );
403
+ ```
404
+
405
+ ### Parameters
406
+
407
+ |Name | Type | Description | Notes|
408
+ |------------- | ------------- | ------------- | -------------|
409
+ | **domain** | [**string**] | Domain name | defaults to undefined|
410
+
411
+
412
+ ### Return type
413
+
414
+ **DomainsV1PortfolioRenewalRenewalInformationResource**
415
+
416
+ ### Authorization
417
+
418
+ [apiToken](../README.md#apiToken)
419
+
420
+ ### HTTP request headers
421
+
422
+ - **Content-Type**: Not defined
423
+ - **Accept**: application/json
424
+
425
+
318
426
  ### HTTP response details
319
427
  | Status code | Description | Response headers |
320
428
  |-------------|-------------|------------------|
@@ -0,0 +1,108 @@
1
+ # DomainsTransferApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
8
+ |[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
9
+
10
+ # **getTransferListV1**
11
+ > Array<DomainsV1TransferTransferResource> getTransferListV1()
12
+
13
+ Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ DomainsTransferApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new DomainsTransferApi(configuration);
25
+
26
+ const { status, data } = await apiInstance.getTransferListV1();
27
+ ```
28
+
29
+ ### Parameters
30
+ This endpoint does not have any parameters.
31
+
32
+
33
+ ### Return type
34
+
35
+ **Array<DomainsV1TransferTransferResource>**
36
+
37
+ ### Authorization
38
+
39
+ [apiToken](../README.md#apiToken)
40
+
41
+ ### HTTP request headers
42
+
43
+ - **Content-Type**: Not defined
44
+ - **Accept**: application/json
45
+
46
+
47
+ ### HTTP response details
48
+ | Status code | Description | Response headers |
49
+ |-------------|-------------|------------------|
50
+ |**200** | Success response | - |
51
+ |**401** | Unauthenticated response | - |
52
+ |**500** | Error response | - |
53
+
54
+ [[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)
55
+
56
+ # **getTransferV1**
57
+ > DomainsV1TransferTransferResource getTransferV1()
58
+
59
+ Retrieve the transfer for a specified domain. Use this endpoint to track an incoming or outgoing registrar transfer and its status.
60
+
61
+ ### Example
62
+
63
+ ```typescript
64
+ import {
65
+ DomainsTransferApi,
66
+ Configuration
67
+ } from 'hostinger-api-sdk';
68
+
69
+ const configuration = new Configuration();
70
+ const apiInstance = new DomainsTransferApi(configuration);
71
+
72
+ let domain: string; //Domain name (default to undefined)
73
+
74
+ const { status, data } = await apiInstance.getTransferV1(
75
+ domain
76
+ );
77
+ ```
78
+
79
+ ### Parameters
80
+
81
+ |Name | Type | Description | Notes|
82
+ |------------- | ------------- | ------------- | -------------|
83
+ | **domain** | [**string**] | Domain name | defaults to undefined|
84
+
85
+
86
+ ### Return type
87
+
88
+ **DomainsV1TransferTransferResource**
89
+
90
+ ### Authorization
91
+
92
+ [apiToken](../README.md#apiToken)
93
+
94
+ ### HTTP request headers
95
+
96
+ - **Content-Type**: Not defined
97
+ - **Accept**: application/json
98
+
99
+
100
+ ### HTTP response details
101
+ | Status code | Description | Response headers |
102
+ |-------------|-------------|------------------|
103
+ |**200** | Success response | - |
104
+ |**401** | Unauthenticated response | - |
105
+ |**500** | Error response | - |
106
+
107
+ [[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)
108
+
@@ -0,0 +1,22 @@
1
+ # DomainsV1ForwardingUpdateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **redirect_type** | **string** | Redirect type | [default to undefined]
9
+ **redirect_url** | **string** | URL to forward domain to | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DomainsV1ForwardingUpdateRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: DomainsV1ForwardingUpdateRequest = {
17
+ redirect_type,
18
+ redirect_url,
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,20 @@
1
+ # DomainsV1PortfolioAuthCodeAuthCodeResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **auth_code** | **string** | Domain authorization code used to transfer the domain to another registrar. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DomainsV1PortfolioAuthCodeAuthCodeResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: DomainsV1PortfolioAuthCodeAuthCodeResource = {
16
+ auth_code,
17
+ };
18
+ ```
19
+
20
+ [[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,24 @@
1
+ # DomainsV1PortfolioRenewalRenewalInformationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [optional] [default to undefined]
9
+ **status** | **string** | Domain status | [optional] [default to undefined]
10
+ **expires_at** | **string** | Domain expiration date | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1PortfolioRenewalRenewalInformationResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1PortfolioRenewalRenewalInformationResource = {
18
+ domain,
19
+ status,
20
+ expires_at,
21
+ };
22
+ ```
23
+
24
+ [[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,26 @@
1
+ # DomainsV1TransferTransferResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [optional] [default to undefined]
9
+ **status** | **string** | Transfer status | [optional] [default to undefined]
10
+ **initiated_at** | **string** | When the transfer was initiated | [optional] [default to undefined]
11
+ **completed_at** | **string** | When the transfer completed | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { DomainsV1TransferTransferResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: DomainsV1TransferTransferResource = {
19
+ domain,
20
+ status,
21
+ initiated_at,
22
+ completed_at,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -5,10 +5,8 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**clearWebsiteCacheV1**](#clearwebsitecachev1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear | Clear website cache|
8
- |[**disableCachelessModeV1**](#disablecachelessmodev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable | Disable cacheless mode|
9
- |[**disableWebsiteCacheV1**](#disablewebsitecachev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable | Disable website cache|
10
- |[**enableCachelessModeV1**](#enablecachelessmodev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable | Enable cacheless mode|
11
- |[**enableWebsiteCacheV1**](#enablewebsitecachev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable | Enable website cache|
8
+ |[**toggleCachelessModeV1**](#togglecachelessmodev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle | Toggle cacheless mode|
9
+ |[**toggleWebsiteCacheV1**](#togglewebsitecachev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle | Toggle website cache|
12
10
 
13
11
  # **clearWebsiteCacheV1**
14
12
  > CommonSuccessEmptyResource clearWebsiteCacheV1()
@@ -69,129 +67,18 @@ const { status, data } = await apiInstance.clearWebsiteCacheV1(
69
67
 
70
68
  [[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
69
 
72
- # **disableCachelessModeV1**
73
- > CommonSuccessEmptyResource disableCachelessModeV1()
70
+ # **toggleCachelessModeV1**
71
+ > CommonSuccessEmptyResource toggleCachelessModeV1(hostingV1CacheToggleCachelessModeRequest)
74
72
 
75
- Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
73
+ Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
76
74
 
77
75
  ### Example
78
76
 
79
77
  ```typescript
80
78
  import {
81
79
  HostingCacheApi,
82
- Configuration
83
- } from 'hostinger-api-sdk';
84
-
85
- const configuration = new Configuration();
86
- const apiInstance = new HostingCacheApi(configuration);
87
-
88
- let username: string; // (default to undefined)
89
- let domain: string; //Domain name (default to undefined)
90
-
91
- const { status, data } = await apiInstance.disableCachelessModeV1(
92
- username,
93
- domain
94
- );
95
- ```
96
-
97
- ### Parameters
98
-
99
- |Name | Type | Description | Notes|
100
- |------------- | ------------- | ------------- | -------------|
101
- | **username** | [**string**] | | defaults to undefined|
102
- | **domain** | [**string**] | Domain name | defaults to undefined|
103
-
104
-
105
- ### Return type
106
-
107
- **CommonSuccessEmptyResource**
108
-
109
- ### Authorization
110
-
111
- [apiToken](../README.md#apiToken)
112
-
113
- ### HTTP request headers
114
-
115
- - **Content-Type**: Not defined
116
- - **Accept**: application/json
117
-
118
-
119
- ### HTTP response details
120
- | Status code | Description | Response headers |
121
- |-------------|-------------|------------------|
122
- |**200** | Success empty response | - |
123
- |**401** | Unauthenticated response | - |
124
- |**500** | Error response | - |
125
-
126
- [[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)
127
-
128
- # **disableWebsiteCacheV1**
129
- > CommonSuccessEmptyResource disableWebsiteCacheV1()
130
-
131
- Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
132
-
133
- ### Example
134
-
135
- ```typescript
136
- import {
137
- HostingCacheApi,
138
- Configuration
139
- } from 'hostinger-api-sdk';
140
-
141
- const configuration = new Configuration();
142
- const apiInstance = new HostingCacheApi(configuration);
143
-
144
- let username: string; // (default to undefined)
145
- let domain: string; //Domain name (default to undefined)
146
-
147
- const { status, data } = await apiInstance.disableWebsiteCacheV1(
148
- username,
149
- domain
150
- );
151
- ```
152
-
153
- ### Parameters
154
-
155
- |Name | Type | Description | Notes|
156
- |------------- | ------------- | ------------- | -------------|
157
- | **username** | [**string**] | | defaults to undefined|
158
- | **domain** | [**string**] | Domain name | 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 empty response | - |
179
- |**401** | Unauthenticated 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
- # **enableCachelessModeV1**
185
- > CommonSuccessEmptyResource enableCachelessModeV1()
186
-
187
- Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
188
-
189
- ### Example
190
-
191
- ```typescript
192
- import {
193
- HostingCacheApi,
194
- Configuration
80
+ Configuration,
81
+ HostingV1CacheToggleCachelessModeRequest
195
82
  } from 'hostinger-api-sdk';
196
83
 
197
84
  const configuration = new Configuration();
@@ -199,10 +86,12 @@ const apiInstance = new HostingCacheApi(configuration);
199
86
 
200
87
  let username: string; // (default to undefined)
201
88
  let domain: string; //Domain name (default to undefined)
89
+ let hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest; //
202
90
 
203
- const { status, data } = await apiInstance.enableCachelessModeV1(
91
+ const { status, data } = await apiInstance.toggleCachelessModeV1(
204
92
  username,
205
- domain
93
+ domain,
94
+ hostingV1CacheToggleCachelessModeRequest
206
95
  );
207
96
  ```
208
97
 
@@ -210,6 +99,7 @@ const { status, data } = await apiInstance.enableCachelessModeV1(
210
99
 
211
100
  |Name | Type | Description | Notes|
212
101
  |------------- | ------------- | ------------- | -------------|
102
+ | **hostingV1CacheToggleCachelessModeRequest** | **HostingV1CacheToggleCachelessModeRequest**| | |
213
103
  | **username** | [**string**] | | defaults to undefined|
214
104
  | **domain** | [**string**] | Domain name | defaults to undefined|
215
105
 
@@ -224,7 +114,7 @@ const { status, data } = await apiInstance.enableCachelessModeV1(
224
114
 
225
115
  ### HTTP request headers
226
116
 
227
- - **Content-Type**: Not defined
117
+ - **Content-Type**: application/json
228
118
  - **Accept**: application/json
229
119
 
230
120
 
@@ -232,22 +122,24 @@ const { status, data } = await apiInstance.enableCachelessModeV1(
232
122
  | Status code | Description | Response headers |
233
123
  |-------------|-------------|------------------|
234
124
  |**200** | Success empty response | - |
125
+ |**422** | Validation error response | - |
235
126
  |**401** | Unauthenticated response | - |
236
127
  |**500** | Error response | - |
237
128
 
238
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)
239
130
 
240
- # **enableWebsiteCacheV1**
241
- > CommonSuccessEmptyResource enableWebsiteCacheV1()
131
+ # **toggleWebsiteCacheV1**
132
+ > CommonSuccessEmptyResource toggleWebsiteCacheV1(hostingV1CacheToggleCacheRequest)
242
133
 
243
- Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
134
+ Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
244
135
 
245
136
  ### Example
246
137
 
247
138
  ```typescript
248
139
  import {
249
140
  HostingCacheApi,
250
- Configuration
141
+ Configuration,
142
+ HostingV1CacheToggleCacheRequest
251
143
  } from 'hostinger-api-sdk';
252
144
 
253
145
  const configuration = new Configuration();
@@ -255,10 +147,12 @@ const apiInstance = new HostingCacheApi(configuration);
255
147
 
256
148
  let username: string; // (default to undefined)
257
149
  let domain: string; //Domain name (default to undefined)
150
+ let hostingV1CacheToggleCacheRequest: HostingV1CacheToggleCacheRequest; //
258
151
 
259
- const { status, data } = await apiInstance.enableWebsiteCacheV1(
152
+ const { status, data } = await apiInstance.toggleWebsiteCacheV1(
260
153
  username,
261
- domain
154
+ domain,
155
+ hostingV1CacheToggleCacheRequest
262
156
  );
263
157
  ```
264
158
 
@@ -266,6 +160,7 @@ const { status, data } = await apiInstance.enableWebsiteCacheV1(
266
160
 
267
161
  |Name | Type | Description | Notes|
268
162
  |------------- | ------------- | ------------- | -------------|
163
+ | **hostingV1CacheToggleCacheRequest** | **HostingV1CacheToggleCacheRequest**| | |
269
164
  | **username** | [**string**] | | defaults to undefined|
270
165
  | **domain** | [**string**] | Domain name | defaults to undefined|
271
166
 
@@ -280,7 +175,7 @@ const { status, data } = await apiInstance.enableWebsiteCacheV1(
280
175
 
281
176
  ### HTTP request headers
282
177
 
283
- - **Content-Type**: Not defined
178
+ - **Content-Type**: application/json
284
179
  - **Accept**: application/json
285
180
 
286
181
 
@@ -288,6 +183,7 @@ const { status, data } = await apiInstance.enableWebsiteCacheV1(
288
183
  | Status code | Description | Response headers |
289
184
  |-------------|-------------|------------------|
290
185
  |**200** | Success empty response | - |
186
+ |**422** | Validation error response | - |
291
187
  |**401** | Unauthenticated response | - |
292
188
  |**500** | Error response | - |
293
189