hostinger-api-sdk 3.2.0 → 3.3.1

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.
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 3.2.0
7
+ * API Version: 3.3.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.2.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.3.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.2.0
4
+ * API Version: 3.3.1
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
@@ -2794,6 +2794,124 @@ export interface CommonSuccessEmptyResource {
2794
2794
  */
2795
2795
  'message': string;
2796
2796
  }
2797
+ /**
2798
+ * What the authoritative nameservers serve now: the best signal of the current record value
2799
+ * @export
2800
+ * @interface DNSV1PropagationAuthoritativeAnswerResource
2801
+ */
2802
+ export interface DNSV1PropagationAuthoritativeAnswerResource {
2803
+ /**
2804
+ * DNS zone that holds the record
2805
+ * @type {string}
2806
+ * @memberof DNSV1PropagationAuthoritativeAnswerResource
2807
+ */
2808
+ 'zone': string;
2809
+ /**
2810
+ * Answer of each authoritative nameserver of the zone
2811
+ * @type {Array<DNSV1PropagationNameserverAnswerResource>}
2812
+ * @memberof DNSV1PropagationAuthoritativeAnswerResource
2813
+ */
2814
+ 'nameservers': Array<DNSV1PropagationNameserverAnswerResource>;
2815
+ }
2816
+ /**
2817
+ *
2818
+ * @export
2819
+ * @interface DNSV1PropagationNameserverAnswerResource
2820
+ */
2821
+ export interface DNSV1PropagationNameserverAnswerResource {
2822
+ /**
2823
+ * Authoritative nameserver
2824
+ * @type {string}
2825
+ * @memberof DNSV1PropagationNameserverAnswerResource
2826
+ */
2827
+ 'nameserver': string;
2828
+ /**
2829
+ * Records the nameserver serves; null or empty when it serves none
2830
+ * @type {Array<string>}
2831
+ * @memberof DNSV1PropagationNameserverAnswerResource
2832
+ */
2833
+ 'records': Array<string> | null;
2834
+ /**
2835
+ * TTL in seconds: how long resolvers may keep serving a previously cached value
2836
+ * @type {number}
2837
+ * @memberof DNSV1PropagationNameserverAnswerResource
2838
+ */
2839
+ 'ttl': number;
2840
+ }
2841
+ /**
2842
+ *
2843
+ * @export
2844
+ * @interface DNSV1PropagationPropagationReportResource
2845
+ */
2846
+ export interface DNSV1PropagationPropagationReportResource {
2847
+ /**
2848
+ *
2849
+ * @type {DNSV1PropagationAuthoritativeAnswerResource}
2850
+ * @memberof DNSV1PropagationPropagationReportResource
2851
+ */
2852
+ 'authoritative': DNSV1PropagationAuthoritativeAnswerResource;
2853
+ /**
2854
+ * Answers of public resolvers at locations around the world
2855
+ * @type {Array<DNSV1PropagationVantagePointResource>}
2856
+ * @memberof DNSV1PropagationPropagationReportResource
2857
+ */
2858
+ 'vantage_points': Array<DNSV1PropagationVantagePointResource>;
2859
+ }
2860
+ /**
2861
+ * Answer of a public resolver at one location
2862
+ * @export
2863
+ * @interface DNSV1PropagationVantagePointResource
2864
+ */
2865
+ export interface DNSV1PropagationVantagePointResource {
2866
+ /**
2867
+ * Country code of the resolver
2868
+ * @type {string}
2869
+ * @memberof DNSV1PropagationVantagePointResource
2870
+ */
2871
+ 'country': string;
2872
+ /**
2873
+ * Resolver provider
2874
+ * @type {string}
2875
+ * @memberof DNSV1PropagationVantagePointResource
2876
+ */
2877
+ 'provider': string;
2878
+ /**
2879
+ * IP address of the resolver
2880
+ * @type {string}
2881
+ * @memberof DNSV1PropagationVantagePointResource
2882
+ */
2883
+ 'ip': string;
2884
+ /**
2885
+ * Location of the resolver
2886
+ * @type {string}
2887
+ * @memberof DNSV1PropagationVantagePointResource
2888
+ */
2889
+ 'location': string;
2890
+ /**
2891
+ *
2892
+ * @type {number}
2893
+ * @memberof DNSV1PropagationVantagePointResource
2894
+ */
2895
+ 'latitude': number;
2896
+ /**
2897
+ *
2898
+ * @type {number}
2899
+ * @memberof DNSV1PropagationVantagePointResource
2900
+ */
2901
+ 'longitude': number;
2902
+ /**
2903
+ * Records the resolver returned; null when it returned none or could not be queried
2904
+ * @type {Array<string>}
2905
+ * @memberof DNSV1PropagationVantagePointResource
2906
+ */
2907
+ 'records': Array<string> | null;
2908
+ /**
2909
+ * Whether this location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated when the location also returns CDN addresses. True when every responding authoritative nameserver returns no records. Null when the location could not be queried or no authoritative answer could be compared.
2910
+ * @type {boolean}
2911
+ * @memberof DNSV1PropagationVantagePointResource
2912
+ */
2913
+ 'is_propagated': boolean | null;
2914
+ }
2797
2915
  /**
2798
2916
  *
2799
2917
  * @export
@@ -9659,6 +9777,12 @@ export interface HostingV1NodeJsSourceOptionsResource {
9659
9777
  * @memberof HostingV1NodeJsSourceOptionsResource
9660
9778
  */
