hostinger-api-sdk 1.5.1 → 1.22.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 (178) hide show
  1. package/.github/workflows/build-release.yaml +29 -1
  2. package/README.md +2 -2
  3. package/api.ts +19008 -8147
  4. package/base.ts +1 -1
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +13441 -6234
  8. package/dist/api.js +10911 -4155
  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 +13441 -6234
  16. package/dist/esm/api.js +10589 -3919
  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/BillingSubscriptionsApi.md +59 -0
  93. package/docs/BillingV1OrderPurchaseRequest.md +24 -0
  94. package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
  95. package/docs/BillingV1SubscriptionRenewalRenewRequest.md +22 -0
  96. package/docs/DomainsForwardingApi.md +59 -0
  97. package/docs/DomainsPortfolioApi.md +108 -0
  98. package/docs/DomainsTransferApi.md +108 -0
  99. package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
  100. package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
  101. package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
  102. package/docs/DomainsV1TransferTransferResource.md +26 -0
  103. package/docs/HostingDatabasesApi.md +63 -63
  104. package/docs/HostingNodeJSApi.md +122 -0
  105. package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
  106. package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
  107. package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
  108. package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
  109. package/docs/HostingWebsitesApi.md +59 -0
  110. package/docs/MailAPITokensApi.md +185 -0
  111. package/docs/MailAliasesApi.md +186 -0
  112. package/docs/MailAutorepliesApi.md +246 -0
  113. package/docs/MailCatchallsApi.md +239 -0
  114. package/docs/MailForwardersApi.md +304 -0
  115. package/docs/MailListAPITokensV1200Response.md +22 -0
  116. package/docs/MailListAccessLogsV1200Response.md +22 -0
  117. package/docs/MailListActionLogsV1200Response.md +22 -0
  118. package/docs/MailListAliasesV1200Response.md +22 -0
  119. package/docs/MailListAutorepliesV1200Response.md +22 -0
  120. package/docs/MailListCatchAllsV1200Response.md +22 -0
  121. package/docs/MailListForwardersV1200Response.md +22 -0
  122. package/docs/MailListInboundLogsV1200Response.md +22 -0
  123. package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
  124. package/docs/MailListMailboxesV1200Response.md +22 -0
  125. package/docs/MailListOrdersV1200Response.md +22 -0
  126. package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
  127. package/docs/MailListWebhooksV1200Response.md +22 -0
  128. package/docs/MailLogsApi.md +410 -0
  129. package/docs/MailMailboxesApi.md +253 -0
  130. package/docs/MailOrdersApi.md +132 -0
  131. package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
  132. package/docs/MailV1AliasesAliasResource.md +30 -0
  133. package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
  134. package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
  135. package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
  136. package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
  137. package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
  138. package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
  139. package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
  140. package/docs/MailV1CatchallsCatchallResource.md +32 -0
  141. package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
  142. package/docs/MailV1ForwardersForwarderResource.md +34 -0
  143. package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
  144. package/docs/MailV1LogsActionActionLogResource.md +32 -0
  145. package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
  146. package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
  147. package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
  148. package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
  149. package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
  150. package/docs/MailV1MailboxesMailboxResource.md +38 -0
  151. package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
  152. package/docs/MailV1OrdersOrderDomainResource.md +22 -0
  153. package/docs/MailV1OrdersOrderPlanResource.md +22 -0
  154. package/docs/MailV1OrdersOrderResource.md +36 -0
  155. package/docs/MailV1OrdersPlanDomainResource.md +30 -0
  156. package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
  157. package/docs/MailV1OrdersPlanResource.md +26 -0
  158. package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
  159. package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
  160. package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
  161. package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
  162. package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
  163. package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
  164. package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
  165. package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
  166. package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
  167. package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
  168. package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
  169. package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
  170. package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
  171. package/docs/MailV1WebhooksWebhookResource.md +36 -0
  172. package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
  173. package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
  174. package/docs/MailWebhooksApi.md +488 -0
  175. package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
  176. package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
  177. package/index.ts +1 -1
  178. package/package.json +2 -2
