hostinger-api-sdk 1.5.1 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/.github/workflows/build-release.yaml +29 -1
  2. package/README.md +2 -2
  3. package/api.ts +18917 -8154
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +13394 -6243
  8. package/dist/api.js +10470 -3788
  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 +13394 -6243
  16. package/dist/esm/api.js +10463 -3867
  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/HostingDatabasesApi.md +63 -63
  102. package/docs/HostingNodeJSApi.md +122 -0
  103. package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
  104. package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
  105. package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
  106. package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
  107. package/docs/HostingWebsitesApi.md +59 -0
  108. package/docs/MailAPITokensApi.md +185 -0
  109. package/docs/MailAliasesApi.md +186 -0
  110. package/docs/MailAutorepliesApi.md +246 -0
  111. package/docs/MailCatchallsApi.md +239 -0
  112. package/docs/MailForwardersApi.md +304 -0
  113. package/docs/MailListAPITokensV1200Response.md +22 -0
  114. package/docs/MailListAccessLogsV1200Response.md +22 -0
  115. package/docs/MailListActionLogsV1200Response.md +22 -0
  116. package/docs/MailListAliasesV1200Response.md +22 -0
  117. package/docs/MailListAutorepliesV1200Response.md +22 -0
  118. package/docs/MailListCatchAllsV1200Response.md +22 -0
  119. package/docs/MailListForwardersV1200Response.md +22 -0
  120. package/docs/MailListInboundLogsV1200Response.md +22 -0
  121. package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
  122. package/docs/MailListMailboxesV1200Response.md +22 -0
  123. package/docs/MailListOrdersV1200Response.md +22 -0
  124. package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
  125. package/docs/MailListWebhooksV1200Response.md +22 -0
  126. package/docs/MailLogsApi.md +410 -0
  127. package/docs/MailMailboxesApi.md +253 -0
  128. package/docs/MailOrdersApi.md +132 -0
  129. package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
  130. package/docs/MailV1AliasesAliasResource.md +30 -0
  131. package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
  132. package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
  133. package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
  134. package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
  135. package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
  136. package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
  137. package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
  138. package/docs/MailV1CatchallsCatchallResource.md +32 -0
  139. package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
  140. package/docs/MailV1ForwardersForwarderResource.md +34 -0
  141. package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
  142. package/docs/MailV1LogsActionActionLogResource.md +32 -0
  143. package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
  144. package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
  145. package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
  146. package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
  147. package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
  148. package/docs/MailV1MailboxesMailboxResource.md +38 -0
  149. package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
  150. package/docs/MailV1OrdersOrderDomainResource.md +22 -0
  151. package/docs/MailV1OrdersOrderPlanResource.md +22 -0
  152. package/docs/MailV1OrdersOrderResource.md +36 -0
  153. package/docs/MailV1OrdersPlanDomainResource.md +30 -0
  154. package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
  155. package/docs/MailV1OrdersPlanResource.md +26 -0
  156. package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
  157. package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
  158. package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
  159. package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
  160. package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
  161. package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
  162. package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
  163. package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
  164. package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
  165. package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
  166. package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
  167. package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
  168. package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
  169. package/docs/MailV1WebhooksWebhookResource.md +36 -0
  170. package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
  171. package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
  172. package/docs/MailWebhooksApi.md +488 -0
  173. package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
  174. package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
  175. package/index.ts +1 -1
  176. 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,13 +5,13 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**changeDatabasePasswordV1**](#changedatabasepasswordv1) | **PATCH** /api/hosting/v1/accounts/{username}/databases/{name}/change-password | Change database password|
8
- |[**createAccountDatabaseRemoteConnectionV1**](#createaccountdatabaseremoteconnectionv1) | **POST** /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections | Create account database remote connection|
9
8
  |[**createAccountDatabaseV1**](#createaccountdatabasev1) | **POST** /api/hosting/v1/accounts/{username}/databases | Create account database|
10
- |[**deleteAccountDatabaseRemoteConnectionV1**](#deleteaccountdatabaseremoteconnectionv1) | **DELETE** /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections | Delete account database remote connection|
9
+ |[**createDatabaseRemoteConnectionV1**](#createdatabaseremoteconnectionv1) | **POST** /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections | Create database remote connection|
11
10
  |[**deleteAccountDatabaseV1**](#deleteaccountdatabasev1) | **DELETE** /api/hosting/v1/accounts/{username}/databases/{name} | Delete account database|
11
+ |[**deleteDatabaseRemoteConnectionV1**](#deletedatabaseremoteconnectionv1) | **DELETE** /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections | Delete database remote connection|
12
12
  |[**getPhpMyAdminLinkV1**](#getphpmyadminlinkv1) | **GET** /api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link | Get phpMyAdmin link|
13
- |[**listAccountDatabaseRemoteConnectionsV1**](#listaccountdatabaseremoteconnectionsv1) | **GET** /api/hosting/v1/accounts/{username}/databases/remote-connections | List account database remote connections|
14
13
  |[**listAccountDatabasesV1**](#listaccountdatabasesv1) | **GET** /api/hosting/v1/accounts/{username}/databases | List account databases|
14
+ |[**listDatabaseRemoteConnectionsV1**](#listdatabaseremoteconnectionsv1) | **GET** /api/hosting/v1/accounts/{username}/databases/remote-connections | List database remote connections|
15
15
  |[**repairDatabaseV1**](#repairdatabasev1) | **PATCH** /api/hosting/v1/accounts/{username}/databases/{name}/repair | Repair database|
16
16
 
17
17
  # **changeDatabasePasswordV1**
@@ -75,10 +75,10 @@ const { status, data } = await apiInstance.changeDatabasePasswordV1(
75
75
 
76
76
  [[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)
77
77
 
78
- # **createAccountDatabaseRemoteConnectionV1**
79
- > CommonSuccessEmptyResource createAccountDatabaseRemoteConnectionV1(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
78
+ # **createAccountDatabaseV1**
79
+ > CommonSuccessEmptyResource createAccountDatabaseV1(hostingV1DatabasesCreateDatabaseRequest)
80
80
 
81
- Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
81
+ Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
82
82
 
83
83
  ### Example
84
84
 
@@ -86,20 +86,18 @@ Allows a remote host to connect to the specified database. Provide an IPv4/IPv6
86
86
  import {
87
87
  HostingDatabasesApi,
88
88
  Configuration,
89
- HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
89
+ HostingV1DatabasesCreateDatabaseRequest
90
90
  } from 'hostinger-api-sdk';
91
91
 
92
92
  const configuration = new Configuration();
93
93
  const apiInstance = new HostingDatabasesApi(configuration);
94
94
 
95
95
  let username: string; // (default to undefined)
96
- let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
97
- let hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest; //
96
+ let hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest; //
98
97
 
99
- const { status, data } = await apiInstance.createAccountDatabaseRemoteConnectionV1(
98
+ const { status, data } = await apiInstance.createAccountDatabaseV1(
100
99
  username,
101
- name,
102
- hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
100
+ hostingV1DatabasesCreateDatabaseRequest
103
101
  );
104
102
  ```
105
103
 
@@ -107,9 +105,8 @@ const { status, data } = await apiInstance.createAccountDatabaseRemoteConnection
107
105
 
108
106
  |Name | Type | Description | Notes|
109
107
  |------------- | ------------- | ------------- | -------------|
110
- | **hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest** | **HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest**| | |
108
+ | **hostingV1DatabasesCreateDatabaseRequest** | **HostingV1DatabasesCreateDatabaseRequest**| | |
111
109
  | **username** | [**string**] | | defaults to undefined|
112
- | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
113
110
 
114
111
 
115
112
  ### Return type
@@ -136,10 +133,10 @@ const { status, data } = await apiInstance.createAccountDatabaseRemoteConnection
136
133
 
137
134
  [[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)
138
135
 
139
- # **createAccountDatabaseV1**
140
- > CommonSuccessEmptyResource createAccountDatabaseV1(hostingV1DatabasesCreateDatabaseRequest)
136
+ # **createDatabaseRemoteConnectionV1**
137
+ > CommonSuccessEmptyResource createDatabaseRemoteConnectionV1(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
141
138
 
142
- Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
139
+ Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
143
140
 
144
141
  ### Example
145
142
 
@@ -147,18 +144,20 @@ Creates a database with a database user and password for the specified account.
147
144
  import {
148
145
  HostingDatabasesApi,
149
146
  Configuration,
150
- HostingV1DatabasesCreateDatabaseRequest
147
+ HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
151
148
  } from 'hostinger-api-sdk';
152
149
 
153
150
  const configuration = new Configuration();
154
151
  const apiInstance = new HostingDatabasesApi(configuration);
155
152
 
156
153
  let username: string; // (default to undefined)
157
- let hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest; //
154
+ let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
155
+ let hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest; //
158
156
 
159
- const { status, data } = await apiInstance.createAccountDatabaseV1(
157
+ const { status, data } = await apiInstance.createDatabaseRemoteConnectionV1(
160
158
  username,
161
- hostingV1DatabasesCreateDatabaseRequest
159
+ name,
160
+ hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
162
161
  );
163
162
  ```
164
163
 
@@ -166,8 +165,9 @@ const { status, data } = await apiInstance.createAccountDatabaseV1(
166
165
 
167
166
  |Name | Type | Description | Notes|
168
167
  |------------- | ------------- | ------------- | -------------|
169
- | **hostingV1DatabasesCreateDatabaseRequest** | **HostingV1DatabasesCreateDatabaseRequest**| | |
168
+ | **hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest** | **HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest**| | |
170
169
  | **username** | [**string**] | | defaults to undefined|
170
+ | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
171
171
 
172
172
 
173
173
  ### Return type
@@ -194,10 +194,10 @@ const { status, data } = await apiInstance.createAccountDatabaseV1(
194
194
 
195
195
  [[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)
196
196
 
197
- # **deleteAccountDatabaseRemoteConnectionV1**
198
- > CommonSuccessEmptyResource deleteAccountDatabaseRemoteConnectionV1()
197
+ # **deleteAccountDatabaseV1**
198
+ > CommonSuccessEmptyResource deleteAccountDatabaseV1()
199
199
 
200
- Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
200
+ Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
201
201
 
202
202
  ### Example
203
203
 
@@ -212,12 +212,10 @@ const apiInstance = new HostingDatabasesApi(configuration);
212
212
 
213
213
  let username: string; // (default to undefined)
214
214
  let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
215
- let ip: string; //Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint. (default to undefined)
216
215
 
217
- const { status, data } = await apiInstance.deleteAccountDatabaseRemoteConnectionV1(
216
+ const { status, data } = await apiInstance.deleteAccountDatabaseV1(
218
217
  username,
219
- name,
220
- ip
218
+ name
221
219
  );
222
220
  ```
223
221
 
@@ -227,7 +225,6 @@ const { status, data } = await apiInstance.deleteAccountDatabaseRemoteConnection
227
225
  |------------- | ------------- | ------------- | -------------|
228
226
  | **username** | [**string**] | | defaults to undefined|
229
227
  | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
230
- | **ip** | [**string**] | Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint. | defaults to undefined|
231
228
 
232
229
 
233
230
  ### Return type
@@ -253,10 +250,10 @@ const { status, data } = await apiInstance.deleteAccountDatabaseRemoteConnection
253
250
 
254
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)
255
252
 
256
- # **deleteAccountDatabaseV1**
257
- > CommonSuccessEmptyResource deleteAccountDatabaseV1()
253
+ # **deleteDatabaseRemoteConnectionV1**
254
+ > CommonSuccessEmptyResource deleteDatabaseRemoteConnectionV1()
258
255
 
259
- Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
256
+ Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
260
257
 
261
258
  ### Example
262
259
 
@@ -271,10 +268,12 @@ const apiInstance = new HostingDatabasesApi(configuration);
271
268
 
272
269
  let username: string; // (default to undefined)
273
270
  let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
271
+ let ip: string; //Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint. (default to undefined)
274
272
 
275
- const { status, data } = await apiInstance.deleteAccountDatabaseV1(
273
+ const { status, data } = await apiInstance.deleteDatabaseRemoteConnectionV1(
276
274
  username,
277
- name
275
+ name,
276
+ ip
278
277
  );
279
278
  ```
280
279
 
@@ -284,6 +283,7 @@ const { status, data } = await apiInstance.deleteAccountDatabaseV1(
284
283
  |------------- | ------------- | ------------- | -------------|
285
284
  | **username** | [**string**] | | defaults to undefined|
286
285
  | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
286
+ | **ip** | [**string**] | Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint. | defaults to undefined|
287
287
 
288
288
 
289
289
  ### Return type
@@ -365,10 +365,10 @@ const { status, data } = await apiInstance.getPhpMyAdminLinkV1(
365
365
 
366
366
  [[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)
367
367
 
368
- # **listAccountDatabaseRemoteConnectionsV1**
369
- > Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource> listAccountDatabaseRemoteConnectionsV1()
368
+ # **listAccountDatabasesV1**
369
+ > HostingListAccountDatabasesV1200Response listAccountDatabasesV1()
370
370
 
371
- Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
371
+ Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
372
372
 
373
373
  ### Example
374
374
 
@@ -382,11 +382,19 @@ const configuration = new Configuration();
382
382
  const apiInstance = new HostingDatabasesApi(configuration);
383
383
 
384
384
  let username: string; // (default to undefined)
385
- let domain: string; //Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included. (optional) (default to undefined)
385
+ let page: number; //Page number (optional) (default to undefined)
386
+ let perPage: number; //Number of items per page (optional) (default to 25)
387
+ let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
388
+ let isAssigned: boolean; //When used with domain, return only databases assigned to that domain. (optional) (default to undefined)
389
+ let search: string; //Search databases by name, user, or creation date. (optional) (default to undefined)
386
390
 
387
- const { status, data } = await apiInstance.listAccountDatabaseRemoteConnectionsV1(
391
+ const { status, data } = await apiInstance.listAccountDatabasesV1(
388
392
  username,
389
- domain
393
+ page,
394
+ perPage,
395
+ domain,
396
+ isAssigned,
397
+ search
390
398
  );
391
399
  ```
392
400
 
@@ -395,12 +403,16 @@ const { status, data } = await apiInstance.listAccountDatabaseRemoteConnectionsV
395
403
  |Name | Type | Description | Notes|
396
404
  |------------- | ------------- | ------------- | -------------|
397
405
  | **username** | [**string**] | | defaults to undefined|
398
- | **domain** | [**string**] | Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included. | (optional) defaults to undefined|
406
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
407
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
408
+ | **domain** | [**string**] | Filter by domain name (exact match) | (optional) defaults to undefined|
409
+ | **isAssigned** | [**boolean**] | When used with domain, return only databases assigned to that domain. | (optional) defaults to undefined|
410
+ | **search** | [**string**] | Search databases by name, user, or creation date. | (optional) defaults to undefined|
399
411
 
400
412
 
401
413
  ### Return type
402
414
 
403
- **Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>**
415
+ **HostingListAccountDatabasesV1200Response**
404
416
 
405
417
  ### Authorization
406
418
 
@@ -421,10 +433,10 @@ const { status, data } = await apiInstance.listAccountDatabaseRemoteConnectionsV
421
433
 
422
434
  [[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)
423
435
 
424
- # **listAccountDatabasesV1**
425
- > HostingListAccountDatabasesV1200Response listAccountDatabasesV1()
436
+ # **listDatabaseRemoteConnectionsV1**
437
+ > Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource> listDatabaseRemoteConnectionsV1()
426
438
 
427
- Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
439
+ Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
428
440
 
429
441
  ### Example
430
442
 
@@ -438,19 +450,11 @@ const configuration = new Configuration();
438
450
  const apiInstance = new HostingDatabasesApi(configuration);
439
451
 
440
452
  let username: string; // (default to undefined)
441
- let page: number; //Page number (optional) (default to undefined)
442
- let perPage: number; //Number of items per page (optional) (default to 25)
443
- let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
444
- let isAssigned: boolean; //When used with domain, return only databases assigned to that domain. (optional) (default to undefined)
445
- let search: string; //Search databases by name, user, or creation date. (optional) (default to undefined)
453
+ let domain: string; //Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included. (optional) (default to undefined)
446
454
 
447
- const { status, data } = await apiInstance.listAccountDatabasesV1(
455
+ const { status, data } = await apiInstance.listDatabaseRemoteConnectionsV1(
448
456
  username,
449
- page,
450
- perPage,
451
- domain,
452
- isAssigned,
453
- search
457
+ domain
454
458
  );
455
459
  ```
456
460
 
@@ -459,16 +463,12 @@ const { status, data } = await apiInstance.listAccountDatabasesV1(
459
463
  |Name | Type | Description | Notes|
460
464
  |------------- | ------------- | ------------- | -------------|
461
465
  | **username** | [**string**] | | defaults to undefined|
462
- | **page** | [**number**] | Page number | (optional) defaults to undefined|
463
- | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
464
- | **domain** | [**string**] | Filter by domain name (exact match) | (optional) defaults to undefined|
465
- | **isAssigned** | [**boolean**] | When used with domain, return only databases assigned to that domain. | (optional) defaults to undefined|
466
- | **search** | [**string**] | Search databases by name, user, or creation date. | (optional) defaults to undefined|
466
+ | **domain** | [**string**] | Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included. | (optional) defaults to undefined|
467
467
 
468
468
 
469
469
  ### Return type
470
470
 
471
- **HostingListAccountDatabasesV1200Response**
471
+ **Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>**
472
472
 
473
473
  ### Authorization
474
474