9661
9779
  'archive_path': string | null;
9780
+ /**
9781
+ * Summary of the deployment given when it was started (present if source_type is \"archive\" and one was sent)
9782
+ * @type {string}
9783
+ * @memberof HostingV1NodeJsSourceOptionsResource
9784
+ */
9785
+ 'message': string | null;
9662
9786
  /**
9663
9787
  * Repository owner login (present if source_type is \"git\")
9664
9788
  * @type {string}
@@ -9792,7 +9916,7 @@ export declare const HostingV1NodeJsStartBuildRequestSourceTypeEnum: {
9792
9916
  };
9793
9917
  export type HostingV1NodeJsStartBuildRequestSourceTypeEnum = typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum[keyof typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum];
9794
9918
  /**
9795
- * Source-specific options. For `archive` send `archive_path`. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
9919
+ * Source-specific options. For `archive` send `archive_path` and a `message` describing the change. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
9796
9920
  * @export
9797
9921
  * @interface HostingV1NodeJsStartBuildRequestSourceOptions
9798
9922
  */
@@ -9803,6 +9927,12 @@ export interface HostingV1NodeJsStartBuildRequestSourceOptions {
9803
9927
  * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
9804
9928
  */
9805
9929
  'archive_path': string;
9930
+ /**
9931
+ * Short summary of what this deployment changes, shown in the website\'s deployment history the way a commit message is for git deployments. Without it the history only shows the archive file name, so always send one: keep the first line under 72 characters and describe the change, not the upload. Only used if source is \"archive\".
9932
+ * @type {string}
9933
+ * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
9934
+ */
9935
+ 'message': string | null;
9806
9936
  /**
9807
9937
  * Repository owner login (required if source is \"git\"). GitLab group paths use slashes.
9808
9938
  * @type {string}
@@ -21975,6 +22105,69 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
21975
22105
  */
21976
22106
  renewSubscriptionV1(subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1OrderOrderResource, any, {}, any>>;
21977
22107
  }
22108
+ /**
22109
+ * DNSPropagationApi - axios parameter creator
22110
+ * @export
22111
+ */
22112
+ export declare const DNSPropagationApiAxiosParamCreator: (configuration?: Configuration) => {
22113
+ /**
22114
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
22115
+ * @summary Check DNS record propagation
22116
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
22117
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
22118
+ * @param {*} [options] Override http request option.
22119
+ * @throws {RequiredError}
22120
+ */
22121
+ checkDNSRecordPropagationV1: (domain: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22122
+ };
22123
+ /**
22124
+ * DNSPropagationApi - functional programming interface
22125
+ * @export
22126
+ */
22127
+ export declare const DNSPropagationApiFp: (configuration?: Configuration) => {
22128
+ /**
22129
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
22130
+ * @summary Check DNS record propagation
22131
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
22132
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
22133
+ * @param {*} [options] Override http request option.
22134
+ * @throws {RequiredError}
22135
+ */
22136
+ checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DNSV1PropagationPropagationReportResource>>;
22137
+ };
22138
+ /**
22139
+ * DNSPropagationApi - factory interface
22140
+ * @export
22141
+ */
22142
+ export declare const DNSPropagationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
22143
+ /**
22144
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
22145
+ * @summary Check DNS record propagation
22146
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
22147
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
22148
+ * @param {*} [options] Override http request option.
22149
+ * @throws {RequiredError}
22150
+ */
22151
+ checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): AxiosPromise<DNSV1PropagationPropagationReportResource>;
22152
+ };
22153
+ /**
22154
+ * DNSPropagationApi - object-oriented interface
22155
+ * @export
22156
+ * @class DNSPropagationApi
22157
+ * @extends {BaseAPI}
22158
+ */
22159
+ export declare class DNSPropagationApi extends BaseAPI {
22160
+ /**
22161
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
22162
+ * @summary Check DNS record propagation
22163
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
22164
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
22165
+ * @param {*} [options] Override http request option.
22166
+ * @throws {RequiredError}
22167
+ * @memberof DNSPropagationApi
22168
+ */
22169
+ checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DNSV1PropagationPropagationReportResource, any, {}, any>>;
22170
+ }
21978
22171
  /**
21979
22172
  * DNSSnapshotApi - axios parameter creator
21980
22173
  * @export
@@ -28132,7 +28325,7 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
28132
28325
  */
