hostinger-api-sdk 0.0.12 → 0.0.15

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 (138) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  2. package/README.md +2 -2
  3. package/api.ts +2820 -1228
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2050 -1042
  8. package/dist/api.js +2107 -1004
  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 +2050 -1042
  16. package/dist/esm/api.js +2092 -997
  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/BillingCatalogApi.md +64 -0
  28. package/docs/BillingOrdersApi.md +63 -0
  29. package/docs/BillingPaymentMethodsApi.md +162 -0
  30. package/docs/BillingSubscriptionsApi.md +113 -0
  31. package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
  32. package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
  33. package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
  34. package/docs/BillingV1OrderOrderResource.md +36 -0
  35. package/docs/BillingV1OrderStoreRequest.md +24 -0
  36. package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
  37. package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
  38. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
  39. package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
  40. package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
  41. package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
  42. package/docs/CommonSuccessEmptyResource.md +20 -0
  43. package/docs/DNSSnapshotApi.md +175 -0
  44. package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
  45. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
  46. package/docs/DNSV1ZoneDestroyRequest.md +20 -0
  47. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
  48. package/docs/DNSV1ZoneNameRecordResource.md +22 -0
  49. package/docs/DNSV1ZoneRecordResource.md +26 -0
  50. package/docs/DNSV1ZoneResetRequest.md +24 -0
  51. package/docs/DNSV1ZoneUpdateRequest.md +22 -0
  52. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
  53. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
  54. package/docs/DNSZoneApi.md +297 -0
  55. package/docs/DomainsAvailabilityApi.md +63 -0
  56. package/docs/DomainsForwardingApi.md +171 -0
  57. package/docs/DomainsPortfolioApi.md +439 -0
  58. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
  59. package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
  60. package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
  61. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
  62. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
  63. package/docs/DomainsV1DomainDomainResource.md +30 -0
  64. package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
  65. package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
  66. package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
  67. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
  68. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
  69. package/docs/DomainsV1WHOISProfileResource.md +34 -0
  70. package/docs/DomainsV1WHOISStoreRequest.md +28 -0
  71. package/docs/DomainsWHOISApi.md +279 -0
  72. package/docs/InlineObject.md +22 -0
  73. package/docs/InlineObject1.md +22 -0
  74. package/docs/InlineObject2.md +24 -0
  75. package/docs/InlineObject2Errors.md +23 -0
  76. package/docs/ReachContactsApi.md +224 -0
  77. package/docs/ReachListContactsV1200Response.md +22 -0
  78. package/docs/ReachV1ContactsContactResource.md +34 -0
  79. package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
  80. package/docs/ReachV1ContactsStoreRequest.md +28 -0
  81. package/docs/VPSActionsApi.md +121 -0
  82. package/docs/VPSBackupsApi.md +121 -0
  83. package/docs/VPSDataCentersApi.md +54 -0
  84. package/docs/VPSDockerManagerApi.md +585 -0
  85. package/docs/VPSFirewallApi.md +577 -0
  86. package/docs/VPSGetActionsV1200Response.md +22 -0
  87. package/docs/VPSGetBackupsV1200Response.md +22 -0
  88. package/docs/VPSGetFirewallListV1200Response.md +22 -0
  89. package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
  90. package/docs/VPSGetPublicKeysV1200Response.md +22 -0
  91. package/docs/VPSMalwareScannerApi.md +172 -0
  92. package/docs/VPSOSTemplatesApi.md +108 -0
  93. package/docs/VPSPTRRecordsApi.md +126 -0
  94. package/docs/VPSPostInstallScriptsApi.md +284 -0
  95. package/docs/VPSPublicKeysApi.md +230 -0
  96. package/docs/VPSRecoveryApi.md +120 -0
  97. package/docs/VPSSnapshotsApi.md +223 -0
  98. package/docs/VPSV1ActionActionResource.md +28 -0
  99. package/docs/VPSV1BackupBackupResource.md +28 -0
  100. package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
  101. package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
  102. package/docs/VPSV1DockerManagerContainerResource.md +36 -0
  103. package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
  104. package/docs/VPSV1DockerManagerContentResource.md +22 -0
  105. package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
  106. package/docs/VPSV1DockerManagerLogsResource.md +22 -0
  107. package/docs/VPSV1DockerManagerProjectResource.md +28 -0
  108. package/docs/VPSV1FirewallFirewallResource.md +30 -0
  109. package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
  110. package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
  111. package/docs/VPSV1FirewallStoreRequest.md +20 -0
  112. package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
  113. package/docs/VPSV1MalwareMetricsResource.md +30 -0
  114. package/docs/VPSV1MetricsMetricsCollection.md +30 -0
  115. package/docs/VPSV1MetricsMetricsResource.md +22 -0
  116. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
  117. package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
  118. package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
  119. package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
  120. package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
  121. package/docs/VPSV1SnapshotSnapshotResource.md +26 -0
  122. package/docs/VPSV1TemplateTemplateResource.md +26 -0
  123. package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +24 -0
  124. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
  125. package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
  126. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
  127. package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
  128. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
  129. package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
  130. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
  131. package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
  132. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
  133. package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
  134. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
  135. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +54 -0
  136. package/docs/VPSVirtualMachineApi.md +852 -0
  137. package/index.ts +1 -1
  138. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ # VPSV1VirtualMachinePTRStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Pointer record domain | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { VPSV1VirtualMachinePTRStoreRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: VPSV1VirtualMachinePTRStoreRequest = {
