@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/README.md +2 -2
- package/api.ts +392 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +208 -1
- package/dist/api.js +358 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +208 -1
- package/dist/esm/api.js +342 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingSSLApi.md +238 -0
- package/docs/AgencyHostingV1SslSslStatusResource.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
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
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.54.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
|
|
@@ -39,6 +39,13 @@ export const AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = {
|
|
|
39
39
|
Running: 'running',
|
|
40
40
|
Completed: 'completed'
|
|
41
41
|
};
|
|
42
|
+
export const AgencyHostingV1SslSslStatusResourceStatusEnum = {
|
|
43
|
+
NotInstalled: 'not_installed',
|
|
44
|
+
Installing: 'installing',
|
|
45
|
+
Failed: 'failed',
|
|
46
|
+
Active: 'active',
|
|
47
|
+
Expired: 'expired'
|
|
48
|
+
};
|
|
42
49
|
export const AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = {
|
|
43
50
|
Wordpress: 'wordpress',
|
|
44
51
|
Builder: 'builder',
|
|
@@ -3427,6 +3434,340 @@ export class AgencyHostingPHPApi extends BaseAPI {
|
|
|
3427
3434
|
return AgencyHostingPHPApiFp(this.configuration).updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3428
3435
|
}
|
|
3429
3436
|
}
|
|
3437
|
+
/**
|
|
3438
|
+
* AgencyHostingSSLApi - axios parameter creator
|
|
3439
|
+
* @export
|
|
3440
|
+
*/
|
|
3441
|
+
export const AgencyHostingSSLApiAxiosParamCreator = function (configuration) {
|
|
3442
|
+
return {
|
|
3443
|
+
/**
|
|
3444
|
+
* 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.
|
|
3445
|
+
* @summary Get website SSL status
|
|
3446
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3447
|
+
* @param {string} domain Domain name
|
|
3448
|
+
* @param {*} [options] Override http request option.
|
|
3449
|
+
* @throws {RequiredError}
|
|
3450
|
+
*/
|
|
3451
|
+
getWebsiteSSLStatusV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3452
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3453
|
+
assertParamExists('getWebsiteSSLStatusV1', 'websiteUid', websiteUid);
|
|
3454
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3455
|
+
assertParamExists('getWebsiteSSLStatusV1', 'domain', domain);
|
|
3456
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/status`
|
|
3457
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3458
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3460
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3461
|
+
let baseOptions;
|
|
3462
|
+
if (configuration) {
|
|
3463
|
+
baseOptions = configuration.baseOptions;
|
|
3464
|
+
}
|
|
3465
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3466
|
+
const localVarHeaderParameter = {};
|
|
3467
|
+
const localVarQueryParameter = {};
|
|
3468
|
+
// authentication apiToken required
|
|
3469
|
+
// http bearer authentication required
|
|
3470
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3474
|
+
return {
|
|
3475
|
+
url: toPathString(localVarUrlObj),
|
|
3476
|
+
options: localVarRequestOptions,
|
|
3477
|
+
};
|
|
3478
|
+
}),
|
|
3479
|
+
/**
|
|
3480
|
+
* 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.
|
|
3481
|
+
* @summary Install website SSL
|
|
3482
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3483
|
+
* @param {string} domain Domain name
|
|
3484
|
+
* @param {*} [options] Override http request option.
|
|
3485
|
+
* @throws {RequiredError}
|
|
3486
|
+
*/
|
|
3487
|
+
installWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3488
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3489
|
+
assertParamExists('installWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3490
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3491
|
+
assertParamExists('installWebsiteSSLV1', 'domain', domain);
|
|
3492
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/setup`
|
|
3493
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3494
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3497
|
+
let baseOptions;
|
|
3498
|
+
if (configuration) {
|
|
3499
|
+
baseOptions = configuration.baseOptions;
|
|
3500
|
+
}
|
|
3501
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3502
|
+
const localVarHeaderParameter = {};
|
|
3503
|
+
const localVarQueryParameter = {};
|
|
3504
|
+
// authentication apiToken required
|
|
3505
|
+
// http bearer authentication required
|
|
3506
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3509
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3510
|
+
return {
|
|
3511
|
+
url: toPathString(localVarUrlObj),
|
|
3512
|
+
options: localVarRequestOptions,
|
|
3513
|
+
};
|
|
3514
|
+
}),
|
|
3515
|
+
/**
|
|
3516
|
+
* 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.
|
|
3517
|
+
* @summary Reinstall website SSL
|
|
3518
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3519
|
+
* @param {string} domain Domain name
|
|
3520
|
+
* @param {*} [options] Override http request option.
|
|
3521
|
+
* @throws {RequiredError}
|
|
3522
|
+
*/
|
|
3523
|
+
reinstallWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3524
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3525
|
+
assertParamExists('reinstallWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3526
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3527
|
+
assertParamExists('reinstallWebsiteSSLV1', 'domain', domain);
|
|
3528
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/reinstall`
|
|
3529
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3530
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3531
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3532
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3533
|
+
let baseOptions;
|
|
3534
|
+
if (configuration) {
|
|
3535
|
+
baseOptions = configuration.baseOptions;
|
|
3536
|
+
}
|
|
3537
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3538
|
+
const localVarHeaderParameter = {};
|
|
3539
|
+
const localVarQueryParameter = {};
|
|
3540
|
+
// authentication apiToken required
|
|
3541
|
+
// http bearer authentication required
|
|
3542
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3543
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3544
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3545
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3546
|
+
return {
|
|
3547
|
+
url: toPathString(localVarUrlObj),
|
|
3548
|
+
options: localVarRequestOptions,
|
|
3549
|
+
};
|
|
3550
|
+
}),
|
|
3551
|
+
/**
|
|
3552
|
+
* 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.
|
|
3553
|
+
* @summary Uninstall website SSL
|
|
3554
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3555
|
+
* @param {string} domain Domain name
|
|
3556
|
+
* @param {*} [options] Override http request option.
|
|
3557
|
+
* @throws {RequiredError}
|
|
3558
|
+
*/
|
|
3559
|
+
uninstallWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3560
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3561
|
+
assertParamExists('uninstallWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3562
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3563
|
+
assertParamExists('uninstallWebsiteSSLV1', 'domain', domain);
|
|
3564
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl`
|
|
3565
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3566
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3569
|
+
let baseOptions;
|
|
3570
|
+
if (configuration) {
|
|
3571
|
+
baseOptions = configuration.baseOptions;
|
|
3572
|
+
}
|
|
3573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3574
|
+
const localVarHeaderParameter = {};
|
|
3575
|
+
const localVarQueryParameter = {};
|
|
3576
|
+
// authentication apiToken required
|
|
3577
|
+
// http bearer authentication required
|
|
3578
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3579
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3580
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3581
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3582
|
+
return {
|
|
3583
|
+
url: toPathString(localVarUrlObj),
|
|
3584
|
+
options: localVarRequestOptions,
|
|
3585
|
+
};
|
|
3586
|
+
}),
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
/**
|
|
3590
|
+
* AgencyHostingSSLApi - functional programming interface
|
|
3591
|
+
* @export
|
|
3592
|
+
*/
|
|
3593
|
+
export const AgencyHostingSSLApiFp = function (configuration) {
|
|
3594
|
+
const localVarAxiosParamCreator = AgencyHostingSSLApiAxiosParamCreator(configuration);
|
|
3595
|
+
return {
|
|
3596
|
+
/**
|
|
3597
|
+
* 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.
|
|
3598
|
+
* @summary Get website SSL status
|
|
3599
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3600
|
+
* @param {string} domain Domain name
|
|
3601
|
+
* @param {*} [options] Override http request option.
|
|
3602
|
+
* @throws {RequiredError}
|
|
3603
|
+
*/
|
|
3604
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3606
|
+
var _a, _b;
|
|
3607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteSSLStatusV1(websiteUid, domain, options);
|
|
3608
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.getWebsiteSSLStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3609
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3610
|
+
});
|
|
3611
|
+
},
|
|
3612
|
+
/**
|
|
3613
|
+
* 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.
|
|
3614
|
+
* @summary Install website SSL
|
|
3615
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3616
|
+
* @param {string} domain Domain name
|
|
3617
|
+
* @param {*} [options] Override http request option.
|
|
3618
|
+
* @throws {RequiredError}
|
|
3619
|
+
*/
|
|
3620
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3622
|
+
var _a, _b;
|
|
3623
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWebsiteSSLV1(websiteUid, domain, options);
|
|
3624
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.installWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3626
|
+
});
|
|
3627
|
+
},
|
|
3628
|
+
/**
|
|
3629
|
+
* 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.
|
|
3630
|
+
* @summary Reinstall website SSL
|
|
3631
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3632
|
+
* @param {string} domain Domain name
|
|
3633
|
+
* @param {*} [options] Override http request option.
|
|
3634
|
+
* @throws {RequiredError}
|
|
3635
|
+
*/
|
|
3636
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3638
|
+
var _a, _b;
|
|
3639
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reinstallWebsiteSSLV1(websiteUid, domain, options);
|
|
3640
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.reinstallWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3641
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3642
|
+
});
|
|
3643
|
+
},
|
|
3644
|
+
/**
|
|
3645
|
+
* 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.
|
|
3646
|
+
* @summary Uninstall website SSL
|
|
3647
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3648
|
+
* @param {string} domain Domain name
|
|
3649
|
+
* @param {*} [options] Override http request option.
|
|
3650
|
+
* @throws {RequiredError}
|
|
3651
|
+
*/
|
|
3652
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3654
|
+
var _a, _b;
|
|
3655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWebsiteSSLV1(websiteUid, domain, options);
|
|
3656
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.uninstallWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3658
|
+
});
|
|
3659
|
+
},
|
|
3660
|
+
};
|
|
3661
|
+
};
|
|
3662
|
+
/**
|
|
3663
|
+
* AgencyHostingSSLApi - factory interface
|
|
3664
|
+
* @export
|
|
3665
|
+
*/
|
|
3666
|
+
export const AgencyHostingSSLApiFactory = function (configuration, basePath, axios) {
|
|
3667
|
+
const localVarFp = AgencyHostingSSLApiFp(configuration);
|
|
3668
|
+
return {
|
|
3669
|
+
/**
|
|
3670
|
+
* 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.
|
|
3671
|
+
* @summary Get website SSL status
|
|
3672
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3673
|
+
* @param {string} domain Domain name
|
|
3674
|
+
* @param {*} [options] Override http request option.
|
|
3675
|
+
* @throws {RequiredError}
|
|
3676
|
+
*/
|
|
3677
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3678
|
+
return localVarFp.getWebsiteSSLStatusV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3679
|
+
},
|
|
3680
|
+
/**
|
|
3681
|
+
* 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.
|
|
3682
|
+
* @summary Install website SSL
|
|
3683
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3684
|
+
* @param {string} domain Domain name
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
*/
|
|
3688
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3689
|
+
return localVarFp.installWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3690
|
+
},
|
|
3691
|
+
/**
|
|
3692
|
+
* 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.
|
|
3693
|
+
* @summary Reinstall website SSL
|
|
3694
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3695
|
+
* @param {string} domain Domain name
|
|
3696
|
+
* @param {*} [options] Override http request option.
|
|
3697
|
+
* @throws {RequiredError}
|
|
3698
|
+
*/
|
|
3699
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3700
|
+
return localVarFp.reinstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3701
|
+
},
|
|
3702
|
+
/**
|
|
3703
|
+
* 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.
|
|
3704
|
+
* @summary Uninstall website SSL
|
|
3705
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3706
|
+
* @param {string} domain Domain name
|
|
3707
|
+
* @param {*} [options] Override http request option.
|
|
3708
|
+
* @throws {RequiredError}
|
|
3709
|
+
*/
|
|
3710
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3711
|
+
return localVarFp.uninstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3712
|
+
},
|
|
3713
|
+
};
|
|
3714
|
+
};
|
|
3715
|
+
/**
|
|
3716
|
+
* AgencyHostingSSLApi - object-oriented interface
|
|
3717
|
+
* @export
|
|
3718
|
+
* @class AgencyHostingSSLApi
|
|
3719
|
+
* @extends {BaseAPI}
|
|
3720
|
+
*/
|
|
3721
|
+
export class AgencyHostingSSLApi extends BaseAPI {
|
|
3722
|
+
/**
|
|
3723
|
+
* 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.
|
|
3724
|
+
* @summary Get website SSL status
|
|
3725
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3726
|
+
* @param {string} domain Domain name
|
|
3727
|
+
* @param {*} [options] Override http request option.
|
|
3728
|
+
* @throws {RequiredError}
|
|
3729
|
+
* @memberof AgencyHostingSSLApi
|
|
3730
|
+
*/
|
|
3731
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3732
|
+
return AgencyHostingSSLApiFp(this.configuration).getWebsiteSSLStatusV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3733
|
+
}
|
|
3734
|
+
/**
|
|
3735
|
+
* 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.
|
|
3736
|
+
* @summary Install website SSL
|
|
3737
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3738
|
+
* @param {string} domain Domain name
|
|
3739
|
+
* @param {*} [options] Override http request option.
|
|
3740
|
+
* @throws {RequiredError}
|
|
3741
|
+
* @memberof AgencyHostingSSLApi
|
|
3742
|
+
*/
|
|
3743
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3744
|
+
return AgencyHostingSSLApiFp(this.configuration).installWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3745
|
+
}
|
|
3746
|
+
/**
|
|
3747
|
+
* 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.
|
|
3748
|
+
* @summary Reinstall website SSL
|
|
3749
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3750
|
+
* @param {string} domain Domain name
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
* @memberof AgencyHostingSSLApi
|
|
3754
|
+
*/
|
|
3755
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3756
|
+
return AgencyHostingSSLApiFp(this.configuration).reinstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* 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.
|
|
3760
|
+
* @summary Uninstall website SSL
|
|
3761
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3762
|
+
* @param {string} domain Domain name
|
|
3763
|
+
* @param {*} [options] Override http request option.
|
|
3764
|
+
* @throws {RequiredError}
|
|
3765
|
+
* @memberof AgencyHostingSSLApi
|
|
3766
|
+
*/
|
|
3767
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3768
|
+
return AgencyHostingSSLApiFp(this.configuration).uninstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3769
|
+
}
|
|
3770
|
+
}
|
|
3430
3771
|
/**
|
|
3431
3772
|
* AgencyHostingWebsiteSetupsApi - axios parameter creator
|
|
3432
3773
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
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
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.54.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/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
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
|