hostinger-api-sdk 0.0.8 → 0.0.10

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.
Files changed (119) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1911 -180
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1218 -170
  7. package/dist/api.js +1277 -37
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1218 -170
  15. package/dist/esm/api.js +1258 -31
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/BillingCatalogApi.md +54 -0
  27. package/docs/BillingOrdersApi.md +63 -0
  28. package/docs/BillingPaymentMethodsApi.md +162 -0
  29. package/docs/BillingSubscriptionsApi.md +113 -0
  30. package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
  31. package/docs/BillingV1CatalogCatalogItemResource.md +26 -0
  32. package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
  33. package/docs/BillingV1OrderOrderResource.md +36 -0
  34. package/docs/BillingV1OrderStoreRequest.md +24 -0
  35. package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
  36. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
  37. package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
  38. package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
  39. package/docs/CommonSchemaErrorResponseSchema.md +22 -0
  40. package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
  41. package/docs/CommonSchemaUnauthorizedResponseSchema.md +22 -0
  42. package/docs/CommonSchemaUnprocessableContentResponseSchema.md +24 -0
  43. package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +22 -0
  44. package/docs/CommonSuccessEmptyResource.md +20 -0
  45. package/docs/DNSSnapshotApi.md +175 -0
  46. package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
  47. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
  48. package/docs/DNSV1ZoneDestroyRequest.md +20 -0
  49. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
  50. package/docs/DNSV1ZoneNameRecordResource.md +22 -0
  51. package/docs/DNSV1ZoneRecordResource.md +26 -0
  52. package/docs/DNSV1ZoneResetRequest.md +24 -0
  53. package/docs/DNSV1ZoneUpdateRequest.md +22 -0
  54. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
  55. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
  56. package/docs/DNSZoneApi.md +297 -0
  57. package/docs/DomainsAvailabilityApi.md +63 -0
  58. package/docs/DomainsForwardingApi.md +171 -0
  59. package/docs/DomainsPortfolioApi.md +439 -0
  60. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
  61. package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
  62. package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
  63. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
  64. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
  65. package/docs/DomainsV1DomainDomainResource.md +30 -0
  66. package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
  67. package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
  68. package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
  69. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
  70. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
  71. package/docs/DomainsV1WHOISProfileResource.md +34 -0
  72. package/docs/DomainsV1WHOISStoreRequest.md +28 -0
  73. package/docs/DomainsWHOISApi.md +279 -0
  74. package/docs/VPSActionsApi.md +121 -0
  75. package/docs/VPSBackupsApi.md +178 -0
  76. package/docs/VPSDataCentersApi.md +54 -0
  77. package/docs/VPSFirewallApi.md +577 -0
  78. package/docs/VPSGetActionListV1200Response.md +22 -0
  79. package/docs/VPSGetBackupListV1200Response.md +22 -0
  80. package/docs/VPSGetFirewallListV1200Response.md +22 -0
  81. package/docs/VPSGetPostInstallScriptListV1200Response.md +22 -0
  82. package/docs/VPSGetPublicKeyListV1200Response.md +22 -0
  83. package/docs/VPSMalwareScannerApi.md +172 -0
  84. package/docs/VPSOSTemplatesApi.md +108 -0
  85. package/docs/VPSPTRRecordsApi.md +115 -0
  86. package/docs/VPSPostInstallScriptsApi.md +284 -0
  87. package/docs/VPSPublicKeysApi.md +230 -0
  88. package/docs/VPSRecoveryApi.md +120 -0
  89. package/docs/VPSSnapshotsApi.md +223 -0
  90. package/docs/VPSV1ActionActionResource.md +28 -0
  91. package/docs/VPSV1BackupBackupResource.md +24 -0
  92. package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
  93. package/docs/VPSV1FirewallFirewallResource.md +30 -0
  94. package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
  95. package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
  96. package/docs/VPSV1FirewallStoreRequest.md +20 -0
  97. package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
  98. package/docs/VPSV1MalwareMetricsResource.md +30 -0
  99. package/docs/VPSV1MetricsMetricsCollection.md +30 -0
  100. package/docs/VPSV1MetricsMetricsResource.md +22 -0
  101. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
  102. package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
  103. package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
  104. package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
  105. package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
  106. package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
  107. package/docs/VPSV1TemplateTemplateResource.md +26 -0
  108. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
  109. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +22 -0
  110. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
  111. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
  112. package/docs/VPSV1VirtualMachineRecreateRequest.md +24 -0
  113. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
  114. package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
  115. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +22 -0
  116. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
  117. package/docs/VPSVirtualMachineApi.md +796 -0
  118. package/index.ts +1 -1
  119. package/package.json +1 -1
