hostinger-api-sdk 2.14.1 → 2.14.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/README.md +2 -2
- package/api.ts +45 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +43 -9
- package/dist/api.js +29 -21
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +43 -9
- package/dist/esm/api.js +17 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingPocketBaseApi.md +2 -2
- package/docs/HostingV1PocketBaseBackendResource.md +4 -0
- package/docs/HostingV1PocketBaseInstanceResource.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@2.14.
|
|
1
|
+
## @hostinger/sdk@2.14.2
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@2.14.
|
|
8
|
+
npm install @hostinger/sdk@2.14.2 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.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
|
|
@@ -10440,6 +10440,18 @@ export interface HostingV1PocketBaseBackendResource {
|
|
|
10440
10440
|
* @memberof HostingV1PocketBaseBackendResource
|
|
10441
10441
|
*/
|
|
10442
10442
|
'state': HostingV1PocketBaseBackendResourceStateEnum | null;
|
|
10443
|
+
/**
|
|
10444
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10445
|
+
* @type {string}
|
|
10446
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10447
|
+
*/
|
|
10448
|
+
'failure_reason': HostingV1PocketBaseBackendResourceFailureReasonEnum | null;
|
|
10449
|
+
/**
|
|
10450
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10451
|
+
* @type {number}
|
|
10452
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10453
|
+
*/
|
|
10454
|
+
'retry_after_seconds': number | null;
|
|
10443
10455
|
/**
|
|
10444
10456
|
* PocketBase version
|
|
10445
10457
|
* @type {string}
|
|
@@ -10466,6 +10478,12 @@ export const HostingV1PocketBaseBackendResourceStateEnum = {
|
|
|
10466
10478
|
} as const;
|
|
10467
10479
|
|
|
10468
10480
|
export type HostingV1PocketBaseBackendResourceStateEnum = typeof HostingV1PocketBaseBackendResourceStateEnum[keyof typeof HostingV1PocketBaseBackendResourceStateEnum];
|
|
10481
|
+
export const HostingV1PocketBaseBackendResourceFailureReasonEnum = {
|
|
10482
|
+
ProcessLimit: 'process_limit',
|
|
10483
|
+
StartFailed: 'start_failed'
|
|
10484
|
+
} as const;
|
|
10485
|
+
|
|
10486
|
+
export type HostingV1PocketBaseBackendResourceFailureReasonEnum = typeof HostingV1PocketBaseBackendResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseBackendResourceFailureReasonEnum];
|
|
10469
10487
|
|
|
10470
10488
|
/**
|
|
10471
10489
|
*
|
|
@@ -10522,6 +10540,18 @@ export interface HostingV1PocketBaseInstanceResource {
|
|
|
10522
10540
|
* @memberof HostingV1PocketBaseInstanceResource
|
|
10523
10541
|
*/
|
|
10524
10542
|
'state': HostingV1PocketBaseInstanceResourceStateEnum | null;
|
|
10543
|
+
/**
|
|
10544
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10545
|
+
* @type {string}
|
|
10546
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10547
|
+
*/
|
|
10548
|
+
'failure_reason': HostingV1PocketBaseInstanceResourceFailureReasonEnum | null;
|
|
10549
|
+
/**
|
|
10550
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10551
|
+
* @type {number}
|
|
10552
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10553
|
+
*/
|
|
10554
|
+
'retry_after_seconds': number | null;
|
|
10525
10555
|
/**
|
|
10526
10556
|
* PocketBase version
|
|
10527
10557
|
* @type {string}
|
|
@@ -10548,6 +10578,12 @@ export const HostingV1PocketBaseInstanceResourceStateEnum = {
|
|
|
10548
10578
|
} as const;
|
|
10549
10579
|
|
|
10550
10580
|
export type HostingV1PocketBaseInstanceResourceStateEnum = typeof HostingV1PocketBaseInstanceResourceStateEnum[keyof typeof HostingV1PocketBaseInstanceResourceStateEnum];
|
|
10581
|
+
export const HostingV1PocketBaseInstanceResourceFailureReasonEnum = {
|
|
10582
|
+
ProcessLimit: 'process_limit',
|
|
10583
|
+
StartFailed: 'start_failed'
|
|
10584
|
+
} as const;
|
|
10585
|
+
|
|
10586
|
+
export type HostingV1PocketBaseInstanceResourceFailureReasonEnum = typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum];
|
|
10551
10587
|
|
|
10552
10588
|
/**
|
|
10553
10589
|
*
|
|
@@ -38655,7 +38691,7 @@ export const HostingPocketBaseApiAxiosParamCreator = function (configuration?: C
|
|
|
38655
38691
|
};
|
|
38656
38692
|
},
|
|
38657
38693
|
/**
|
|
38658
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
38694
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38659
38695
|
* @summary Get PocketBase backend
|
|
38660
38696
|
* @param {string} username
|
|
38661
38697
|
* @param {string} domain Domain name
|
|
@@ -38697,7 +38733,7 @@ export const HostingPocketBaseApiAxiosParamCreator = function (configuration?: C
|
|
|
38697
38733
|
};
|
|
38698
38734
|
},
|
|
38699
38735
|
/**
|
|
38700
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
38736
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38701
38737
|
* @summary List account PocketBase backends
|
|
38702
38738
|
* @param {string} username
|
|
38703
38739
|
* @param {*} [options] Override http request option.
|
|
@@ -38818,7 +38854,7 @@ export const HostingPocketBaseApiFp = function(configuration?: Configuration) {
|
|
|
38818
38854
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38819
38855
|
},
|
|
38820
38856
|
/**
|
|
38821
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
38857
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38822
38858
|
* @summary Get PocketBase backend
|
|
38823
38859
|
* @param {string} username
|
|
38824
38860
|
* @param {string} domain Domain name
|
|
@@ -38831,7 +38867,7 @@ export const HostingPocketBaseApiFp = function(configuration?: Configuration) {
|
|
|
38831
38867
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38832
38868
|
},
|
|
38833
38869
|
/**
|
|
38834
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
38870
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38835
38871
|
* @summary List account PocketBase backends
|
|
38836
38872
|
* @param {string} username
|
|
38837
38873
|
* @param {*} [options] Override http request option.
|
|
@@ -38890,7 +38926,7 @@ export const HostingPocketBaseApiFactory = function (configuration?: Configurati
|
|
|
38890
38926
|
return localVarFp.deletePocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
|
|
38891
38927
|
},
|
|
38892
38928
|
/**
|
|
38893
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
38929
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38894
38930
|
* @summary Get PocketBase backend
|
|
38895
38931
|
* @param {string} username
|
|
38896
38932
|
* @param {string} domain Domain name
|
|
@@ -38901,7 +38937,7 @@ export const HostingPocketBaseApiFactory = function (configuration?: Configurati
|
|
|
38901
38937
|
return localVarFp.getPocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
|
|
38902
38938
|
},
|
|
38903
38939
|
/**
|
|
38904
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
38940
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38905
38941
|
* @summary List account PocketBase backends
|
|
38906
38942
|
* @param {string} username
|
|
38907
38943
|
* @param {*} [options] Override http request option.
|
|
@@ -38960,7 +38996,7 @@ export class HostingPocketBaseApi extends BaseAPI {
|
|
|
38960
38996
|
}
|
|
38961
38997
|
|
|
38962
38998
|
/**
|
|
38963
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
38999
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38964
39000
|
* @summary Get PocketBase backend
|
|
38965
39001
|
* @param {string} username
|
|
38966
39002
|
* @param {string} domain Domain name
|
|
@@ -38973,7 +39009,7 @@ export class HostingPocketBaseApi extends BaseAPI {
|
|
|
38973
39009
|
}
|
|
38974
39010
|
|
|
38975
39011
|
/**
|
|
38976
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
39012
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
38977
39013
|
* @summary List account PocketBase backends
|
|
38978
39014
|
* @param {string} username
|
|
38979
39015
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/2.14.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/2.14.2",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.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
|
|
@@ -10223,6 +10223,18 @@ export interface HostingV1PocketBaseBackendResource {
|
|
|
10223
10223
|
* @memberof HostingV1PocketBaseBackendResource
|
|
10224
10224
|
*/
|
|
10225
10225
|
'state': HostingV1PocketBaseBackendResourceStateEnum | null;
|
|
10226
|
+
/**
|
|
10227
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10228
|
+
* @type {string}
|
|
10229
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10230
|
+
*/
|
|
10231
|
+
'failure_reason': HostingV1PocketBaseBackendResourceFailureReasonEnum | null;
|
|
10232
|
+
/**
|
|
10233
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10234
|
+
* @type {number}
|
|
10235
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10236
|
+
*/
|
|
10237
|
+
'retry_after_seconds': number | null;
|
|
10226
10238
|
/**
|
|
10227
10239
|
* PocketBase version
|
|
10228
10240
|
* @type {string}
|
|
@@ -10247,6 +10259,11 @@ export declare const HostingV1PocketBaseBackendResourceStateEnum: {
|
|
|
10247
10259
|
readonly Missing: "missing";
|
|
10248
10260
|
};
|
|
10249
10261
|
export type HostingV1PocketBaseBackendResourceStateEnum = typeof HostingV1PocketBaseBackendResourceStateEnum[keyof typeof HostingV1PocketBaseBackendResourceStateEnum];
|
|
10262
|
+
export declare const HostingV1PocketBaseBackendResourceFailureReasonEnum: {
|
|
10263
|
+
readonly ProcessLimit: "process_limit";
|
|
10264
|
+
readonly StartFailed: "start_failed";
|
|
10265
|
+
};
|
|
10266
|
+
export type HostingV1PocketBaseBackendResourceFailureReasonEnum = typeof HostingV1PocketBaseBackendResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseBackendResourceFailureReasonEnum];
|
|
10250
10267
|
/**
|
|
10251
10268
|
*
|
|
10252
10269
|
* @export
|
|
@@ -10302,6 +10319,18 @@ export interface HostingV1PocketBaseInstanceResource {
|
|
|
10302
10319
|
* @memberof HostingV1PocketBaseInstanceResource
|
|
10303
10320
|
*/
|
|
10304
10321
|
'state': HostingV1PocketBaseInstanceResourceStateEnum | null;
|
|
10322
|
+
/**
|
|
10323
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10324
|
+
* @type {string}
|
|
10325
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10326
|
+
*/
|
|
10327
|
+
'failure_reason': HostingV1PocketBaseInstanceResourceFailureReasonEnum | null;
|
|
10328
|
+
/**
|
|
10329
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10330
|
+
* @type {number}
|
|
10331
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10332
|
+
*/
|
|
10333
|
+
'retry_after_seconds': number | null;
|
|
10305
10334
|
/**
|
|
10306
10335
|
* PocketBase version
|
|
10307
10336
|
* @type {string}
|
|
@@ -10326,6 +10355,11 @@ export declare const HostingV1PocketBaseInstanceResourceStateEnum: {
|
|
|
10326
10355
|
readonly Missing: "missing";
|
|
10327
10356
|
};
|
|
10328
10357
|
export type HostingV1PocketBaseInstanceResourceStateEnum = typeof HostingV1PocketBaseInstanceResourceStateEnum[keyof typeof HostingV1PocketBaseInstanceResourceStateEnum];
|
|
10358
|
+
export declare const HostingV1PocketBaseInstanceResourceFailureReasonEnum: {
|
|
10359
|
+
readonly ProcessLimit: "process_limit";
|
|
10360
|
+
readonly StartFailed: "start_failed";
|
|
10361
|
+
};
|
|
10362
|
+
export type HostingV1PocketBaseInstanceResourceFailureReasonEnum = typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum];
|
|
10329
10363
|
/**
|
|
10330
10364
|
*
|
|
10331
10365
|
* @export
|
|
@@ -28538,7 +28572,7 @@ export declare const HostingPocketBaseApiAxiosParamCreator: (configuration?: Con
|
|
|
28538
28572
|
*/
|
|
28539
28573
|
deletePocketBaseBackendV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28540
28574
|
/**
|
|
28541
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
28575
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28542
28576
|
* @summary Get PocketBase backend
|
|
28543
28577
|
* @param {string} username
|
|
28544
28578
|
* @param {string} domain Domain name
|
|
@@ -28547,7 +28581,7 @@ export declare const HostingPocketBaseApiAxiosParamCreator: (configuration?: Con
|
|
|
28547
28581
|
*/
|
|
28548
28582
|
getPocketBaseBackendV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28549
28583
|
/**
|
|
28550
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
28584
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28551
28585
|
* @summary List account PocketBase backends
|
|
28552
28586
|
* @param {string} username
|
|
28553
28587
|
* @param {*} [options] Override http request option.
|
|
@@ -28590,7 +28624,7 @@ export declare const HostingPocketBaseApiFp: (configuration?: Configuration) =>
|
|
|
28590
28624
|
*/
|
|
28591
28625
|
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
28592
28626
|
/**
|
|
28593
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
28627
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28594
28628
|
* @summary Get PocketBase backend
|
|
28595
28629
|
* @param {string} username
|
|
28596
28630
|
* @param {string} domain Domain name
|
|
@@ -28599,7 +28633,7 @@ export declare const HostingPocketBaseApiFp: (configuration?: Configuration) =>
|
|
|
28599
28633
|
*/
|
|
28600
28634
|
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PocketBaseBackendResource>>;
|
|
28601
28635
|
/**
|
|
28602
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
28636
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28603
28637
|
* @summary List account PocketBase backends
|
|
28604
28638
|
* @param {string} username
|
|
28605
28639
|
* @param {*} [options] Override http request option.
|
|
@@ -28642,7 +28676,7 @@ export declare const HostingPocketBaseApiFactory: (configuration?: Configuration
|
|
|
28642
28676
|
*/
|
|
28643
28677
|
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
28644
28678
|
/**
|
|
28645
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
28679
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28646
28680
|
* @summary Get PocketBase backend
|
|
28647
28681
|
* @param {string} username
|
|
28648
28682
|
* @param {string} domain Domain name
|
|
@@ -28651,7 +28685,7 @@ export declare const HostingPocketBaseApiFactory: (configuration?: Configuration
|
|
|
28651
28685
|
*/
|
|
28652
28686
|
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PocketBaseBackendResource>;
|
|
28653
28687
|
/**
|
|
28654
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
28688
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28655
28689
|
* @summary List account PocketBase backends
|
|
28656
28690
|
* @param {string} username
|
|
28657
28691
|
* @param {*} [options] Override http request option.
|
|
@@ -28698,7 +28732,7 @@ export declare class HostingPocketBaseApi extends BaseAPI {
|
|
|
28698
28732
|
*/
|
|
28699
28733
|
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
28700
28734
|
/**
|
|
28701
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
28735
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28702
28736
|
* @summary Get PocketBase backend
|
|
28703
28737
|
* @param {string} username
|
|
28704
28738
|
* @param {string} domain Domain name
|
|
@@ -28708,7 +28742,7 @@ export declare class HostingPocketBaseApi extends BaseAPI {
|
|
|
28708
28742
|
*/
|
|
28709
28743
|
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PocketBaseBackendResource, any, {}, any>>;
|
|
28710
28744
|
/**
|
|
28711
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
28745
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28712
28746
|
* @summary List account PocketBase backends
|
|
28713
28747
|
* @param {string} username
|
|
28714
28748
|
* @param {*} [options] Override http request option.
|