@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
@@ -0,0 +1,30 @@
1
+ # HostingV1GitUpdateGitAutoDeploymentSettingsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **installation_uuid** | **string** | Active Git installation from `List Git installations` | [default to undefined]
9
+ **owner** | **string** | Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes. | [default to undefined]
10
+ **repository** | **string** | Repository name without the .git suffix | [default to undefined]
11
+ **branch** | **string** | Branch to deploy | [default to undefined]
12
+ **directory** | **string** | Subdirectory under the website document root to deploy into. Empty, null or omitted means the document root. | [optional] [default to '']
13
+ **is_enabled** | **boolean** | Whether pushes to the branch deploy automatically | [optional] [default to true]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { HostingV1GitUpdateGitAutoDeploymentSettingsRequest } from '@hostinger/sdk';
19
+
20
+ const instance: HostingV1GitUpdateGitAutoDeploymentSettingsRequest = {
21
+ installation_uuid,
22
+ owner,
23
+ repository,
24
+ branch,
25
+ directory,
26
+ is_enabled,
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)
@@ -1,11 +1,17 @@
1
1
  # HostingV1NodeJsSourceOptionsResource
2
2
 
3
+ Which keys carry values depends on the parent source_type; the others are null.
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
9
  **archive_path** | **string** | Present if sourceType is \"archive\" | [optional] [default to undefined]
10
+ **owner** | **string** | Repository owner login (present if source_type is \"git\") | [default to undefined]
11
+ **repository** | **string** | Repository name without the .git suffix (present if source_type is \"git\") | [default to undefined]
12
+ **branch** | **string** | Branch that was built (present if source_type is \"git\") | [default to undefined]
13
+ **installation_uuid** | **string** | Git installation used to access the repository (present if source_type is \"git\") | [default to undefined]
14
+ **commit** | [**HostingV1GitGitCommitResource**](HostingV1GitGitCommitResource.md) | | [default to undefined]
9
15
 
10
16
  ## Example
11
17
 
@@ -14,6 +20,11 @@ import { HostingV1NodeJsSourceOptionsResource } from '@hostinger/sdk';
14
20
 
15
21
  const instance: HostingV1NodeJsSourceOptionsResource = {
16
22
  archive_path,
23
+ owner,
24
+ repository,
25
+ branch,
26
+ installation_uuid,
27
+ commit,
17
28
  };
18
29
  ```
19
30
 
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **build_script** | **string** | Build script that will be ran to build the application | [default to undefined]
13
13
  **entry_file** | **string** | The main entry point file for the application | [optional] [default to undefined]
14
14
  **package_manager** | **string** | Package manager | [optional] [default to undefined]
15
- **source_type** | **string** | The source type of the files | [default to undefined]
15
+ **source_type** | **string** | Where the files come from: `archive` (an uploaded archive on the website) or `git` (a branch of a repository reachable through a Git installation). | [default to undefined]
16
16
  **source_options** | [**HostingV1NodeJsStartBuildRequestSourceOptions**](HostingV1NodeJsStartBuildRequestSourceOptions.md) | | [default to undefined]
17
17
 
18
18
  ## Example
@@ -1,12 +1,16 @@
1
1
  # HostingV1NodeJsStartBuildRequestSourceOptions
2
2
 
3
- Source-specific options
3
+ Source-specific options. For `archive` send `archive_path`. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **archive_path** | **string** | The path to the archive file relative to the document root of the vhost (required if source is \"archive\") | [optional] [default to undefined]
10
+ **owner** | **string** | Repository owner login (required if source is \"git\"). GitLab group paths use slashes. | [optional] [default to undefined]
11
+ **repository** | **string** | Repository name without the .git suffix (required if source is \"git\") | [optional] [default to undefined]
12
+ **branch** | **string** | Branch to build (required if source is \"git\") | [optional] [default to undefined]
13
+ **installation_uuid** | **string** | Git installation used to access the repository (required if source is \"git\") | [optional] [default to undefined]
10
14
 
11
15
  ## Example
12
16
 
@@ -15,6 +19,10 @@ import { HostingV1NodeJsStartBuildRequestSourceOptions } from '@hostinger/sdk';
15
19
 
16
20
  const instance: HostingV1NodeJsStartBuildRequestSourceOptions = {
17
21
  archive_path,
22
+ owner,
23
+ repository,
24
+ branch,
25
+ installation_uuid,
18
26
  };
19
27
  ```
20
28
 
@@ -0,0 +1,30 @@
1
+ # HostingV1SslSslStatusResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | Current certificate status | [default to undefined]
9
+ **provider** | **string** | Provider of the assigned certificate, or of the last recorded installation when none is assigned. `custom` means an uploaded certificate. Null when no certificate is assigned and no installation is recorded, which is also the case for free subdomains on the platform-managed certificate. | [default to undefined]
10
+ **is_lifetime** | **boolean** | Whether the certificate comes from a lifetime provider managed by the platform, not an uploaded one. Follows `provider`: it reflects the last recorded installation when no certificate is assigned, and is false when `provider` is null. | [default to undefined]
11
+ **is_https_redirect_enabled** | **boolean** | Whether HTTP requests to the website are redirected to HTTPS | [default to undefined]
12
+ **expires_at** | **string** | End of the assigned certificate validity period; null when no certificate details are available. | [default to undefined]
13
+ **last_error** | **string** | Last installation error, when it is one of the known displayable messages | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { HostingV1SslSslStatusResource } from '@hostinger/sdk';
19
+
20
+ const instance: HostingV1SslSslStatusResource = {
21
+ status,
22
+ provider,
23
+ is_lifetime,
24
+ is_https_redirect_enabled,
25
+ expires_at,
26
+ last_error,
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,20 @@
1
+ # HostingV1SslToggleHttpsRedirectRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **is_enabled** | **boolean** | Turn the HTTP to HTTPS redirect on (true) or off (false) for the website. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HostingV1SslToggleHttpsRedirectRequest } from '@hostinger/sdk';
14
+
15
+ const instance: HostingV1SslToggleHttpsRedirectRequest = {
16
+ is_enabled,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/sdk",
3
- "version": "1.52.1",
3
+ "version": "1.53.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {