@hostinger/sdk 1.53.1 → 1.54.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: 1.53.0
4
+ * API Version: 1.54.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
@@ -810,6 +810,39 @@ export declare const AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum:
810
810
  readonly Completed: "completed";
811
811
  };
812
812
  export type AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = typeof AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum[keyof typeof AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum];
813
+ /**
814
+ *
815
+ * @export
816
+ * @interface AgencyHostingV1SslSslStatusResource
817
+ */
818
+ export interface AgencyHostingV1SslSslStatusResource {
819
+ /**
820
+ * `installing` while a certificate setup is running or retrying, `active` when a valid certificate is in place (uploaded, platform-issued, or a lifetime certificate bought for the domain), `failed` when the last setup gave up and no valid certificate is in place, `expired` when the certificate has run out, `not_installed` when the domain has no certificate and no setup process.
821
+ * @type {string}
822
+ * @memberof AgencyHostingV1SslSslStatusResource
823
+ */
824
+ 'status': AgencyHostingV1SslSslStatusResourceStatusEnum;
825
+ /**
826
+ * Whether the certificate was uploaded by the customer instead of issued or sold by the platform.
827
+ * @type {boolean}
828
+ * @memberof AgencyHostingV1SslSslStatusResource
829
+ */
830
+ 'is_custom': boolean;
831
+ /**
832
+ * End of the validity period of the certificate in place; null when there is none or the uploaded certificate carries no expiry.
833
+ * @type {string}
834
+ * @memberof AgencyHostingV1SslSslStatusResource
835
+ */
836
+ 'expires_at': string | null;
837
+ }
838
+ export declare const AgencyHostingV1SslSslStatusResourceStatusEnum: {
839
+ readonly NotInstalled: "not_installed";
840
+ readonly Installing: "installing";
841
+ readonly Failed: "failed";
842
+ readonly Active: "active";
843
+ readonly Expired: "expired";
844
+ };
845
+ export type AgencyHostingV1SslSslStatusResourceStatusEnum = typeof AgencyHostingV1SslSslStatusResourceStatusEnum[keyof typeof AgencyHostingV1SslSslStatusResourceStatusEnum];
813
846
  /**
814
847
  * Build Node.js assets from an already-uploaded archive
815
848
  * @export
@@ -17770,6 +17803,180 @@ export declare class AgencyHostingPHPApi extends BaseAPI {
17770
17803
  */
17771
17804
  updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
17772
17805
  }