@@ -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 \"%\", 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 \"%\", 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
 
@@ -7,6 +7,8 @@ All URIs are relative to *https://developers.hostinger.com*
7
7
  |[**createNodeJSBuildFromArchiveV1**](#createnodejsbuildfromarchivev1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive | Create NodeJS build from archive|
8
8
  |[**getNodeJSBuildLogsV1**](#getnodejsbuildlogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs|
9
9
  |[**listNodeJSBuildsV1**](#listnodejsbuildsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds|
10
+ |[**listNodeJsVulnerabilitiesV1**](#listnodejsvulnerabilitiesv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities | List Node.js vulnerabilities|
11
+ |[**patchNodeJsVulnerabilitiesV1**](#patchnodejsvulnerabilitiesv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch | Patch Node.js vulnerabilities|
10
12
  |[**restartNodeJsApplicationV1**](#restartnodejsapplicationv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart | Restart Node.js application|
11
13
 
12
14
  # **createNodeJSBuildFromArchiveV1**
@@ -198,6 +200,126 @@ const { status, data } = await apiInstance.listNodeJSBuildsV1(
198
200
 
199
201
  [[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)
200
202
 
203
+ # **listNodeJsVulnerabilitiesV1**
204
+ > Array<HostingV1NodeJsVulnerabilityResource> listNodeJsVulnerabilitiesV1()
205
+
206
+ Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
207
+
208
+ ### Example
209
+
210
+ ```typescript
211
+ import {
212
+ HostingNodeJSApi,
213
+ Configuration
214
+ } from 'hostinger-api-sdk';
215
+
216
+ const configuration = new Configuration();
217
+ const apiInstance = new HostingNodeJSApi(configuration);
218
+
219
+ let username: string; // (default to undefined)
220
+ let domain: string; //Domain name (default to undefined)
221
+ let severities: Array<'low' | 'moderate' | 'high' | 'critical' | 'unknown'>; //Severities to filter by (optional) (default to undefined)
222
+
223
+ const { status, data } = await apiInstance.listNodeJsVulnerabilitiesV1(
224
+ username,
225
+ domain,
226
+ severities
227
+ );
228
+ ```
229
+
230
+ ### Parameters
231
+
232
+ |Name | Type | Description | Notes|
233
+ |------------- | ------------- | ------------- | -------------|
234
+ | **username** | [**string**] | | defaults to undefined|
235
+ | **domain** | [**string**] | Domain name | defaults to undefined|
236
+ | **severities** | **Array<&#39;low&#39; &#124; &#39;moderate&#39; &#124; &#39;high&#39; &#124; &#39;critical&#39; &#124; &#39;unknown&#39;>** | Severities to filter by | (optional) defaults to undefined|
237
+
238
+
239
+ ### Return type
240
+
241
+ **Array<HostingV1NodeJsVulnerabilityResource>**
242
+
243
+ ### Authorization
244
+
245
+ [apiToken](../README.md#apiToken)
246
+
247
+ ### HTTP request headers
248
+
249
+ - **Content-Type**: Not defined
250
+ - **Accept**: application/json
251
+
252
+
253
+ ### HTTP response details
254
+ | Status code | Description | Response headers |
255
+ |-------------|-------------|------------------|
256
+ |**200** | Success response | - |
257
+ |**401** | Unauthenticated response | - |
258
+ |**500** | Error response | - |
259
+
260
+ [[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)
261
+
262
+ # **patchNodeJsVulnerabilitiesV1**
263
+ > HostingV1NodeJsPatchResultResource patchNodeJsVulnerabilitiesV1(hostingV1NodeJsPatchVulnerabilitiesRequest)
264
+
265
+ Patches the selected Node.js vulnerabilities by updating the affected package versions in `package.json` and opening a GitHub pull request in the connected repository. The customer reviews and merges the pull request; merging triggers the automatic deployment. Auto-fix is only available for websites deployed from a connected GitHub repository. Websites deployed from an archive have no auto-fix path and return a 404. The Hostinger GitHub App needs write access to the repository; without it the request fails with a 403 explaining the missing permission. Only vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable IDs in the selection are skipped; the pull request covers the patchable subset, listed in `patched_vulnerability_ids`. Selections without any patchable vulnerability are rejected with a 422. Only one patch pull request can be open at a time per website; close or merge it before patching again. Available on Business and Cloud Hosting plans.
266
+
267
+ ### Example
268
+
269
+ ```typescript
270
+ import {
271
+ HostingNodeJSApi,
272
+ Configuration,
273
+ HostingV1NodeJsPatchVulnerabilitiesRequest
274
+ } from 'hostinger-api-sdk';
275
+
276
+ const configuration = new Configuration();
277
+ const apiInstance = new HostingNodeJSApi(configuration);
278
+
279
+ let username: string; // (default to undefined)
280
+ let domain: string; //Domain name (default to undefined)
281
+ let hostingV1NodeJsPatchVulnerabilitiesRequest: HostingV1NodeJsPatchVulnerabilitiesRequest; //
282
+
283
+ const { status, data } = await apiInstance.patchNodeJsVulnerabilitiesV1(
284
+ username,
285
+ domain,
286
+ hostingV1NodeJsPatchVulnerabilitiesRequest
287
+ );
288
+ ```
289
+
290
+ ### Parameters
291
+
292
+ |Name | Type | Description | Notes|
293
+ |------------- | ------------- | ------------- | -------------|
294
+ | **hostingV1NodeJsPatchVulnerabilitiesRequest** | **HostingV1NodeJsPatchVulnerabilitiesRequest**| | |
295
+ | **username** | [**string**] | | defaults to undefined|
296
+ | **domain** | [**string**] | Domain name | defaults to undefined|
297
+
298
+
299
+ ### Return type
300
+
301
+ **HostingV1NodeJsPatchResultResource**
302
+
303
+ ### Authorization
304
+
305
+ [apiToken](../README.md#apiToken)
306
+
307
+ ### HTTP request headers
308
+
309
+ - **Content-Type**: application/json
310
+ - **Accept**: application/json
311
+
312
+
313
+ ### HTTP response details
314
+ | Status code | Description | Response headers |
315
+ |-------------|-------------|------------------|
316
+ |**201** | Created response | - |
317
+ |**422** | Validation error response | - |
318
+ |**401** | Unauthenticated response | - |
319
+ |**500** | Error response | - |
320
+
321
+ [[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)
322
+
201
323
  # **restartNodeJsApplicationV1**
202
324
  > CommonSuccessEmptyResource restartNodeJsApplicationV1()
203
325
 
@@ -0,0 +1,26 @@
1
+ # HostingV1NodeJsPatchResultResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **pr_url** | **string** | URL to the created GitHub pull request | [optional] [default to undefined]
9
+ **pr_number** | **number** | GitHub pull request number | [optional] [default to undefined]
10
+ **head_branch** | **string** | The branch created with the fix | [optional] [default to undefined]
11
+ **patched_vulnerability_ids** | **Array&lt;string&gt;** | List of vulnerability IDs that were patched in the pull request | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { HostingV1NodeJsPatchResultResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: HostingV1NodeJsPatchResultResource = {
19
+ pr_url,
20
+ pr_number,
21
+ head_branch,
22
+ patched_vulnerability_ids,
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
+ # HostingV1NodeJsPatchVulnerabilitiesRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **vulnerability_ids** | **Array&lt;string&gt;** | List of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HostingV1NodeJsPatchVulnerabilitiesRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: HostingV1NodeJsPatchVulnerabilitiesRequest = {
16
+ vulnerability_ids,
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,48 @@
1
+ # HostingV1NodeJsVulnerabilityResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **package_name** | **string** | Name of the affected npm package | [optional] [default to undefined]
9
+ **installed_version** | **string** | Version of the package currently installed | [optional] [default to undefined]
10
+ **is_direct** | **boolean** | Whether the package is a direct dependency | [optional] [default to undefined]
11
+ **is_patchable** | **boolean** | Whether the vulnerability can be auto-patched without a major version bump | [optional] [default to undefined]
12
+ **fix_version** | **string** | Version that fixes the vulnerability, if known | [optional] [default to undefined]
13
+ **vulnerability_id** | **string** | Unique vulnerability identifier (e.g. GHSA or CVE) | [optional] [default to undefined]
14
+ **severity** | **string** | Severity level of the vulnerability | [optional] [default to undefined]
15
+ **title** | **string** | Short human-readable title of the vulnerability | [optional] [default to undefined]
16
+ **description** | **string** | Detailed description of the vulnerability | [optional] [default to undefined]
17
+ **cvss_score** | **number** | CVSS base score (0.0-10.0) | [optional] [default to undefined]
18
+ **cve** | **string** | CVE identifier, if available | [optional] [default to undefined]
19
+ **cwe** | **string** | CWE identifier describing the weakness type | [optional] [default to undefined]
20
+ **url** | **string** | URL to the vulnerability advisory | [optional] [default to undefined]
21
+ **published_at** | **string** | Date the vulnerability was published, in ISO 8601 format | [optional] [default to undefined]
22
+ **is_patching_in_progress** | **boolean** | Whether this vulnerability is included in a currently open patch pull request | [optional] [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { HostingV1NodeJsVulnerabilityResource } from 'hostinger-api-sdk';
28
+
29
+ const instance: HostingV1NodeJsVulnerabilityResource = {
30
+ package_name,
31
+ installed_version,
32
+ is_direct,
33
+ is_patchable,
34
+ fix_version,
35
+ vulnerability_id,
36
+ severity,
37
+ title,
38
+ description,
39
+ cvss_score,
40
+ cve,
41
+ cwe,
42
+ url,
43
+ published_at,
44
+ is_patching_in_progress,
45
+ };
46
+ ```
47
+
48
+ [[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
+ # HostingV1WebsitesDeleteWebsiteRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **confirm** | **boolean** | Must be boolean true to confirm the permanent deletion of the website. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HostingV1WebsitesDeleteWebsiteRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: HostingV1WebsitesDeleteWebsiteRequest = {
16
+ confirm,
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)
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createWebsiteV1**](#createwebsitev1) | **POST** /api/hosting/v1/websites | Create website|
8
+ |[**deleteWebsiteV1**](#deletewebsitev1) | **DELETE** /api/hosting/v1/websites/{domain} | Delete website|
8
9
  |[**listWebsitesV1**](#listwebsitesv1) | **GET** /api/hosting/v1/websites | List websites|
9
10
 
10
11
  # **createWebsiteV1**
@@ -38,6 +39,64 @@ const { status, data } = await apiInstance.createWebsiteV1(
38
39
  | **hostingV1WebsitesCreateWebsiteRequest** | **HostingV1WebsitesCreateWebsiteRequest**| | |
39
40
 
40
41
 
42
+ ### Return type
43
+
44
+ **CommonSuccessEmptyResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success empty response | - |
60
+ |**422** | Validation error response | - |
61
+ |**401** | Unauthenticated response | - |
62
+ |**500** | Error response | - |
63
+
64
+ [[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)
65
+
66
+ # **deleteWebsiteV1**
67
+ > CommonSuccessEmptyResource deleteWebsiteV1(hostingV1WebsitesDeleteWebsiteRequest)
68
+
69
+ Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ HostingWebsitesApi,
76
+ Configuration,
77
+ HostingV1WebsitesDeleteWebsiteRequest
78
+ } from 'hostinger-api-sdk';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new HostingWebsitesApi(configuration);
82
+
83
+ let domain: string; //Domain name (default to undefined)
84
+ let hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest; //
85
+
86
+ const { status, data } = await apiInstance.deleteWebsiteV1(
87
+ domain,
88
+ hostingV1WebsitesDeleteWebsiteRequest
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **hostingV1WebsitesDeleteWebsiteRequest** | **HostingV1WebsitesDeleteWebsiteRequest**| | |
97
+ | **domain** | [**string**] | Domain name | defaults to undefined|
98
+
99
+
41
100
  ### Return type
42
101
 
43
102
  **CommonSuccessEmptyResource**