@hostinger/sdk 1.52.1 → 1.53.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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +891 -18
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +568 -16
  7. package/dist/api.js +621 -25
  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 +568 -16
  15. package/dist/esm/api.js +607 -15
  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/HostingGitApi.md +178 -2
  27. package/docs/HostingNodeJSApi.md +1 -1
  28. package/docs/HostingSSLApi.md +242 -0
  29. package/docs/HostingV1GitGitAutoDeploymentSettingsResource.md +31 -0
  30. package/docs/HostingV1GitGitCommitAuthorResource.md +22 -0
  31. package/docs/HostingV1GitGitCommitResource.md +24 -0
  32. package/docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md +30 -0
  33. package/docs/HostingV1NodeJsSourceOptionsResource.md +11 -0
  34. package/docs/HostingV1NodeJsStartBuildRequest.md +1 -1
  35. package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +9 -1
  36. package/docs/HostingV1SslSslStatusResource.md +30 -0
  37. package/docs/HostingV1SslToggleHttpsRedirectRequest.md +20 -0
  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.52.1
4
+ * API Version: 1.53.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.52.1
6
+ * API Version: 1.53.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.52.1
4
+ * API Version: 1.53.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.52.1
6
+ * API Version: 1.53.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.52.1
4
+ * API Version: 1.53.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.52.1
6
+ * API Version: 1.53.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.52.1" }, (_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.53.0" }, (_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.52.1
4
+ * API Version: 1.53.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.52.1
6
+ * API Version: 1.53.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.52.1
4
+ * API Version: 1.53.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.52.1
7
+ * API Version: 1.53.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
@@ -4,13 +4,128 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**deleteGitAutoDeploymentSettingsV1**](#deletegitautodeploymentsettingsv1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Delete Git auto-deployment settings|
8
+ |[**getGitAutoDeploymentSettingsV1**](#getgitautodeploymentsettingsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Get Git auto-deployment settings|
7
9
  |[**listGitInstallationRepositoriesV1**](#listgitinstallationrepositoriesv1) | **GET** /api/hosting/v1/git/installations/{uuid}/repositories | List Git installation repositories|
8
10
  |[**listGitInstallationsV1**](#listgitinstallationsv1) | **GET** /api/hosting/v1/git/installations | List Git installations|
11
+ |[**updateGitAutoDeploymentSettingsV1**](#updategitautodeploymentsettingsv1) | **PUT** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Update Git auto-deployment settings|
12
+
13
+ # **deleteGitAutoDeploymentSettingsV1**
14
+ > CommonSuccessEmptyResource deleteGitAutoDeploymentSettingsV1()
15
+
16
+ Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ HostingGitApi,
23
+ Configuration
24
+ } from '@hostinger/sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new HostingGitApi(configuration);
28
+
29
+ let username: string; // (default to undefined)
30
+ let domain: string; //Domain name (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.deleteGitAutoDeploymentSettingsV1(
33
+ username,
34
+ domain
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **username** | [**string**] | | defaults to undefined|
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 response | - |
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
+ # **getGitAutoDeploymentSettingsV1**
70
+ > HostingV1GitGitAutoDeploymentSettingsResource getGitAutoDeploymentSettingsV1()
71
+
72
+ Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ HostingGitApi,
79
+ Configuration
80
+ } from '@hostinger/sdk';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new HostingGitApi(configuration);
84
+
85
+ let username: string; // (default to undefined)
86
+ let domain: string; //Domain name (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.getGitAutoDeploymentSettingsV1(
89
+ username,
90
+ domain
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **username** | [**string**] | | defaults to undefined|
99
+ | **domain** | [**string**] | Domain name | defaults to undefined|
100
+
101
+
102
+ ### Return type
103
+
104
+ **HostingV1GitGitAutoDeploymentSettingsResource**
105
+
106
+ ### Authorization
107
+
108
+ [apiToken](../README.md#apiToken)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: Not defined
113
+ - **Accept**: application/json
114
+
115
+
116
+ ### HTTP response details
117
+ | Status code | Description | Response headers |
118
+ |-------------|-------------|------------------|
119
+ |**200** | Success response | - |
120
+ |**401** | Unauthenticated response | - |
121
+ |**500** | Error response | - |
122
+
123
+ [[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)
9
124
 
10
125
  # **listGitInstallationRepositoriesV1**
11
126
  > Array<HostingV1GitGitRepositoryResource> listGitInstallationRepositoriesV1()
12
127
 
13
- Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
128
+ Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
14
129
 
15
130
  ### Example
16
131
 
@@ -65,7 +180,7 @@ const { status, data } = await apiInstance.listGitInstallationRepositoriesV1(
65
180
  # **listGitInstallationsV1**
66
181
  > Array<HostingV1GitGitInstallationResource> listGitInstallationsV1()
67
182
 
68
- Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
183
+ Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
69
184
 
70
185
  ### Example
71
186
 
@@ -119,3 +234,64 @@ const { status, data } = await apiInstance.listGitInstallationsV1(
119
234
 
120
235
  [[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
236
 
237
+ # **updateGitAutoDeploymentSettingsV1**
238
+ > CommonSuccessEmptyResource updateGitAutoDeploymentSettingsV1(hostingV1GitUpdateGitAutoDeploymentSettingsRequest)
239
+
240
+ Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
241
+
242
+ ### Example
243
+
244
+ ```typescript
245
+ import {
246
+ HostingGitApi,
247
+ Configuration,
248
+ HostingV1GitUpdateGitAutoDeploymentSettingsRequest
249
+ } from '@hostinger/sdk';
250
+
251
+ const configuration = new Configuration();
252
+ const apiInstance = new HostingGitApi(configuration);
253
+
254
+ let username: string; // (default to undefined)
255
+ let domain: string; //Domain name (default to undefined)
256
+ let hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest; //
257
+
258
+ const { status, data } = await apiInstance.updateGitAutoDeploymentSettingsV1(
259
+ username,
260
+ domain,
261
+ hostingV1GitUpdateGitAutoDeploymentSettingsRequest
262
+ );
263
+ ```
264
+
265
+ ### Parameters
266
+
267
+ |Name | Type | Description | Notes|
268
+ |------------- | ------------- | ------------- | -------------|
269
+ | **hostingV1GitUpdateGitAutoDeploymentSettingsRequest** | **HostingV1GitUpdateGitAutoDeploymentSettingsRequest**| | |
270
+ | **username** | [**string**] | | defaults to undefined|
271
+ | **domain** | [**string**] | Domain name | defaults to undefined|
272
+
273
+
274
+ ### Return type
275
+
276
+ **CommonSuccessEmptyResource**
277
+
278
+ ### Authorization
279
+
280
+ [apiToken](../README.md#apiToken)
281
+
282
+ ### HTTP request headers
283
+
284
+ - **Content-Type**: application/json
285
+ - **Accept**: application/json
286
+
287
+
288
+ ### HTTP response details
289
+ | Status code | Description | Response headers |
290
+ |-------------|-------------|------------------|
291
+ |**200** | Success empty response | - |
292
+ |**422** | Validation error response | - |
293
+ |**401** | Unauthenticated response | - |
294
+ |**500** | Error response | - |
295
+
296
+ [[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)
297
+
@@ -804,7 +804,7 @@ const { status, data } = await apiInstance.restartNodeJsApplicationV1(
804
804
  # **startNodeJsBuildV1**
805
805
  > HostingV1NodeJsBuildResource startNodeJsBuildV1(hostingV1NodeJsStartBuildRequest)
806
806
 
807
- Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
807
+ Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
808
808
 
809
809
  ### Example
810
810
 
@@ -0,0 +1,242 @@
1
+ # HostingSSLApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getSSLStatusV1**](#getsslstatusv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/ssl/status | Get SSL status|
8
+ |[**installSSLV1**](#installsslv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/ssl/setup | Install SSL|
9
+ |[**toggleHTTPSRedirectV1**](#togglehttpsredirectv1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/ssl/https-redirect/toggle | Toggle HTTPS redirect|
10
+ |[**uninstallSSLV1**](#uninstallsslv1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/ssl | Uninstall SSL|
11
+
12
+ # **getSSLStatusV1**
13
+ > HostingV1SslSslStatusResource getSSLStatusV1()
14
+
15
+ Returns the SSL state of the website: the certificate `status` and `provider`, whether the certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to HTTPS, when the certificate stops being valid and the last installation error. `installing` and `waiting_for_retry` mean an installation is in progress. `failed` means the last installation gave up, or the website was not updated for 60 minutes while `installing`; `last_error` holds the reason when it is a known message, otherwise it is null. `expired` means the assigned certificate\'s validity has ended. `not_installed` means no certificate is assigned. Free subdomains use a platform-managed certificate: with no installation recorded they report `active` with `provider` and `expires_at` null.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ HostingSSLApi,
22
+ Configuration
23
+ } from '@hostinger/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new HostingSSLApi(configuration);
27
+
28
+ let username: string; // (default to undefined)
29
+ let domain: string; //Domain name (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.getSSLStatusV1(
32
+ username,
33
+ domain
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **username** | [**string**] | | defaults to undefined|
42
+ | **domain** | [**string**] | Domain name | defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **HostingV1SslSslStatusResource**
48
+
49
+ ### Authorization
50
+
51
+ [apiToken](../README.md#apiToken)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**200** | Success response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**500** | Error response | - |
65
+
66
+ [[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)
67
+
68
+ # **installSSLV1**
69
+ > CommonSuccessEmptyResource installSSLV1()
70
+
71
+ Requests a lifetime SSL certificate for the website. The installation runs in the background; `Get SSL status` reports `active` or `failed` when it ends. An `active` lifetime certificate does not block the request: a new installation is requested, which is how a certificate is reinstalled. Returns 422 for free subdomains (their certificate is managed by the platform), while an installation is `installing` or `waiting_for_retry`, when the website\'s certificate was revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that one has to be uninstalled first.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ HostingSSLApi,
78
+ Configuration
79
+ } from '@hostinger/sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new HostingSSLApi(configuration);
83
+
84
+ let username: string; // (default to undefined)
85
+ let domain: string; //Domain name (default to undefined)
86
+
87
+ const { status, data } = await apiInstance.installSSLV1(
88
+ username,
89
+ domain
90
+ );
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ |Name | Type | Description | Notes|
96
+ |------------- | ------------- | ------------- | -------------|
97
+ | **username** | [**string**] | | defaults to undefined|
98
+ | **domain** | [**string**] | Domain name | defaults to undefined|
99
+
100
+
101
+ ### Return type
102
+
103
+ **CommonSuccessEmptyResource**
104
+
105
+ ### Authorization
106
+
107
+ [apiToken](../README.md#apiToken)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | Success empty response | - |
119
+ |**422** | Validation error response | - |
120
+ |**401** | Unauthenticated response | - |
121
+ |**500** | Error response | - |
122
+
123
+ [[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)
124
+
125
+ # **toggleHTTPSRedirectV1**
126
+ > CommonSuccessEmptyResource toggleHTTPSRedirectV1(hostingV1SslToggleHttpsRedirectRequest)
127
+
128
+ Turns the HTTP to HTTPS redirect of the website on or off, based on `is_enabled`. Does nothing when the redirect is already in the requested state. Turning it on requires an installed certificate (`status` `active` or `expired` on `Get SSL status`) and returns 422 when there is none; turning it off is always accepted.
129
+
130
+ ### Example
131
+
132
+ ```typescript
133
+ import {
134
+ HostingSSLApi,
135
+ Configuration,
136
+ HostingV1SslToggleHttpsRedirectRequest
137
+ } from '@hostinger/sdk';
138
+
139
+ const configuration = new Configuration();
140
+ const apiInstance = new HostingSSLApi(configuration);
141
+
142
+ let username: string; // (default to undefined)
143
+ let domain: string; //Domain name (default to undefined)
144
+ let hostingV1SslToggleHttpsRedirectRequest: HostingV1SslToggleHttpsRedirectRequest; //
145
+
146
+ const { status, data } = await apiInstance.toggleHTTPSRedirectV1(
147
+ username,
148
+ domain,
149
+ hostingV1SslToggleHttpsRedirectRequest
150
+ );
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ |Name | Type | Description | Notes|
156
+ |------------- | ------------- | ------------- | -------------|
157
+ | **hostingV1SslToggleHttpsRedirectRequest** | **HostingV1SslToggleHttpsRedirectRequest**| | |
158
+ | **username** | [**string**] | | defaults to undefined|
159
+ | **domain** | [**string**] | Domain name | defaults to undefined|
160
+
161
+
162
+ ### Return type
163
+
164
+ **CommonSuccessEmptyResource**
165
+
166
+ ### Authorization
167
+
168
+ [apiToken](../README.md#apiToken)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: application/json
173
+ - **Accept**: application/json
174
+
175
+
176
+ ### HTTP response details
177
+ | Status code | Description | Response headers |
178
+ |-------------|-------------|------------------|
179
+ |**200** | Success empty response | - |
180
+ |**422** | Validation error response | - |
181
+ |**401** | Unauthenticated response | - |
182
+ |**500** | Error response | - |
183
+
184
+ [[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)
185
+
186
+ # **uninstallSSLV1**
187
+ > CommonSuccessEmptyResource uninstallSSLV1()
188
+
189
+ Removes the SSL certificate assigned to the website, turns the HTTPS redirect off and cancels a pending installation retry. The website serves plain HTTP until a new installation completes. `Get SSL status` reports `not_installed` as soon as the call returns; the call also succeeds when no certificate is assigned, so repeating it is safe. Returns 422 for free subdomains (their certificate is managed by the platform) and while an installation is `installing`.
190
+
191
+ ### Example
192
+
193
+ ```typescript
194
+ import {
195
+ HostingSSLApi,
196
+ Configuration
197
+ } from '@hostinger/sdk';
198
+
199
+ const configuration = new Configuration();
200
+ const apiInstance = new HostingSSLApi(configuration);
201
+
202
+ let username: string; // (default to undefined)
203
+ let domain: string; //Domain name (default to undefined)
204
+
205
+ const { status, data } = await apiInstance.uninstallSSLV1(
206
+ username,
207
+ domain
208
+ );
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ |Name | Type | Description | Notes|
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **username** | [**string**] | | defaults to undefined|
216
+ | **domain** | [**string**] | Domain name | defaults to undefined|
217
+
218
+
219
+ ### Return type
220
+
221
+ **CommonSuccessEmptyResource**
222
+
223
+ ### Authorization
224
+
225
+ [apiToken](../README.md#apiToken)
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: Not defined
230
+ - **Accept**: application/json
231
+
232
+
233
+ ### HTTP response details
234
+ | Status code | Description | Response headers |
235
+ |-------------|-------------|------------------|
236
+ |**200** | Success empty response | - |
237
+ |**422** | Validation error response | - |
238
+ |**401** | Unauthenticated response | - |
239
+ |**500** | Error response | - |
240
+
241
+ [[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)
242
+
@@ -0,0 +1,31 @@
1
+ # HostingV1GitGitAutoDeploymentSettingsResource
2
+
3
+ Every field is null when the website has no Git auto-deployment configured.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **installation_uuid** | **string** | Git installation the repository is accessed through | [default to undefined]
10
+ **is_enabled** | **boolean** | Whether pushes to the branch deploy automatically | [default to undefined]
11
+ **owner** | **string** | Repository owner login | [default to undefined]
12
+ **repository** | **string** | Repository name | [default to undefined]
13
+ **branch** | **string** | Branch that is deployed | [default to undefined]
14
+ **directory** | **string** | Subdirectory under the website document root the repository deploys into. Empty means the document root. | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { HostingV1GitGitAutoDeploymentSettingsResource } from '@hostinger/sdk';
20
+
21
+ const instance: HostingV1GitGitAutoDeploymentSettingsResource = {
22
+ installation_uuid,
23
+ is_enabled,
24
+ owner,
25
+ repository,
26
+ branch,
27
+ directory,
28
+ };
29
+ ```
30
+
31
+ [[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
+ # HostingV1GitGitCommitAuthorResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Author name as recorded in the commit | [default to undefined]
9
+ **avatar_url** | **string** | Avatar URL of the author on the Git provider | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { HostingV1GitGitCommitAuthorResource } from '@hostinger/sdk';
15
+
16
+ const instance: HostingV1GitGitCommitAuthorResource = {
17
+ name,
18
+ avatar_url,
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,24 @@
1
+ # HostingV1GitGitCommitResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **hash** | **string** | Full commit SHA | [default to undefined]
9
+ **message** | **string** | Commit message | [default to undefined]
10
+ **author** | [**HostingV1GitGitCommitAuthorResource**](HostingV1GitGitCommitAuthorResource.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HostingV1GitGitCommitResource } from '@hostinger/sdk';
16
+
17
+ const instance: HostingV1GitGitCommitResource = {
18
+ hash,
19
+ message,
20
+ author,
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)