@hostinger/sdk 1.52.1 → 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/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.52.1
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
@@ -363,7 +363,8 @@ exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
363
363
  Pnpm: 'pnpm'
364
364
  };
365
365
  exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
366
- Archive: 'archive'
366
+ Archive: 'archive',
367
+ Git: 'git'
367
368
  };
368
369
  exports.HostingV1NodeJsBuildResourceStateEnum = {
369
370
  Pending: 'pending',
@@ -462,7 +463,8 @@ exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
462
463
  Pnpm: 'pnpm'
463
464
  };
464
465
  exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
465
- Archive: 'archive'
466
+ Archive: 'archive',
467
+ Git: 'git'
466
468
  };
467
469
  exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = {
468
470
  CreateReactApp: 'create-react-app',
@@ -14484,7 +14486,79 @@ exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
14484
14486
  const HostingGitApiAxiosParamCreator = function (configuration) {
14485
14487
  return {
14486
14488
  /**
14487
- * 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).
14489
+ * 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.
14490
+ * @summary Delete Git auto-deployment settings
14491
+ * @param {string} username
14492
+ * @param {string} domain Domain name
14493
+ * @param {*} [options] Override http request option.
14494
+ * @throws {RequiredError}
14495
+ */
14496
+ deleteGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
14497
+ // verify required parameter 'username' is not null or undefined
14498
+ (0, common_1.assertParamExists)('deleteGitAutoDeploymentSettingsV1', 'username', username);
14499
+ // verify required parameter 'domain' is not null or undefined
14500
+ (0, common_1.assertParamExists)('deleteGitAutoDeploymentSettingsV1', 'domain', domain);
14501
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
14502
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14503
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
14504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14505
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14506
+ let baseOptions;
14507
+ if (configuration) {
14508
+ baseOptions = configuration.baseOptions;
14509
+ }
14510
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14511
+ const localVarHeaderParameter = {};
14512
+ const localVarQueryParameter = {};
14513
+ // authentication apiToken required
14514
+ // http bearer authentication required
14515
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14516
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14518
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14519
+ return {
14520
+ url: (0, common_1.toPathString)(localVarUrlObj),
14521
+ options: localVarRequestOptions,
14522
+ };
14523
+ }),
14524
+ /**
14525
+ * 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`.
14526
+ * @summary Get Git auto-deployment settings
14527
+ * @param {string} username
14528
+ * @param {string} domain Domain name
14529
+ * @param {*} [options] Override http request option.
14530
+ * @throws {RequiredError}
14531
+ */
14532
+ getGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
14533
+ // verify required parameter 'username' is not null or undefined
14534
+ (0, common_1.assertParamExists)('getGitAutoDeploymentSettingsV1', 'username', username);
14535
+ // verify required parameter 'domain' is not null or undefined
14536
+ (0, common_1.assertParamExists)('getGitAutoDeploymentSettingsV1', 'domain', domain);
14537
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
14538
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14539
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
14540
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14541
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14542
+ let baseOptions;
14543
+ if (configuration) {
14544
+ baseOptions = configuration.baseOptions;
14545
+ }
14546
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14547
+ const localVarHeaderParameter = {};
14548
+ const localVarQueryParameter = {};
14549
+ // authentication apiToken required
14550
+ // http bearer authentication required
14551
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14552
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14554
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14555
+ return {
14556
+ url: (0, common_1.toPathString)(localVarUrlObj),
14557
+ options: localVarRequestOptions,
14558
+ };
14559
+ }),
14560
+ /**
14561
+ * 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).
14488
14562
  * @summary List Git installation repositories
14489
14563
  * @param {string} uuid Git installation UUID from the List Git installations endpoint
14490
14564
  * @param {*} [options] Override http request option.
@@ -14516,7 +14590,7 @@ const HostingGitApiAxiosParamCreator = function (configuration) {
14516
14590
  };
14517
14591
  }),
14518
14592
  /**
14519
- * 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`.
14593
+ * 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`.
14520
14594
  * @summary List Git installations
14521
14595
  * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14522
14596
  * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
@@ -14551,6 +14625,47 @@ const HostingGitApiAxiosParamCreator = function (configuration) {
14551
14625
  options: localVarRequestOptions,
14552
14626
  };
14553
14627
  }),
14628
+ /**
14629
+ * 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.
14630
+ * @summary Update Git auto-deployment settings
14631
+ * @param {string} username
14632
+ * @param {string} domain Domain name
14633
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
14634
+ * @param {*} [options] Override http request option.
14635
+ * @throws {RequiredError}
14636
+ */
14637
+ updateGitAutoDeploymentSettingsV1: (username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options = {}) {
14638
+ // verify required parameter 'username' is not null or undefined
14639
+ (0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'username', username);
14640
+ // verify required parameter 'domain' is not null or undefined
14641
+ (0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'domain', domain);
14642
+ // verify required parameter 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest' is not null or undefined
14643
+ (0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest', hostingV1GitUpdateGitAutoDeploymentSettingsRequest);
14644
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
14645
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14646
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
14647
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14648
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14649
+ let baseOptions;
14650
+ if (configuration) {
14651
+ baseOptions = configuration.baseOptions;
14652
+ }
14653
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
14654
+ const localVarHeaderParameter = {};
14655
+ const localVarQueryParameter = {};
14656
+ // authentication apiToken required
14657
+ // http bearer authentication required
14658
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14659
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14660
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14661
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14662
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14663
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1GitUpdateGitAutoDeploymentSettingsRequest, localVarRequestOptions, configuration);
14664
+ return {
14665
+ url: (0, common_1.toPathString)(localVarUrlObj),
14666
+ options: localVarRequestOptions,
14667
+ };
14668
+ }),
14554
14669
  };
