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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.16.1
4
+ * API Version: 3.0.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -6997,6 +6997,12 @@ export interface GPUV1InstanceInstanceListResource {
6997
6997
  * @memberof GPUV1InstanceInstanceListResource
6998
6998
  */
6999
6999
  'action_lock': GPUV1InstanceInstanceListResourceActionLockEnum;
7000
+ /**
7001
+ * Action in progress on the instance, `null` when unlocked
7002
+ * @type {string}
7003
+ * @memberof GPUV1InstanceInstanceListResource
7004
+ */
7005
+ 'action_lock_reason': GPUV1InstanceInstanceListResourceActionLockReasonEnum | null;
7000
7006
  /**
7001
7007
  *
7002
7008
  * @type {GPUV1PoolPoolResource}
@@ -7033,6 +7039,17 @@ export declare const GPUV1InstanceInstanceListResourceActionLockEnum: {
7033
7039
  readonly Locked: "locked";
7034
7040
  };
7035
7041
  export type GPUV1InstanceInstanceListResourceActionLockEnum = typeof GPUV1InstanceInstanceListResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockEnum];
7042
+ export declare const GPUV1InstanceInstanceListResourceActionLockReasonEnum: {
7043
+ readonly Creating: "creating";
7044
+ readonly Booting: "booting";
7045
+ readonly InstallingTemplate: "installing_template";
7046
+ readonly ExposingService: "exposing_service";
7047
+ readonly ConcealingService: "concealing_service";
7048
+ readonly Restarting: "restarting";
7049
+ readonly Destroying: "destroying";
7050
+ readonly Renaming: "renaming";
7051
+ };
7052
+ export type GPUV1InstanceInstanceListResourceActionLockReasonEnum = typeof GPUV1InstanceInstanceListResourceActionLockReasonEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockReasonEnum];
7036
7053
  /**
7037
7054
  *
7038
7055
  * @export
@@ -7063,6 +7080,12 @@ export interface GPUV1InstanceInstanceResource {
7063
7080
  * @memberof GPUV1InstanceInstanceResource
7064
7081
  */
7065
7082
  'action_lock': GPUV1InstanceInstanceResourceActionLockEnum;
7083
+ /**
7084
+ * Action in progress on the instance, `null` when unlocked
7085
+ * @type {string}
7086
+ * @memberof GPUV1InstanceInstanceResource
7087
+ */
7088
+ 'action_lock_reason': GPUV1InstanceInstanceResourceActionLockReasonEnum | null;
7066
7089
  /**
7067
7090
  *
7068
7091
  * @type {GPUV1PoolPoolResource}
@@ -7081,6 +7104,12 @@ export interface GPUV1InstanceInstanceResource {
7081
7104
  * @memberof GPUV1InstanceInstanceResource
7082
7105
  */
7083
7106
  'os_template': GPUV1OsTemplateOsTemplateResource;
7107
+ /**
7108
+ *
7109
+ * @type {GPUV1LlmModelVariantLlmModelVariantResource}
7110
+ * @memberof GPUV1InstanceInstanceResource
7111
+ */
7112
+ 'llm_model_variant': GPUV1LlmModelVariantLlmModelVariantResource | null;
7084
7113
  /**
7085
7114
  * Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource)
7086
7115
  * @type {Array<GPUV1SshKeySshKeyResource>}
@@ -7105,6 +7134,17 @@ export declare const GPUV1InstanceInstanceResourceActionLockEnum: {
7105
7134
  readonly Locked: "locked";
7106
7135
  };
7107
7136
  export type GPUV1InstanceInstanceResourceActionLockEnum = typeof GPUV1InstanceInstanceResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockEnum];
7137
+ export declare const GPUV1InstanceInstanceResourceActionLockReasonEnum: {
7138
+ readonly Creating: "creating";
7139
+ readonly Booting: "booting";
7140
+ readonly InstallingTemplate: "installing_template";
7141
+ readonly ExposingService: "exposing_service";
7142
+ readonly ConcealingService: "concealing_service";
7143
+ readonly Restarting: "restarting";
7144
+ readonly Destroying: "destroying";
7145
+ readonly Renaming: "renaming";
7146
+ };
7147
+ export type GPUV1InstanceInstanceResourceActionLockReasonEnum = typeof GPUV1InstanceInstanceResourceActionLockReasonEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockReasonEnum];
7108
7148
  /**
7109
7149
  *
7110
7150
  * @export
@@ -7136,6 +7176,58 @@ export interface GPUV1InstanceStoreRequest {
7136
7176
  */
7137
7177
  'public_keys': Array<string>;
7138
7178
  }
