hostinger-api-sdk 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.30.1
4
+ * API Version: 1.32.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.30.1
4
+ * API Version: 1.32.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.30.1
7
+ * API Version: 1.32.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -5,11 +5,13 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkDomainAvailabilityV1**](#checkdomainavailabilityv1) | **POST** /api/domains/v1/availability | Check domain availability|
8
+ |[**suggestDomainNamesFromADescriptionV1**](#suggestdomainnamesfromadescriptionv1) | **POST** /api/domains/v1/availability/alternatives-from-description | Suggest domain names from a description|
9
+ |[**suggestDomainNamesFromADomainV1**](#suggestdomainnamesfromadomainv1) | **POST** /api/domains/v1/availability/alternatives-from-domain | Suggest domain names from a domain|
8
10
 
9
11
  # **checkDomainAvailabilityV1**
10
12
  > Array<DomainsV1AvailabilityAvailabilityResource> checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest)
11
13
 
12
- Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute. Use this endpoint to verify domain availability before purchase.
14
+ Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
13
15
 
14
16
  ### Example
15
17
 
@@ -61,3 +63,113 @@ const { status, data } = await apiInstance.checkDomainAvailabilityV1(
61
63
 
62
64
  [[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)
63
65
 
66
+ # **suggestDomainNamesFromADescriptionV1**
67
+ > Array<string> suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest)
68
+
69
+ Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ DomainsAvailabilityApi,
76
+ Configuration,
77
+ DomainsV1AvailabilityAlternativesFromDescriptionRequest
78
+ } from 'hostinger-api-sdk';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new DomainsAvailabilityApi(configuration);
82
+
83
+ let domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest; //
84
+
85
+ const { status, data } = await apiInstance.suggestDomainNamesFromADescriptionV1(
86
+ domainsV1AvailabilityAlternativesFromDescriptionRequest
87
+ );
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ |Name | Type | Description | Notes|
93
+ |------------- | ------------- | ------------- | -------------|
94
+ | **domainsV1AvailabilityAlternativesFromDescriptionRequest** | **DomainsV1AvailabilityAlternativesFromDescriptionRequest**| | |
95
+
96
+
97
+ ### Return type
98
+
99
+ **Array<string>**
100
+
101
+ ### Authorization
102
+
103
+ [apiToken](../README.md#apiToken)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
110
+
111
+ ### HTTP response details
112
+ | Status code | Description | Response headers |
113
+ |-------------|-------------|------------------|
114
+ |**200** | Success response | - |
115
+ |**422** | Validation error response | - |
116
+ |**401** | Unauthenticated response | - |
117
+ |**500** | Error response | - |
118
+
119
+ [[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)
120
+
121
+ # **suggestDomainNamesFromADomainV1**
122
+ > Array<string> suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest)
123
+
124
+ Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ DomainsAvailabilityApi,
131
+ Configuration,
132
+ DomainsV1AvailabilityAlternativesFromDomainRequest
133
+ } from 'hostinger-api-sdk';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new DomainsAvailabilityApi(configuration);
137
+
138
+ let domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest; //
139
+
140
+ const { status, data } = await apiInstance.suggestDomainNamesFromADomainV1(
141
+ domainsV1AvailabilityAlternativesFromDomainRequest
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **domainsV1AvailabilityAlternativesFromDomainRequest** | **DomainsV1AvailabilityAlternativesFromDomainRequest**| | |
150
+
151
+
152
+ ### Return type
153
+
154
+ **Array<string>**
155
+
156
+ ### Authorization
157
+
158
+ [apiToken](../README.md#apiToken)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: application/json
163
+ - **Accept**: application/json
164
+
165
+
166
+ ### HTTP response details
167
+ | Status code | Description | Response headers |
168
+ |-------------|-------------|------------------|
169
+ |**200** | Success response | - |
170
+ |**422** | Validation error response | - |
171
+ |**401** | Unauthenticated response | - |
172
+ |**500** | Error response | - |
173
+
174
+ [[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)
175
+
@@ -0,0 +1,22 @@
1
+ # DomainsV1AvailabilityAlternativesFromDescriptionRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **description** | **string** | Free-text description of the project the domain is needed for | [default to undefined]
9
+ **limit** | **number** | Amount of domain names to suggest | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DomainsV1AvailabilityAlternativesFromDescriptionRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: DomainsV1AvailabilityAlternativesFromDescriptionRequest = {
17
+ description,
18
+ limit,
19
+ };
20
+ ```
21
+
22
+ [[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,22 @@
1
+ # DomainsV1AvailabilityAlternativesFromDomainRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name to base the suggestions on | [default to undefined]
9
+ **limit** | **number** | Amount of domain names to suggest | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DomainsV1AvailabilityAlternativesFromDomainRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: DomainsV1AvailabilityAlternativesFromDomainRequest = {
17
+ domain,
18
+ limit,
19
+ };
20
+ ```
21
+
22
+ [[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,148 @@
1
+ # HostingFilesApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getWebsiteFileContentV1**](#getwebsitefilecontentv1) | **GET** /api/hosting/v1/accounts/{username}/domains/{domain}/files/content | Get website file content|
8
+ |[**listWebsiteFilesAndDirectoriesV1**](#listwebsitefilesanddirectoriesv1) | **GET** /api/hosting/v1/accounts/{username}/domains/{domain}/files | List website files and directories|
9
+
10
+ # **getWebsiteFileContentV1**
11
+ > HostingV1FilesFileContentResource getWebsiteFileContentV1()
12
+
13
+ Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ HostingFilesApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new HostingFilesApi(configuration);
25
+
26
+ let username: string; // (default to undefined)
27
+ let domain: string; //Domain name (default to undefined)
28
+ let path: string; //File path, relative to the document root. (default to undefined)
29
+ let fromLine: number; //Line offset to start reading from. (optional) (default to 0)
30
+ let maxLines: number; //Max number of lines to return. (optional) (default to 5000)
31
+
32
+ const { status, data } = await apiInstance.getWebsiteFileContentV1(
33
+ username,
34
+ domain,
35
+ path,
36
+ fromLine,
37
+ maxLines
38
+ );
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ |Name | Type | Description | Notes|
44
+ |------------- | ------------- | ------------- | -------------|
45
+ | **username** | [**string**] | | defaults to undefined|
46
+ | **domain** | [**string**] | Domain name | defaults to undefined|
47
+ | **path** | [**string**] | File path, relative to the document root. | defaults to undefined|
48
+ | **fromLine** | [**number**] | Line offset to start reading from. | (optional) defaults to 0|
49
+ | **maxLines** | [**number**] | Max number of lines to return. | (optional) defaults to 5000|
50
+
51
+
52
+ ### Return type
53
+
54
+ **HostingV1FilesFileContentResource**
55
+
56
+ ### Authorization
57
+
58
+ [apiToken](../README.md#apiToken)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: Not defined
63
+ - **Accept**: application/json
64
+
65
+
66
+ ### HTTP response details
67
+ | Status code | Description | Response headers |
68
+ |-------------|-------------|------------------|
69
+ |**200** | Success response | - |
70
+ |**422** | Validation error response | - |
71
+ |**401** | Unauthenticated response | - |
72
+ |**500** | Error response | - |
73
+
74
+ [[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)
75
+
76
+ # **listWebsiteFilesAndDirectoriesV1**
77
+ > HostingV1FilesFilesResource listWebsiteFilesAndDirectoriesV1()
78
+
79
+ List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
80
+
81
+ ### Example
82
+
83
+ ```typescript
84
+ import {
85
+ HostingFilesApi,
86
+ Configuration,
87
+ HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
88
+ } from 'hostinger-api-sdk';
89
+
90
+ const configuration = new Configuration();
91
+ const apiInstance = new HostingFilesApi(configuration);
92
+
93
+ let username: string; // (default to undefined)
94
+ let domain: string; //Domain name (default to undefined)
95
+ let directory: string; //Directory path to check (optional) (default to '')
96
+ let maxDepth: number; //How many directory levels deep to recurse. (optional) (default to 5)
97
+ let maxItems: number; //Max number of entries to return in this page. (optional) (default to 1000)
98
+ let offset: number; //Number of entries to skip. Page with offset + item count until reaching total_items. (optional) (default to 0)
99
+ let fileTypes: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter; //Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types. (optional) (default to undefined)
100
+
101
+ const { status, data } = await apiInstance.listWebsiteFilesAndDirectoriesV1(
102
+ username,
103
+ domain,
104
+ directory,
105
+ maxDepth,
106
+ maxItems,
107
+ offset,
108
+ fileTypes
109
+ );
110
+ ```
111
+
112
+ ### Parameters
113
+
114
+ |Name | Type | Description | Notes|
115
+ |------------- | ------------- | ------------- | -------------|
116
+ | **username** | [**string**] | | defaults to undefined|
117
+ | **domain** | [**string**] | Domain name | defaults to undefined|
118
+ | **directory** | [**string**] | Directory path to check | (optional) defaults to ''|
119
+ | **maxDepth** | [**number**] | How many directory levels deep to recurse. | (optional) defaults to 5|
120
+ | **maxItems** | [**number**] | Max number of entries to return in this page. | (optional) defaults to 1000|
121
+ | **offset** | [**number**] | Number of entries to skip. Page with offset + item count until reaching total_items. | (optional) defaults to 0|
122
+ | **fileTypes** | **HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter** | Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types. | (optional) defaults to undefined|
123
+
124
+
125
+ ### Return type
126
+
127
+ **HostingV1FilesFilesResource**
128
+
129
+ ### Authorization
130
+
131
+ [apiToken](../README.md#apiToken)
132
+
133
+ ### HTTP request headers
134
+
135
+ - **Content-Type**: Not defined
136
+ - **Accept**: application/json
137
+
138
+
139
+ ### HTTP response details
140
+ | Status code | Description | Response headers |
141
+ |-------------|-------------|------------------|
142
+ |**200** | Success response | - |
143
+ |**422** | Validation error response | - |
144
+ |**401** | Unauthenticated response | - |
145
+ |**500** | Error response | - |
146
+
147
+ [[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)
148
+
@@ -1,19 +1,17 @@
1
- # HostingV1WebsitesDeleteWebsiteRequest
1
+ # HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **confirm** | **boolean** | Must be boolean true to confirm the permanent deletion of the website. | [default to undefined]
9
8
 
10
9
  ## Example
11
10
 
12
11
  ```typescript
13
- import { HostingV1WebsitesDeleteWebsiteRequest } from 'hostinger-api-sdk';
12
+ import { HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter } from 'hostinger-api-sdk';
14
13
 
15
- const instance: HostingV1WebsitesDeleteWebsiteRequest = {
16
- confirm,
14
+ const instance: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = {
17
15
  };
18
16
  ```
19
17
 
@@ -0,0 +1,28 @@
1
+ # HostingV1FilesFileContentResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **path** | **string** | File path, relative to the document root. | [default to undefined]
9
+ **content** | **string** | File content for the requested line range. | [default to undefined]
10
+ **from_line** | **number** | Line offset the returned content starts from. | [default to undefined]
11
+ **total_lines** | **number** | Total number of lines in the file. | [default to undefined]
12
+ **size_bytes** | **number** | Total file size in bytes. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { HostingV1FilesFileContentResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: HostingV1FilesFileContentResource = {
20
+ path,
21
+ content,
22
+ from_line,
23
+ total_lines,
24
+ size_bytes,
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,28 @@
1
+ # HostingV1FilesFilesResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **path** | **string** | Listed directory, relative to the document root. | [default to undefined]
9
+ **items** | [**Array&lt;HostingV1FilesFilesResourceItemsInner&gt;**](HostingV1FilesFilesResourceItemsInner.md) | Entries found in the listed directory. | [default to undefined]
10
+ **total_items** | **number** | Total number of entries matching the listing, across all pages. | [default to undefined]
11
+ **total_items_current_page** | **number** | Number of entries in this page. | [default to undefined]
12
+ **offset** | **number** | Number of entries skipped before this page. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { HostingV1FilesFilesResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: HostingV1FilesFilesResource = {
20
+ path,
21
+ items,
22
+ total_items,
23
+ total_items_current_page,
24
+ offset,
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,26 @@
1
+ # HostingV1FilesFilesResourceItemsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Entry name. | [default to undefined]
9
+ **path** | **string** | Entry path, relative to the document root. | [default to undefined]
10
+ **type** | **string** | Entry type. | [default to undefined]
11
+ **size_bytes** | **number** | Entry size in bytes. Null for directories, symlinks, and other non-file entries. | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { HostingV1FilesFilesResourceItemsInner } from 'hostinger-api-sdk';
17
+
18
+ const instance: HostingV1FilesFilesResourceItemsInner = {
19
+ name,
20
+ path,
21
+ type,
22
+ size_bytes,
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)
@@ -64,28 +64,25 @@ const { status, data } = await apiInstance.createWebsiteV1(
64
64
  [[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)
65
65
 
66
66
  # **deleteWebsiteV1**
67
- > CommonSuccessEmptyResource deleteWebsiteV1(hostingV1WebsitesDeleteWebsiteRequest)
67
+ > CommonSuccessEmptyResource deleteWebsiteV1()
68
68
 
69
- Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
69
+ This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
70
70
 
71
71
  ### Example
72
72
 
73
73
  ```typescript
74
74
  import {
75
75
  HostingWebsitesApi,
76
- Configuration,
77
- HostingV1WebsitesDeleteWebsiteRequest
76
+ Configuration
78
77
  } from 'hostinger-api-sdk';
79
78
 
80
79
  const configuration = new Configuration();
81
80
  const apiInstance = new HostingWebsitesApi(configuration);
82
81
 
83
82
  let domain: string; //Domain name (default to undefined)
84
- let hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest; //
85
83
 
86
84
  const { status, data } = await apiInstance.deleteWebsiteV1(
87
- domain,
88
- hostingV1WebsitesDeleteWebsiteRequest
85
+ domain
89
86
  );
90
87
  ```
91
88
 
@@ -93,7 +90,6 @@ const { status, data } = await apiInstance.deleteWebsiteV1(
93
90
 
94
91
  |Name | Type | Description | Notes|
95
92
  |------------- | ------------- | ------------- | -------------|
96
- | **hostingV1WebsitesDeleteWebsiteRequest** | **HostingV1WebsitesDeleteWebsiteRequest**| | |
97
93
  | **domain** | [**string**] | Domain name | defaults to undefined|
98
94
 
99
95
 
@@ -107,7 +103,7 @@ const { status, data } = await apiInstance.deleteWebsiteV1(
107
103
 
108
104
  ### HTTP request headers
109
105
 
110
- - **Content-Type**: application/json
106
+ - **Content-Type**: Not defined
111
107
  - **Accept**: application/json
112
108
 
113
109
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {