hostinger-api-sdk 0.0.17 → 0.0.19

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 (108) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/README.md +2 -2
  3. package/api.ts +7280 -2652
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +4936 -1816
  8. package/dist/api.js +3248 -374
  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 +4936 -1816
  16. package/dist/esm/api.js +3196 -363
  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/BillingSubscriptionsApi.md +0 -59
  28. package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
  29. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
  30. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
  31. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
  32. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
  33. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
  34. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
  35. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
  36. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
  37. package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
  38. package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
  39. package/docs/DomainsPortfolioApi.md +1 -1
  40. package/docs/EcommerceGetStoresV1200Response.md +22 -0
  41. package/docs/EcommerceStoresApi.md +117 -0
  42. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  43. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  44. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  45. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  46. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  47. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  48. package/docs/HostingDatabasesApi.md +368 -0
  49. package/docs/HostingDatacentersApi.md +61 -0
  50. package/docs/HostingDomainsApi.md +468 -0
  51. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  52. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  53. package/docs/HostingListOrdersV1200Response.md +22 -0
  54. package/docs/HostingListWebsitesV1200Response.md +22 -0
  55. package/docs/HostingNodeJSApi.md +199 -0
  56. package/docs/HostingOrdersApi.md +70 -0
  57. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  58. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  59. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  60. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  61. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  62. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  63. package/docs/HostingV1DatacentersListRequest.md +20 -0
  64. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  65. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  66. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  67. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  68. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  69. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  70. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  71. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  72. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  73. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  74. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  75. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  76. package/docs/HostingV1OrdersOrderResource.md +30 -0
  77. package/docs/HostingV1OrdersPlanResource.md +20 -0
  78. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  79. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  80. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  81. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  82. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  83. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  84. package/docs/HostingWebsitesApi.md +132 -0
  85. package/docs/HostingWordpressApi.md +126 -0
  86. package/docs/ReachContactsApi.md +63 -4
  87. package/docs/ReachListSegmentContactsV1200Response.md +22 -0
  88. package/docs/ReachProfilesApi.md +54 -0
  89. package/docs/ReachSegmentsApi.md +224 -0
  90. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  91. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  92. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  93. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  94. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  95. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  96. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  97. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  98. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  99. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  100. package/docs/VPSActionsApi.md +1 -1
  101. package/docs/VPSDockerManagerApi.md +7 -7
  102. package/docs/VPSFirewallApi.md +1 -1
  103. package/docs/VPSMalwareScannerApi.md +2 -2
  104. package/docs/VPSVirtualMachineApi.md +2 -2
  105. package/index.ts +1 -1
  106. package/package.json +1 -1
  107. package/docs/BillingOrdersApi.md +0 -63
  108. package/docs/BillingV1OrderStoreRequest.md +0 -24
@@ -18,7 +18,7 @@ All URIs are relative to *https://developers.hostinger.com*
18
18
  # **createNewProjectV1**
19
19
  > VPSV1ActionActionResource createNewProjectV1(vPSV1VirtualMachineDockerManagerUpRequest)
20
20
 
21
- Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
21
+ Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
22
22
 
23
23
  ### Example
24
24
 
@@ -133,7 +133,7 @@ const { status, data } = await apiInstance.deleteProjectV1(
133
133
  # **getProjectContainersV1**
134
134
  > Array<VPSV1DockerManagerContainerResource> getProjectContainersV1()
135
135
 
136
- Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
136
+ Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
137
137
 
138
138
  ### Example
139
139
 
@@ -190,7 +190,7 @@ const { status, data } = await apiInstance.getProjectContainersV1(
190
190
  # **getProjectContentsV1**
191
191
  > VPSV1DockerManagerContentResource getProjectContentsV1()
192
192
 
193
- Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
193
+ Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
194
194
 
195
195
  ### Example
196
196
 
@@ -247,7 +247,7 @@ const { status, data } = await apiInstance.getProjectContentsV1(
247
247
  # **getProjectListV1**
248
248
  > Array<VPSV1DockerManagerProjectResource> getProjectListV1()
249
249
 
250
- Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
250
+ Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
251
251
 
252
252
  ### Example
253
253
 
@@ -358,7 +358,7 @@ const { status, data } = await apiInstance.getProjectLogsV1(
358
358
  # **restartProjectV1**
359
359
  > VPSV1ActionActionResource restartProjectV1()
360
360
 
361
- Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
361
+ Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
362
362
 
363
363
  ### Example
364
364
 
@@ -472,7 +472,7 @@ const { status, data } = await apiInstance.startProjectV1(
472
472
  # **stopProjectV1**
473
473
  > VPSV1ActionActionResource stopProjectV1()
474
474
 
475
- Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
475
+ Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
476
476
 
477
477
  ### Example
478
478
 
@@ -529,7 +529,7 @@ const { status, data } = await apiInstance.stopProjectV1(
529
529
  # **updateProjectV1**
530
530
  > VPSV1ActionActionResource updateProjectV1()
531
531
 
532
- Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
532
+ Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
533
533
 
534
534
  ### Example
535
535
 
@@ -245,7 +245,7 @@ const { status, data } = await apiInstance.deactivateFirewallV1(
245
245
  # **deleteFirewallRuleV1**
246
246
  > CommonSuccessEmptyResource deleteFirewallRuleV1()
247
247
 
248
- Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
248
+ Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
249
249
 
250
250
  ### Example
251
251
 
@@ -11,7 +11,7 @@ All URIs are relative to *https://developers.hostinger.com*
11
11
  # **getScanMetricsV1**
12
12
  > VPSV1MalwareMetricsResource getScanMetricsV1()
13
13
 
14
- Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
14
+ Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
15
15
 
16
16
  ### Example
17
17
 
@@ -65,7 +65,7 @@ const { status, data } = await apiInstance.getScanMetricsV1(
65
65
  # **installMonarxV1**
66
66
  > VPSV1ActionActionResource installMonarxV1()
67
67
 
68
- Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
68
+ Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
69
69
 
70
70
  ### Example
71
71
 
@@ -238,7 +238,7 @@ This endpoint does not have any parameters.
238
238
  # **purchaseNewVirtualMachineV1**
239
239
  > BillingV1OrderVirtualMachineOrderResource purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest)
240
240
 
241
- Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
241
+ Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
242
242
 
243
243
  ### Example
244
244
 
@@ -293,7 +293,7 @@ const { status, data } = await apiInstance.purchaseNewVirtualMachineV1(
293
293
  # **recreateVirtualMachineV1**
294
294
  > VPSV1ActionActionResource recreateVirtualMachineV1(vPSV1VirtualMachineRecreateRequest)
295
295
 
296
- Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
296
+ Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
297
297
 
298
298
  ### Example
299
299
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.1.16
6
+ * API Version: 0.18.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {
@@ -1,63 +0,0 @@
1
- # BillingOrdersApi
2
-
3
- All URIs are relative to *https://developers.hostinger.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**createServiceOrderV1**](#createserviceorderv1) | **POST** /api/billing/v1/orders | Create service order|
8
-
9
- # **createServiceOrderV1**
10
- > BillingV1OrderOrderResource createServiceOrderV1(billingV1OrderStoreRequest)
11
-
12
- Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- BillingOrdersApi,
19
- Configuration,
20
- BillingV1OrderStoreRequest
21
- } from 'hostinger-api-sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new BillingOrdersApi(configuration);
25
-
26
- let billingV1OrderStoreRequest: BillingV1OrderStoreRequest; //
27
-
28
- const { status, data } = await apiInstance.createServiceOrderV1(
29
- billingV1OrderStoreRequest
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **billingV1OrderStoreRequest** | **BillingV1OrderStoreRequest**| | |
38
-
39
-
40
- ### Return type
41
-
42
- **BillingV1OrderOrderResource**
43
-
44
- ### Authorization
45
-
46
- [apiToken](../README.md#apiToken)
47
-
48
- ### HTTP request headers
49
-
50
- - **Content-Type**: application/json
51
- - **Accept**: application/json
52
-
53
-
54
- ### HTTP response details
55
- | Status code | Description | Response headers |
56
- |-------------|-------------|------------------|
57
- |**200** | Success response | - |
58
- |**422** | Validation error response | - |
59
- |**401** | Unauthenticated response | - |
60
- |**500** | Error response | - |
61
-
62
- [[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)
63
-
@@ -1,24 +0,0 @@
1
- # BillingV1OrderStoreRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **payment_method_id** | **number** | Payment method ID | [default to undefined]
9
- **items** | [**Array&lt;BillingV1OrderStoreRequestItemsInner&gt;**](BillingV1OrderStoreRequestItemsInner.md) | | [default to undefined]
10
- **coupons** | **Array&lt;any&gt;** | Discount coupon codes | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { BillingV1OrderStoreRequest } from 'hostinger-api-sdk';
16
-
17
- const instance: BillingV1OrderStoreRequest = {
18
- payment_method_id,
19
- items,
20
- coupons,
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)