16
+ domain,
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,20 @@
1
+ # VPSV1VirtualMachinePanelPasswordUpdateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **password** | **string** | Panel password for the virtual machine | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { VPSV1VirtualMachinePanelPasswordUpdateRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: VPSV1VirtualMachinePanelPasswordUpdateRequest = {
16
+ password,
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,26 @@
1
+ # VPSV1VirtualMachinePurchaseRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **item_id** | **string** | Catalog price item ID | [default to undefined]
9
+ **payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
10
+ **setup** | [**VPSV1VirtualMachineSetupRequest**](VPSV1VirtualMachineSetupRequest.md) | | [default to undefined]
11
+ **coupons** | **Array<any>** | Discount coupon codes | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { VPSV1VirtualMachinePurchaseRequest } from 'hostinger-api-sdk';
17
+
18
+ const instance: VPSV1VirtualMachinePurchaseRequest = {
19
+ item_id,
20
+ payment_method_id,
21
+ setup,
22
+ coupons,
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)
@@ -0,0 +1,20 @@
1
+ # VPSV1VirtualMachineRecoveryStartRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **root_password** | **string** | Temporary root password for recovery mode | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { VPSV1VirtualMachineRecoveryStartRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: VPSV1VirtualMachineRecoveryStartRequest = {
16
+ root_password,
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,26 @@
1
+ # VPSV1VirtualMachineRecreateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **template_id** | **number** | Template ID | [default to undefined]
9
+ **password** | **string** | Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | [optional] [default to undefined]
10
+ **panel_password** | **string** | Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response. | [optional] [default to undefined]
11
+ **post_install_script_id** | **number** | Post-install script to execute after virtual machine was recreated | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { VPSV1VirtualMachineRecreateRequest } from 'hostinger-api-sdk';
17
+
18
+ const instance: VPSV1VirtualMachineRecreateRequest = {
19
+ template_id,
20
+ password,
21
+ panel_password,
22
+ post_install_script_id,
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)
@@ -0,0 +1,20 @@
1
+ # VPSV1VirtualMachineRootPasswordUpdateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **password** | **string** | Root password for the virtual machine | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { VPSV1VirtualMachineRootPasswordUpdateRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: VPSV1VirtualMachineRootPasswordUpdateRequest = {
16
+ password,
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,38 @@
1
+ # VPSV1VirtualMachineSetupRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **template_id** | **number** | Template ID | [default to undefined]
9
+ **data_center_id** | **number** | Data center ID | [default to undefined]
10
+ **post_install_script_id** | **number** | Post-install script ID | [optional] [default to undefined]
11
+ **password** | **string** | Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | [optional] [default to undefined]
12
+ **hostname** | **string** | Override default hostname of the virtual machine | [optional] [default to undefined]
13
+ **install_monarx** | **boolean** | Install Monarx malware scanner (if supported) | [optional] [default to false]
14
+ **enable_backups** | **boolean** | Enable weekly backup schedule | [optional] [default to true]
15
+ **ns1** | **string** | Name server 1 | [optional] [default to undefined]
16
+ **ns2** | **string** | Name server 2 | [optional] [default to undefined]
17
+ **public_key** | [**VPSV1VirtualMachineSetupRequestPublicKey**](VPSV1VirtualMachineSetupRequestPublicKey.md) | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { VPSV1VirtualMachineSetupRequest } from 'hostinger-api-sdk';
23
+
24
+ const instance: VPSV1VirtualMachineSetupRequest = {
25
+ template_id,
26
+ data_center_id,
27
+ post_install_script_id,
28
+ password,
29
+ hostname,
30
+ install_monarx,
31
+ enable_backups,
32
+ ns1,
33
+ ns2,
34
+ public_key,
35
+ };
36
+ ```
37
+
38
+ [[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,23 @@
1
+ # VPSV1VirtualMachineSetupRequestPublicKey
2
+
3
+ Use SSH key
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | Name of the SSH key | [optional] [default to undefined]
10
+ **key** | **string** | Contents of the SSH key | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { VPSV1VirtualMachineSetupRequestPublicKey } from 'hostinger-api-sdk';
16
+
17
+ const instance: VPSV1VirtualMachineSetupRequestPublicKey = {
18
+ name,
19
+ key,
20
+ };
21
+ ```
22
+
23
+ [[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,54 @@
1
+ # VPSV1VirtualMachineVirtualMachineResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Virtual machine ID | [optional] [default to undefined]
9
+ **firewall_group_id** | **number** | Active firewall ID, `null` if disabled | [optional] [default to undefined]
10
+ **subscription_id** | **string** | Subscription ID | [optional] [default to undefined]
11
+ **data_center_id** | **number** | Data center ID | [optional] [default to undefined]
12
+ **plan** | **string** | VPS plan name | [optional] [default to undefined]
13
+ **hostname** | **string** | | [optional] [default to undefined]
14
+ **state** | **string** | | [optional] [default to undefined]
15
+ **actions_lock** | **string** | | [optional] [default to undefined]
16
+ **cpus** | **number** | CPUs count assigned to virtual machine | [optional] [default to undefined]
17
+ **memory** | **number** | Memory available to virtual machine (in megabytes) | [optional] [default to undefined]
18
+ **disk** | **number** | Virtual machine disk size (in megabytes) | [optional] [default to undefined]
19
+ **bandwidth** | **number** | Monthly internet traffic available to virtual machine (in megabytes) | [optional] [default to undefined]
20
+ **ns1** | **string** | Primary DNS resolver | [optional] [default to undefined]
21
+ **ns2** | **string** | Secondary DNS resolver | [optional] [default to undefined]
22
+ **ipv4** | [**Array<VPSV1IPAddressIPAddressResource>**](VPSV1IPAddressIPAddressResource.md) | Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource) | [optional] [default to undefined]
23
+ **ipv6** | [**Array<VPSV1IPAddressIPAddressResource>**](VPSV1IPAddressIPAddressResource.md) | Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource) | [optional] [default to undefined]
24
+ **template** | [**VPSV1TemplateTemplateResource**](VPSV1TemplateTemplateResource.md) | | [optional] [default to undefined]
25
+ **created_at** | **string** | | [optional] [default to undefined]
26
+
27
+ ## Example
28
+
29
+ ```typescript
30
+ import { VPSV1VirtualMachineVirtualMachineResource } from 'hostinger-api-sdk';
31
+
32
+ const instance: VPSV1VirtualMachineVirtualMachineResource = {
33
+ id,
34
+ firewall_group_id,
35
+ subscription_id,
36
+ data_center_id,
37
+ plan,
38
+ hostname,
39
+ state,
40
+ actions_lock,
41
+ cpus,
42
+ memory,
43
+ disk,
44
+ bandwidth,
45
+ ns1,
46
+ ns2,
47
+ ipv4,
48
+ ipv6,
49
+ template,
50
+ created_at,
51
+ };
52
+ ```
53
+
54
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)