hostinger-api-sdk 1.30.0 → 1.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +714 -38
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +445 -30
  7. package/dist/api.js +500 -33
  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 +445 -30
  15. package/dist/esm/api.js +487 -24
  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/DomainsAvailabilityApi.md +113 -1
  27. package/docs/DomainsV1AvailabilityAlternativesFromDescriptionRequest.md +22 -0
  28. package/docs/DomainsV1AvailabilityAlternativesFromDomainRequest.md +22 -0
  29. package/docs/EcommerceProductsApi.md +62 -0
  30. package/docs/EcommerceV1ProductProductImageUploadResource.md +22 -0
  31. package/docs/EcommerceV1ProductUploadProductImageRequest.md +22 -0
  32. package/docs/HostingFilesApi.md +148 -0
  33. package/docs/{HostingV1WebsitesDeleteWebsiteRequest.md → HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md} +3 -5
  34. package/docs/HostingV1FilesFileContentResource.md +28 -0
  35. package/docs/HostingV1FilesFilesResource.md +28 -0
  36. package/docs/HostingV1FilesFilesResourceItemsInner.md +26 -0
  37. package/docs/HostingWebsitesApi.md +5 -9
  38. package/index.ts +1 -1
  39. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.30.1
4
+ * API Version: 1.32.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.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.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.30.1
4
+ * API Version: 1.32.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.30.1
4
+ * API Version: 1.32.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -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.2" }, (_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.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
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.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/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.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
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.2
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)
@@ -6,6 +6,7 @@ All URIs are relative to *https://developers.hostinger.com*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createDigitalProductV1**](#createdigitalproductv1) | **POST** /api/ecommerce/v1/stores/{store_id}/products/digital | Create digital product|
8
8
  |[**createPhysicalProductV1**](#createphysicalproductv1) | **POST** /api/ecommerce/v1/stores/{store_id}/products/physical | Create physical product|
9
+ |[**uploadAndAttachAProductImageV1**](#uploadandattachaproductimagev1) | **POST** /api/ecommerce/v1/stores/{store_id}/products/{product_id}/images | Upload and attach a product image|
9
10
 
10
11
  # **createDigitalProductV1**
11
12
  > EcommerceV1ProductProductCreationResource createDigitalProductV1(ecommerceV1ProductCreateDigitalProductRequest)
@@ -123,3 +124,64 @@ const { status, data } = await apiInstance.createPhysicalProductV1(
123
124
 
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)
125
126
 
127
+ # **uploadAndAttachAProductImageV1**
128
+ > EcommerceV1ProductProductImageUploadResource uploadAndAttachAProductImageV1(ecommerceV1ProductUploadProductImageRequest)
129
+
130
+ Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
131
+
132
+ ### Example
133
+
134
+ ```typescript
135
+ import {
136
+ EcommerceProductsApi,
137
+ Configuration,
138
+ EcommerceV1ProductUploadProductImageRequest
139
+ } from 'hostinger-api-sdk';
140
+
141
+ const configuration = new Configuration();
142
+ const apiInstance = new EcommerceProductsApi(configuration);
143
+
144
+ let storeId: string; //The ID of the store the product belongs to. (default to undefined)
145
+ let productId: string; //The ID of the product to attach the image to. (default to undefined)
146
+ let ecommerceV1ProductUploadProductImageRequest: EcommerceV1ProductUploadProductImageRequest; //
147
+
148
+ const { status, data } = await apiInstance.uploadAndAttachAProductImageV1(
149
+ storeId,
150
+ productId,
151
+ ecommerceV1ProductUploadProductImageRequest
152
+ );
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ |Name | Type | Description | Notes|
158
+ |------------- | ------------- | ------------- | -------------|
159
+ | **ecommerceV1ProductUploadProductImageRequest** | **EcommerceV1ProductUploadProductImageRequest**| | |
160
+ | **storeId** | [**string**] | The ID of the store the product belongs to. | defaults to undefined|
161
+ | **productId** | [**string**] | The ID of the product to attach the image to. | defaults to undefined|
162
+
163
+
164
+ ### Return type
165
+
166
+ **EcommerceV1ProductProductImageUploadResource**
167
+
168
+ ### Authorization
169
+
170
+ [apiToken](../README.md#apiToken)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: application/json
175
+ - **Accept**: application/json
176
+
177
+
178
+ ### HTTP response details
179
+ | Status code | Description | Response headers |
180
+ |-------------|-------------|------------------|
181
+ |**200** | Success response | - |
182
+ |**422** | Validation error response | - |
183
+ |**401** | Unauthenticated response | - |
184
+ |**500** | Error response | - |
185
+
186
+ [[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)
187
+
@@ -0,0 +1,22 @@
1
+ # EcommerceV1ProductProductImageUploadResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **url** | **string** | CDN URL of the uploaded image. | [optional] [default to undefined]
9
+ **is_thumbnail** | **boolean** | Whether the image was set as the product\&#39;s thumbnail (primary image). | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceV1ProductProductImageUploadResource } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceV1ProductProductImageUploadResource = {
17
+ url,
18
+ is_thumbnail,
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
+ # EcommerceV1ProductUploadProductImageRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **image** | **string** | Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted. | [default to undefined]
9
+ **is_thumbnail** | **boolean** | When true, the image becomes the product\&#39;s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet. | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceV1ProductUploadProductImageRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceV1ProductUploadProductImageRequest = {
17
+ image,
18
+ is_thumbnail,
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)