hostinger-api-sdk 3.3.0 → 3.3.2
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 +237 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +182 -1
- package/dist/api.js +122 -9
- 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 +182 -1
- package/dist/esm/api.js +110 -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/DNSPropagationApi.md +66 -0
- package/docs/DNSV1PropagationAuthoritativeAnswerResource.md +23 -0
- package/docs/DNSV1PropagationNameserverAnswerResource.md +24 -0
- package/docs/DNSV1PropagationPropagationReportResource.md +22 -0
- package/docs/DNSV1PropagationVantagePointResource.md +35 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@3.3.
|
|
1
|
+
## @hostinger/sdk@3.3.2
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@3.3.
|
|
8
|
+
npm install @hostinger/sdk@3.3.2 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.3.
|
|
6
|
+
* API Version: 3.3.2
|
|
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
|
|
@@ -2858,6 +2858,124 @@ export interface CommonSuccessEmptyResource {
|
|
|
2858
2858
|
*/
|
|
2859
2859
|
'message': string;
|
|
2860
2860
|
}
|
|
2861
|
+
/**
|
|
2862
|
+
* What the authoritative nameservers serve now: the best signal of the current record value
|
|
2863
|
+
* @export
|
|
2864
|
+
* @interface DNSV1PropagationAuthoritativeAnswerResource
|
|
2865
|
+
*/
|
|
2866
|
+
export interface DNSV1PropagationAuthoritativeAnswerResource {
|
|
2867
|
+
/**
|
|
2868
|
+
* DNS zone that holds the record
|
|
2869
|
+
* @type {string}
|
|
2870
|
+
* @memberof DNSV1PropagationAuthoritativeAnswerResource
|
|
2871
|
+
*/
|
|
2872
|
+
'zone': string;
|
|
2873
|
+
/**
|
|
2874
|
+
* Answer of each authoritative nameserver of the zone
|
|
2875
|
+
* @type {Array<DNSV1PropagationNameserverAnswerResource>}
|
|
2876
|
+
* @memberof DNSV1PropagationAuthoritativeAnswerResource
|
|
2877
|
+
*/
|
|
2878
|
+
'nameservers': Array<DNSV1PropagationNameserverAnswerResource>;
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
*
|
|
2882
|
+
* @export
|
|
2883
|
+
* @interface DNSV1PropagationNameserverAnswerResource
|
|
2884
|
+
*/
|
|
2885
|
+
export interface DNSV1PropagationNameserverAnswerResource {
|
|
2886
|
+
/**
|
|
2887
|
+
* Authoritative nameserver
|
|
2888
|
+
* @type {string}
|
|
2889
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2890
|
+
*/
|
|
2891
|
+
'nameserver': string;
|
|
2892
|
+
/**
|
|
2893
|
+
* Records the nameserver serves; null or empty when it serves none
|
|
2894
|
+
* @type {Array<string>}
|
|
2895
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2896
|
+
*/
|
|
2897
|
+
'records': Array<string> | null;
|
|
2898
|
+
/**
|
|
2899
|
+
* TTL in seconds: how long resolvers may keep serving a previously cached value
|
|
2900
|
+
* @type {number}
|
|
2901
|
+
* @memberof DNSV1PropagationNameserverAnswerResource
|
|
2902
|
+
*/
|
|
2903
|
+
'ttl': number;
|
|
2904
|
+
}
|
|
2905
|
+
/**
|
|
2906
|
+
*
|
|
2907
|
+
* @export
|
|
2908
|
+
* @interface DNSV1PropagationPropagationReportResource
|
|
2909
|
+
*/
|
|
2910
|
+
export interface DNSV1PropagationPropagationReportResource {
|
|
2911
|
+
/**
|
|
2912
|
+
*
|
|
2913
|
+
* @type {DNSV1PropagationAuthoritativeAnswerResource}
|
|
2914
|
+
* @memberof DNSV1PropagationPropagationReportResource
|
|
2915
|
+
*/
|
|
2916
|
+
'authoritative': DNSV1PropagationAuthoritativeAnswerResource;
|
|
2917
|
+
/**
|
|
2918
|
+
* Answers of public resolvers at locations around the world
|
|
2919
|
+
* @type {Array<DNSV1PropagationVantagePointResource>}
|
|
2920
|
+
* @memberof DNSV1PropagationPropagationReportResource
|
|
2921
|
+
*/
|
|
2922
|
+
'vantage_points': Array<DNSV1PropagationVantagePointResource>;
|
|
2923
|
+
}
|
|
2924
|
+
/**
|
|
2925
|
+
* Answer of a public resolver at one location
|
|
2926
|
+
* @export
|
|
2927
|
+
* @interface DNSV1PropagationVantagePointResource
|
|
2928
|
+
*/
|
|
2929
|
+
export interface DNSV1PropagationVantagePointResource {
|
|
2930
|
+
/**
|
|
2931
|
+
* Country code of the resolver
|
|
2932
|
+
* @type {string}
|
|
2933
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2934
|
+
*/
|
|
2935
|
+
'country': string;
|
|
2936
|
+
/**
|
|
2937
|
+
* Resolver provider
|
|
2938
|
+
* @type {string}
|
|
2939
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2940
|
+
*/
|
|
2941
|
+
'provider': string;
|
|
2942
|
+
/**
|
|
2943
|
+
* IP address of the resolver
|
|
2944
|
+
* @type {string}
|
|
2945
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2946
|
+
*/
|
|
2947
|
+
'ip': string;
|
|
2948
|
+
/**
|
|
2949
|
+
* Location of the resolver
|
|
2950
|
+
* @type {string}
|
|
2951
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2952
|
+
*/
|
|
2953
|
+
'location': string;
|
|
2954
|
+
/**
|
|
2955
|
+
*
|
|
2956
|
+
* @type {number}
|
|
2957
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2958
|
+
*/
|
|
2959
|
+
'latitude': number;
|
|
2960
|
+
/**
|
|
2961
|
+
*
|
|
2962
|
+
* @type {number}
|
|
2963
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2964
|
+
*/
|
|
2965
|
+
'longitude': number;
|
|
2966
|
+
/**
|
|
2967
|
+
* Records the resolver returned; null when it returned none or could not be queried
|
|
2968
|
+
* @type {Array<string>}
|
|
2969
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2970
|
+
*/
|
|
2971
|
+
'records': Array<string> | null;
|
|
2972
|
+
/**
|
|
2973
|
+
* 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.
|
|
2974
|
+
* @type {boolean}
|
|
2975
|
+
* @memberof DNSV1PropagationVantagePointResource
|
|
2976
|
+
*/
|
|
2977
|
+
'is_propagated': boolean | null;
|
|
2978
|
+
}
|
|
2861
2979
|
/**
|
|
2862
2980
|
*
|
|
2863
2981
|
* @export
|
|
@@ -24874,6 +24992,124 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
24874
24992
|
|
|
24875
24993
|
|
|
24876
24994
|
|
|
24995
|
+
/**
|
|
24996
|
+
* DNSPropagationApi - axios parameter creator
|
|
24997
|
+
* @export
|
|
24998
|
+
*/
|
|
24999
|
+
export const DNSPropagationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25000
|
+
return {
|
|
25001
|
+
/**
|
|
25002
|
+
* 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.
|
|
25003
|
+
* @summary Check DNS record propagation
|
|
25004
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25005
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25006
|
+
* @param {*} [options] Override http request option.
|
|
25007
|
+
* @throws {RequiredError}
|
|
25008
|
+
*/
|
|
25009
|
+
checkDNSRecordPropagationV1: async (domain: string, type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25010
|
+
// verify required parameter 'domain' is not null or undefined
|
|
25011
|
+
assertParamExists('checkDNSRecordPropagationV1', 'domain', domain)
|
|
25012
|
+
// verify required parameter 'type' is not null or undefined
|
|
25013
|
+
assertParamExists('checkDNSRecordPropagationV1', 'type', type)
|
|
25014
|
+
const localVarPath = `/api/dns/v1/propagation/{domain}/{type}`
|
|
25015
|
+
.replace(`{${"domain"}}`, encodePathParam('domain', domain))
|
|
25016
|
+
.replace(`{${"type"}}`, encodePathParam('type', type));
|
|
25017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25019
|
+
let baseOptions;
|
|
25020
|
+
if (configuration) {
|
|
25021
|
+
baseOptions = configuration.baseOptions;
|
|
25022
|
+
}
|
|
25023
|
+
|
|
25024
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25025
|
+
const localVarHeaderParameter = {} as any;
|
|
25026
|
+
const localVarQueryParameter = {} as any;
|
|
25027
|
+
|
|
25028
|
+
// authentication apiToken required
|
|
25029
|
+
// http bearer authentication required
|
|
25030
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
25031
|
+
|
|
25032
|
+
|
|
25033
|
+
|
|
25034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25036
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25037
|
+
|
|
25038
|
+
return {
|
|
25039
|
+
url: toPathString(localVarUrlObj),
|
|
25040
|
+
options: localVarRequestOptions,
|
|
25041
|
+
};
|
|
25042
|
+
},
|
|
25043
|
+
}
|
|
25044
|
+
};
|
|
25045
|
+
|
|
25046
|
+
/**
|
|
25047
|
+
* DNSPropagationApi - functional programming interface
|
|
25048
|
+
* @export
|
|
25049
|
+
*/
|
|
25050
|
+
export const DNSPropagationApiFp = function(configuration?: Configuration) {
|
|
25051
|
+
const localVarAxiosParamCreator = DNSPropagationApiAxiosParamCreator(configuration)
|
|
25052
|
+
return {
|
|
25053
|
+
/**
|
|
25054
|
+
* 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.
|
|
25055
|
+
* @summary Check DNS record propagation
|
|
25056
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25057
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25058
|
+
* @param {*} [options] Override http request option.
|
|
25059
|
+
* @throws {RequiredError}
|
|
25060
|
+
*/
|
|
25061
|
+
async checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DNSV1PropagationPropagationReportResource>> {
|
|
25062
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkDNSRecordPropagationV1(domain, type, options);
|
|
25063
|
+
const localVarOperationServerBasePath = operationServerMap['DNSPropagationApi.checkDNSRecordPropagationV1']?.[0]?.url;
|
|
25064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25065
|
+
},
|
|
25066
|
+
}
|
|
25067
|
+
};
|
|
25068
|
+
|
|
25069
|
+
/**
|
|
25070
|
+
* DNSPropagationApi - factory interface
|
|
25071
|
+
* @export
|
|
25072
|
+
*/
|
|
25073
|
+
export const DNSPropagationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
25074
|
+
const localVarFp = DNSPropagationApiFp(configuration)
|
|
25075
|
+
return {
|
|
25076
|
+
/**
|
|
25077
|
+
* 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.
|
|
25078
|
+
* @summary Check DNS record propagation
|
|
25079
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25080
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25081
|
+
* @param {*} [options] Override http request option.
|
|
25082
|
+
* @throws {RequiredError}
|
|
25083
|
+
*/
|
|
25084
|
+
checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig): AxiosPromise<DNSV1PropagationPropagationReportResource> {
|
|
25085
|
+
return localVarFp.checkDNSRecordPropagationV1(domain, type, options).then((request) => request(axios, basePath));
|
|
25086
|
+
},
|
|
25087
|
+
};
|
|
25088
|
+
};
|
|
25089
|
+
|
|
25090
|
+
/**
|
|
25091
|
+
* DNSPropagationApi - object-oriented interface
|
|
25092
|
+
* @export
|
|
25093
|
+
* @class DNSPropagationApi
|
|
25094
|
+
* @extends {BaseAPI}
|
|
25095
|
+
*/
|
|
25096
|
+
export class DNSPropagationApi extends BaseAPI {
|
|
25097
|
+
/**
|
|
25098
|
+
* 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.
|
|
25099
|
+
* @summary Check DNS record propagation
|
|
25100
|
+
* @param {string} domain Domain or host name to check, either a domain or a subdomain
|
|
25101
|
+
* @param {string} type DNS record type to check. One of: A, AAAA, CNAME, MX, SRV, TXT, CAA
|
|
25102
|
+
* @param {*} [options] Override http request option.
|
|
25103
|
+
* @throws {RequiredError}
|
|
25104
|
+
* @memberof DNSPropagationApi
|
|
25105
|
+
*/
|
|
25106
|
+
public checkDNSRecordPropagationV1(domain: string, type: string, options?: RawAxiosRequestConfig) {
|
|
25107
|
+
return DNSPropagationApiFp(this.configuration).checkDNSRecordPropagationV1(domain, type, options).then((request) => request(this.axios, this.basePath));
|
|
25108
|
+
}
|
|
25109
|
+
}
|
|
25110
|
+
|
|
25111
|
+
|
|
25112
|
+
|
|
24877
25113
|
/**
|
|
24878
25114
|
* DNSSnapshotApi - axios parameter creator
|
|
24879
25115
|
* @export
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.3.
|
|
6
|
+
* API Version: 3.3.2
|
|
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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.3.
|
|
6
|
+
* API Version: 3.3.2
|
|
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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.3.
|
|
6
|
+
* API Version: 3.3.2
|
|
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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/3.3.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/3.3.2",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.3.
|
|
4
|
+
* API Version: 3.3.2
|
|
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
|
|
@@ -21987,6 +22105,69 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
|
|
|
21987
22105
|
*/
|
|
21988
22106
|
renewSubscriptionV1(subscriptionId: string, billingV1SubscriptionRenewalRenewRequest?: BillingV1SubscriptionRenewalRenewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1OrderOrderResource, any, {}, any>>;
|
|
21989
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
|
+
}
|
|
21990
22171
|
/**
|
|
21991
22172
|
* DNSSnapshotApi - axios parameter creator
|
|
21992
22173
|
* @export
|