14555
14670
  };
14556
14671
  exports.HostingGitApiAxiosParamCreator = HostingGitApiAxiosParamCreator;
@@ -14562,7 +14677,39 @@ const HostingGitApiFp = function (configuration) {
14562
14677
  const localVarAxiosParamCreator = (0, exports.HostingGitApiAxiosParamCreator)(configuration);
14563
14678
  return {
14564
14679
  /**
14565
- * 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).
14680
+ * 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.
14681
+ * @summary Delete Git auto-deployment settings
14682
+ * @param {string} username
14683
+ * @param {string} domain Domain name
14684
+ * @param {*} [options] Override http request option.
14685
+ * @throws {RequiredError}
14686
+ */
14687
+ deleteGitAutoDeploymentSettingsV1(username, domain, options) {
14688
+ return __awaiter(this, void 0, void 0, function* () {
14689
+ var _a, _b;
14690
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGitAutoDeploymentSettingsV1(username, domain, options);
14691
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.deleteGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14692
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14693
+ });
14694
+ },
14695
+ /**
14696
+ * 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`.
14697
+ * @summary Get Git auto-deployment settings
14698
+ * @param {string} username
14699
+ * @param {string} domain Domain name
14700
+ * @param {*} [options] Override http request option.
14701
+ * @throws {RequiredError}
14702
+ */
14703
+ getGitAutoDeploymentSettingsV1(username, domain, options) {
14704
+ return __awaiter(this, void 0, void 0, function* () {
14705
+ var _a, _b;
14706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getGitAutoDeploymentSettingsV1(username, domain, options);
14707
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.getGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14708
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14709
+ });
14710
+ },
14711
+ /**
14712
+ * 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).
14566
14713
  * @summary List Git installation repositories
14567
14714
  * @param {string} uuid Git installation UUID from the List Git installations endpoint
14568
14715
  * @param {*} [options] Override http request option.
@@ -14577,7 +14724,7 @@ const HostingGitApiFp = function (configuration) {
14577
14724
  });
14578
14725
  },
14579
14726
  /**
14580
- * 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`.
14727
+ * 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`.
14581
14728
  * @summary List Git installations
14582
14729
  * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14583
14730
  * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
@@ -14592,6 +14739,23 @@ const HostingGitApiFp = function (configuration) {
14592
14739
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14593
14740
  });
14594
14741
  },
14742
+ /**
14743
+ * 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.
14744
+ * @summary Update Git auto-deployment settings
14745
+ * @param {string} username
14746
+ * @param {string} domain Domain name
14747
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
14748
+ * @param {*} [options] Override http request option.
14749
+ * @throws {RequiredError}
14750
+ */
14751
+ updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
14752
+ return __awaiter(this, void 0, void 0, function* () {
14753
+ var _a, _b;
14754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options);
14755
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.updateGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14756
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14757
+ });
14758
+ },
14595
14759
  };