@@ -0,0 +1,439 @@
1
+ # DomainsPortfolioApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**disableDomainLockV1**](#disabledomainlockv1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock|
8
+ |[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
9
+ |[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
10
+ |[**enablePrivacyProtectionV1**](#enableprivacyprotectionv1) | **PUT** /api/domains/v1/portfolio/{domain}/privacy-protection | Enable privacy protection|
11
+ |[**getDomainListV1**](#getdomainlistv1) | **GET** /api/domains/v1/portfolio | Get domain list|
12
+ |[**getDomainV1**](#getdomainv1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain|
13
+ |[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
14
+ |[**updateNameserversV1**](#updatenameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update nameservers|
15
+
16
+ # **disableDomainLockV1**
17
+ > CommonSuccessEmptyResource disableDomainLockV1()
18
+
19
+ This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
20
+
21
+ ### Example
22
+
23
+ ```typescript
24
+ import {
25
+ DomainsPortfolioApi,
26
+ Configuration
27
+ } from 'hostinger-api-sdk';
28
+
29
+ const configuration = new Configuration();
30
+ const apiInstance = new DomainsPortfolioApi(configuration);
31
+
32
+ let domain: string; //Domain name (default to undefined)
33
+
34
+ const { status, data } = await apiInstance.disableDomainLockV1(
35
+ domain
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **domain** | [**string**] | Domain name | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **CommonSuccessEmptyResource**
49
+
50
+ ### Authorization
51
+
52
+ [apiToken](../README.md#apiToken)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Success empty response | - |
64
+ |**401** | Unauthenticated | - |
65
+ |**500** | Error response | - |
66
+
67
+ [[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)
68
+
69
+ # **disablePrivacyProtectionV1**
70
+ > CommonSuccessEmptyResource disablePrivacyProtectionV1()
71
+
72
+ This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ DomainsPortfolioApi,
79
+ Configuration
80
+ } from 'hostinger-api-sdk';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new DomainsPortfolioApi(configuration);
84
+
85
+ let domain: string; //Domain name (default to undefined)
86
+
87
+ const { status, data } = await apiInstance.disablePrivacyProtectionV1(
88
+ domain
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **domain** | [**string**] | Domain name | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **CommonSuccessEmptyResource**
102
+
103
+ ### Authorization
104
+
105
+ [apiToken](../README.md#apiToken)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | Success empty response | - |
117
+ |**401** | Unauthenticated | - |
118
+ |**500** | Error response | - |
119
+
120
+ [[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)
121
+
122
+ # **enableDomainLockV1**
123
+ > CommonSuccessEmptyResource enableDomainLockV1()
124
+
125
+ This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ DomainsPortfolioApi,
132
+ Configuration
133
+ } from 'hostinger-api-sdk';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new DomainsPortfolioApi(configuration);
137
+
138
+ let domain: string; //Domain name (default to undefined)
139
+
140
+ const { status, data } = await apiInstance.enableDomainLockV1(
141
+ domain
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **domain** | [**string**] | Domain name | defaults to undefined|
150
+
151
+
152
+ ### Return type
153
+
154
+ **CommonSuccessEmptyResource**
155
+
156
+ ### Authorization
157
+
158
+ [apiToken](../README.md#apiToken)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: application/json
164
+
165
+
166
+ ### HTTP response details
167
+ | Status code | Description | Response headers |
168
+ |-------------|-------------|------------------|
169
+ |**200** | Success empty response | - |
170
+ |**401** | Unauthenticated | - |
171
+ |**500** | Error response | - |
172
+
173
+ [[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)
174
+
175
+ # **enablePrivacyProtectionV1**
176
+ > CommonSuccessEmptyResource enablePrivacyProtectionV1()
177
+
178
+ This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
179
+
180
+ ### Example
181
+
182
+ ```typescript
183
+ import {
184
+ DomainsPortfolioApi,
185
+ Configuration
186
+ } from 'hostinger-api-sdk';
187
+
188
+ const configuration = new Configuration();
189
+ const apiInstance = new DomainsPortfolioApi(configuration);
190
+
191
+ let domain: string; //Domain name (default to undefined)
192
+
193
+ const { status, data } = await apiInstance.enablePrivacyProtectionV1(
194
+ domain
195
+ );
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ |Name | Type | Description | Notes|
201
+ |------------- | ------------- | ------------- | -------------|
202
+ | **domain** | [**string**] | Domain name | defaults to undefined|
203
+
204
+
205
+ ### Return type
206
+
207
+ **CommonSuccessEmptyResource**
208
+
209
+ ### Authorization
210
+
211
+ [apiToken](../README.md#apiToken)
212
+
213
+ ### HTTP request headers
214
+
215
+ - **Content-Type**: Not defined
216
+ - **Accept**: application/json
217
+
218
+
219
+ ### HTTP response details
220
+ | Status code | Description | Response headers |
221
+ |-------------|-------------|------------------|
222
+ |**200** | Success empty response | - |
223
+ |**401** | Unauthenticated | - |
224
+ |**500** | Error response | - |
225
+
226
+ [[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)
227
+
228
+ # **getDomainListV1**
229
+ > Array<DomainsV1DomainDomainResource> getDomainListV1()
230
+
231
+ This endpoint retrieves a list of all domains associated with your account.
232
+
233
+ ### Example
234
+
235
+ ```typescript
236
+ import {
237
+ DomainsPortfolioApi,
238
+ Configuration
239
+ } from 'hostinger-api-sdk';
240
+
241
+ const configuration = new Configuration();
242
+ const apiInstance = new DomainsPortfolioApi(configuration);
243
+
244
+ const { status, data } = await apiInstance.getDomainListV1();
245
+ ```
246
+
247
+ ### Parameters
248
+ This endpoint does not have any parameters.
249
+
250
+
251
+ ### Return type
252
+
253
+ **Array<DomainsV1DomainDomainResource>**
254
+
255
+ ### Authorization
256
+
257
+ [apiToken](../README.md#apiToken)
258
+
259
+ ### HTTP request headers
260
+
261
+ - **Content-Type**: Not defined
262
+ - **Accept**: application/json
263
+
264
+
265
+ ### HTTP response details
266
+ | Status code | Description | Response headers |
267
+ |-------------|-------------|------------------|
268
+ |**200** | Success response | - |
269
+ |**401** | Unauthenticated | - |
270
+ |**500** | Error response | - |
271
+
272
+ [[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)
273
+
274
+ # **getDomainV1**
275
+ > DomainsV1DomainDomainExtendedResource getDomainV1()
276
+
277
+ This endpoint retrieves details for specified domain.
278
+
279
+ ### Example
280
+
281
+ ```typescript
282
+ import {
283
+ DomainsPortfolioApi,
284
+ Configuration
285
+ } from 'hostinger-api-sdk';
286
+
287
+ const configuration = new Configuration();
288
+ const apiInstance = new DomainsPortfolioApi(configuration);
289
+
290
+ let domain: string; //Domain name (default to undefined)
291
+
292
+ const { status, data } = await apiInstance.getDomainV1(
293
+ domain
294
+ );
295
+ ```
296
+
297
+ ### Parameters
298
+
299
+ |Name | Type | Description | Notes|
300
+ |------------- | ------------- | ------------- | -------------|
301
+ | **domain** | [**string**] | Domain name | defaults to undefined|
302
+
303
+
304
+ ### Return type
305
+
306
+ **DomainsV1DomainDomainExtendedResource**
307
+
308
+ ### Authorization
309
+
310
+ [apiToken](../README.md#apiToken)
311
+
312
+ ### HTTP request headers
313
+
314
+ - **Content-Type**: Not defined
315
+ - **Accept**: application/json
316
+
317
+
318
+ ### HTTP response details
319
+ | Status code | Description | Response headers |
320
+ |-------------|-------------|------------------|
321
+ |**200** | Success response | - |
322
+ |**401** | Unauthenticated | - |
323
+ |**500** | Error response | - |
324
+
325
+ [[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)
326
+
327
+ # **purchaseNewDomainV1**
328
+ > BillingV1OrderOrderResource purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest)
329
+
330
+ This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
331
+
332
+ ### Example
333
+
334
+ ```typescript
335
+ import {
336
+ DomainsPortfolioApi,
337
+ Configuration,
338
+ DomainsV1PortfolioPurchaseRequest
339
+ } from 'hostinger-api-sdk';
340
+
341
+ const configuration = new Configuration();
342
+ const apiInstance = new DomainsPortfolioApi(configuration);
343
+
344
+ let domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest; //
345
+
346
+ const { status, data } = await apiInstance.purchaseNewDomainV1(
347
+ domainsV1PortfolioPurchaseRequest
348
+ );
349
+ ```
350
+
351
+ ### Parameters
352
+
353
+ |Name | Type | Description | Notes|
354
+ |------------- | ------------- | ------------- | -------------|
355
+ | **domainsV1PortfolioPurchaseRequest** | **DomainsV1PortfolioPurchaseRequest**| | |
356
+
357
+
358
+ ### Return type
359
+
360
+ **BillingV1OrderOrderResource**
361
+
362
+ ### Authorization
363
+
364
+ [apiToken](../README.md#apiToken)
365
+
366
+ ### HTTP request headers
367
+
368
+ - **Content-Type**: application/json
369
+ - **Accept**: application/json
370
+
371
+
372
+ ### HTTP response details
373
+ | Status code | Description | Response headers |
374
+ |-------------|-------------|------------------|
375
+ |**200** | Success response | - |
376
+ |**422** | Validation error response | - |
377
+ |**401** | Unauthenticated | - |
378
+ |**500** | Error response | - |
379
+
380
+ [[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)
381
+
382
+ # **updateNameserversV1**
383
+ > CommonSuccessEmptyResource updateNameserversV1(domainsV1PortfolioUpdateNameserversRequest)
384
+
385
+ This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
386
+
387
+ ### Example
388
+
389
+ ```typescript
390
+ import {
391
+ DomainsPortfolioApi,
392
+ Configuration,
393
+ DomainsV1PortfolioUpdateNameserversRequest
394
+ } from 'hostinger-api-sdk';
395
+
396
+ const configuration = new Configuration();
397
+ const apiInstance = new DomainsPortfolioApi(configuration);
398
+
399
+ let domain: string; //Domain name (default to undefined)
400
+ let domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest; //
401
+
402
+ const { status, data } = await apiInstance.updateNameserversV1(
403
+ domain,
404
+ domainsV1PortfolioUpdateNameserversRequest
405
+ );
406
+ ```
407
+
408
+ ### Parameters
409
+
410
+ |Name | Type | Description | Notes|
411
+ |------------- | ------------- | ------------- | -------------|
412
+ | **domainsV1PortfolioUpdateNameserversRequest** | **DomainsV1PortfolioUpdateNameserversRequest**| | |
413
+ | **domain** | [**string**] | Domain name | defaults to undefined|
414
+
415
+
416
+ ### Return type
417
+
418
+ **CommonSuccessEmptyResource**
419
+
420
+ ### Authorization
421
+
422
+ [apiToken](../README.md#apiToken)
423
+
424
+ ### HTTP request headers
425
+
426
+ - **Content-Type**: application/json
427
+ - **Accept**: application/json
428
+
429
+
430
+ ### HTTP response details
431
+ | Status code | Description | Response headers |
432
+ |-------------|-------------|------------------|
433
+ |**200** | Success empty response | - |
434
+ |**422** | Validation error response | - |
435
+ |**401** | Unauthenticated | - |
436
+ |**500** | Error response | - |
437
+
438
+ [[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)
439
+
@@ -0,0 +1,24 @@
1
+ # DomainsV1AvailabilityAvailabilityRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name without TLD | [default to undefined]
9
+ **tlds** | **Array&lt;string&gt;** | TLDs to check (without trailing dot) | [default to undefined]
10
+ **with_alternatives** | **boolean** | Should response include alternatives | [optional] [default to false]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1AvailabilityAvailabilityRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1AvailabilityAvailabilityRequest = {
18
+ domain,
19
+ tlds,
20
+ with_alternatives,
21
+ };
22
+ ```
23
+
24
+ [[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
+ # DomainsV1AvailabilityAvailabilityResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name, &#x60;null&#x60; when not claimed free domain | [optional] [default to undefined]
9
+ **is_available** | **boolean** | &#x60;true&#x60; if domain is available for registration | [optional] [default to undefined]
10
+ **is_alternative** | **boolean** | &#x60;true&#x60; if domain is provided as an alternative | [optional] [default to undefined]
11
+ **restriction** | **string** | Special rules and/or restrictions applied for registering TLD | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { DomainsV1AvailabilityAvailabilityResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: DomainsV1AvailabilityAvailabilityResource = {
19
+ domain,
20
+ is_available,
21
+ is_alternative,
22
+ restriction,
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,48 @@
1
+ # DomainsV1DomainDomainExtendedResource
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 domain | [optional] [default to undefined]
10
+ **message** | **string** | | [optional] [default to undefined]
11
+ **is_privacy_protection_allowed** | **boolean** | Is privacy protection allowed for the domain | [optional] [default to undefined]
12
+ **is_privacy_protected** | **boolean** | Is privacy protection enabled for the domain | [optional] [default to undefined]
13
+ **is_lockable** | **boolean** | Is domain allowed to be locked | [optional] [default to undefined]
14
+ **is_locked** | **boolean** | Is domain locked | [optional] [default to undefined]
15
+ **name_servers** | [**DomainsV1DomainDomainExtendedResourceNameServers**](DomainsV1DomainDomainExtendedResourceNameServers.md) | | [optional] [default to undefined]
16
+ **child_name_servers** | **Array&lt;Array&lt;string&gt;&gt;** | Child name servers | [optional] [default to undefined]
17
+ **domain_contacts** | [**DomainsV1DomainDomainExtendedResourceDomainContacts**](DomainsV1DomainDomainExtendedResourceDomainContacts.md) | | [optional] [default to undefined]
18
+ **created_at** | **string** | | [optional] [default to undefined]
19
+ **updated_at** | **string** | | [optional] [default to undefined]
20
+ **_60_days_lock_expires_at** | **string** | | [optional] [default to undefined]
21
+ **registered_at** | **string** | | [optional] [default to undefined]
22
+ **expires_at** | **string** | | [optional] [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { DomainsV1DomainDomainExtendedResource } from 'hostinger-api-sdk';
28
+
29
+ const instance: DomainsV1DomainDomainExtendedResource = {
30
+ domain,
31
+ status,
32
+ message,
33
+ is_privacy_protection_allowed,
34
+ is_privacy_protected,
35
+ is_lockable,
36
+ is_locked,
37
+ name_servers,
38
+ child_name_servers,
39
+ domain_contacts,
40
+ created_at,
41
+ updated_at,
42
+ _60_days_lock_expires_at,
43
+ registered_at,
44
+ expires_at,
45
+ };
46
+ ```
47
+
48
+ [[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
+ # DomainsV1DomainDomainExtendedResourceDomainContacts
2
+
3
+ WHOIS profiles
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **admin_id** | **number** | Admin WHOIS profile ID | [optional] [default to undefined]
10
+ **owner_id** | **number** | Owner WHOIS profile ID | [optional] [default to undefined]
11
+ **billing_id** | **number** | Billing WHOIS profile ID | [optional] [default to undefined]
12
+ **tech_id** | **number** | Technician WHOIS profile ID | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { DomainsV1DomainDomainExtendedResourceDomainContacts } from 'hostinger-api-sdk';
18
+
19
+ const instance: DomainsV1DomainDomainExtendedResourceDomainContacts = {
20
+ admin_id,
21
+ owner_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,23 @@
1
+ # DomainsV1DomainDomainExtendedResourceNameServers
2
+
3
+ Name servers
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **ns1** | **string** | Name server 1 | [optional] [default to undefined]
10
+ **ns2** | **string** | Name server 2 | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1DomainDomainExtendedResourceNameServers } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1DomainDomainExtendedResourceNameServers = {
18
+ ns1,
19
+ ns2,
20
+ };
21
+ ```
22
+
23
+ [[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,30 @@
1
+ # DomainsV1DomainDomainResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Domain ID | [optional] [default to undefined]
9
+ **domain** | **string** | Domain name, &#x60;null&#x60; when not claimed free domain | [optional] [default to undefined]
10
+ **type** | **string** | | [optional] [default to undefined]
11
+ **status** | **string** | | [optional] [default to undefined]
12
+ **created_at** | **string** | | [optional] [default to undefined]
13
+ **expires_at** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { DomainsV1DomainDomainResource } from 'hostinger-api-sdk';
19
+
20
+ const instance: DomainsV1DomainDomainResource = {
21
+ id,
22
+ domain,
23
+ type,
24
+ status,
25
+ created_at,
26
+ expires_at,
27
+ };
28
+ ```
29
+
30
+ [[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,28 @@
1
+ # DomainsV1ForwardingForwardingResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [optional] [default to undefined]
9
+ **redirect_type** | **string** | Redirect type | [optional] [default to undefined]
10
+ **redirect_url** | **string** | URL domain is forwarded to | [optional] [default to undefined]
11
+ **created_at** | **string** | | [optional] [default to undefined]
12
+ **updated_at** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { DomainsV1ForwardingForwardingResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: DomainsV1ForwardingForwardingResource = {
20
+ domain,
21
+ redirect_type,
22
+ redirect_url,
23
+ created_at,
24
+ updated_at,
25
+ };
26
+ ```
27
+
28
+ [[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,24 @@
1
+ # DomainsV1ForwardingStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [default to undefined]
9
+ **redirect_type** | **string** | Redirect type | [default to undefined]
10
+ **redirect_url** | **string** | URL to forward domain to | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1ForwardingStoreRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1ForwardingStoreRequest = {
18
+ domain,
19
+ redirect_type,
20
+ redirect_url,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)