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/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