17806
+ /**
17807
+ * AgencyHostingSSLApi - axios parameter creator
17808
+ * @export
17809
+ */
17810
+ export declare const AgencyHostingSSLApiAxiosParamCreator: (configuration?: Configuration) => {
17811
+ /**
17812
+ * Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
17813
+ * @summary Get website SSL status
17814
+ * @param {string} websiteUid Agency Plan website UID
17815
+ * @param {string} domain Domain name
17816
+ * @param {*} [options] Override http request option.
17817
+ * @throws {RequiredError}
17818
+ */
17819
+ getWebsiteSSLStatusV1: (websiteUid: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17820
+ /**
17821
+ * Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17822
+ * @summary Install website SSL
17823
+ * @param {string} websiteUid Agency Plan website UID
17824
+ * @param {string} domain Domain name
17825
+ * @param {*} [options] Override http request option.
17826
+ * @throws {RequiredError}
17827
+ */
17828
+ installWebsiteSSLV1: (websiteUid: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17829
+ /**
17830
+ * Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17831
+ * @summary Reinstall website SSL
17832
+ * @param {string} websiteUid Agency Plan website UID
17833
+ * @param {string} domain Domain name
17834
+ * @param {*} [options] Override http request option.
17835
+ * @throws {RequiredError}
17836
+ */
17837
+ reinstallWebsiteSSLV1: (websiteUid: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17838
+ /**
17839
+ * Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17840
+ * @summary Uninstall website SSL
17841
+ * @param {string} websiteUid Agency Plan website UID
17842
+ * @param {string} domain Domain name
17843
+ * @param {*} [options] Override http request option.
17844
+ * @throws {RequiredError}
17845
+ */
17846
+ uninstallWebsiteSSLV1: (websiteUid: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17847
+ };
17848
+ /**
17849
+ * AgencyHostingSSLApi - functional programming interface
17850
+ * @export
17851
+ */
17852
+ export declare const AgencyHostingSSLApiFp: (configuration?: Configuration) => {
17853
+ /**
17854
+ * Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
17855
+ * @summary Get website SSL status
17856
+ * @param {string} websiteUid Agency Plan website UID
17857
+ * @param {string} domain Domain name
17858
+ * @param {*} [options] Override http request option.
17859
+ * @throws {RequiredError}
17860
+ */
17861
+ getWebsiteSSLStatusV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgencyHostingV1SslSslStatusResource>>;
17862
+ /**
17863
+ * Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17864
+ * @summary Install website SSL
17865
+ * @param {string} websiteUid Agency Plan website UID
17866
+ * @param {string} domain Domain name
17867
+ * @param {*} [options] Override http request option.
17868
+ * @throws {RequiredError}
17869
+ */
17870
+ installWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
17871
+ /**
17872
+ * Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17873
+ * @summary Reinstall website SSL
17874
+ * @param {string} websiteUid Agency Plan website UID
17875
+ * @param {string} domain Domain name
17876
+ * @param {*} [options] Override http request option.
17877
+ * @throws {RequiredError}
17878
+ */
17879
+ reinstallWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
17880
+ /**
17881
+ * Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17882
+ * @summary Uninstall website SSL
17883
+ * @param {string} websiteUid Agency Plan website UID
17884
+ * @param {string} domain Domain name
17885
+ * @param {*} [options] Override http request option.
17886
+ * @throws {RequiredError}
17887
+ */
17888
+ uninstallWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
17889
+ };
17890
+ /**
17891
+ * AgencyHostingSSLApi - factory interface
17892
+ * @export
17893
+ */
17894
+ export declare const AgencyHostingSSLApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
17895
+ /**
17896
+ * Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
17897
+ * @summary Get website SSL status
17898
+ * @param {string} websiteUid Agency Plan website UID
17899
+ * @param {string} domain Domain name
17900
+ * @param {*} [options] Override http request option.
17901
+ * @throws {RequiredError}
17902
+ */
17903
+ getWebsiteSSLStatusV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<AgencyHostingV1SslSslStatusResource>;
17904
+ /**
17905
+ * Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17906
+ * @summary Install website SSL
17907
+ * @param {string} websiteUid Agency Plan website UID
17908
+ * @param {string} domain Domain name
17909
+ * @param {*} [options] Override http request option.
17910
+ * @throws {RequiredError}
17911
+ */
17912
+ installWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
17913
+ /**
17914
+ * Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17915
+ * @summary Reinstall website SSL
17916
+ * @param {string} websiteUid Agency Plan website UID
17917
+ * @param {string} domain Domain name
17918
+ * @param {*} [options] Override http request option.
17919
+ * @throws {RequiredError}
17920
+ */
17921
+ reinstallWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
17922
+ /**
17923
+ * Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17924
+ * @summary Uninstall website SSL
17925
+ * @param {string} websiteUid Agency Plan website UID
17926
+ * @param {string} domain Domain name
17927
+ * @param {*} [options] Override http request option.
17928
+ * @throws {RequiredError}
17929
+ */
17930
+ uninstallWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
17931
+ };
17932
+ /**
17933
+ * AgencyHostingSSLApi - object-oriented interface
17934
+ * @export
17935
+ * @class AgencyHostingSSLApi
17936
+ * @extends {BaseAPI}
17937
+ */
17938
+ export declare class AgencyHostingSSLApi extends BaseAPI {
17939
+ /**
17940
+ * Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
17941
+ * @summary Get website SSL status
17942
+ * @param {string} websiteUid Agency Plan website UID
17943
+ * @param {string} domain Domain name
17944
+ * @param {*} [options] Override http request option.
17945
+ * @throws {RequiredError}
17946
+ * @memberof AgencyHostingSSLApi
17947
+ */
17948
+ getWebsiteSSLStatusV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1SslSslStatusResource, any, {}, any>>;
17949
+ /**
17950
+ * Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17951
+ * @summary Install website SSL
17952
+ * @param {string} websiteUid Agency Plan website UID
17953
+ * @param {string} domain Domain name
17954
+ * @param {*} [options] Override http request option.
17955
+ * @throws {RequiredError}
17956
+ * @memberof AgencyHostingSSLApi
17957
+ */
17958
+ installWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
17959
+ /**
17960
+ * Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17961
+ * @summary Reinstall website SSL
17962
+ * @param {string} websiteUid Agency Plan website UID
17963
+ * @param {string} domain Domain name
17964
+ * @param {*} [options] Override http request option.
17965
+ * @throws {RequiredError}
17966
+ * @memberof AgencyHostingSSLApi
17967
+ */
17968
+ reinstallWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
17969
+ /**
17970
+ * Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
17971
+ * @summary Uninstall website SSL
17972
+ * @param {string} websiteUid Agency Plan website UID
17973
+ * @param {string} domain Domain name
17974
+ * @param {*} [options] Override http request option.
17975
+ * @throws {RequiredError}
17976
+ * @memberof AgencyHostingSSLApi
17977
+ */
17978
+ uninstallWebsiteSSLV1(websiteUid: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
17979
+ }
17773
17980
  /**
17774
17981
  * AgencyHostingWebsiteSetupsApi - axios parameter creator
17775
17982
  * @export