7179
+ /**
7180
+ *
7181
+ * @export
7182
+ * @interface GPUV1LlmModelVariantLlmModelVariantResource
7183
+ */
7184
+ export interface GPUV1LlmModelVariantLlmModelVariantResource {
7185
+ /**
7186
+ * LLM model variant ID
7187
+ * @type {number}
7188
+ * @memberof GPUV1LlmModelVariantLlmModelVariantResource
7189
+ */
7190
+ 'id': number;
7191
+ /**
7192
+ *
7193
+ * @type {string}
7194
+ * @memberof GPUV1LlmModelVariantLlmModelVariantResource
7195
+ */
7196
+ 'model_tag': string;
7197
+ /**
7198
+ *
7199
+ * @type {number}
7200
+ * @memberof GPUV1LlmModelVariantLlmModelVariantResource
7201
+ */
7202
+ 'parameter_count': number;
7203
+ /**
7204
+ *
7205
+ * @type {Array<string>}
7206
+ * @memberof GPUV1LlmModelVariantLlmModelVariantResource
7207
+ */
7208
+ 'capabilities': Array<GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum>;
7209
+ /**
7210
+ * Dark theme icon image ID
7211
+ * @type {string}
7212
+ * @memberof GPUV1LlmModelVariantLlmModelVariantResource
7213
+ */
7214
+ 'dark_image_id': string | null;
7215
+ /**
7216
+ * Light theme icon image ID
7217
+ * @type {string}
7218
+ * @memberof GPUV1LlmModelVariantLlmModelVariantResource
7219
+ */
7220
+ 'light_image_id': string | null;
7221
+ }
7222
+ export declare const GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum: {
7223
+ readonly Tools: "tools";
7224
+ readonly Thinking: "thinking";
7225
+ readonly Vision: "vision";
7226
+ readonly Sound: "sound";
7227
+ readonly Embedding: "embedding";
7228
+ readonly Decision: "decision";
7229
+ };
7230
+ export type GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum = typeof GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum[keyof typeof GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum];
7139
7231
  /**
7140
7232
  *
7141
7233
  * @export
@@ -7203,12 +7295,6 @@ export interface GPUV1OsTemplateOsTemplateResource {
7203
7295
  * @memberof GPUV1OsTemplateOsTemplateResource
7204
7296
  */
7205
7297
  'kb_url': string;
7206
- /**
7207
- * Icon image ID
7208
- * @type {string}
7209
- * @memberof GPUV1OsTemplateOsTemplateResource
7210
- */
7211
- 'image': string | null;
7212
7298
  /**
7213
7299
  * Dark theme icon image ID
7214
7300
  * @type {string}
@@ -7240,6 +7326,18 @@ export interface GPUV1PoolPoolGroupResource {
7240
7326
  * @memberof GPUV1PoolPoolGroupResource
7241
7327
  */
7242
7328
  'name': string;
7329
+ /**
7330
+ *
7331
+ * @type {string}
7332
+ * @memberof GPUV1PoolPoolGroupResource
7333
+ */
7334
+ 'description': string | null;
7335
+ /**
7336
+ *
7337
+ * @type {string}
7338
+ * @memberof GPUV1PoolPoolGroupResource
7339
+ */
7340
+ 'feature': string | null;
7243
7341
  /**
7244
7342
  * Total VRAM in bytes
7245
7343
  * @type {number}
@@ -7253,7 +7351,7 @@ export interface GPUV1PoolPoolGroupResource {
7253
7351
  */
7254
7352
  'is_available': boolean;
7255
7353
  /**
7256
- * Lowest hourly price of the group instance types, in the requested currency
7354
+ * Lowest hourly price of the group instance types, in credits
7257
7355
  * @type {number}
7258
7356
  * @memberof GPUV1PoolPoolGroupResource
7259
7357
  */