14596
14760
  };
14597
14761
  exports.HostingGitApiFp = HostingGitApiFp;
@@ -14603,7 +14767,29 @@ const HostingGitApiFactory = function (configuration, basePath, axios) {
14603
14767
  const localVarFp = (0, exports.HostingGitApiFp)(configuration);
14604
14768
  return {
14605
14769
  /**
14606
- * 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).
14770
+ * 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.
14771
+ * @summary Delete Git auto-deployment settings
14772
+ * @param {string} username
14773
+ * @param {string} domain Domain name
14774
+ * @param {*} [options] Override http request option.
14775
+ * @throws {RequiredError}
14776
+ */
14777
+ deleteGitAutoDeploymentSettingsV1(username, domain, options) {
14778
+ return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
14779
+ },
14780
+ /**
14781
+ * 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`.
14782
+ * @summary Get Git auto-deployment settings
14783
+ * @param {string} username
14784
+ * @param {string} domain Domain name
14785
+ * @param {*} [options] Override http request option.
14786
+ * @throws {RequiredError}
14787
+ */
14788
+ getGitAutoDeploymentSettingsV1(username, domain, options) {
14789
+ return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
14790
+ },
14791
+ /**
14792
+ * 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).
14607
14793
  * @summary List Git installation repositories
14608
14794
  * @param {string} uuid Git installation UUID from the List Git installations endpoint
14609
14795
  * @param {*} [options] Override http request option.
@@ -14613,7 +14799,7 @@ const HostingGitApiFactory = function (configuration, basePath, axios) {
14613
14799
  return localVarFp.listGitInstallationRepositoriesV1(uuid, options).then((request) => request(axios, basePath));
14614
14800
  },
14615
14801
  /**
14616
- * 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`.
14802
+ * 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`.
14617
14803
  * @summary List Git installations
14618
14804
  * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14619
14805
  * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
@@ -14623,6 +14809,18 @@ const HostingGitApiFactory = function (configuration, basePath, axios) {
14623
14809
  listGitInstallationsV1(provider, status, options) {
14624
14810
  return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
14625
14811
  },
14812
+ /**
14813
+ * 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.
14814
+ * @summary Update Git auto-deployment settings
14815
+ * @param {string} username
14816
+ * @param {string} domain Domain name
14817
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
14818
+ * @param {*} [options] Override http request option.
14819
+ * @throws {RequiredError}
14820
+ */
14821
+ updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
14822
+ return localVarFp.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(axios, basePath));
14823
+ },
14626
14824
  };
14627
14825
  };
14628
14826
  exports.HostingGitApiFactory = HostingGitApiFactory;
@@ -14634,7 +14832,31 @@ exports.HostingGitApiFactory = HostingGitApiFactory;
14634
14832
  */
