hostinger-api-sdk 2.6.0 → 2.6.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/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.6.0
4
+ * API Version: 2.6.1
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: 2.6.0
7
+ * API Version: 2.6.1
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: 2.6.0
4
+ * API Version: 2.6.1
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
@@ -20,6 +20,12 @@ export declare const DUMMY_BASE_URL = "https://example.com";
20
20
  * @export
21
21
  */
22
22
  export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
23
+ /**
24
+ * Empty values and dot segments survive encoding and collapse or resolve away, which would change the endpoint.
25
+ * @throws {RequiredError}
26
+ * @export
27
+ */
28
+ export declare const encodePathParam: (paramName: string, paramValue: unknown) => string;
23
29
  /**
24
30
  *
25
31
  * @export
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.6.0
7
+ * API Version: 2.6.1
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
@@ -19,7 +19,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setBearerAuthToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
22
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setBearerAuthToObject = exports.encodePathParam = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
23
23
  const base_1 = require("./base");
24
24
  /**
25
25
  *
@@ -37,6 +37,19 @@ const assertParamExists = function (functionName, paramName, paramValue) {
37
37
  }
38
38
  };
39
39
  exports.assertParamExists = assertParamExists;
40
+ /**
41
+ * Empty values and dot segments survive encoding and collapse or resolve away, which would change the endpoint.
42
+ * @throws {RequiredError}
43
+ * @export
44
+ */
45
+ const encodePathParam = function (paramName, paramValue) {
46
+ const value = String(paramValue);
47
+ if (value === '' || value === '.' || value === '..') {
48
+ throw new base_1.RequiredError(paramName, `Invalid value for path parameter ${paramName}.`);
49
+ }
50
+ return encodeURIComponent(value);
51
+ };
52
+ exports.encodePathParam = encodePathParam;
40
53
  /**
41
54
  *
42
55
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.6.0
4
+ * API Version: 2.6.1
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: 2.6.0
7
+ * API Version: 2.6.1
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/2.6.0" }, (_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/2.6.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.6.0
4
+ * API Version: 2.6.1
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
@@ -26568,7 +26568,7 @@ export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1Stat
26568
26568
  */
26569
26569
  export declare const HostingHeadlessApiAxiosParamCreator: (configuration?: Configuration) => {
26570
26570
  /**
26571
- * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26571
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26572
26572
  * @summary Submit headless build report
26573
26573
  * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
26574
26574
  * @param {*} [options] Override http request option.
@@ -26582,7 +26582,7 @@ export declare const HostingHeadlessApiAxiosParamCreator: (configuration?: Confi
26582
26582
  */
26583
26583
  export declare const HostingHeadlessApiFp: (configuration?: Configuration) => {
26584
26584
  /**
26585
- * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26585
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26586
26586
  * @summary Submit headless build report
26587
26587
  * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
26588
26588
  * @param {*} [options] Override http request option.
@@ -26596,7 +26596,7 @@ export declare const HostingHeadlessApiFp: (configuration?: Configuration) => {
26596
26596
  */
26597
26597
  export declare const HostingHeadlessApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
26598
26598
  /**
26599
- * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26599
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26600
26600
  * @summary Submit headless build report
26601
26601
  * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
26602
26602
  * @param {*} [options] Override http request option.
@@ -26612,7 +26612,7 @@ export declare const HostingHeadlessApiFactory: (configuration?: Configuration,
26612
26612
  */
26613
26613
  export declare class HostingHeadlessApi extends BaseAPI {
26614
26614
  /**
26615
- * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26615
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
26616
26616
  * @summary Submit headless build report
26617
26617
  * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
26618
26618
  * @param {*} [options] Override http request option.