hostinger-api-sdk 1.5.1 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/.github/workflows/build-release.yaml +29 -1
  2. package/README.md +2 -2
  3. package/api.ts +18917 -8154
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +13394 -6243
  8. package/dist/api.js +10470 -3788
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +13394 -6243
  16. package/dist/esm/api.js +10463 -3867
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AgencyHostingCacheApi.md +61 -0
  28. package/docs/AgencyHostingCronJobsApi.md +183 -0
  29. package/docs/AgencyHostingDatabasesApi.md +305 -0
  30. package/docs/AgencyHostingDatacentersApi.md +61 -0
  31. package/docs/AgencyHostingDomainsApi.md +245 -0
  32. package/docs/AgencyHostingFilesApi.md +66 -0
  33. package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
  34. package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
  35. package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
  36. package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
  37. package/docs/AgencyHostingOrdersApi.md +64 -0
  38. package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
  39. package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
  40. package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
  41. package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
  42. package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
  43. package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
  44. package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
  45. package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
  46. package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
  47. package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
  48. package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
  49. package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
  50. package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
  51. package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
  52. package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
  53. package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
  54. package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
  55. package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
  56. package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
  57. package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
  58. package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
  59. package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
  60. package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
  61. package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
  62. package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
  63. package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
  64. package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
  65. package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
  66. package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
  67. package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
  68. package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
  69. package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
  70. package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
  71. package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
  72. package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
  73. package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
  74. package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
  75. package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
  76. package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
  77. package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
  78. package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
  79. package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
  80. package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
  81. package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
  82. package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
  83. package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
  84. package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
  85. package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
  86. package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
  87. package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
  88. package/docs/AgencyHostingWebsitesApi.md +228 -0
  89. package/docs/AgencyHostingWordPressApi.md +174 -0
  90. package/docs/BillingCatalogApi.md +2 -2
  91. package/docs/BillingOrdersApi.md +63 -0
  92. package/docs/BillingV1OrderPurchaseRequest.md +24 -0
  93. package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
  94. package/docs/DomainsForwardingApi.md +59 -0
  95. package/docs/DomainsPortfolioApi.md +108 -0
  96. package/docs/DomainsTransferApi.md +108 -0
  97. package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
  98. package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
  99. package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
  100. package/docs/DomainsV1TransferTransferResource.md +26 -0
  101. package/docs/HostingDatabasesApi.md +63 -63
  102. package/docs/HostingNodeJSApi.md +122 -0
  103. package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
  104. package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
  105. package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
  106. package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
  107. package/docs/HostingWebsitesApi.md +59 -0
  108. package/docs/MailAPITokensApi.md +185 -0
  109. package/docs/MailAliasesApi.md +186 -0
  110. package/docs/MailAutorepliesApi.md +246 -0
  111. package/docs/MailCatchallsApi.md +239 -0
  112. package/docs/MailForwardersApi.md +304 -0
  113. package/docs/MailListAPITokensV1200Response.md +22 -0
  114. package/docs/MailListAccessLogsV1200Response.md +22 -0
  115. package/docs/MailListActionLogsV1200Response.md +22 -0
  116. package/docs/MailListAliasesV1200Response.md +22 -0
  117. package/docs/MailListAutorepliesV1200Response.md +22 -0
  118. package/docs/MailListCatchAllsV1200Response.md +22 -0
  119. package/docs/MailListForwardersV1200Response.md +22 -0
  120. package/docs/MailListInboundLogsV1200Response.md +22 -0
  121. package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
  122. package/docs/MailListMailboxesV1200Response.md +22 -0
  123. package/docs/MailListOrdersV1200Response.md +22 -0
  124. package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
  125. package/docs/MailListWebhooksV1200Response.md +22 -0
  126. package/docs/MailLogsApi.md +410 -0
  127. package/docs/MailMailboxesApi.md +253 -0
  128. package/docs/MailOrdersApi.md +132 -0
  129. package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
  130. package/docs/MailV1AliasesAliasResource.md +30 -0
  131. package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
  132. package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
  133. package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
  134. package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
  135. package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
  136. package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
  137. package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
  138. package/docs/MailV1CatchallsCatchallResource.md +32 -0
  139. package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
  140. package/docs/MailV1ForwardersForwarderResource.md +34 -0
  141. package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
  142. package/docs/MailV1LogsActionActionLogResource.md +32 -0
  143. package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
  144. package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
  145. package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
  146. package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
  147. package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
  148. package/docs/MailV1MailboxesMailboxResource.md +38 -0
  149. package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
  150. package/docs/MailV1OrdersOrderDomainResource.md +22 -0
  151. package/docs/MailV1OrdersOrderPlanResource.md +22 -0
  152. package/docs/MailV1OrdersOrderResource.md +36 -0
  153. package/docs/MailV1OrdersPlanDomainResource.md +30 -0
  154. package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
  155. package/docs/MailV1OrdersPlanResource.md +26 -0
  156. package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
  157. package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
  158. package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
  159. package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
  160. package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
  161. package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
  162. package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
  163. package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
  164. package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
  165. package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
  166. package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
  167. package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
  168. package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
  169. package/docs/MailV1WebhooksWebhookResource.md +36 -0
  170. package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
  171. package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
  172. package/docs/MailWebhooksApi.md +488 -0
  173. package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
  174. package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
  175. package/index.ts +1 -1
  176. package/package.json +2 -2