14635
14833
  class HostingGitApi extends base_1.BaseAPI {
14636
14834
  /**
14637
- * 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).
14835
+ * 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.
14836
+ * @summary Delete Git auto-deployment settings
14837
+ * @param {string} username
14838
+ * @param {string} domain Domain name
14839
+ * @param {*} [options] Override http request option.
14840
+ * @throws {RequiredError}
14841
+ * @memberof HostingGitApi
14842
+ */
14843
+ deleteGitAutoDeploymentSettingsV1(username, domain, options) {
14844
+ return (0, exports.HostingGitApiFp)(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
14845
+ }
14846
+ /**
14847
+ * 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`.
14848
+ * @summary Get Git auto-deployment settings
14849
+ * @param {string} username
14850
+ * @param {string} domain Domain name
14851
+ * @param {*} [options] Override http request option.
14852
+ * @throws {RequiredError}
14853
+ * @memberof HostingGitApi
14854
+ */
14855
+ getGitAutoDeploymentSettingsV1(username, domain, options) {
14856
+ return (0, exports.HostingGitApiFp)(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
14857
+ }
14858
+ /**
14859
+ * 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).
14638
14860
  * @summary List Git installation repositories
14639
14861
  * @param {string} uuid Git installation UUID from the List Git installations endpoint
14640
14862
  * @param {*} [options] Override http request option.
@@ -14645,7 +14867,7 @@ class HostingGitApi extends base_1.BaseAPI {
14645
14867
  return (0, exports.HostingGitApiFp)(this.configuration).listGitInstallationRepositoriesV1(uuid, options).then((request) => request(this.axios, this.basePath));
14646
14868
  }
14647
14869
  /**
14648
- * 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`.
14870
+ * 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`.
14649
14871
  * @summary List Git installations
14650
14872
  * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14651
14873
  * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
@@ -14656,6 +14878,19 @@ class HostingGitApi extends base_1.BaseAPI {
14656
14878
  listGitInstallationsV1(provider, status, options) {
14657
14879
  return (0, exports.HostingGitApiFp)(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
14658
14880
  }
14881
+ /**
14882
+ * 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.
14883
+ * @summary Update Git auto-deployment settings
14884
+ * @param {string} username
14885
+ * @param {string} domain Domain name
14886
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
14887
+ * @param {*} [options] Override http request option.
14888
+ * @throws {RequiredError}
14889
+ * @memberof HostingGitApi
14890
+ */
14891
+ updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
14892
+ return (0, exports.HostingGitApiFp)(this.configuration).updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(this.axios, this.basePath));
14893
+ }
14659
14894
  }
14660
14895
  exports.HostingGitApi = HostingGitApi;
14661
14896
  /**
@@ -15213,7 +15448,7 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
15213
15448
  };
15214
15449
  }),
15215
15450
  /**
15216
- * 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.
15451
+ * 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.
15217
15452
  * @summary Start Node.js build
15218
15453
  * @param {string} username
15219
15454
  * @param {string} domain Domain name
@@ -15528,7 +15763,7 @@ const HostingNodeJSApiFp = function (configuration) {
15528
15763
  });
15529
15764
  },
15530
15765
  /**
15531
- * 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.
15766
+ * 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.
15532
15767
  * @summary Start Node.js build
15533
15768
  * @param {string} username
15534
15769
  * @param {string} domain Domain name
@@ -15730,7 +15965,7 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
15730
15965
  return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
15731
15966
  },
15732
15967
  /**
15733
- * 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.
15968
+ * 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.
15734
15969
  * @summary Start Node.js build
15735
15970
  * @param {string} username
15736
15971
  * @param {string} domain Domain name
@@ -15935,7 +16170,7 @@ class HostingNodeJSApi extends base_1.BaseAPI {
15935
16170
  return (0, exports.HostingNodeJSApiFp)(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
15936
16171
  }
15937
16172
  /**
15938
- * 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.
16173
+ * 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.
15939
16174
  * @summary Start Node.js build
15940
16175
  * @param {string} username
15941
16176
  * @param {string} domain Domain name
package/dist/base.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.52.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/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.52.1
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
package/dist/common.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.52.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/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.52.1
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.52.1
4
+ * API Version: 1.52.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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.52.1
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
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- 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) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.52.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**