hostinger-api-sdk 2.11.1 → 2.12.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 +41 -13
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +38 -13
- package/dist/api.js +31 -26
- 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 +38 -13
- package/dist/esm/api.js +18 -13
- 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/DomainsPortfolioApi.md +3 -3
- package/docs/DomainsV1DomainDomainResource.md +2 -0
- package/docs/DomainsV1DomainDomainVerificationResource.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.12.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
|
|
@@ -186,6 +186,11 @@ export const DomainsV1DomainDomainResourceStatusEnum = {
|
|
|
186
186
|
Suspended: 'suspended',
|
|
187
187
|
Failed: 'failed'
|
|
188
188
|
};
|
|
189
|
+
export const DomainsV1DomainDomainVerificationResourceTypeEnum = {
|
|
190
|
+
ManualReview: 'manual_review',
|
|
191
|
+
SmsCode: 'sms_code',
|
|
192
|
+
ContactVerification: 'contact_verification'
|
|
193
|
+
};
|
|
189
194
|
export const DomainsV1ForwardingForwardingResourceRedirectTypeEnum = {
|
|
190
195
|
_301: '301',
|
|
191
196
|
_302: '302'
|
|
@@ -7692,7 +7697,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
7692
7697
|
};
|
|
7693
7698
|
}),
|
|
7694
7699
|
/**
|
|
7695
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
7700
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. When the domain is held for verification, its `verification` field in `Get domain list` says what registration waits for. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
7696
7701
|
* @summary Complete domain setup
|
|
7697
7702
|
* @param {string} domain Domain name
|
|
7698
7703
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -7889,7 +7894,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
7889
7894
|
};
|
|
7890
7895
|
}),
|
|
7891
7896
|
/**
|
|
7892
|
-
* Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
|
|
7897
|
+
* Retrieve detailed information for specified domain. A domain is found here only once it is registered. Until then, `Get domain list` shows it, and its `verification` field says what registration waits for when the domain is held for verification. Use this endpoint to view comprehensive domain configuration and status.
|
|
7893
7898
|
* @summary Get domain details
|
|
7894
7899
|
* @param {string} domain Domain name
|
|
7895
7900
|
* @param {*} [options] Override http request option.
|
|
@@ -7921,7 +7926,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
7921
7926
|
};
|
|
7922
7927
|
}),
|
|
7923
7928
|
/**
|
|
7924
|
-
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
7929
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. A domain held for verification before it is registered has `status: pending_verification`, and its `verification` field says what registration waits for: a manual review, an SMS code, or owner contact verification. Use this endpoint to view user\'s domain portfolio.
|
|
7925
7930
|
* @summary Get domain list
|
|
7926
7931
|
* @param {*} [options] Override http request option.
|
|
7927
7932
|
* @throws {RequiredError}
|
|
@@ -8075,7 +8080,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
8075
8080
|
});
|
|
8076
8081
|
},
|
|
8077
8082
|
/**
|
|
8078
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8083
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. When the domain is held for verification, its `verification` field in `Get domain list` says what registration waits for. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8079
8084
|
* @summary Complete domain setup
|
|
8080
8085
|
* @param {string} domain Domain name
|
|
8081
8086
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -8166,7 +8171,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
8166
8171
|
});
|
|
8167
8172
|
},
|
|
8168
8173
|
/**
|
|
8169
|
-
* Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
|
|
8174
|
+
* Retrieve detailed information for specified domain. A domain is found here only once it is registered. Until then, `Get domain list` shows it, and its `verification` field says what registration waits for when the domain is held for verification. Use this endpoint to view comprehensive domain configuration and status.
|
|
8170
8175
|
* @summary Get domain details
|
|
8171
8176
|
* @param {string} domain Domain name
|
|
8172
8177
|
* @param {*} [options] Override http request option.
|
|
@@ -8181,7 +8186,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
8181
8186
|
});
|
|
8182
8187
|
},
|
|
8183
8188
|
/**
|
|
8184
|
-
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
8189
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. A domain held for verification before it is registered has `status: pending_verification`, and its `verification` field says what registration waits for: a manual review, an SMS code, or owner contact verification. Use this endpoint to view user\'s domain portfolio.
|
|
8185
8190
|
* @summary Get domain list
|
|
8186
8191
|
* @param {*} [options] Override http request option.
|
|
8187
8192
|
* @throws {RequiredError}
|
|
@@ -8260,7 +8265,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8260
8265
|
return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
|
|
8261
8266
|
},
|
|
8262
8267
|
/**
|
|
8263
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8268
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. When the domain is held for verification, its `verification` field in `Get domain list` says what registration waits for. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8264
8269
|
* @summary Complete domain setup
|
|
8265
8270
|
* @param {string} domain Domain name
|
|
8266
8271
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -8321,7 +8326,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8321
8326
|
return localVarFp.getDomainAuthorizationCodeV1(domain, options).then((request) => request(axios, basePath));
|
|
8322
8327
|
},
|
|
8323
8328
|
/**
|
|
8324
|
-
* Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
|
|
8329
|
+
* Retrieve detailed information for specified domain. A domain is found here only once it is registered. Until then, `Get domain list` shows it, and its `verification` field says what registration waits for when the domain is held for verification. Use this endpoint to view comprehensive domain configuration and status.
|
|
8325
8330
|
* @summary Get domain details
|
|
8326
8331
|
* @param {string} domain Domain name
|
|
8327
8332
|
* @param {*} [options] Override http request option.
|
|
@@ -8331,7 +8336,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8331
8336
|
return localVarFp.getDomainDetailsV1(domain, options).then((request) => request(axios, basePath));
|
|
8332
8337
|
},
|
|
8333
8338
|
/**
|
|
8334
|
-
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
8339
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. A domain held for verification before it is registered has `status: pending_verification`, and its `verification` field says what registration waits for: a manual review, an SMS code, or owner contact verification. Use this endpoint to view user\'s domain portfolio.
|
|
8335
8340
|
* @summary Get domain list
|
|
8336
8341
|
* @param {*} [options] Override http request option.
|
|
8337
8342
|
* @throws {RequiredError}
|
|
@@ -8391,7 +8396,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
8391
8396
|
return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8392
8397
|
}
|
|
8393
8398
|
/**
|
|
8394
|
-
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8399
|
+
* Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. When the domain is held for verification, its `verification` field in `Get domain list` says what registration waits for. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
8395
8400
|
* @summary Complete domain setup
|
|
8396
8401
|
* @param {string} domain Domain name
|
|
8397
8402
|
* @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
|
|
@@ -8458,7 +8463,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
8458
8463
|
return DomainsPortfolioApiFp(this.configuration).getDomainAuthorizationCodeV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
8459
8464
|
}
|
|
8460
8465
|
/**
|
|
8461
|
-
* Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
|
|
8466
|
+
* Retrieve detailed information for specified domain. A domain is found here only once it is registered. Until then, `Get domain list` shows it, and its `verification` field says what registration waits for when the domain is held for verification. Use this endpoint to view comprehensive domain configuration and status.
|
|
8462
8467
|
* @summary Get domain details
|
|
8463
8468
|
* @param {string} domain Domain name
|
|
8464
8469
|
* @param {*} [options] Override http request option.
|
|
@@ -8469,7 +8474,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
8469
8474
|
return DomainsPortfolioApiFp(this.configuration).getDomainDetailsV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
8470
8475
|
}
|
|
8471
8476
|
/**
|
|
8472
|
-
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
8477
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. A domain held for verification before it is registered has `status: pending_verification`, and its `verification` field says what registration waits for: a manual review, an SMS code, or owner contact verification. Use this endpoint to view user\'s domain portfolio.
|
|
8473
8478
|
* @summary Get domain list
|
|
8474
8479
|
* @param {*} [options] Override http request option.
|
|
8475
8480
|
* @throws {RequiredError}
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.12.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: 2.
|
|
6
|
+
* API Version: 2.12.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: 2.
|
|
4
|
+
* API Version: 2.12.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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.12.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.12.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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.12.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
|
|
@@ -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/2.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.12.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.12.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/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.12.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/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.12.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/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.12.0
|
|
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
|
|
@@ -75,7 +75,7 @@ const { status, data } = await apiInstance.claimFreeDomainV1(
|
|
|
75
75
|
# **completeDomainSetupV1**
|
|
76
76
|
> CommonSuccessEmptyResource completeDomainSetupV1(domainsV1PortfolioSetupRequest)
|
|
77
77
|
|
|
78
|
-
Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
78
|
+
Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. When the domain is held for verification, its `verification` field in `Get domain list` says what registration waits for. Use this endpoint to finish registering a domain that is awaiting setup on your account.
|
|
79
79
|
|
|
80
80
|
### Example
|
|
81
81
|
|
|
@@ -399,7 +399,7 @@ const { status, data } = await apiInstance.getDomainAuthorizationCodeV1(
|
|
|
399
399
|
# **getDomainDetailsV1**
|
|
400
400
|
> DomainsV1DomainDomainExtendedResource getDomainDetailsV1()
|
|
401
401
|
|
|
402
|
-
Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
|
|
402
|
+
Retrieve detailed information for specified domain. A domain is found here only once it is registered. Until then, `Get domain list` shows it, and its `verification` field says what registration waits for when the domain is held for verification. Use this endpoint to view comprehensive domain configuration and status.
|
|
403
403
|
|
|
404
404
|
### Example
|
|
405
405
|
|
|
@@ -452,7 +452,7 @@ const { status, data } = await apiInstance.getDomainDetailsV1(
|
|
|
452
452
|
# **getDomainListV1**
|
|
453
453
|
> Array<DomainsV1DomainDomainResource> getDomainListV1()
|
|
454
454
|
|
|
455
|
-
Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
455
|
+
Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. A domain held for verification before it is registered has `status: pending_verification`, and its `verification` field says what registration waits for: a manual review, an SMS code, or owner contact verification. Use this endpoint to view user\'s domain portfolio.
|
|
456
456
|
|
|
457
457
|
### Example
|
|
458
458
|
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**status** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**created_at** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**expires_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**verification** | [**DomainsV1DomainDomainVerificationResource**](DomainsV1DomainDomainVerificationResource.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: DomainsV1DomainDomainResource = {
|
|
|
24
25
|
status,
|
|
25
26
|
created_at,
|
|
26
27
|
expires_at,
|
|
28
|
+
verification,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DomainsV1DomainDomainVerificationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | What registration waits for: - `manual_review`: a check you cannot complete yourself, such as a review of the order by Hostinger. You have nothing to do. - `sms_code`: a code was sent by SMS to the phone number of the owner WHOIS profile. Enter it in [hPanel](https://hpanel.hostinger.com/). - `contact_verification`: the registry requires the owner WHOIS profile to be verified first, by email, phone number or contact name. Complete it in [hPanel](https://hpanel.hostinger.com/); registration resumes once the profile is verified. | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainsV1DomainDomainVerificationResource } from '@hostinger/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainsV1DomainDomainVerificationResource = {
|
|
16
|
+
type,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.12.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
|