hostinger-api-sdk 1.23.0 → 1.25.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 +1147 -112
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +575 -1
- package/dist/api.js +1064 -252
- 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 +575 -1
- package/dist/esm/api.js +1052 -244
- 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/DomainsMoveApi.md +438 -0
- package/docs/DomainsV1IRTPVerificationResource.md +32 -0
- package/docs/DomainsV1MoveIncomingUpdateRequest.md +20 -0
- package/docs/DomainsV1MoveIncomingUpdateRequestDomainContacts.md +27 -0
- package/docs/DomainsV1MoveMoveResource.md +26 -0
- package/docs/DomainsV1MoveOutgoingStoreRequest.md +20 -0
- package/docs/DomainsV1WHOISChangeUpdateRequest.md +24 -0
- package/docs/DomainsWHOISApi.md +165 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.26.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.26.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.26.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: 1.
|
|
6
|
+
* API Version: 1.26.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: 1.
|
|
4
|
+
* API Version: 1.26.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: 1.
|
|
6
|
+
* API Version: 1.26.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/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.25.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: 1.
|
|
4
|
+
* API Version: 1.26.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: 1.
|
|
6
|
+
* API Version: 1.26.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: 1.
|
|
4
|
+
* API Version: 1.26.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: 1.
|
|
7
|
+
* API Version: 1.26.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
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
# DomainsMoveApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**acceptIncomingDomainMoveV1**](#acceptincomingdomainmovev1) | **PUT** /api/domains/v1/move/incoming/{domain} | Accept incoming domain move|
|
|
8
|
+
|[**cancelOutgoingDomainMoveV1**](#canceloutgoingdomainmovev1) | **DELETE** /api/domains/v1/move/outgoing/{domain} | Cancel outgoing domain move|
|
|
9
|
+
|[**getIncomingDomainMoveListV1**](#getincomingdomainmovelistv1) | **GET** /api/domains/v1/move/incoming | Get incoming domain move list|
|
|
10
|
+
|[**getIncomingDomainMoveV1**](#getincomingdomainmovev1) | **GET** /api/domains/v1/move/incoming/{domain} | Get incoming domain move|
|
|
11
|
+
|[**getOutgoingDomainMoveListV1**](#getoutgoingdomainmovelistv1) | **GET** /api/domains/v1/move/outgoing | Get outgoing domain move list|
|
|
12
|
+
|[**getOutgoingDomainMoveV1**](#getoutgoingdomainmovev1) | **GET** /api/domains/v1/move/outgoing/{domain} | Get outgoing domain move|
|
|
13
|
+
|[**rejectIncomingDomainMoveV1**](#rejectincomingdomainmovev1) | **DELETE** /api/domains/v1/move/incoming/{domain} | Reject incoming domain move|
|
|
14
|
+
|[**startOutgoingDomainMoveV1**](#startoutgoingdomainmovev1) | **POST** /api/domains/v1/move/outgoing/{domain} | Start outgoing domain move|
|
|
15
|
+
|
|
16
|
+
# **acceptIncomingDomainMoveV1**
|
|
17
|
+
> CommonSuccessEmptyResource acceptIncomingDomainMoveV1(domainsV1MoveIncomingUpdateRequest)
|
|
18
|
+
|
|
19
|
+
Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
DomainsMoveApi,
|
|
26
|
+
Configuration,
|
|
27
|
+
DomainsV1MoveIncomingUpdateRequest
|
|
28
|
+
} from 'hostinger-api-sdk';
|
|
29
|
+
|
|
30
|
+
const configuration = new Configuration();
|
|
31
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
32
|
+
|
|
33
|
+
let domain: string; //Domain name (default to undefined)
|
|
34
|
+
let domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest; //
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.acceptIncomingDomainMoveV1(
|
|
37
|
+
domain,
|
|
38
|
+
domainsV1MoveIncomingUpdateRequest
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|Name | Type | Description | Notes|
|
|
45
|
+
|------------- | ------------- | ------------- | -------------|
|
|
46
|
+
| **domainsV1MoveIncomingUpdateRequest** | **DomainsV1MoveIncomingUpdateRequest**| | |
|
|
47
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
**CommonSuccessEmptyResource**
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[apiToken](../README.md#apiToken)
|
|
57
|
+
|
|
58
|
+
### HTTP request headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: application/json
|
|
61
|
+
- **Accept**: application/json
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
| Status code | Description | Response headers |
|
|
66
|
+
|-------------|-------------|------------------|
|
|
67
|
+
|**200** | Success empty response | - |
|
|
68
|
+
|**422** | Validation error response | - |
|
|
69
|
+
|**401** | Unauthenticated response | - |
|
|
70
|
+
|**500** | Error response | - |
|
|
71
|
+
|
|
72
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
73
|
+
|
|
74
|
+
# **cancelOutgoingDomainMoveV1**
|
|
75
|
+
> CommonSuccessEmptyResource cancelOutgoingDomainMoveV1()
|
|
76
|
+
|
|
77
|
+
Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
78
|
+
|
|
79
|
+
### Example
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
import {
|
|
83
|
+
DomainsMoveApi,
|
|
84
|
+
Configuration
|
|
85
|
+
} from 'hostinger-api-sdk';
|
|
86
|
+
|
|
87
|
+
const configuration = new Configuration();
|
|
88
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
89
|
+
|
|
90
|
+
let domain: string; //Domain name (default to undefined)
|
|
91
|
+
|
|
92
|
+
const { status, data } = await apiInstance.cancelOutgoingDomainMoveV1(
|
|
93
|
+
domain
|
|
94
|
+
);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Parameters
|
|
98
|
+
|
|
99
|
+
|Name | Type | Description | Notes|
|
|
100
|
+
|------------- | ------------- | ------------- | -------------|
|
|
101
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**CommonSuccessEmptyResource**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[apiToken](../README.md#apiToken)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | Success empty response | - |
|
|
122
|
+
|**401** | Unauthenticated response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
127
|
+
# **getIncomingDomainMoveListV1**
|
|
128
|
+
> Array<DomainsV1MoveMoveResource> getIncomingDomainMoveListV1()
|
|
129
|
+
|
|
130
|
+
Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
131
|
+
|
|
132
|
+
### Example
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import {
|
|
136
|
+
DomainsMoveApi,
|
|
137
|
+
Configuration
|
|
138
|
+
} from 'hostinger-api-sdk';
|
|
139
|
+
|
|
140
|
+
const configuration = new Configuration();
|
|
141
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.getIncomingDomainMoveListV1();
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
This endpoint does not have any parameters.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
**Array<DomainsV1MoveMoveResource>**
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
[apiToken](../README.md#apiToken)
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: Not defined
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### HTTP response details
|
|
165
|
+
| Status code | Description | Response headers |
|
|
166
|
+
|-------------|-------------|------------------|
|
|
167
|
+
|**200** | Success response | - |
|
|
168
|
+
|**401** | Unauthenticated response | - |
|
|
169
|
+
|**500** | Error response | - |
|
|
170
|
+
|
|
171
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
172
|
+
|
|
173
|
+
# **getIncomingDomainMoveV1**
|
|
174
|
+
> DomainsV1MoveMoveResource getIncomingDomainMoveV1()
|
|
175
|
+
|
|
176
|
+
Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
177
|
+
|
|
178
|
+
### Example
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import {
|
|
182
|
+
DomainsMoveApi,
|
|
183
|
+
Configuration
|
|
184
|
+
} from 'hostinger-api-sdk';
|
|
185
|
+
|
|
186
|
+
const configuration = new Configuration();
|
|
187
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
188
|
+
|
|
189
|
+
let domain: string; //Domain name (default to undefined)
|
|
190
|
+
let forceSync: boolean; //Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status. (optional) (default to false)
|
|
191
|
+
|
|
192
|
+
const { status, data } = await apiInstance.getIncomingDomainMoveV1(
|
|
193
|
+
domain,
|
|
194
|
+
forceSync
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
|Name | Type | Description | Notes|
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
203
|
+
| **forceSync** | [**boolean**] | Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status. | (optional) defaults to false|
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
**DomainsV1MoveMoveResource**
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
[apiToken](../README.md#apiToken)
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: Not defined
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### HTTP response details
|
|
221
|
+
| Status code | Description | Response headers |
|
|
222
|
+
|-------------|-------------|------------------|
|
|
223
|
+
|**200** | Success response | - |
|
|
224
|
+
|**401** | Unauthenticated response | - |
|
|
225
|
+
|**500** | Error response | - |
|
|
226
|
+
|
|
227
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
228
|
+
|
|
229
|
+
# **getOutgoingDomainMoveListV1**
|
|
230
|
+
> Array<DomainsV1MoveMoveResource> getOutgoingDomainMoveListV1()
|
|
231
|
+
|
|
232
|
+
Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
233
|
+
|
|
234
|
+
### Example
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
import {
|
|
238
|
+
DomainsMoveApi,
|
|
239
|
+
Configuration
|
|
240
|
+
} from 'hostinger-api-sdk';
|
|
241
|
+
|
|
242
|
+
const configuration = new Configuration();
|
|
243
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.getOutgoingDomainMoveListV1();
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Parameters
|
|
249
|
+
This endpoint does not have any parameters.
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
### Return type
|
|
253
|
+
|
|
254
|
+
**Array<DomainsV1MoveMoveResource>**
|
|
255
|
+
|
|
256
|
+
### Authorization
|
|
257
|
+
|
|
258
|
+
[apiToken](../README.md#apiToken)
|
|
259
|
+
|
|
260
|
+
### HTTP request headers
|
|
261
|
+
|
|
262
|
+
- **Content-Type**: Not defined
|
|
263
|
+
- **Accept**: application/json
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### HTTP response details
|
|
267
|
+
| Status code | Description | Response headers |
|
|
268
|
+
|-------------|-------------|------------------|
|
|
269
|
+
|**200** | Success response | - |
|
|
270
|
+
|**401** | Unauthenticated response | - |
|
|
271
|
+
|**500** | Error response | - |
|
|
272
|
+
|
|
273
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
274
|
+
|
|
275
|
+
# **getOutgoingDomainMoveV1**
|
|
276
|
+
> DomainsV1MoveMoveResource getOutgoingDomainMoveV1()
|
|
277
|
+
|
|
278
|
+
Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
279
|
+
|
|
280
|
+
### Example
|
|
281
|
+
|
|
282
|
+
```typescript
|
|
283
|
+
import {
|
|
284
|
+
DomainsMoveApi,
|
|
285
|
+
Configuration
|
|
286
|
+
} from 'hostinger-api-sdk';
|
|
287
|
+
|
|
288
|
+
const configuration = new Configuration();
|
|
289
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
290
|
+
|
|
291
|
+
let domain: string; //Domain name (default to undefined)
|
|
292
|
+
|
|
293
|
+
const { status, data } = await apiInstance.getOutgoingDomainMoveV1(
|
|
294
|
+
domain
|
|
295
|
+
);
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### Parameters
|
|
299
|
+
|
|
300
|
+
|Name | Type | Description | Notes|
|
|
301
|
+
|------------- | ------------- | ------------- | -------------|
|
|
302
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### Return type
|
|
306
|
+
|
|
307
|
+
**DomainsV1MoveMoveResource**
|
|
308
|
+
|
|
309
|
+
### Authorization
|
|
310
|
+
|
|
311
|
+
[apiToken](../README.md#apiToken)
|
|
312
|
+
|
|
313
|
+
### HTTP request headers
|
|
314
|
+
|
|
315
|
+
- **Content-Type**: Not defined
|
|
316
|
+
- **Accept**: application/json
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
### HTTP response details
|
|
320
|
+
| Status code | Description | Response headers |
|
|
321
|
+
|-------------|-------------|------------------|
|
|
322
|
+
|**200** | Success response | - |
|
|
323
|
+
|**401** | Unauthenticated response | - |
|
|
324
|
+
|**500** | Error response | - |
|
|
325
|
+
|
|
326
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
327
|
+
|
|
328
|
+
# **rejectIncomingDomainMoveV1**
|
|
329
|
+
> CommonSuccessEmptyResource rejectIncomingDomainMoveV1()
|
|
330
|
+
|
|
331
|
+
Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
332
|
+
|
|
333
|
+
### Example
|
|
334
|
+
|
|
335
|
+
```typescript
|
|
336
|
+
import {
|
|
337
|
+
DomainsMoveApi,
|
|
338
|
+
Configuration
|
|
339
|
+
} from 'hostinger-api-sdk';
|
|
340
|
+
|
|
341
|
+
const configuration = new Configuration();
|
|
342
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
343
|
+
|
|
344
|
+
let domain: string; //Domain name (default to undefined)
|
|
345
|
+
|
|
346
|
+
const { status, data } = await apiInstance.rejectIncomingDomainMoveV1(
|
|
347
|
+
domain
|
|
348
|
+
);
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Parameters
|
|
352
|
+
|
|
353
|
+
|Name | Type | Description | Notes|
|
|
354
|
+
|------------- | ------------- | ------------- | -------------|
|
|
355
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
### Return type
|
|
359
|
+
|
|
360
|
+
**CommonSuccessEmptyResource**
|
|
361
|
+
|
|
362
|
+
### Authorization
|
|
363
|
+
|
|
364
|
+
[apiToken](../README.md#apiToken)
|
|
365
|
+
|
|
366
|
+
### HTTP request headers
|
|
367
|
+
|
|
368
|
+
- **Content-Type**: Not defined
|
|
369
|
+
- **Accept**: application/json
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### HTTP response details
|
|
373
|
+
| Status code | Description | Response headers |
|
|
374
|
+
|-------------|-------------|------------------|
|
|
375
|
+
|**200** | Success empty response | - |
|
|
376
|
+
|**401** | Unauthenticated response | - |
|
|
377
|
+
|**500** | Error response | - |
|
|
378
|
+
|
|
379
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
380
|
+
|
|
381
|
+
# **startOutgoingDomainMoveV1**
|
|
382
|
+
> CommonSuccessEmptyResource startOutgoingDomainMoveV1(domainsV1MoveOutgoingStoreRequest)
|
|
383
|
+
|
|
384
|
+
Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
385
|
+
|
|
386
|
+
### Example
|
|
387
|
+
|
|
388
|
+
```typescript
|
|
389
|
+
import {
|
|
390
|
+
DomainsMoveApi,
|
|
391
|
+
Configuration,
|
|
392
|
+
DomainsV1MoveOutgoingStoreRequest
|
|
393
|
+
} from 'hostinger-api-sdk';
|
|
394
|
+
|
|
395
|
+
const configuration = new Configuration();
|
|
396
|
+
const apiInstance = new DomainsMoveApi(configuration);
|
|
397
|
+
|
|
398
|
+
let domain: string; //Domain name (default to undefined)
|
|
399
|
+
let domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest; //
|
|
400
|
+
|
|
401
|
+
const { status, data } = await apiInstance.startOutgoingDomainMoveV1(
|
|
402
|
+
domain,
|
|
403
|
+
domainsV1MoveOutgoingStoreRequest
|
|
404
|
+
);
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### Parameters
|
|
408
|
+
|
|
409
|
+
|Name | Type | Description | Notes|
|
|
410
|
+
|------------- | ------------- | ------------- | -------------|
|
|
411
|
+
| **domainsV1MoveOutgoingStoreRequest** | **DomainsV1MoveOutgoingStoreRequest**| | |
|
|
412
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
### Return type
|
|
416
|
+
|
|
417
|
+
**CommonSuccessEmptyResource**
|
|
418
|
+
|
|
419
|
+
### Authorization
|
|
420
|
+
|
|
421
|
+
[apiToken](../README.md#apiToken)
|
|
422
|
+
|
|
423
|
+
### HTTP request headers
|
|
424
|
+
|
|
425
|
+
- **Content-Type**: application/json
|
|
426
|
+
- **Accept**: application/json
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
### HTTP response details
|
|
430
|
+
| Status code | Description | Response headers |
|
|
431
|
+
|-------------|-------------|------------------|
|
|
432
|
+
|**200** | Success empty response | - |
|
|
433
|
+
|**422** | Validation error response | - |
|
|
434
|
+
|**401** | Unauthenticated response | - |
|
|
435
|
+
|**500** | Error response | - |
|
|
436
|
+
|
|
437
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
438
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# DomainsV1IRTPVerificationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | IRTP verification status | [optional] [default to undefined]
|
|
10
|
+
**old_confirmed_at** | **string** | When the old registrant confirmed the change | [optional] [default to undefined]
|
|
11
|
+
**new_confirmed_at** | **string** | When the new registrant confirmed the change | [optional] [default to undefined]
|
|
12
|
+
**old_whois_profile_email** | **string** | Email the old registrant confirmation was sent to | [optional] [default to undefined]
|
|
13
|
+
**new_whois_profile_email** | **string** | Email the new registrant confirmation was sent to | [optional] [default to undefined]
|
|
14
|
+
**expires_at** | **string** | When the verification auto-cancels if unconfirmed | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { DomainsV1IRTPVerificationResource } from 'hostinger-api-sdk';
|
|
20
|
+
|
|
21
|
+
const instance: DomainsV1IRTPVerificationResource = {
|
|
22
|
+
domain,
|
|
23
|
+
status,
|
|
24
|
+
old_confirmed_at,
|
|
25
|
+
new_confirmed_at,
|
|
26
|
+
old_whois_profile_email,
|
|
27
|
+
new_whois_profile_email,
|
|
28
|
+
expires_at,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DomainsV1MoveIncomingUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain_contacts** | [**DomainsV1MoveIncomingUpdateRequestDomainContacts**](DomainsV1MoveIncomingUpdateRequestDomainContacts.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainsV1MoveIncomingUpdateRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainsV1MoveIncomingUpdateRequest = {
|
|
16
|
+
domain_contacts,
|
|
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)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2
|
+
|
|
3
|
+
WHOIS profiles of the accepting account. Only the contact types required by the TLD are applied, but all four IDs must be provided.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**owner_id** | **number** | Owner contact WHOIS record ID | [default to undefined]
|
|
10
|
+
**admin_id** | **number** | Administrative contact WHOIS record ID | [default to undefined]
|
|
11
|
+
**billing_id** | **number** | Billing contact WHOIS record ID | [default to undefined]
|
|
12
|
+
**tech_id** | **number** | Technical contact WHOIS record ID | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainsV1MoveIncomingUpdateRequestDomainContacts } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainsV1MoveIncomingUpdateRequestDomainContacts = {
|
|
20
|
+
owner_id,
|
|
21
|
+
admin_id,
|
|
22
|
+
billing_id,
|
|
23
|
+
tech_id,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# DomainsV1MoveMoveResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Status of the move | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1MoveMoveResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1MoveMoveResource = {
|
|
19
|
+
domain,
|
|
20
|
+
status,
|
|
21
|
+
created_at,
|
|
22
|
+
updated_at,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DomainsV1MoveOutgoingStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**new_customer_email** | **string** | Email address of the Hostinger account receiving the domain | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DomainsV1MoveOutgoingStoreRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DomainsV1MoveOutgoingStoreRequest = {
|
|
16
|
+
new_customer_email,
|
|
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)
|