@hostinger/sdk 1.52.0 → 1.52.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.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.52.0
7
+ * API Version: 1.52.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
@@ -0,0 +1,297 @@
1
+ # HostingGitApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
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|
9
+ |[**listGitInstallationRepositoriesV1**](#listgitinstallationrepositoriesv1) | **GET** /api/hosting/v1/git/installations/{uuid}/repositories | List Git installation repositories|
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)
124
+
125
+ # **listGitInstallationRepositoriesV1**
126
+ > Array<HostingV1GitGitRepositoryResource> listGitInstallationRepositoriesV1()
127
+
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).
129
+
130
+ ### Example
131
+
132
+ ```typescript
133
+ import {
134
+ HostingGitApi,
135
+ Configuration
136
+ } from '@hostinger/sdk';
137
+
138
+ const configuration = new Configuration();
139
+ const apiInstance = new HostingGitApi(configuration);
140
+
141
+ let uuid: string; //Git installation UUID from the List Git installations endpoint (default to undefined)
142
+
143
+ const { status, data } = await apiInstance.listGitInstallationRepositoriesV1(
144
+ uuid
145
+ );
146
+ ```
147
+
148
+ ### Parameters
149
+
150
+ |Name | Type | Description | Notes|
151
+ |------------- | ------------- | ------------- | -------------|
152
+ | **uuid** | [**string**] | Git installation UUID from the List Git installations endpoint | defaults to undefined|
153
+
154
+
155
+ ### Return type
156
+
157
+ **Array<HostingV1GitGitRepositoryResource>**
158
+
159
+ ### Authorization
160
+
161
+ [apiToken](../README.md#apiToken)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json
167
+
168
+
169
+ ### HTTP response details
170
+ | Status code | Description | Response headers |
171
+ |-------------|-------------|------------------|
172
+ |**200** | Success response | - |
173
+ |**404** | Error response | - |
174
+ |**429** | Error response | - |
175
+ |**401** | Unauthenticated response | - |
176
+ |**500** | Error response | - |
177
+
178
+ [[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)
179
+
180
+ # **listGitInstallationsV1**
181
+ > Array<HostingV1GitGitInstallationResource> listGitInstallationsV1()
182
+
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`.
184
+
185
+ ### Example
186
+
187
+ ```typescript
188
+ import {
189
+ HostingGitApi,
190
+ Configuration
191
+ } from '@hostinger/sdk';
192
+
193
+ const configuration = new Configuration();
194
+ const apiInstance = new HostingGitApi(configuration);
195
+
196
+ let provider: 'github' | 'gitlab' | 'bitbucket'; //Filter by Git provider (optional) (default to undefined)
197
+ let status: 'pending' | 'active' | 'suspended'; //Filter by installation status (optional) (default to 'active')
198
+
199
+ const { status, data } = await apiInstance.listGitInstallationsV1(
200
+ provider,
201
+ status
202
+ );
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ |Name | Type | Description | Notes|
208
+ |------------- | ------------- | ------------- | -------------|
209
+ | **provider** | [**&#39;github&#39; | &#39;gitlab&#39; | &#39;bitbucket&#39;**]**Array<&#39;github&#39; &#124; &#39;gitlab&#39; &#124; &#39;bitbucket&#39;>** | Filter by Git provider | (optional) defaults to undefined|
210
+ | **status** | [**&#39;pending&#39; | &#39;active&#39; | &#39;suspended&#39;**]**Array<&#39;pending&#39; &#124; &#39;active&#39; &#124; &#39;suspended&#39;>** | Filter by installation status | (optional) defaults to 'active'|
211
+
212
+
213
+ ### Return type
214
+
215
+ **Array<HostingV1GitGitInstallationResource>**
216
+
217
+ ### Authorization
218
+
219
+ [apiToken](../README.md#apiToken)
220
+
221
+ ### HTTP request headers
222
+
223
+ - **Content-Type**: Not defined
224
+ - **Accept**: application/json
225
+
226
+
227
+ ### HTTP response details
228
+ | Status code | Description | Response headers |
229
+ |-------------|-------------|------------------|
230
+ |**200** | Success response | - |
231
+ |**422** | Validation error response | - |
232
+ |**401** | Unauthenticated response | - |
233
+ |**500** | Error response | - |
234
+
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)
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,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)
@@ -0,0 +1,36 @@
1
+ # HostingV1GitGitInstallationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | Installation identifier. Use it as the path parameter of List Git installation repositories. | [default to undefined]
9
+ **provider** | **string** | Git provider the account belongs to | [default to undefined]
10
+ **account_login** | **string** | Login of the connected provider account (user or organization) | [default to undefined]
11
+ **account_type** | **string** | Whether the connected account is a user or an organization | [default to undefined]
12
+ **account_avatar_url** | **string** | Avatar URL of the connected provider account | [default to undefined]
13
+ **status** | **string** | Installation status. Only active installations are listed unless the status filter says otherwise. | [default to undefined]
14
+ **installed_at** | **string** | When the provider app was installed on the account | [default to undefined]
15
+ **created_at** | **string** | When the installation record was created | [default to undefined]
16
+ **has_oauth** | **boolean** | True when the GitHub user account has a stored OAuth token whose refresh token is still valid, false when the token is missing or its refresh token expired. Null for organization accounts and for providers other than GitHub. | [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { HostingV1GitGitInstallationResource } from '@hostinger/sdk';
22
+
23
+ const instance: HostingV1GitGitInstallationResource = {
24
+ uuid,
25
+ provider,
26
+ account_login,
27
+ account_type,
28
+ account_avatar_url,
29
+ status,
30
+ installed_at,
31
+ created_at,
32
+ has_oauth,
33
+ };
34
+ ```
35
+
36
+ [[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,34 @@
1
+ # HostingV1GitGitRepositoryResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Repository identifier assigned by the Git provider | [default to undefined]
9
+ **name** | **string** | Repository name without the .git suffix | [default to undefined]
10
+ **full_name** | **string** | Owner and repository name joined with a slash | [default to undefined]
11
+ **owner** | **string** | Repository owner login | [default to undefined]
12
+ **is_private** | **boolean** | Whether the repository is private | [default to undefined]
13
+ **html_url** | **string** | Repository page URL | [default to undefined]
14
+ **clone_url** | **string** | HTTPS clone URL | [default to undefined]
15
+ **default_branch** | **string** | Default branch of the repository | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { HostingV1GitGitRepositoryResource } from '@hostinger/sdk';
21
+
22
+ const instance: HostingV1GitGitRepositoryResource = {
23
+ id,
24
+ name,
25
+ full_name,
26
+ owner,
27
+ is_private,
28
+ html_url,
29
+ clone_url,
30
+ default_branch,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,30 @@
1
+ # HostingV1GitUpdateGitAutoDeploymentSettingsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **installation_uuid** | **string** | Active Git installation from &#x60;List Git installations&#x60; | [default to undefined]
9
+ **owner** | **string** | Repository owner login, as returned by &#x60;List Git installation repositories&#x60;. 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 \&quot;archive\&quot; | [optional] [default to undefined]
10
+ **owner** | **string** | Repository owner login (present if source_type is \&quot;git\&quot;) | [default to undefined]
11
+ **repository** | **string** | Repository name without the .git suffix (present if source_type is \&quot;git\&quot;) | [default to undefined]
12
+ **branch** | **string** | Branch that was built (present if source_type is \&quot;git\&quot;) | [default to undefined]
13
+ **installation_uuid** | **string** | Git installation used to access the repository (present if source_type is \&quot;git\&quot;) | [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: &#x60;archive&#x60; (an uploaded archive on the website) or &#x60;git&#x60; (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 \&quot;archive\&quot;) | [optional] [default to undefined]
10
+ **owner** | **string** | Repository owner login (required if source is \&quot;git\&quot;). GitLab group paths use slashes. | [optional] [default to undefined]
11
+ **repository** | **string** | Repository name without the .git suffix (required if source is \&quot;git\&quot;) | [optional] [default to undefined]
12
+ **branch** | **string** | Branch to build (required if source is \&quot;git\&quot;) | [optional] [default to undefined]
13
+ **installation_uuid** | **string** | Git installation used to access the repository (required if source is \&quot;git\&quot;) | [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
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.52.0
6
+ * API Version: 1.52.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/sdk",
3
- "version": "1.52.0",
3
+ "version": "1.52.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {