hostinger-api-sdk 2.6.3 → 2.7.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.6.2
4
+ * API Version: 2.7.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
@@ -6750,6 +6750,215 @@ export interface EcommerceV1VariantVariantResponseResource {
6750
6750
  */
6751
6751
  'data': EcommerceV1VariantVariantResource;
6752
6752
  }
6753
+ /**
6754
+ *
6755
+ * @export
6756
+ * @interface GPUV1OsTemplateOsTemplateResource
6757
+ */
6758
+ export interface GPUV1OsTemplateOsTemplateResource {
6759
+ /**
6760
+ * OS template ID
6761
+ * @type {number}
6762
+ * @memberof GPUV1OsTemplateOsTemplateResource
6763
+ */
6764
+ 'id': number;
6765
+ /**
6766
+ *
6767
+ * @type {string}
6768
+ * @memberof GPUV1OsTemplateOsTemplateResource
6769
+ */
6770
+ 'name': string;
6771
+ /**
6772
+ * Knowledge base article about the template
6773
+ * @type {string}
6774
+ * @memberof GPUV1OsTemplateOsTemplateResource
6775
+ */
6776
+ 'kb_url': string;
6777
+ /**
6778
+ * Icon image ID
6779
+ * @type {string}
6780
+ * @memberof GPUV1OsTemplateOsTemplateResource
6781
+ */
6782
+ 'image': string | null;
6783
+ /**
6784
+ * Dark theme icon image ID
6785
+ * @type {string}
6786
+ * @memberof GPUV1OsTemplateOsTemplateResource
6787
+ */
6788
+ 'dark_image_id': string | null;
6789
+ /**
6790
+ * Light theme icon image ID
6791
+ * @type {string}
6792
+ * @memberof GPUV1OsTemplateOsTemplateResource
6793
+ */
6794
+ 'light_image_id': string | null;
6795
+ }
6796
+ /**
6797
+ *
6798
+ * @export
6799
+ * @interface GPUV1PoolPoolGroupResource
6800
+ */
6801
+ export interface GPUV1PoolPoolGroupResource {
6802
+ /**
6803
+ * GPU pool group ID
6804
+ * @type {number}
6805
+ * @memberof GPUV1PoolPoolGroupResource
6806
+ */
6807
+ 'id': number;
6808
+ /**
6809
+ *
6810
+ * @type {string}
6811
+ * @memberof GPUV1PoolPoolGroupResource
6812
+ */
6813
+ 'name': string;
6814
+ /**
6815
+ * Total VRAM in bytes
6816
+ * @type {number}
6817
+ * @memberof GPUV1PoolPoolGroupResource
6818
+ */
6819
+ 'vram': number | null;
6820
+ /**
6821
+ * Whether the group has any available pools
6822
+ * @type {boolean}
6823
+ * @memberof GPUV1PoolPoolGroupResource
6824
+ */
6825
+ 'is_available': boolean;
6826
+ /**
6827
+ * Lowest hourly price of the group instance types, in the requested currency
6828
+ * @type {number}
6829
+ * @memberof GPUV1PoolPoolGroupResource
6830
+ */
6831
+ 'min_price_per_hour': number | null;
6832
+ /**
6833
+ * Array of [`GPU.V1.Pool.PoolResource`](#model/gpuv1poolpoolresource)
6834
+ * @type {Array<GPUV1PoolPoolResource>}
6835
+ * @memberof GPUV1PoolPoolGroupResource
6836
+ */
6837
+ 'pools': Array<GPUV1PoolPoolResource>;
6838
+ }
6839
+ /**
6840
+ *
6841
+ * @export
6842
+ * @interface GPUV1PoolPoolInstanceResource
6843
+ */
6844
+ export interface GPUV1PoolPoolInstanceResource {
6845
+ /**
6846
+ * GPU pool instance type ID
6847
+ * @type {number}
6848
+ * @memberof GPUV1PoolPoolInstanceResource
6849
+ */
6850
+ 'id': number;
6851
+ /**
6852
+ *
6853
+ * @type {string}
6854
+ * @memberof GPUV1PoolPoolInstanceResource
6855
+ */
6856
+ 'name': string;
6857
+ /**
6858
+ *
6859
+ * @type {string}
6860
+ * @memberof GPUV1PoolPoolInstanceResource
6861
+ */
6862
+ 'description': string | null;
6863
+ /**
6864
+ * Number of CPU cores
6865
+ * @type {number}
6866
+ * @memberof GPUV1PoolPoolInstanceResource
6867
+ */
6868
+ 'cpu_cores': number;
6869
+ /**
6870
+ * Total RAM in bytes
6871
+ * @type {number}
6872
+ * @memberof GPUV1PoolPoolInstanceResource
6873
+ */
6874
+ 'ram': number;
6875
+ /**
6876
+ * Total storage in bytes
6877
+ * @type {number}
6878
+ * @memberof GPUV1PoolPoolInstanceResource
6879
+ */
6880
+ 'storage': number;
6881
+ /**
6882
+ * Hourly price in cents (USD)
6883
+ * @type {number}
6884
+ * @memberof GPUV1PoolPoolInstanceResource
6885
+ */
6886
+ 'price_per_hour': number;
6887
+ }
6888
+ /**
6889
+ *
6890
+ * @export
6891
+ * @interface GPUV1PoolPoolResource
6892
+ */
6893
+ export interface GPUV1PoolPoolResource {
6894
+ /**
6895
+ * GPU pool ID
6896
+ * @type {number}
6897
+ * @memberof GPUV1PoolPoolResource
6898
+ */
6899
+ 'id': number;
6900
+ /**
6901
+ *
6902
+ * @type {string}
6903
+ * @memberof GPUV1PoolPoolResource
6904
+ */
6905
+ 'name': string;
6906
+ /**
6907
+ * Number of GPUs
6908
+ * @type {number}
6909
+ * @memberof GPUV1PoolPoolResource
6910
+ */
6911
+ 'gpus': number;
6912
+ /**
6913
+ * Total VRAM in bytes
6914
+ * @type {number}
6915
+ * @memberof GPUV1PoolPoolResource
6916
+ */
6917
+ 'vram': number;
6918
+ /**
6919
+ * Whether the pool has available instances for booking
6920
+ * @type {boolean}
6921
+ * @memberof GPUV1PoolPoolResource
6922
+ */
6923
+ 'is_available': boolean;
6924
+ /**
6925
+ *
6926
+ * @type {GPUV1RegionRegionResource}
6927
+ * @memberof GPUV1PoolPoolResource
6928
+ */
6929
+ 'region': GPUV1RegionRegionResource | null;
6930
+ }
6931
+ /**
6932
+ *
6933
+ * @export
6934
+ * @interface GPUV1RegionRegionResource
6935
+ */
6936
+ export interface GPUV1RegionRegionResource {
6937
+ /**
6938
+ * Region ID
6939
+ * @type {number}
6940
+ * @memberof GPUV1RegionRegionResource
6941
+ */
6942
+ 'id': number;
6943
+ /**
6944
+ * Region name
6945
+ * @type {string}
6946
+ * @memberof GPUV1RegionRegionResource
6947
+ */
6948
+ 'name': string | null;
6949
+ /**
6950
+ *
6951
+ * @type {string}
6952
+ * @memberof GPUV1RegionRegionResource
6953
+ */
6954
+ 'city': string;
6955
+ /**
6956
+ * ISO 3166-1 alpha-2 country code
6957
+ * @type {string}
6958
+ * @memberof GPUV1RegionRegionResource
6959
+ */
6960
+ 'country': string;
6961
+ }
6753
6962
  /**
6754
6963
  *
6755
6964
  * @export
@@ -24443,6 +24652,219 @@ export declare class EcommerceStoresApi extends BaseAPI {
24443
24652
  */
24444
24653
  getStoresV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceGetStoresV1200Response, any, {}, any>>;
24445
24654
  }
24655
+ /**
24656
+ * GPUCatalogApi - axios parameter creator
24657
+ * @export
24658
+ */
24659
+ export declare const GPUCatalogApiAxiosParamCreator: (configuration?: Configuration) => {
24660
+ /**
24661
+ * 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.
24662
+ * @summary Get pool groups
24663
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
24664
+ * @param {*} [options] Override http request option.
24665
+ * @throws {RequiredError}
24666
+ */
24667
+ getPoolGroupsV1: (currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24668
+ /**
24669
+ * 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.
24670
+ * @summary Get pool instance types
24671
+ * @param {number} poolId GPU pool ID
24672
+ * @param {*} [options] Override http request option.
24673
+ * @throws {RequiredError}
24674
+ */
24675
+ getPoolInstanceTypesV1: (poolId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24676
+ /**
24677
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
24678
+ * @summary Get pool list
24679
+ * @param {*} [options] Override http request option.
24680
+ * @throws {RequiredError}
24681
+ */
24682
+ getPoolListV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24683
+ /**
24684
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
24685
+ * @summary Get pool OS templates
24686
+ * @param {number} poolId GPU pool ID
24687
+ * @param {number} poolInstanceId GPU pool instance type ID
24688
+ * @param {*} [options] Override http request option.
24689
+ * @throws {RequiredError}
24690
+ */
24691
+ getPoolOSTemplatesV1: (poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24692
+ };
24693
+ /**
24694
+ * GPUCatalogApi - functional programming interface
24695
+ * @export
24696
+ */
24697
+ export declare const GPUCatalogApiFp: (configuration?: Configuration) => {
24698
+ /**
24699
+ * 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.
24700
+ * @summary Get pool groups
24701
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
24702
+ * @param {*} [options] Override http request option.
24703
+ * @throws {RequiredError}
24704
+ */
24705
+ getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>>;
24706
+ /**
24707
+ * 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.
24708
+ * @summary Get pool instance types
24709
+ * @param {number} poolId GPU pool ID
24710
+ * @param {*} [options] Override http request option.
24711
+ * @throws {RequiredError}
24712
+ */
24713
+ getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolInstanceResource>>>;
24714
+ /**
24715
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
24716
+ * @summary Get pool list
24717
+ * @param {*} [options] Override http request option.
24718
+ * @throws {RequiredError}
24719
+ */
24720
+ getPoolListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolResource>>>;
24721
+ /**
24722
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
24723
+ * @summary Get pool OS templates
24724
+ * @param {number} poolId GPU pool ID
24725
+ * @param {number} poolInstanceId GPU pool instance type ID
24726
+ * @param {*} [options] Override http request option.
24727
+ * @throws {RequiredError}
24728
+ */
24729
+ getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1OsTemplateOsTemplateResource>>>;
24730
+ };
24731
+ /**
24732
+ * GPUCatalogApi - factory interface
24733
+ * @export
24734
+ */
24735
+ export declare const GPUCatalogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
24736
+ /**
24737
+ * 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.
24738
+ * @summary Get pool groups
24739
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
24740
+ * @param {*} [options] Override http request option.
24741
+ * @throws {RequiredError}
24742
+ */
24743
+ getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>>;
24744
+ /**
24745
+ * 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.
24746
+ * @summary Get pool instance types
24747
+ * @param {number} poolId GPU pool ID
24748
+ * @param {*} [options] Override http request option.
24749
+ * @throws {RequiredError}
24750
+ */
24751
+ getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolInstanceResource>>;
24752
+ /**
24753
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
24754
+ * @summary Get pool list
24755
+ * @param {*} [options] Override http request option.
24756
+ * @throws {RequiredError}
24757
+ */
24758
+ getPoolListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolResource>>;
24759
+ /**
24760
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
24761
+ * @summary Get pool OS templates
24762
+ * @param {number} poolId GPU pool ID
24763
+ * @param {number} poolInstanceId GPU pool instance type ID
24764
+ * @param {*} [options] Override http request option.
24765
+ * @throws {RequiredError}
24766
+ */
24767
+ getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1OsTemplateOsTemplateResource>>;
24768
+ };
24769
+ /**
24770
+ * GPUCatalogApi - object-oriented interface
24771
+ * @export
24772
+ * @class GPUCatalogApi
24773
+ * @extends {BaseAPI}
24774
+ */
24775
+ export declare class GPUCatalogApi extends BaseAPI {
24776
+ /**
24777
+ * 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.
24778
+ * @summary Get pool groups
24779
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
24780
+ * @param {*} [options] Override http request option.
24781
+ * @throws {RequiredError}
24782
+ * @memberof GPUCatalogApi
24783
+ */
24784
+ getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1PoolPoolGroupResource[], any, {}, any>>;
24785
+ /**
24786
+ * 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.
24787
+ * @summary Get pool instance types
24788
+ * @param {number} poolId GPU pool ID
24789
+ * @param {*} [options] Override http request option.
24790
+ * @throws {RequiredError}
24791
+ * @memberof GPUCatalogApi
24792
+ */
24793
+ getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1PoolPoolInstanceResource[], any, {}, any>>;
24794
+ /**
24795
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
24796
+ * @summary Get pool list
24797
+ * @param {*} [options] Override http request option.
24798
+ * @throws {RequiredError}
24799
+ * @memberof GPUCatalogApi
24800
+ */
24801
+ getPoolListV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1PoolPoolResource[], any, {}, any>>;
24802
+ /**
24803
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
24804
+ * @summary Get pool OS templates
24805
+ * @param {number} poolId GPU pool ID
24806
+ * @param {number} poolInstanceId GPU pool instance type ID
24807
+ * @param {*} [options] Override http request option.
24808
+ * @throws {RequiredError}
24809
+ * @memberof GPUCatalogApi
24810
+ */
24811
+ getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1OsTemplateOsTemplateResource[], any, {}, any>>;
24812
+ }
24813
+ /**
24814
+ * @export
24815
+ */
24816
+ export declare const GetPoolGroupsV1CurrencyEnum: {
24817
+ readonly Usd: "USD";
24818
+ readonly Ars: "ARS";
24819
+ readonly Amd: "AMD";
24820
+ readonly Aud: "AUD";
24821
+ readonly Azn: "AZN";
24822
+ readonly Bdt: "BDT";
24823
+ readonly Brl: "BRL";
24824
+ readonly Btc: "BTC";
24825
+ readonly Byn: "BYN";
24826
+ readonly Cad: "CAD";
24827
+ readonly Chf: "CHF";
24828
+ readonly Clp: "CLP";
24829
+ readonly Cny: "CNY";
24830
+ readonly Cop: "COP";
24831
+ readonly Czk: "CZK";
24832
+ readonly Dkk: "DKK";
24833
+ readonly Egp: "EGP";
24834
+ readonly Eur: "EUR";
24835
+ readonly Gbp: "GBP";
24836
+ readonly Gel: "GEL";
24837
+ readonly Hkd: "HKD";
24838
+ readonly Hrk: "HRK";
24839
+ readonly Huf: "HUF";
24840
+ readonly Idr: "IDR";
24841
+ readonly Ils: "ILS";
24842
+ readonly Inr: "INR";
24843
+ readonly Jpy: "JPY";
24844
+ readonly Kgs: "KGS";
24845
+ readonly Krw: "KRW";
24846
+ readonly Kzt: "KZT";
24847
+ readonly Mad: "MAD";
24848
+ readonly Mxn: "MXN";
24849
+ readonly Myr: "MYR";
24850
+ readonly Ngn: "NGN";
24851
+ readonly Nok: "NOK";
24852
+ readonly Nzd: "NZD";
24853
+ readonly Pen: "PEN";
24854
+ readonly Php: "PHP";
24855
+ readonly Pkr: "PKR";
24856
+ readonly Pln: "PLN";
24857
+ readonly Sek: "SEK";
24858
+ readonly Sgd: "SGD";
24859
+ readonly Thb: "THB";
24860
+ readonly Tjs: "TJS";
24861
+ readonly Try: "TRY";
24862
+ readonly Twd: "TWD";
24863
+ readonly Uah: "UAH";
24864
+ readonly Vnd: "VND";
24865
+ readonly Zar: "ZAR";
24866
+ };
24867
+ export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
24446
24868
  /**
24447
24869
  * HorizonsWebsitesApi - axios parameter creator
24448
24870
  * @export