hostinger-api-sdk 2.16.1 → 3.0.0
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/README.md +2 -2
- package/api.ts +123 -83
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +115 -76
- package/dist/api.js +52 -85
- 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 +115 -76
- package/dist/esm/api.js +40 -73
- 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/GPUCatalogApi.md +5 -10
- package/docs/GPUExposedServicesApi.md +3 -0
- package/docs/GPUInstancesApi.md +3 -0
- package/docs/GPUV1InstanceInstanceListResource.md +2 -0
- package/docs/GPUV1InstanceInstanceResource.md +4 -0
- package/docs/GPUV1LlmModelVariantLlmModelVariantResource.md +30 -0
- package/docs/GPUV1OsTemplateOsTemplateResource.md +0 -2
- package/docs/GPUV1PoolPoolGroupResource.md +5 -1
- package/docs/GPUV1PoolPoolInstanceResource.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/GPUCatalogApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
12
12
|
# **getPoolGroupsV1**
|
|
13
13
|
> Array<GPUV1PoolPoolGroupResource> getPoolGroupsV1()
|
|
14
14
|
|
|
15
|
-
Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
|
|
15
|
+
Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price, in credits, among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
|
|
16
16
|
|
|
17
17
|
### Example
|
|
18
18
|
|
|
@@ -25,18 +25,11 @@ import {
|
|
|
25
25
|
const configuration = new Configuration();
|
|
26
26
|
const apiInstance = new GPUCatalogApi(configuration);
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.getPoolGroupsV1(
|
|
31
|
-
currency
|
|
32
|
-
);
|
|
28
|
+
const { status, data } = await apiInstance.getPoolGroupsV1();
|
|
33
29
|
```
|
|
34
30
|
|
|
35
31
|
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **currency** | [**'USD' | 'ARS' | 'AMD' | 'AUD' | 'AZN' | 'BDT' | 'BRL' | 'BTC' | 'BYN' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EGP' | 'EUR' | 'GBP' | 'GEL' | 'HKD' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'JPY' | 'KGS' | 'KRW' | 'KZT' | 'MAD' | 'MXN' | 'MYR' | 'NGN' | 'NOK' | 'NZD' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'SEK' | 'SGD' | 'THB' | 'TJS' | 'TRY' | 'TWD' | 'UAH' | 'VND' | 'ZAR'**]**Array<'USD' | 'ARS' | 'AMD' | 'AUD' | 'AZN' | 'BDT' | 'BRL' | 'BTC' | 'BYN' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EGP' | 'EUR' | 'GBP' | 'GEL' | 'HKD' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'JPY' | 'KGS' | 'KRW' | 'KZT' | 'MAD' | 'MXN' | 'MYR' | 'NGN' | 'NOK' | 'NZD' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'SEK' | 'SGD' | 'THB' | 'TJS' | 'TRY' | 'TWD' | 'UAH' | 'VND' | 'ZAR'>** | Currency of the returned prices, `USD` by default | (optional) defaults to undefined|
|
|
32
|
+
This endpoint does not have any parameters.
|
|
40
33
|
|
|
41
34
|
|
|
42
35
|
### Return type
|
|
@@ -111,6 +104,7 @@ const { status, data } = await apiInstance.getPoolInstanceTypesV1(
|
|
|
111
104
|
|-------------|-------------|------------------|
|
|
112
105
|
|**200** | Success response | - |
|
|
113
106
|
|**401** | Unauthenticated response | - |
|
|
107
|
+
|**404** | Error response | - |
|
|
114
108
|
|**500** | Error response | - |
|
|
115
109
|
|
|
116
110
|
[[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)
|
|
@@ -213,6 +207,7 @@ const { status, data } = await apiInstance.getPoolOSTemplatesV1(
|
|
|
213
207
|
|-------------|-------------|------------------|
|
|
214
208
|
|**200** | Success response | - |
|
|
215
209
|
|**401** | Unauthenticated response | - |
|
|
210
|
+
|**404** | Error response | - |
|
|
216
211
|
|**500** | Error response | - |
|
|
217
212
|
|
|
218
213
|
[[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)
|
|
@@ -62,6 +62,7 @@ const { status, data } = await apiInstance.createExposedServiceV1(
|
|
|
62
62
|
|**200** | Success empty response | - |
|
|
63
63
|
|**422** | Validation error response | - |
|
|
64
64
|
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**404** | Error response | - |
|
|
65
66
|
|**500** | Error response | - |
|
|
66
67
|
|
|
67
68
|
[[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)
|
|
@@ -118,6 +119,7 @@ const { status, data } = await apiInstance.deleteExposedServiceV1(
|
|
|
118
119
|
|-------------|-------------|------------------|
|
|
119
120
|
|**200** | Success empty response | - |
|
|
120
121
|
|**401** | Unauthenticated response | - |
|
|
122
|
+
|**404** | Error response | - |
|
|
121
123
|
|**500** | Error response | - |
|
|
122
124
|
|
|
123
125
|
[[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)
|
|
@@ -171,6 +173,7 @@ const { status, data } = await apiInstance.getExposedServicesV1(
|
|
|
171
173
|
|-------------|-------------|------------------|
|
|
172
174
|
|**200** | Success response | - |
|
|
173
175
|
|**401** | Unauthenticated response | - |
|
|
176
|
+
|**404** | Error response | - |
|
|
174
177
|
|**500** | Error response | - |
|
|
175
178
|
|
|
176
179
|
[[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)
|
package/docs/GPUInstancesApi.md
CHANGED
|
@@ -114,6 +114,7 @@ const { status, data } = await apiInstance.deleteInstanceV1(
|
|
|
114
114
|
|-------------|-------------|------------------|
|
|
115
115
|
|**200** | Success empty response | - |
|
|
116
116
|
|**401** | Unauthenticated response | - |
|
|
117
|
+
|**404** | Error response | - |
|
|
117
118
|
|**500** | Error response | - |
|
|
118
119
|
|
|
119
120
|
[[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)
|
|
@@ -167,6 +168,7 @@ const { status, data } = await apiInstance.getInstanceDetailsV1(
|
|
|
167
168
|
|-------------|-------------|------------------|
|
|
168
169
|
|**200** | Success response | - |
|
|
169
170
|
|**401** | Unauthenticated response | - |
|
|
171
|
+
|**404** | Error response | - |
|
|
170
172
|
|**500** | Error response | - |
|
|
171
173
|
|
|
172
174
|
[[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)
|
|
@@ -220,6 +222,7 @@ const { status, data } = await apiInstance.getInstanceMetricsV1(
|
|
|
220
222
|
|-------------|-------------|------------------|
|
|
221
223
|
|**200** | Success response | - |
|
|
222
224
|
|**401** | Unauthenticated response | - |
|
|
225
|
+
|**404** | Error response | - |
|
|
223
226
|
|**500** | Error response | - |
|
|
224
227
|
|
|
225
228
|
[[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)
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**status** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**action_lock** | **string** | Whether an action is in progress on the instance | [optional] [default to undefined]
|
|
12
|
+
**action_lock_reason** | **string** | Action in progress on the instance, `null` when unlocked | [optional] [default to undefined]
|
|
12
13
|
**pool** | [**GPUV1PoolPoolResource**](GPUV1PoolPoolResource.md) | | [optional] [default to undefined]
|
|
13
14
|
**pool_instance** | [**GPUV1PoolPoolInstanceResource**](GPUV1PoolPoolInstanceResource.md) | | [optional] [default to undefined]
|
|
14
15
|
**os_template** | [**GPUV1OsTemplateOsTemplateResource**](GPUV1OsTemplateOsTemplateResource.md) | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ const instance: GPUV1InstanceInstanceListResource = {
|
|
|
23
24
|
name,
|
|
24
25
|
status,
|
|
25
26
|
action_lock,
|
|
27
|
+
action_lock_reason,
|
|
26
28
|
pool,
|
|
27
29
|
pool_instance,
|
|
28
30
|
os_template,
|
|
@@ -9,9 +9,11 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**status** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**action_lock** | **string** | Whether an action is in progress on the instance | [optional] [default to undefined]
|
|
12
|
+
**action_lock_reason** | **string** | Action in progress on the instance, `null` when unlocked | [optional] [default to undefined]
|
|
12
13
|
**pool** | [**GPUV1PoolPoolResource**](GPUV1PoolPoolResource.md) | | [optional] [default to undefined]
|
|
13
14
|
**pool_instance** | [**GPUV1PoolPoolInstanceResource**](GPUV1PoolPoolInstanceResource.md) | | [optional] [default to undefined]
|
|
14
15
|
**os_template** | [**GPUV1OsTemplateOsTemplateResource**](GPUV1OsTemplateOsTemplateResource.md) | | [optional] [default to undefined]
|
|
16
|
+
**llm_model_variant** | [**GPUV1LlmModelVariantLlmModelVariantResource**](GPUV1LlmModelVariantLlmModelVariantResource.md) | | [optional] [default to undefined]
|
|
15
17
|
**ssh_keys** | [**Array<GPUV1SshKeySshKeyResource>**](GPUV1SshKeySshKeyResource.md) | Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource) | [optional] [default to undefined]
|
|
16
18
|
|
|
17
19
|
## Example
|
|
@@ -24,9 +26,11 @@ const instance: GPUV1InstanceInstanceResource = {
|
|
|
24
26
|
name,
|
|
25
27
|
status,
|
|
26
28
|
action_lock,
|
|
29
|
+
action_lock_reason,
|
|
27
30
|
pool,
|
|
28
31
|
pool_instance,
|
|
29
32
|
os_template,
|
|
33
|
+
llm_model_variant,
|
|
30
34
|
ssh_keys,
|
|
31
35
|
};
|
|
32
36
|
```
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# GPUV1LlmModelVariantLlmModelVariantResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | LLM model variant ID | [optional] [default to undefined]
|
|
9
|
+
**model_tag** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**parameter_count** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**capabilities** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**dark_image_id** | **string** | Dark theme icon image ID | [optional] [default to undefined]
|
|
13
|
+
**light_image_id** | **string** | Light theme icon image ID | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { GPUV1LlmModelVariantLlmModelVariantResource } from '@hostinger/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: GPUV1LlmModelVariantLlmModelVariantResource = {
|
|
21
|
+
id,
|
|
22
|
+
model_tag,
|
|
23
|
+
parameter_count,
|
|
24
|
+
capabilities,
|
|
25
|
+
dark_image_id,
|
|
26
|
+
light_image_id,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **number** | OS template ID | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**kb_url** | **string** | Knowledge base article about the template | [optional] [default to undefined]
|
|
11
|
-
**image** | **string** | Icon image ID | [optional] [default to undefined]
|
|
12
11
|
**dark_image_id** | **string** | Dark theme icon image ID | [optional] [default to undefined]
|
|
13
12
|
**light_image_id** | **string** | Light theme icon image ID | [optional] [default to undefined]
|
|
14
13
|
|
|
@@ -21,7 +20,6 @@ const instance: GPUV1OsTemplateOsTemplateResource = {
|
|
|
21
20
|
id,
|
|
22
21
|
name,
|
|
23
22
|
kb_url,
|
|
24
|
-
image,
|
|
25
23
|
dark_image_id,
|
|
26
24
|
light_image_id,
|
|
27
25
|
};
|
|
@@ -7,9 +7,11 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **number** | GPU pool group ID | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**feature** | **string** | | [optional] [default to undefined]
|
|
10
12
|
**vram** | **number** | Total VRAM in bytes | [optional] [default to undefined]
|
|
11
13
|
**is_available** | **boolean** | Whether the group has any available pools | [optional] [default to undefined]
|
|
12
|
-
**min_price_per_hour** | **number** | Lowest hourly price of the group instance types, in
|
|
14
|
+
**min_price_per_hour** | **number** | Lowest hourly price of the group instance types, in credits | [optional] [default to undefined]
|
|
13
15
|
**pools** | [**Array<GPUV1PoolPoolResource>**](GPUV1PoolPoolResource.md) | Array of [`GPU.V1.Pool.PoolResource`](#model/gpuv1poolpoolresource) | [optional] [default to undefined]
|
|
14
16
|
|
|
15
17
|
## Example
|
|
@@ -20,6 +22,8 @@ import { GPUV1PoolPoolGroupResource } from '@hostinger/sdk';
|
|
|
20
22
|
const instance: GPUV1PoolPoolGroupResource = {
|
|
21
23
|
id,
|
|
22
24
|
name,
|
|
25
|
+
description,
|
|
26
|
+
feature,
|
|
23
27
|
vram,
|
|
24
28
|
is_available,
|
|
25
29
|
min_price_per_hour,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**cpu_cores** | **number** | Number of CPU cores | [optional] [default to undefined]
|
|
12
12
|
**ram** | **number** | Total RAM in bytes | [optional] [default to undefined]
|
|
13
13
|
**storage** | **number** | Total storage in bytes | [optional] [default to undefined]
|
|
14
|
-
**price_per_hour** | **number** | Hourly price in
|
|
14
|
+
**price_per_hour** | **number** | Hourly price in credits | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 3.0.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|