hostinger-api-sdk 0.0.15 → 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 (109) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/CODEOWNERS +1 -1
  3. package/README.md +2 -2
  4. package/api.ts +7356 -2584
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +2 -2
  8. package/dist/api.d.ts +4966 -1780
  9. package/dist/api.js +3335 -325
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +2 -2
  16. package/dist/esm/api.d.ts +4966 -1780
  17. package/dist/esm/api.js +3283 -314
  18. package/dist/esm/base.d.ts +1 -1
  19. package/dist/esm/base.js +1 -1
  20. package/dist/esm/common.d.ts +1 -1
  21. package/dist/esm/common.js +1 -1
  22. package/dist/esm/configuration.d.ts +1 -1
  23. package/dist/esm/configuration.js +2 -2
  24. package/dist/esm/index.d.ts +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/docs/BillingSubscriptionsApi.md +64 -15
  29. package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
  30. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
  31. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
  32. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
  33. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
  34. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
  35. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
  36. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
  37. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
  38. package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
  39. package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
  40. package/docs/DomainsPortfolioApi.md +1 -1
  41. package/docs/EcommerceGetStoresV1200Response.md +22 -0
  42. package/docs/EcommerceStoresApi.md +117 -0
  43. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  44. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  45. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  46. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  47. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  48. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  49. package/docs/HostingDatabasesApi.md +368 -0
  50. package/docs/HostingDatacentersApi.md +61 -0
  51. package/docs/HostingDomainsApi.md +468 -0
  52. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  53. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  54. package/docs/HostingListOrdersV1200Response.md +22 -0
  55. package/docs/HostingListWebsitesV1200Response.md +22 -0
  56. package/docs/HostingNodeJSApi.md +199 -0
  57. package/docs/HostingOrdersApi.md +70 -0
  58. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  59. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  60. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  61. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  62. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  63. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  64. package/docs/HostingV1DatacentersListRequest.md +20 -0
  65. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  66. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  67. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  68. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  69. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  70. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  71. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  72. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  73. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  74. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  75. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  76. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  77. package/docs/HostingV1OrdersOrderResource.md +30 -0
  78. package/docs/HostingV1OrdersPlanResource.md +20 -0
  79. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  80. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  81. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  82. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  83. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  84. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  85. package/docs/HostingWebsitesApi.md +132 -0
  86. package/docs/HostingWordpressApi.md +126 -0
  87. package/docs/ReachContactsApi.md +63 -4
  88. package/docs/ReachListSegmentContactsV1200Response.md +22 -0
  89. package/docs/ReachProfilesApi.md +54 -0
  90. package/docs/ReachSegmentsApi.md +224 -0
  91. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  92. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  93. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  94. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  95. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  96. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  97. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  98. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  99. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  100. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  101. package/docs/VPSActionsApi.md +1 -1
  102. package/docs/VPSDockerManagerApi.md +7 -7
  103. package/docs/VPSFirewallApi.md +1 -1
  104. package/docs/VPSMalwareScannerApi.md +2 -2
  105. package/docs/VPSVirtualMachineApi.md +2 -2
  106. package/index.ts +1 -1
  107. package/package.json +1 -1
  108. package/docs/BillingOrdersApi.md +0 -63
  109. package/docs/BillingV1OrderStoreRequest.md +0 -24
