hostinger-api-sdk 1.5.0 → 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.
- package/.github/workflows/build-release.yaml +29 -1
- package/README.md +2 -2
- package/api.ts +18747 -8098
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13312 -6201
- package/dist/api.js +10299 -3751
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +13312 -6201
- package/dist/esm/api.js +10191 -3729
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingCacheApi.md +61 -0
- package/docs/AgencyHostingCronJobsApi.md +183 -0
- package/docs/AgencyHostingDatabasesApi.md +305 -0
- package/docs/AgencyHostingDatacentersApi.md +61 -0
- package/docs/AgencyHostingDomainsApi.md +245 -0
- package/docs/AgencyHostingFilesApi.md +66 -0
- package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
- package/docs/AgencyHostingOrdersApi.md +64 -0
- package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
- package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
- package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
- package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
- package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
- package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
- package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
- package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
- package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
- package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
- package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
- package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
- package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
- package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
- package/docs/AgencyHostingWebsitesApi.md +228 -0
- package/docs/AgencyHostingWordPressApi.md +174 -0
- package/docs/BillingCatalogApi.md +2 -2
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
- package/docs/DomainsForwardingApi.md +59 -0
- package/docs/DomainsPortfolioApi.md +108 -0
- package/docs/DomainsTransferApi.md +108 -0
- package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
- package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
- package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
- package/docs/DomainsV1TransferTransferResource.md +26 -0
- package/docs/HostingCacheApi.md +26 -130
- package/docs/HostingDatabasesApi.md +63 -63
- package/docs/HostingNodeJSApi.md +122 -0
- package/docs/HostingV1CacheToggleCacheRequest.md +20 -0
- package/docs/HostingV1CacheToggleCachelessModeRequest.md +20 -0
- package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
- package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
- package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
- package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +59 -0
- package/docs/MailAPITokensApi.md +185 -0
- package/docs/MailAliasesApi.md +186 -0
- package/docs/MailAutorepliesApi.md +246 -0
- package/docs/MailCatchallsApi.md +239 -0
- package/docs/MailForwardersApi.md +304 -0
- package/docs/MailListAPITokensV1200Response.md +22 -0
- package/docs/MailListAccessLogsV1200Response.md +22 -0
- package/docs/MailListActionLogsV1200Response.md +22 -0
- package/docs/MailListAliasesV1200Response.md +22 -0
- package/docs/MailListAutorepliesV1200Response.md +22 -0
- package/docs/MailListCatchAllsV1200Response.md +22 -0
- package/docs/MailListForwardersV1200Response.md +22 -0
- package/docs/MailListInboundLogsV1200Response.md +22 -0
- package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
- package/docs/MailListMailboxesV1200Response.md +22 -0
- package/docs/MailListOrdersV1200Response.md +22 -0
- package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
- package/docs/MailListWebhooksV1200Response.md +22 -0
- package/docs/MailLogsApi.md +410 -0
- package/docs/MailMailboxesApi.md +253 -0
- package/docs/MailOrdersApi.md +132 -0
- package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
- package/docs/MailV1AliasesAliasResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
- package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
- package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
- package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
- package/docs/MailV1CatchallsCatchallResource.md +32 -0
- package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
- package/docs/MailV1ForwardersForwarderResource.md +34 -0
- package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
- package/docs/MailV1LogsActionActionLogResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
- package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
- package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
- package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
- package/docs/MailV1MailboxesMailboxResource.md +38 -0
- package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
- package/docs/MailV1OrdersOrderDomainResource.md +22 -0
- package/docs/MailV1OrdersOrderPlanResource.md +22 -0
- package/docs/MailV1OrdersOrderResource.md +36 -0
- package/docs/MailV1OrdersPlanDomainResource.md +30 -0
- package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
- package/docs/MailV1OrdersPlanResource.md +26 -0
- package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
- package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
- package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
- package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
- package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
- package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
- package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
- package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
- package/docs/MailV1WebhooksWebhookResource.md +36 -0
- package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
- package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
- package/docs/MailWebhooksApi.md +488 -0
- package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
- package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
- package/index.ts +1 -1
- 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
|
-
|[**
|
|
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
|
-
# **
|
|
79
|
-
> CommonSuccessEmptyResource
|
|
78
|
+
# **createAccountDatabaseV1**
|
|
79
|
+
> CommonSuccessEmptyResource createAccountDatabaseV1(hostingV1DatabasesCreateDatabaseRequest)
|
|
80
80
|
|
|
81
|
-
|
|
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
|
-
|
|
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
|
|
97
|
-
let hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest; //
|
|
96
|
+
let hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest; //
|
|
98
97
|
|
|
99
|
-
const { status, data } = await apiInstance.
|
|
98
|
+
const { status, data } = await apiInstance.createAccountDatabaseV1(
|
|
100
99
|
username,
|
|
101
|
-
|
|
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
|
-
| **
|
|
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
|
-
# **
|
|
140
|
-
> CommonSuccessEmptyResource
|
|
136
|
+
# **createDatabaseRemoteConnectionV1**
|
|
137
|
+
> CommonSuccessEmptyResource createDatabaseRemoteConnectionV1(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
|
|
141
138
|
|
|
142
|
-
|
|
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
|
-
|
|
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
|
|
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.
|
|
157
|
+
const { status, data } = await apiInstance.createDatabaseRemoteConnectionV1(
|
|
160
158
|
username,
|
|
161
|
-
|
|
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
|
-
| **
|
|
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
|
-
# **
|
|
198
|
-
> CommonSuccessEmptyResource
|
|
197
|
+
# **deleteAccountDatabaseV1**
|
|
198
|
+
> CommonSuccessEmptyResource deleteAccountDatabaseV1()
|
|
199
199
|
|
|
200
|
-
Permanently
|
|
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.
|
|
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
|
-
# **
|
|
257
|
-
> CommonSuccessEmptyResource
|
|
253
|
+
# **deleteDatabaseRemoteConnectionV1**
|
|
254
|
+
> CommonSuccessEmptyResource deleteDatabaseRemoteConnectionV1()
|
|
258
255
|
|
|
259
|
-
Permanently
|
|
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.
|
|
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
|
-
# **
|
|
369
|
-
>
|
|
368
|
+
# **listAccountDatabasesV1**
|
|
369
|
+
> HostingListAccountDatabasesV1200Response listAccountDatabasesV1()
|
|
370
370
|
|
|
371
|
-
Returns
|
|
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
|
|
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.
|
|
391
|
+
const { status, data } = await apiInstance.listAccountDatabasesV1(
|
|
388
392
|
username,
|
|
389
|
-
|
|
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
|
-
| **
|
|
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
|
-
**
|
|
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
|
-
# **
|
|
425
|
-
>
|
|
436
|
+
# **listDatabaseRemoteConnectionsV1**
|
|
437
|
+
> Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource> listDatabaseRemoteConnectionsV1()
|
|
426
438
|
|
|
427
|
-
Returns
|
|
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
|
|
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.
|
|
455
|
+
const { status, data } = await apiInstance.listDatabaseRemoteConnectionsV1(
|
|
448
456
|
username,
|
|
449
|
-
|
|
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
|
-
| **
|
|
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
|
-
**
|
|
471
|
+
**Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>**
|
|
472
472
|
|
|
473
473
|
### Authorization
|
|
474
474
|
|
package/docs/HostingNodeJSApi.md
CHANGED
|
@@ -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<'low' | 'moderate' | 'high' | 'critical' | 'unknown'>** | 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,20 @@
|
|
|
1
|
+
# HostingV1CacheToggleCacheRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | Turn server-side caching on (true) or off (false) for the website. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { HostingV1CacheToggleCacheRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: HostingV1CacheToggleCacheRequest = {
|
|
16
|
+
enabled,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# HostingV1CacheToggleCachelessModeRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | Turn development (cacheless) mode on (true) or off (false) for the website. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { HostingV1CacheToggleCachelessModeRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: HostingV1CacheToggleCachelessModeRequest = {
|
|
16
|
+
enabled,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# 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<string>** | 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<string>** | 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)
|