@@ -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**
@@ -0,0 +1,185 @@
1
+ # MailAPITokensApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createAPITokenV1**](#createapitokenv1) | **POST** /api/mail/v1/orders/{orderId}/api-tokens | Create API token|
8
+ |[**listAPITokensV1**](#listapitokensv1) | **GET** /api/mail/v1/api-tokens | List API tokens|
9
+ |[**revokeAPITokenV1**](#revokeapitokenv1) | **DELETE** /api/mail/v1/api-tokens/{tokenId} | Revoke API token|
10
+
11
+ # **createAPITokenV1**
12
+ > MailV1ApiTokensApiTokenCreatedResource createAPITokenV1(mailV1SchemaCreateApiTokenRequestSchema)
13
+
14
+ Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ MailAPITokensApi,
21
+ Configuration,
22
+ MailV1SchemaCreateApiTokenRequestSchema
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new MailAPITokensApi(configuration);
27
+
28
+ let orderId: string; //Order resource ID (default to undefined)
29
+ let mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema; //
30
+
31
+ const { status, data } = await apiInstance.createAPITokenV1(
32
+ orderId,
33
+ mailV1SchemaCreateApiTokenRequestSchema
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **mailV1SchemaCreateApiTokenRequestSchema** | **MailV1SchemaCreateApiTokenRequestSchema**| | |
42
+ | **orderId** | [**string**] | Order resource ID | defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **MailV1ApiTokensApiTokenCreatedResource**
48
+
49
+ ### Authorization
50
+
51
+ [apiToken](../README.md#apiToken)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**201** | Created response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**404** | Error response | - |
65
+ |**409** | Error response | - |
66
+ |**422** | Error response | - |
67
+ |**500** | Error response | - |
68
+
69
+ [[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)
70
+
71
+ # **listAPITokensV1**
72
+ > MailListAPITokensV1200Response listAPITokensV1()
73
+
74
+ Retrieve a paginated list of [Hostinger Email API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
75
+
76
+ ### Example
77
+
78
+ ```typescript
79
+ import {
80
+ MailAPITokensApi,
81
+ Configuration
82
+ } from 'hostinger-api-sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new MailAPITokensApi(configuration);
86
+
87
+ let orderId: string; //Filter tokens by order resource ID. Single value or comma-separated list. (optional) (default to undefined)
88
+ let page: number; //Page number (optional) (default to undefined)
89
+ let perPage: number; //Number of items per page (optional) (default to 25)
90
+
91
+ const { status, data } = await apiInstance.listAPITokensV1(
92
+ orderId,
93
+ page,
94
+ perPage
95
+ );
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ |Name | Type | Description | Notes|
101
+ |------------- | ------------- | ------------- | -------------|
102
+ | **orderId** | [**string**] | Filter tokens by order resource ID. Single value or comma-separated list. | (optional) defaults to undefined|
103
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
104
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
105
+
106
+
107
+ ### Return type
108
+
109
+ **MailListAPITokensV1200Response**
110
+
111
+ ### Authorization
112
+
113
+ [apiToken](../README.md#apiToken)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: Not defined
118
+ - **Accept**: application/json
119
+
120
+
121
+ ### HTTP response details
122
+ | Status code | Description | Response headers |
123
+ |-------------|-------------|------------------|
124
+ |**200** | Success response | - |
125
+ |**401** | Unauthenticated response | - |
126
+ |**422** | Error response | - |
127
+ |**500** | Error response | - |
128
+
129
+ [[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)
130
+
131
+ # **revokeAPITokenV1**
132
+ > CommonSuccessEmptyResource revokeAPITokenV1()
133
+
134
+ Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
135
+
136
+ ### Example
137
+
138
+ ```typescript
139
+ import {
140
+ MailAPITokensApi,
141
+ Configuration
142
+ } from 'hostinger-api-sdk';
143
+
144
+ const configuration = new Configuration();
145
+ const apiInstance = new MailAPITokensApi(configuration);
146
+
147
+ let tokenId: string; //API token ID (returned when the token was created) (default to undefined)
148
+
149
+ const { status, data } = await apiInstance.revokeAPITokenV1(
150
+ tokenId
151
+ );
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ |Name | Type | Description | Notes|
157
+ |------------- | ------------- | ------------- | -------------|
158
+ | **tokenId** | [**string**] | API token ID (returned when the token was created) | defaults to undefined|
159
+
160
+
161
+ ### Return type
162
+
163
+ **CommonSuccessEmptyResource**
164
+
165
+ ### Authorization
166
+
167
+ [apiToken](../README.md#apiToken)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: Not defined
172
+ - **Accept**: application/json
173
+
174
+
175
+ ### HTTP response details
176
+ | Status code | Description | Response headers |
177
+ |-------------|-------------|------------------|
178
+ |**200** | Success response | - |
179
+ |**401** | Unauthenticated response | - |
180
+ |**404** | Error response | - |
181
+ |**422** | Error response | - |
182
+ |**500** | Error response | - |
183
+
184
+ [[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)
185
+