Skip to content

Commit ca420ff

Browse files
chore: sdk update
1 parent 0663739 commit ca420ff

16 files changed

Lines changed: 184 additions & 105 deletions

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## @hostinger/sdk@2.16.1
1+
## @hostinger/sdk@3.0.0
22

33
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
44

55
### Usage
66

77
```
8-
npm install @hostinger/sdk@2.16.1 --save
8+
npm install @hostinger/sdk@3.0.0 --save
99
```

‎api.ts‎

Lines changed: 123 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.16.1
6+
* API Version: 3.0.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7149,6 +7149,12 @@ export interface GPUV1InstanceInstanceListResource {
71497149
* @memberof GPUV1InstanceInstanceListResource
71507150
*/
71517151
'action_lock': GPUV1InstanceInstanceListResourceActionLockEnum;
7152+
/**
7153+
* Action in progress on the instance, `null` when unlocked
7154+
* @type {string}
7155+
* @memberof GPUV1InstanceInstanceListResource
7156+
*/
7157+
'action_lock_reason': GPUV1InstanceInstanceListResourceActionLockReasonEnum | null;
71527158
/**
71537159
*
71547160
* @type {GPUV1PoolPoolResource}
@@ -7188,6 +7194,18 @@ export const GPUV1InstanceInstanceListResourceActionLockEnum = {
71887194
} as const;
71897195

71907196
export type GPUV1InstanceInstanceListResourceActionLockEnum = typeof GPUV1InstanceInstanceListResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockEnum];
7197+
export const GPUV1InstanceInstanceListResourceActionLockReasonEnum = {
7198+
Creating: 'creating',
7199+
Booting: 'booting',
7200+
InstallingTemplate: 'installing_template',
7201+
ExposingService: 'exposing_service',
7202+
ConcealingService: 'concealing_service',
7203+
Restarting: 'restarting',
7204+
Destroying: 'destroying',
7205+
Renaming: 'renaming'
7206+
} as const;
7207+
7208+
export type GPUV1InstanceInstanceListResourceActionLockReasonEnum = typeof GPUV1InstanceInstanceListResourceActionLockReasonEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockReasonEnum];
71917209

71927210
/**
71937211
*
@@ -7219,6 +7237,12 @@ export interface GPUV1InstanceInstanceResource {
72197237
* @memberof GPUV1InstanceInstanceResource
72207238
*/
72217239
'action_lock': GPUV1InstanceInstanceResourceActionLockEnum;
7240+
/**
7241+
* Action in progress on the instance, `null` when unlocked
7242+
* @type {string}
7243+
* @memberof GPUV1InstanceInstanceResource
7244+
*/
7245+
'action_lock_reason': GPUV1InstanceInstanceResourceActionLockReasonEnum | null;
72227246
/**
72237247
*
72247248
* @type {GPUV1PoolPoolResource}
@@ -7237,6 +7261,12 @@ export interface GPUV1InstanceInstanceResource {
72377261
* @memberof GPUV1InstanceInstanceResource
72387262
*/
72397263
'os_template': GPUV1OsTemplateOsTemplateResource;
7264+
/**
7265+
*
7266+
* @type {GPUV1LlmModelVariantLlmModelVariantResource}
7267+
* @memberof GPUV1InstanceInstanceResource
7268+
*/
7269+
'llm_model_variant': GPUV1LlmModelVariantLlmModelVariantResource | null;
72407270
/**
72417271
* Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource)
72427272
* @type {Array<GPUV1SshKeySshKeyResource>}
@@ -7264,6 +7294,18 @@ export const GPUV1InstanceInstanceResourceActionLockEnum = {
72647294
} as const;
72657295

72667296
export type GPUV1InstanceInstanceResourceActionLockEnum = typeof GPUV1InstanceInstanceResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockEnum];
7297+
export const GPUV1InstanceInstanceResourceActionLockReasonEnum = {
7298+
Creating: 'creating',
7299+
Booting: 'booting',
7300+
InstallingTemplate: 'installing_template',
7301+
ExposingService: 'exposing_service',
7302+
ConcealingService: 'concealing_service',
7303+
Restarting: 'restarting',
7304+
Destroying: 'destroying',
7305+
Renaming: 'renaming'
7306+
} as const;
7307+
7308+
export type GPUV1InstanceInstanceResourceActionLockReasonEnum = typeof GPUV1InstanceInstanceResourceActionLockReasonEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockReasonEnum];
72677309

72687310
/**
72697311
*
@@ -7296,6 +7338,61 @@ export interface GPUV1InstanceStoreRequest {
72967338
*/
72977339
'public_keys': Array<string>;
72987340
}
7341+
/**
7342+
*
7343+
* @export
7344+
* @interface GPUV1LlmModelVariantLlmModelVariantResource
7345+
*/
7346+
export interface GPUV1LlmModelVariantLlmModelVariantResource {
7347+
/**
7348+
* LLM model variant ID
7349+
* @type {number}
7350+
* @memberof GPUV1LlmModelVariantLlmModelVariantResource
7351+
*/
7352+
'id': number;
7353+
/**
7354+
*
7355+
* @type {string}
7356+
* @memberof GPUV1LlmModelVariantLlmModelVariantResource
7357+
*/
7358+
'model_tag': string;
7359+
/**
7360+
*
7361+
* @type {number}
7362+
* @memberof GPUV1LlmModelVariantLlmModelVariantResource
7363+
*/
7364+
'parameter_count': number;
7365+
/**
7366+
*
7367+
* @type {Array<string>}
7368+
* @memberof GPUV1LlmModelVariantLlmModelVariantResource
7369+
*/
7370+
'capabilities': Array<GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum>;
7371+
/**
7372+
* Dark theme icon image ID
7373+
* @type {string}
7374+
* @memberof GPUV1LlmModelVariantLlmModelVariantResource
7375+
*/
7376+
'dark_image_id': string | null;
7377+
/**
7378+
* Light theme icon image ID
7379+
* @type {string}
7380+
* @memberof GPUV1LlmModelVariantLlmModelVariantResource
7381+
*/
7382+
'light_image_id': string | null;
7383+
}
7384+
7385+
export const GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum = {
7386+
Tools: 'tools',
7387+
Thinking: 'thinking',
7388+
Vision: 'vision',
7389+
Sound: 'sound',
7390+
Embedding: 'embedding',
7391+
Decision: 'decision'
7392+
} as const;
7393+
7394+
export type GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum = typeof GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum[keyof typeof GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum];
7395+
72997396
/**
73007397
*
73017398
* @export
@@ -7363,12 +7460,6 @@ export interface GPUV1OsTemplateOsTemplateResource {
73637460
* @memberof GPUV1OsTemplateOsTemplateResource
73647461
*/
73657462
'kb_url': string;
7366-
/**
7367-
* Icon image ID
7368-
* @type {string}
7369-
* @memberof GPUV1OsTemplateOsTemplateResource
7370-
*/
7371-
'image': string | null;
73727463
/**
73737464
* Dark theme icon image ID
73747465
* @type {string}
@@ -7400,6 +7491,18 @@ export interface GPUV1PoolPoolGroupResource {
74007491
* @memberof GPUV1PoolPoolGroupResource
74017492
*/
74027493
'name': string;
7494+
/**
7495+
*
7496+
* @type {string}
7497+
* @memberof GPUV1PoolPoolGroupResource
7498+
*/
7499+
'description': string | null;
7500+
/**
7501+
*
7502+
* @type {string}
7503+
* @memberof GPUV1PoolPoolGroupResource
7504+
*/
7505+
'feature': string | null;
74037506
/**
74047507
* Total VRAM in bytes
74057508
* @type {number}
@@ -7413,7 +7516,7 @@ export interface GPUV1PoolPoolGroupResource {
74137516
*/
74147517
'is_available': boolean;
74157518
/**
7416-
* Lowest hourly price of the group instance types, in the requested currency
7519+
* Lowest hourly price of the group instance types, in credits
74177520
* @type {number}
74187521
* @memberof GPUV1PoolPoolGroupResource
74197522
*/
@@ -7468,7 +7571,7 @@ export interface GPUV1PoolPoolInstanceResource {
74687571
*/
74697572
'storage': number;
74707573
/**
7471-
* Hourly price in cents (USD)
7574+
* Hourly price in credits
74727575
* @type {number}
74737576
* @memberof GPUV1PoolPoolInstanceResource
74747577
*/
@@ -31930,13 +32033,12 @@ export class EcommerceStoresApi extends BaseAPI {
3193032033
export const GPUCatalogApiAxiosParamCreator = function (configuration?: Configuration) {
3193132034
return {
3193232035
/**
31933-
* 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.
32036+
* 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.
3193432037
* @summary Get pool groups
31935-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
3193632038
* @param {*} [options] Override http request option.
3193732039
* @throws {RequiredError}
3193832040
*/
31939-
getPoolGroupsV1: async (currency?: GetPoolGroupsV1CurrencyEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32041+
getPoolGroupsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3194032042
const localVarPath = `/api/gpu/v1/pools/groups`;
3194132043
// use dummy base URL string because the URL constructor only accepts absolute URLs.
3194232044
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -31953,10 +32055,6 @@ export const GPUCatalogApiAxiosParamCreator = function (configuration?: Configur
3195332055
// http bearer authentication required
3195432056
await setBearerAuthToObject(localVarHeaderParameter, configuration)
3195532057

31956-
if (currency !== undefined) {
31957-
localVarQueryParameter['currency'] = currency;
31958-
}
31959-
3196032058

3196132059

3196232060
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -32093,14 +32191,13 @@ export const GPUCatalogApiFp = function(configuration?: Configuration) {
3209332191
const localVarAxiosParamCreator = GPUCatalogApiAxiosParamCreator(configuration)
3209432192
return {
3209532193
/**
32096-
* 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.
32194+
* 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.
3209732195
* @summary Get pool groups
32098-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
3209932196
* @param {*} [options] Override http request option.
3210032197
* @throws {RequiredError}
3210132198
*/
32102-
async getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>> {
32103-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolGroupsV1(currency, options);
32199+
async getPoolGroupsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>> {
32200+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolGroupsV1(options);
3210432201
const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolGroupsV1']?.[0]?.url;
3210532202
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3210632203
},
@@ -32151,14 +32248,13 @@ export const GPUCatalogApiFactory = function (configuration?: Configuration, bas
3215132248
const localVarFp = GPUCatalogApiFp(configuration)
3215232249
return {
3215332250
/**
32154-
* 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.
32251+
* 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.
3215532252
* @summary Get pool groups
32156-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
3215732253
* @param {*} [options] Override http request option.
3215832254
* @throws {RequiredError}
3215932255
*/
32160-
getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>> {
32161-
return localVarFp.getPoolGroupsV1(currency, options).then((request) => request(axios, basePath));
32256+
getPoolGroupsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>> {
32257+
return localVarFp.getPoolGroupsV1(options).then((request) => request(axios, basePath));
3216232258
},
3216332259
/**
3216432260
* Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
@@ -32201,15 +32297,14 @@ export const GPUCatalogApiFactory = function (configuration?: Configuration, bas
3220132297
*/
3220232298
export class GPUCatalogApi extends BaseAPI {
3220332299
/**
32204-
* 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.
32300+
* 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.
3220532301
* @summary Get pool groups
32206-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
3220732302
* @param {*} [options] Override http request option.
3220832303
* @throws {RequiredError}
3220932304
* @memberof GPUCatalogApi
3221032305
*/
32211-
public getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig) {
32212-
return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(currency, options).then((request) => request(this.axios, this.basePath));
32306+
public getPoolGroupsV1(options?: RawAxiosRequestConfig) {
32307+
return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(options).then((request) => request(this.axios, this.basePath));
3221332308
}
3221432309

3221532310
/**
@@ -32249,61 +32344,6 @@ export class GPUCatalogApi extends BaseAPI {
3224932344
}
3225032345
}
3225132346

32252-
/**
32253-
* @export
32254-
*/
32255-
export const GetPoolGroupsV1CurrencyEnum = {
32256-
Usd: 'USD',
32257-
Ars: 'ARS',
32258-
Amd: 'AMD',
32259-
Aud: 'AUD',
32260-
Azn: 'AZN',
32261-
Bdt: 'BDT',
32262-
Brl: 'BRL',
32263-
Btc: 'BTC',
32264-
Byn: 'BYN',
32265-
Cad: 'CAD',
32266-
Chf: 'CHF',
32267-
Clp: 'CLP',
32268-
Cny: 'CNY',
32269-
Cop: 'COP',
32270-
Czk: 'CZK',
32271-
Dkk: 'DKK',
32272-
Egp: 'EGP',
32273-
Eur: 'EUR',
32274-
Gbp: 'GBP',
32275-
Gel: 'GEL',
32276-
Hkd: 'HKD',
32277-
Hrk: 'HRK',
32278-
Huf: 'HUF',
32279-
Idr: 'IDR',
32280-
Ils: 'ILS',
32281-
Inr: 'INR',
32282-
Jpy: 'JPY',
32283-
Kgs: 'KGS',
32284-
Krw: 'KRW',
32285-
Kzt: 'KZT',
32286-
Mad: 'MAD',
32287-
Mxn: 'MXN',
32288-
Myr: 'MYR',
32289-
Ngn: 'NGN',
32290-
Nok: 'NOK',
32291-
Nzd: 'NZD',
32292-
Pen: 'PEN',
32293-
Php: 'PHP',
32294-
Pkr: 'PKR',
32295-
Pln: 'PLN',
32296-
Sek: 'SEK',
32297-
Sgd: 'SGD',
32298-
Thb: 'THB',
32299-
Tjs: 'TJS',
32300-
Try: 'TRY',
32301-
Twd: 'TWD',
32302-
Uah: 'UAH',
32303-
Vnd: 'VND',
32304-
Zar: 'ZAR'
32305-
} as const;
32306-
export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
3230732347

3230832348

3230932349
/**

‎base.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.16.1
6+
* API Version: 3.0.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎common.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.16.1
6+
* API Version: 3.0.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎configuration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 2.16.1
6+
* API Version: 3.0.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
4848
this.baseOptions = {
4949
...param.baseOptions,
5050
headers: {
51-
'User-Agent': "hostinger-typescript-sdk/2.16.1",
51+
'User-Agent': "hostinger-typescript-sdk/3.0.0",
5252
...param.baseOptions?.headers,
5353
},
5454
};

0 commit comments

Comments
 (0)