28133
28326
  restartNodeJsApplicationV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28134
28327
  /**
28135
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28328
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28136
28329
  * @summary Start Node.js build
28137
28330
  * @param {string} username
28138
28331
  * @param {string} domain Domain name
@@ -28303,7 +28496,7 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
28303
28496
  */
28304
28497
  restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
28305
28498
  /**
28306
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28499
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28307
28500
  * @summary Start Node.js build
28308
28501
  * @param {string} username
28309
28502
  * @param {string} domain Domain name
@@ -28474,7 +28667,7 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
28474
28667
  */
28475
28668
  restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
28476
28669
  /**
28477
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28670
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28478
28671
  * @summary Start Node.js build
28479
28672
  * @param {string} username
28480
28673
  * @param {string} domain Domain name
@@ -28661,7 +28854,7 @@ export declare class HostingNodeJSApi extends BaseAPI {
28661
28854
  */
28662
28855
  restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
28663
28856
  /**
28664
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28857
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
28665
28858
  * @summary Start Node.js build
28666
28859
  * @param {string} username
28667
28860
  * @param {string} domain Domain name
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.2.0
6
+ * API Version: 3.3.1
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
@@ -5833,6 +5833,115 @@ export class BillingSubscriptionsApi extends BaseAPI {
5833
5833
  return BillingSubscriptionsApiFp(this.configuration).renewSubscriptionV1(subscriptionId, billingV1SubscriptionRenewalRenewRequest, options).then((request) => request(this.axios, this.basePath));
5834
5834
  }
5835
5835
  }
5836
+ /**
5837
+ * DNSPropagationApi - axios parameter creator
5838
+ * @export
5839
+ */
5840
+ export const DNSPropagationApiAxiosParamCreator = function (configuration) {
5841
+ return {
5842
+ /**
5843
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
5844
+ * @summary Check DNS record propagation
5845
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
5846
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
5847
+ * @param {*} [options] Override http request option.
5848
+ * @throws {RequiredError}
5849
+ */
5850
+ checkDNSRecordPropagationV1: (domain_1, type_1, ...args_1) => __awaiter(this, [domain_1, type_1, ...args_1], void 0, function* (domain, type, options = {}) {
5851
+ // verify required parameter 'domain' is not null or undefined
5852
+ assertParamExists('checkDNSRecordPropagationV1', 'domain', domain);
5853
+ // verify required parameter 'type' is not null or undefined
5854
+ assertParamExists('checkDNSRecordPropagationV1', 'type', type);
5855
+ const localVarPath = `/api/dns/v1/propagation/{domain}/{type}`
5856
+ .replace(`{${"domain"}}`, encodePathParam('domain', domain))
5857
+ .replace(`{${"type"}}`, encodePathParam('type', type));
5858
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5859
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5860
+ let baseOptions;
5861
+ if (configuration) {
5862
+ baseOptions = configuration.baseOptions;
5863
+ }
5864
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5865
+ const localVarHeaderParameter = {};
5866
+ const localVarQueryParameter = {};
5867
+ // authentication apiToken required
5868
+ // http bearer authentication required
5869
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5870
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5871
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5872
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5873
+ return {
5874
+ url: toPathString(localVarUrlObj),
5875
+ options: localVarRequestOptions,
5876
+ };
5877
+ }),
5878
+ };
5879
+ };
5880
+ /**
5881
+ * DNSPropagationApi - functional programming interface
5882
+ * @export
5883
+ */
5884
+ export const DNSPropagationApiFp = function (configuration) {
5885
+ const localVarAxiosParamCreator = DNSPropagationApiAxiosParamCreator(configuration);
5886
+ return {
5887
+ /**
5888
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
5889
+ * @summary Check DNS record propagation
5890
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
5891
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
5892
+ * @param {*} [options] Override http request option.
5893
+ * @throws {RequiredError}
5894
+ */
5895
+ checkDNSRecordPropagationV1(domain, type, options) {
5896
+ return __awaiter(this, void 0, void 0, function* () {
5897
+ var _a, _b;
5898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDNSRecordPropagationV1(domain, type, options);
5899
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSPropagationApi.checkDNSRecordPropagationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5900
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5901
+ });
5902
+ },
5903
+ };
5904
+ };
5905
+ /**
5906
+ * DNSPropagationApi - factory interface
5907
+ * @export
5908
+ */
5909
+ export const DNSPropagationApiFactory = function (configuration, basePath, axios) {
5910
+ const localVarFp = DNSPropagationApiFp(configuration);
5911
+ return {
5912
+ /**
5913
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
5914
+ * @summary Check DNS record propagation
5915
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
5916
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
5917
+ * @param {*} [options] Override http request option.
5918
+ * @throws {RequiredError}
5919
+ */
5920
+ checkDNSRecordPropagationV1(domain, type, options) {
5921
+ return localVarFp.checkDNSRecordPropagationV1(domain, type, options).then((request) => request(axios, basePath));
5922
+ },
5923
+ };
5924
+ };
5925
+ /**
5926
+ * DNSPropagationApi - object-oriented interface
5927
+ * @export
5928
+ * @class DNSPropagationApi
5929
+ * @extends {BaseAPI}
5930
+ */
5931
+ export class DNSPropagationApi extends BaseAPI {
5932
+ /**
5933
+ * Check whether a DNS record of a domain or host name has propagated to public resolvers around the world. `authoritative` shows what the domain\'s authoritative nameservers serve now. It is the best signal of the current record value. Its TTL tells how long resolvers may keep serving the old value. `vantage_points` shows what public resolvers at different locations return. `is_propagated` is true when the location returns the same records as the authoritative nameservers. For GeoDNS domains, whose nameservers answer differently by region, true means the location returned a record. A records served from the Hostinger CDN count as propagated. When every responding authoritative nameserver returns no records, `is_propagated` is true. Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing. A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
5934
+ * @summary Check DNS record propagation
5935
+ * @param {string} domain Domain or host name to check, either a domain or a subdomain
5936
+ * @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
5937
+ * @param {*} [options] Override http request option.
5938
+ * @throws {RequiredError}
5939
+ * @memberof DNSPropagationApi
5940
+ */
5941
+ checkDNSRecordPropagationV1(domain, type, options) {
5942
+ return DNSPropagationApiFp(this.configuration).checkDNSRecordPropagationV1(domain, type, options).then((request) => request(this.axios, this.basePath));
5943
+ }
5944
+ }
5836
5945
  /**
5837
5946
  * DNSSnapshotApi - axios parameter creator
5838
5947
  * @export
@@ -18006,7 +18115,7 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
18006
18115
  };
18007
18116
  }),
18008
18117
  /**
18009
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18118
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18010
18119
  * @summary Start Node.js build
18011
18120
  * @param {string} username
18012
18121
  * @param {string} domain Domain name
@@ -18340,7 +18449,7 @@ export const HostingNodeJSApiFp = function (configuration) {
18340
18449
  });
18341
18450
  },
18342
18451
  /**
18343
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18452
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18344
18453
  * @summary Start Node.js build
18345
18454
  * @param {string} username
18346
18455
  * @param {string} domain Domain name
@@ -18556,7 +18665,7 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
18556
18665
  return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
18557
18666
  },
18558
18667
  /**
18559
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18668
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18560
18669
  * @summary Start Node.js build
18561
18670
  * @param {string} username
18562
18671
  * @param {string} domain Domain name
@@ -18776,7 +18885,7 @@ export class HostingNodeJSApi extends BaseAPI {
18776
18885
  return HostingNodeJSApiFp(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
18777
18886
  }
18778
18887
  /**
18779
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18888
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. Send `source_options.message` with a short summary of what changed; it labels the deployment in the website\'s deployment history, which otherwise shows only the archive file name. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
18780
18889
  * @summary Start Node.js build
18781
18890
  * @param {string} username
18782
18891
  * @param {string} domain Domain name
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.2.0
4
+ * API Version: 3.3.1
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: 3.2.0
6
+ * API Version: 3.3.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.2.0
4
+ * API Version: 3.3.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.2.0
6
+ * API Version: 3.3.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.2.0
4
+ * API Version: 3.3.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.2.0
6
+ * API Version: 3.3.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.2.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.3.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.2.0
4
+ * API Version: 3.3.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.2.0
6
+ * API Version: 3.3.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.2.0
4
+ * API Version: 3.3.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 3.2.0
7
+ * API Version: 3.3.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api