@@ -7308,7 +7406,7 @@ export interface GPUV1PoolPoolInstanceResource {
7308
7406
  */
7309
7407
  'storage': number;
7310
7408
  /**
7311
- * Hourly price in cents (USD)
7409
+ * Hourly price in credits
7312
7410
  * @type {number}
7313
7411
  * @memberof GPUV1PoolPoolInstanceResource
7314
7412
  */
@@ -25474,13 +25572,12 @@ export declare class EcommerceStoresApi extends BaseAPI {
25474
25572
  */
25475
25573
  export declare const GPUCatalogApiAxiosParamCreator: (configuration?: Configuration) => {
25476
25574
  /**
25477
- * 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.
25575
+ * 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.
25478
25576
  * @summary Get pool groups
25479
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
25480
25577
  * @param {*} [options] Override http request option.
25481
25578
  * @throws {RequiredError}
25482
25579
  */
25483
- getPoolGroupsV1: (currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25580
+ getPoolGroupsV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25484
25581
  /**
25485
25582
  * 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.
25486
25583
  * @summary Get pool instance types
@@ -25512,13 +25609,12 @@ export declare const GPUCatalogApiAxiosParamCreator: (configuration?: Configurat
25512
25609
  */
25513
25610
  export declare const GPUCatalogApiFp: (configuration?: Configuration) => {
25514
25611
  /**
25515
- * 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.
25612
+ * 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.
25516
25613
  * @summary Get pool groups
25517
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
25518
25614
  * @param {*} [options] Override http request option.
25519
25615
  * @throws {RequiredError}
25520
25616
  */
25521
- getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>>;
25617
+ getPoolGroupsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>>;
25522
25618
  /**
25523
25619
  * 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.
25524
25620
  * @summary Get pool instance types
@@ -25550,13 +25646,12 @@ export declare const GPUCatalogApiFp: (configuration?: Configuration) => {
25550
25646
  */
25551
25647
  export declare const GPUCatalogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
25552
25648
  /**
25553
- * 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.
25649
+ * 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.
25554
25650
  * @summary Get pool groups
25555
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
25556
25651
  * @param {*} [options] Override http request option.
25557
25652
  * @throws {RequiredError}
25558
25653
  */
25559
- getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>>;
25654
+ getPoolGroupsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>>;
25560
25655
  /**
25561
25656
  * 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.
25562
25657
  * @summary Get pool instance types
@@ -25590,14 +25685,13 @@ export declare const GPUCatalogApiFactory: (configuration?: Configuration, baseP
25590
25685
  */
25591
25686
  export declare class GPUCatalogApi extends BaseAPI {
25592
25687
  /**
25593
- * 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.
25688
+ * 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.
25594
25689
  * @summary Get pool groups
25595
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
25596
25690
  * @param {*} [options] Override http request option.
25597
25691
  * @throws {RequiredError}
25598
25692
  * @memberof GPUCatalogApi
25599
25693
  */
25600
- getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1PoolPoolGroupResource[], any, {}, any>>;
25694
+ getPoolGroupsV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1PoolPoolGroupResource[], any, {}, any>>;
25601
25695
  /**
25602
25696
  * 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.
25603
25697
  * @summary Get pool instance types
@@ -25626,61 +25720,6 @@ export declare class GPUCatalogApi extends BaseAPI {
25626
25720
  */
25627
25721
  getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1OsTemplateOsTemplateResource[], any, {}, any>>;
25628
25722
  }
25629
- /**
25630
- * @export
25631
- */
25632
- export declare const GetPoolGroupsV1CurrencyEnum: {
25633
- readonly Usd: "USD";
25634
- readonly Ars: "ARS";
25635
- readonly Amd: "AMD";
25636
- readonly Aud: "AUD";
25637
- readonly Azn: "AZN";
25638
- readonly Bdt: "BDT";
25639
- readonly Brl: "BRL";
25640
- readonly Btc: "BTC";
25641
- readonly Byn: "BYN";
25642
- readonly Cad: "CAD";
25643
- readonly Chf: "CHF";
25644
- readonly Clp: "CLP";
25645
- readonly Cny: "CNY";
25646
- readonly Cop: "COP";
25647
- readonly Czk: "CZK";
25648
- readonly Dkk: "DKK";
25649
- readonly Egp: "EGP";
25650
- readonly Eur: "EUR";
25651
- readonly Gbp: "GBP";
25652
- readonly Gel: "GEL";
25653
- readonly Hkd: "HKD";
25654
- readonly Hrk: "HRK";
25655
- readonly Huf: "HUF";
25656
- readonly Idr: "IDR";
25657
- readonly Ils: "ILS";
25658
- readonly Inr: "INR";
25659
- readonly Jpy: "JPY";
25660
- readonly Kgs: "KGS";
25661
- readonly Krw: "KRW";
25662
- readonly Kzt: "KZT";
25663
- readonly Mad: "MAD";
25664
- readonly Mxn: "MXN";
25665
- readonly Myr: "MYR";
25666
- readonly Ngn: "NGN";
25667
- readonly Nok: "NOK";
25668
- readonly Nzd: "NZD";
25669
- readonly Pen: "PEN";
25670
- readonly Php: "PHP";
25671
- readonly Pkr: "PKR";
25672
- readonly Pln: "PLN";
25673
- readonly Sek: "SEK";
25674
- readonly Sgd: "SGD";
25675
- readonly Thb: "THB";
25676
- readonly Tjs: "TJS";
25677
- readonly Try: "TRY";
25678
- readonly Twd: "TWD";
25679
- readonly Uah: "UAH";
25680
- readonly Vnd: "VND";
25681
- readonly Zar: "ZAR";
25682
- };
25683
- export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
25684
25723
  /**
25685
25724
  * GPUExposedServicesApi - axios parameter creator
25686
25725
  * @export
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.1
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
@@ -344,6 +344,16 @@ export const GPUV1InstanceInstanceListResourceActionLockEnum = {
344
344
  Unlocked: 'unlocked',
345
345
  Locked: 'locked'
346
346
  };
347
+ export const GPUV1InstanceInstanceListResourceActionLockReasonEnum = {
348
+ Creating: 'creating',
349
+ Booting: 'booting',
350
+ InstallingTemplate: 'installing_template',
351
+ ExposingService: 'exposing_service',
352
+ ConcealingService: 'concealing_service',
353
+ Restarting: 'restarting',
354
+ Destroying: 'destroying',
355
+ Renaming: 'renaming'
356
+ };
347
357
  export const GPUV1InstanceInstanceResourceStatusEnum = {
348
358
  Created: 'created',
349
359
  Creating: 'creating',
@@ -359,6 +369,24 @@ export const GPUV1InstanceInstanceResourceActionLockEnum = {
359
369
  Unlocked: 'unlocked',
360
370
  Locked: 'locked'
361
371
  };
372
+ export const GPUV1InstanceInstanceResourceActionLockReasonEnum = {
373
+ Creating: 'creating',
374
+ Booting: 'booting',
375
+ InstallingTemplate: 'installing_template',
376
+ ExposingService: 'exposing_service',
377
+ ConcealingService: 'concealing_service',
378
+ Restarting: 'restarting',
379
+ Destroying: 'destroying',
380
+ Renaming: 'renaming'
381
+ };
382
+ export const GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum = {
383
+ Tools: 'tools',
384
+ Thinking: 'thinking',
385
+ Vision: 'vision',
386
+ Sound: 'sound',
387
+ Embedding: 'embedding',
388
+ Decision: 'decision'
389
+ };
362
390
  export const HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
363
391
  Text: 'text'
364
392
  };
@@ -12299,13 +12327,12 @@ export class EcommerceStoresApi extends BaseAPI {
12299
12327
  export const GPUCatalogApiAxiosParamCreator = function (configuration) {
12300
12328
  return {
12301
12329
  /**
12302
- * 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.
12330
+ * 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.
12303
12331
  * @summary Get pool groups
12304
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
12305
12332
  * @param {*} [options] Override http request option.
12306
12333
  * @throws {RequiredError}
12307
12334
  */
12308
- getPoolGroupsV1: (currency_1, ...args_1) => __awaiter(this, [currency_1, ...args_1], void 0, function* (currency, options = {}) {
12335
+ getPoolGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12309
12336
  const localVarPath = `/api/gpu/v1/pools/groups`;
12310
12337
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12311
12338
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -12319,9 +12346,6 @@ export const GPUCatalogApiAxiosParamCreator = function (configuration) {
12319
12346
  // authentication apiToken required
12320
12347
  // http bearer authentication required
12321
12348
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12322
- if (currency !== undefined) {
12323
- localVarQueryParameter['currency'] = currency;
12324
- }
12325
12349
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12326
12350
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12327
12351
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12436,16 +12460,15 @@ export const GPUCatalogApiFp = function (configuration) {
12436
12460
  const localVarAxiosParamCreator = GPUCatalogApiAxiosParamCreator(configuration);
12437
12461
  return {
12438
12462
  /**
12439
- * 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.
12463
+ * 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.
12440
12464
  * @summary Get pool groups
12441
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
12442
12465
  * @param {*} [options] Override http request option.
12443
12466
  * @throws {RequiredError}
12444
12467
  */
12445
- getPoolGroupsV1(currency, options) {
12468
+ getPoolGroupsV1(options) {
12446
12469
  return __awaiter(this, void 0, void 0, function* () {
12447
12470
  var _a, _b;
12448
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoolGroupsV1(currency, options);
12471
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoolGroupsV1(options);
12449
12472
  const localVarOperationServerBasePath = (_b = (_a = operationServerMap['GPUCatalogApi.getPoolGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12450
12473
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12451
12474
  });
@@ -12505,14 +12528,13 @@ export const GPUCatalogApiFactory = function (configuration, basePath, axios) {
12505
12528
  const localVarFp = GPUCatalogApiFp(configuration);
12506
12529
  return {
12507
12530
  /**
12508
- * 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.
12531
+ * 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.
12509
12532
  * @summary Get pool groups
12510
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
12511
12533
  * @param {*} [options] Override http request option.
12512
12534
  * @throws {RequiredError}
12513
12535
  */
12514
- getPoolGroupsV1(currency, options) {
12515
- return localVarFp.getPoolGroupsV1(currency, options).then((request) => request(axios, basePath));
12536
+ getPoolGroupsV1(options) {
12537
+ return localVarFp.getPoolGroupsV1(options).then((request) => request(axios, basePath));
12516
12538
  },
12517
12539
  /**
12518
12540
  * 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.
@@ -12554,15 +12576,14 @@ export const GPUCatalogApiFactory = function (configuration, basePath, axios) {
12554
12576
  */
12555
12577
  export class GPUCatalogApi extends BaseAPI {
12556
12578
  /**
12557
- * 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.
12579
+ * 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.
12558
12580
  * @summary Get pool groups
12559
- * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
12560
12581
  * @param {*} [options] Override http request option.
12561
12582
  * @throws {RequiredError}
12562
12583
  * @memberof GPUCatalogApi
12563
12584
  */
12564
- getPoolGroupsV1(currency, options) {
12565
- return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(currency, options).then((request) => request(this.axios, this.basePath));
12585
+ getPoolGroupsV1(options) {
12586
+ return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(options).then((request) => request(this.axios, this.basePath));
12566
12587
  }
12567
12588
  /**
12568
12589
  * 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.
@@ -12598,60 +12619,6 @@ export class GPUCatalogApi extends BaseAPI {
12598
12619
  return GPUCatalogApiFp(this.configuration).getPoolOSTemplatesV1(poolId, poolInstanceId, options).then((request) => request(this.axios, this.basePath));
12599
12620
  }
12600
12621
  }
12601
- /**
12602
- * @export
12603
- */
12604
- export const GetPoolGroupsV1CurrencyEnum = {
12605
- Usd: 'USD',
12606
- Ars: 'ARS',
12607
- Amd: 'AMD',
12608
- Aud: 'AUD',
12609
- Azn: 'AZN',
12610
- Bdt: 'BDT',
12611
- Brl: 'BRL',
12612
- Btc: 'BTC',
12613
- Byn: 'BYN',
12614
- Cad: 'CAD',
12615
- Chf: 'CHF',
12616
- Clp: 'CLP',
12617
- Cny: 'CNY',
12618
- Cop: 'COP',
12619
- Czk: 'CZK',
12620
- Dkk: 'DKK',
12621
- Egp: 'EGP',
12622
- Eur: 'EUR',
12623
- Gbp: 'GBP',
12624
- Gel: 'GEL',
12625
- Hkd: 'HKD',
12626
- Hrk: 'HRK',
12627
- Huf: 'HUF',
12628
- Idr: 'IDR',
12629
- Ils: 'ILS',
12630
- Inr: 'INR',
12631
- Jpy: 'JPY',
12632
- Kgs: 'KGS',
12633
- Krw: 'KRW',
12634
- Kzt: 'KZT',
12635
- Mad: 'MAD',
12636
- Mxn: 'MXN',
12637
- Myr: 'MYR',
12638
- Ngn: 'NGN',
12639
- Nok: 'NOK',
12640
- Nzd: 'NZD',
12641
- Pen: 'PEN',
12642
- Php: 'PHP',
12643
- Pkr: 'PKR',
12644
- Pln: 'PLN',
12645
- Sek: 'SEK',
12646
- Sgd: 'SGD',
12647
- Thb: 'THB',
12648
- Tjs: 'TJS',
12649
- Try: 'TRY',
12650
- Twd: 'TWD',
12651
- Uah: 'UAH',
12652
- Vnd: 'VND',
12653
- Zar: 'ZAR'
12654
- };
12655
12622
  /**
12656
12623
  * GPUExposedServicesApi - axios parameter creator
12657
12624
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.16.1
4
+ * API Version: 3.0.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.1
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.16.1
4
+ * API Version: 3.0.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.1
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.16.1
4
+ * API Version: 3.0.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.1
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.16.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.0.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.16.1
4
+ * API Version: 3.0.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.1
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
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.16.1
4
+ * API Version: 3.0.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.16.1
7
+ * API Version: 3.0.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api