@@ -0,0 +1,117 @@
1
+ # EcommerceStoresApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createStoreV1**](#createstorev1) | **POST** /api/ecommerce/v1/stores | Create store|
8
+ |[**getStoresV1**](#getstoresv1) | **GET** /api/ecommerce/v1/stores | Get stores|
9
+
10
+ # **createStoreV1**
11
+ > EcommerceV1StoreStoreCreationResource createStoreV1(ecommerceV1StoreStoreRequest)
12
+
13
+ Create a new store for your account. A primary sales channel is created alongside the store.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ EcommerceStoresApi,
20
+ Configuration,
21
+ EcommerceV1StoreStoreRequest
22
+ } from 'hostinger-api-sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new EcommerceStoresApi(configuration);
26
+
27
+ let ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest; //
28
+
29
+ const { status, data } = await apiInstance.createStoreV1(
30
+ ecommerceV1StoreStoreRequest
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **ecommerceV1StoreStoreRequest** | **EcommerceV1StoreStoreRequest**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **EcommerceV1StoreStoreCreationResource**
44
+
45
+ ### Authorization
46
+
47
+ [apiToken](../README.md#apiToken)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**201** | Created response | - |
59
+ |**422** | Validation error response | - |
60
+ |**401** | Unauthenticated response | - |
61
+ |**500** | Error response | - |
62
+
63
+ [[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)
64
+
65
+ # **getStoresV1**
66
+ > EcommerceGetStoresV1200Response getStoresV1()
67
+
68
+ Retrieve the stores associated with your account.
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ EcommerceStoresApi,
75
+ Configuration
76
+ } from 'hostinger-api-sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new EcommerceStoresApi(configuration);
80
+
81
+ let page: number; //Page number (optional) (default to undefined)
82
+
83
+ const { status, data } = await apiInstance.getStoresV1(
84
+ page
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **EcommerceGetStoresV1200Response**
98
+
99
+ ### Authorization
100
+
101
+ [apiToken](../README.md#apiToken)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Success response | - |
113
+ |**401** | Unauthenticated response | - |
114
+ |**500** | Error response | - |
115
+
116
+ [[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)
117
+
@@ -0,0 +1,22 @@
1
+ # EcommerceV1StoreStoreCreationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **store** | [**EcommerceV1StoreStoreCreationResourceStore**](EcommerceV1StoreStoreCreationResourceStore.md) | | [optional] [default to undefined]
9
+ **sales_channel** | [**EcommerceV1StoreStoreCreationResourceSalesChannel**](EcommerceV1StoreStoreCreationResourceSalesChannel.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceV1StoreStoreCreationResource } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceV1StoreStoreCreationResource = {
17
+ store,
18
+ sales_channel,
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,24 @@
1
+ # EcommerceV1StoreStoreCreationResourceSalesChannel
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Sales channel ID | [optional] [default to undefined]
9
+ **type** | **string** | Sales channel type | [optional] [default to undefined]
10
+ **external_id** | **string** | External identifier for the sales channel | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EcommerceV1StoreStoreCreationResourceSalesChannel } from 'hostinger-api-sdk';
16
+
17
+ const instance: EcommerceV1StoreStoreCreationResourceSalesChannel = {
18
+ id,
19
+ type,
20
+ external_id,
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,30 @@
1
+ # EcommerceV1StoreStoreCreationResourceStore
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Store ID | [optional] [default to undefined]
9
+ **name** | **string** | Store name | [optional] [default to undefined]
10
+ **company_name** | **string** | Company name | [optional] [default to undefined]
11
+ **h_panel_id** | **string** | Identifier of the hPanel account that owns the store. | [optional] [default to undefined]
12
+ **created_at** | **string** | Creation date | [optional] [default to undefined]
13
+ **default_currency_code** | **string** | Default currency code (ISO 4217), in lowercase. | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { EcommerceV1StoreStoreCreationResourceStore } from 'hostinger-api-sdk';
19
+
20
+ const instance: EcommerceV1StoreStoreCreationResourceStore = {
21
+ id,
22
+ name,
23
+ company_name,
24
+ h_panel_id,
25
+ created_at,
26
+ default_currency_code,
27
+ };
28
+ ```
29
+
30
+ [[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,30 @@
1
+ # EcommerceV1StoreStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [optional] [default to undefined]
9
+ **country_code** | **string** | ISO 3166-1 alpha-2 country code. | [optional] [default to undefined]
10
+ **company_email** | **string** | | [optional] [default to undefined]
11
+ **company_name** | **string** | | [optional] [default to undefined]
12
+ **language** | **string** | ISO 639-1 language code. | [optional] [default to undefined]
13
+ **sales_channel** | [**EcommerceV1StoreStoreRequestSalesChannel**](EcommerceV1StoreStoreRequestSalesChannel.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { EcommerceV1StoreStoreRequest } from 'hostinger-api-sdk';
19
+
20
+ const instance: EcommerceV1StoreStoreRequest = {
21
+ name,
22
+ country_code,
23
+ company_email,
24
+ company_name,
25
+ language,
26
+ sales_channel,
27
+ };
28
+ ```
29
+
30
+ [[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,22 @@
1
+ # EcommerceV1StoreStoreRequestSalesChannel
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | Sales channel type. Only \"custom\" channels can be created via the API. | [optional] [default to undefined]
9
+ **external_id** | **string** | External identifier for the sales channel. | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceV1StoreStoreRequestSalesChannel } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceV1StoreStoreRequestSalesChannel = {
17
+ type,
18
+ external_id,
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,30 @@
1
+ # EcommerceV1StoreStoreResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Store ID | [optional] [default to undefined]
9
+ **name** | **string** | Store name | [optional] [default to undefined]
10
+ **created_at** | **string** | Creation date | [optional] [default to undefined]
11
+ **updated_at** | **string** | Last update date | [optional] [default to undefined]
12
+ **version** | **string** | Store platform version identifier (e.g. \"v2_standalone\"). | [optional] [default to undefined]
13
+ **company_name** | **string** | Company name | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { EcommerceV1StoreStoreResource } from 'hostinger-api-sdk';
19
+
20
+ const instance: EcommerceV1StoreStoreResource = {
21
+ id,
22
+ name,
23
+ created_at,
24
+ updated_at,
25
+ version,
26
+ company_name,
27
+ };
28
+ ```
29
+
30
+ [[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,368 @@
1
+ # HostingDatabasesApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**changeDatabasePasswordV1**](#changedatabasepasswordv1) | **PATCH** /api/hosting/v1/accounts/{username}/databases/{name}/change-password | Change database password|
8
+ |[**createAccountDatabaseV1**](#createaccountdatabasev1) | **POST** /api/hosting/v1/accounts/{username}/databases | Create account database|
9
+ |[**deleteAccountDatabaseV1**](#deleteaccountdatabasev1) | **DELETE** /api/hosting/v1/accounts/{username}/databases/{name} | Delete account database|
10
+ |[**getPhpMyAdminLinkV1**](#getphpmyadminlinkv1) | **GET** /api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link | Get phpMyAdmin link|
11
+ |[**listAccountDatabasesV1**](#listaccountdatabasesv1) | **GET** /api/hosting/v1/accounts/{username}/databases | List account databases|
12
+ |[**repairDatabaseV1**](#repairdatabasev1) | **PATCH** /api/hosting/v1/accounts/{username}/databases/{name}/repair | Repair database|
13
+
14
+ # **changeDatabasePasswordV1**
15
+ > CommonSuccessEmptyResource changeDatabasePasswordV1(hostingV1DatabasesChangeDatabasePasswordRequest)
16
+
17
+ Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ HostingDatabasesApi,
24
+ Configuration,
25
+ HostingV1DatabasesChangeDatabasePasswordRequest
26
+ } from 'hostinger-api-sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new HostingDatabasesApi(configuration);
30
+
31
+ let username: string; // (default to undefined)
32
+ let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
33
+ let hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest; //
34
+
35
+ const { status, data } = await apiInstance.changeDatabasePasswordV1(
36
+ username,
37
+ name,
38
+ hostingV1DatabasesChangeDatabasePasswordRequest
39
+ );
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ |Name | Type | Description | Notes|
45
+ |------------- | ------------- | ------------- | -------------|
46
+ | **hostingV1DatabasesChangeDatabasePasswordRequest** | **HostingV1DatabasesChangeDatabasePasswordRequest**| | |
47
+ | **username** | [**string**] | | defaults to undefined|
48
+ | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
49
+
50
+
51
+ ### Return type
52
+
53
+ **CommonSuccessEmptyResource**
54
+
55
+ ### Authorization
56
+
57
+ [apiToken](../README.md#apiToken)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+ ### HTTP response details
66
+ | Status code | Description | Response headers |
67
+ |-------------|-------------|------------------|
68
+ |**200** | Success empty response | - |
69
+ |**422** | Validation error response | - |
70
+ |**401** | Unauthenticated response | - |
71
+ |**500** | Error response | - |
72
+
73
+ [[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)
74
+
75
+ # **createAccountDatabaseV1**
76
+ > CommonSuccessEmptyResource createAccountDatabaseV1(hostingV1DatabasesCreateDatabaseRequest)
77
+
78
+ 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.
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ HostingDatabasesApi,
85
+ Configuration,
86
+ HostingV1DatabasesCreateDatabaseRequest
87
+ } from 'hostinger-api-sdk';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new HostingDatabasesApi(configuration);
91
+
92
+ let username: string; // (default to undefined)
93
+ let hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest; //
94
+
95
+ const { status, data } = await apiInstance.createAccountDatabaseV1(
96
+ username,
97
+ hostingV1DatabasesCreateDatabaseRequest
98
+ );
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ |Name | Type | Description | Notes|
104
+ |------------- | ------------- | ------------- | -------------|
105
+ | **hostingV1DatabasesCreateDatabaseRequest** | **HostingV1DatabasesCreateDatabaseRequest**| | |
106
+ | **username** | [**string**] | | defaults to undefined|
107
+
108
+
109
+ ### Return type
110
+
111
+ **CommonSuccessEmptyResource**
112
+
113
+ ### Authorization
114
+
115
+ [apiToken](../README.md#apiToken)
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: application/json
120
+ - **Accept**: application/json
121
+
122
+
123
+ ### HTTP response details
124
+ | Status code | Description | Response headers |
125
+ |-------------|-------------|------------------|
126
+ |**200** | Success empty response | - |
127
+ |**422** | Validation error response | - |
128
+ |**401** | Unauthenticated response | - |
129
+ |**500** | Error response | - |
130
+
131
+ [[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)
132
+
133
+ # **deleteAccountDatabaseV1**
134
+ > CommonSuccessEmptyResource deleteAccountDatabaseV1()
135
+
136
+ Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
137
+
138
+ ### Example
139
+
140
+ ```typescript
141
+ import {
142
+ HostingDatabasesApi,
143
+ Configuration
144
+ } from 'hostinger-api-sdk';
145
+
146
+ const configuration = new Configuration();
147
+ const apiInstance = new HostingDatabasesApi(configuration);
148
+
149
+ let username: string; // (default to undefined)
150
+ let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
151
+
152
+ const { status, data } = await apiInstance.deleteAccountDatabaseV1(
153
+ username,
154
+ name
155
+ );
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ |Name | Type | Description | Notes|
161
+ |------------- | ------------- | ------------- | -------------|
162
+ | **username** | [**string**] | | defaults to undefined|
163
+ | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **CommonSuccessEmptyResource**
169
+
170
+ ### Authorization
171
+
172
+ [apiToken](../README.md#apiToken)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | Success empty response | - |
184
+ |**401** | Unauthenticated response | - |
185
+ |**500** | Error response | - |
186
+
187
+ [[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)
188
+
189
+ # **getPhpMyAdminLinkV1**
190
+ > HostingV1DatabasesPhpMyAdminLinkResource getPhpMyAdminLinkV1()
191
+
192
+ Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
193
+
194
+ ### Example
195
+
196
+ ```typescript
197
+ import {
198
+ HostingDatabasesApi,
199
+ Configuration
200
+ } from 'hostinger-api-sdk';
201
+
202
+ const configuration = new Configuration();
203
+ const apiInstance = new HostingDatabasesApi(configuration);
204
+
205
+ let username: string; // (default to undefined)
206
+ let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
207
+
208
+ const { status, data } = await apiInstance.getPhpMyAdminLinkV1(
209
+ username,
210
+ name
211
+ );
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ |Name | Type | Description | Notes|
217
+ |------------- | ------------- | ------------- | -------------|
218
+ | **username** | [**string**] | | defaults to undefined|
219
+ | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
220
+
221
+
222
+ ### Return type
223
+
224
+ **HostingV1DatabasesPhpMyAdminLinkResource**
225
+
226
+ ### Authorization
227
+
228
+ [apiToken](../README.md#apiToken)
229
+
230
+ ### HTTP request headers
231
+
232
+ - **Content-Type**: Not defined
233
+ - **Accept**: application/json
234
+
235
+
236
+ ### HTTP response details
237
+ | Status code | Description | Response headers |
238
+ |-------------|-------------|------------------|
239
+ |**200** | Success response | - |
240
+ |**401** | Unauthenticated response | - |
241
+ |**500** | Error response | - |
242
+
243
+ [[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)
244
+
245
+ # **listAccountDatabasesV1**
246
+ > HostingListAccountDatabasesV1200Response listAccountDatabasesV1()
247
+
248
+ 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.
249
+
250
+ ### Example
251
+
252
+ ```typescript
253
+ import {
254
+ HostingDatabasesApi,
255
+ Configuration
256
+ } from 'hostinger-api-sdk';
257
+
258
+ const configuration = new Configuration();
259
+ const apiInstance = new HostingDatabasesApi(configuration);
260
+
261
+ let username: string; // (default to undefined)
262
+ let page: number; //Page number (optional) (default to undefined)
263
+ let perPage: number; //Number of items per page (optional) (default to 25)
264
+ let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
265
+ let isAssigned: boolean; //When used with domain, return only databases assigned to that domain. (optional) (default to undefined)
266
+ let search: string; //Search databases by name, user, or creation date. (optional) (default to undefined)
267
+
268
+ const { status, data } = await apiInstance.listAccountDatabasesV1(
269
+ username,
270
+ page,
271
+ perPage,
272
+ domain,
273
+ isAssigned,
274
+ search
275
+ );
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+ |Name | Type | Description | Notes|
281
+ |------------- | ------------- | ------------- | -------------|
282
+ | **username** | [**string**] | | defaults to undefined|
283
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
284
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
285
+ | **domain** | [**string**] | Filter by domain name (exact match) | (optional) defaults to undefined|
286
+ | **isAssigned** | [**boolean**] | When used with domain, return only databases assigned to that domain. | (optional) defaults to undefined|
287
+ | **search** | [**string**] | Search databases by name, user, or creation date. | (optional) defaults to undefined|
288
+
289
+
290
+ ### Return type
291
+
292
+ **HostingListAccountDatabasesV1200Response**
293
+
294
+ ### Authorization
295
+
296
+ [apiToken](../README.md#apiToken)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: application/json
302
+
303
+
304
+ ### HTTP response details
305
+ | Status code | Description | Response headers |
306
+ |-------------|-------------|------------------|
307
+ |**200** | Success response | - |
308
+ |**401** | Unauthenticated response | - |
309
+ |**500** | Error response | - |
310
+
311
+ [[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)
312
+
313
+ # **repairDatabaseV1**
314
+ > CommonSuccessEmptyResource repairDatabaseV1()
315
+
316
+ Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
317
+
318
+ ### Example
319
+
320
+ ```typescript
321
+ import {
322
+ HostingDatabasesApi,
323
+ Configuration
324
+ } from 'hostinger-api-sdk';
325
+
326
+ const configuration = new Configuration();
327
+ const apiInstance = new HostingDatabasesApi(configuration);
328
+
329
+ let username: string; // (default to undefined)
330
+ let name: string; //Full database name as returned by the list databases endpoint. (default to undefined)
331
+
332
+ const { status, data } = await apiInstance.repairDatabaseV1(
333
+ username,
334
+ name
335
+ );
336
+ ```
337
+
338
+ ### Parameters
339
+
340
+ |Name | Type | Description | Notes|
341
+ |------------- | ------------- | ------------- | -------------|
342
+ | **username** | [**string**] | | defaults to undefined|
343
+ | **name** | [**string**] | Full database name as returned by the list databases endpoint. | defaults to undefined|
344
+
345
+
346
+ ### Return type
347
+
348
+ **CommonSuccessEmptyResource**
349
+
350
+ ### Authorization
351
+
352
+ [apiToken](../README.md#apiToken)
353
+
354
+ ### HTTP request headers
355
+
356
+ - **Content-Type**: Not defined
357
+ - **Accept**: application/json
358
+
359
+
360
+ ### HTTP response details
361
+ | Status code | Description | Response headers |
362
+ |-------------|-------------|------------------|
363
+ |**200** | Success empty response | - |
364
+ |**401** | Unauthenticated response | - |
365
+ |**500** | Error response | - |
366
+
367
+ [[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)
368
+