hostinger-api-sdk 2.14.0 → 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 +58 -22
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +56 -22
- package/dist/api.js +41 -33
- 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 +56 -22
- package/dist/esm/api.js +29 -21
- 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/docs/MailAPITokensApi.md +3 -3
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +1 -1
- 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
|
*
|
|
@@ -11307,7 +11343,7 @@ export interface MailV1ApiTokensApiTokenCreatedResource {
|
|
|
11307
11343
|
*/
|
|
11308
11344
|
'id': string;
|
|
11309
11345
|
/**
|
|
11310
|
-
* Plaintext API token, returned only in this response. Grants access to the [Hostinger
|
|
11346
|
+
* Plaintext API token, returned only in this response. Grants access to the mailboxes it is scoped to through the [Hostinger Mail API](https://api.mail.hostinger.com/).
|
|
11311
11347
|
* @type {string}
|
|
11312
11348
|
* @memberof MailV1ApiTokensApiTokenCreatedResource
|
|
11313
11349
|
*/
|
|
@@ -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.
|
|
@@ -40262,7 +40298,7 @@ export type ListWebsitesV1WebsiteTypesEnum = typeof ListWebsitesV1WebsiteTypesEn
|
|
|
40262
40298
|
export const MailAPITokensApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40263
40299
|
return {
|
|
40264
40300
|
/**
|
|
40265
|
-
* Create an API token for the given mail order.
|
|
40301
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40266
40302
|
* @summary Create API token
|
|
40267
40303
|
* @param {string} orderId Order resource ID
|
|
40268
40304
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40306,7 +40342,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration?: Confi
|
|
|
40306
40342
|
};
|
|
40307
40343
|
},
|
|
40308
40344
|
/**
|
|
40309
|
-
* Retrieve a paginated list of [Hostinger
|
|
40345
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40310
40346
|
* @summary List API tokens
|
|
40311
40347
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40312
40348
|
* @param {number} [page] Page number
|
|
@@ -40355,7 +40391,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration?: Confi
|
|
|
40355
40391
|
};
|
|
40356
40392
|
},
|
|
40357
40393
|
/**
|
|
40358
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40394
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40359
40395
|
* @summary Revoke API token
|
|
40360
40396
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40361
40397
|
* @param {*} [options] Override http request option.
|
|
@@ -40403,7 +40439,7 @@ export const MailAPITokensApiFp = function(configuration?: Configuration) {
|
|
|
40403
40439
|
const localVarAxiosParamCreator = MailAPITokensApiAxiosParamCreator(configuration)
|
|
40404
40440
|
return {
|
|
40405
40441
|
/**
|
|
40406
|
-
* Create an API token for the given mail order.
|
|
40442
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40407
40443
|
* @summary Create API token
|
|
40408
40444
|
* @param {string} orderId Order resource ID
|
|
40409
40445
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40416,7 +40452,7 @@ export const MailAPITokensApiFp = function(configuration?: Configuration) {
|
|
|
40416
40452
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40417
40453
|
},
|
|
40418
40454
|
/**
|
|
40419
|
-
* Retrieve a paginated list of [Hostinger
|
|
40455
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40420
40456
|
* @summary List API tokens
|
|
40421
40457
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40422
40458
|
* @param {number} [page] Page number
|
|
@@ -40430,7 +40466,7 @@ export const MailAPITokensApiFp = function(configuration?: Configuration) {
|
|
|
40430
40466
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40431
40467
|
},
|
|
40432
40468
|
/**
|
|
40433
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40469
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40434
40470
|
* @summary Revoke API token
|
|
40435
40471
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40436
40472
|
* @param {*} [options] Override http request option.
|
|
@@ -40452,7 +40488,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40452
40488
|
const localVarFp = MailAPITokensApiFp(configuration)
|
|
40453
40489
|
return {
|
|
40454
40490
|
/**
|
|
40455
|
-
* Create an API token for the given mail order.
|
|
40491
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40456
40492
|
* @summary Create API token
|
|
40457
40493
|
* @param {string} orderId Order resource ID
|
|
40458
40494
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40463,7 +40499,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40463
40499
|
return localVarFp.createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(axios, basePath));
|
|
40464
40500
|
},
|
|
40465
40501
|
/**
|
|
40466
|
-
* Retrieve a paginated list of [Hostinger
|
|
40502
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40467
40503
|
* @summary List API tokens
|
|
40468
40504
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40469
40505
|
* @param {number} [page] Page number
|
|
@@ -40475,7 +40511,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40475
40511
|
return localVarFp.listAPITokensV1(orderId, page, perPage, options).then((request) => request(axios, basePath));
|
|
40476
40512
|
},
|
|
40477
40513
|
/**
|
|
40478
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40514
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40479
40515
|
* @summary Revoke API token
|
|
40480
40516
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40481
40517
|
* @param {*} [options] Override http request option.
|
|
@@ -40495,7 +40531,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40495
40531
|
*/
|
|
40496
40532
|
export class MailAPITokensApi extends BaseAPI {
|
|
40497
40533
|
/**
|
|
40498
|
-
* Create an API token for the given mail order.
|
|
40534
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40499
40535
|
* @summary Create API token
|
|
40500
40536
|
* @param {string} orderId Order resource ID
|
|
40501
40537
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40508,7 +40544,7 @@ export class MailAPITokensApi extends BaseAPI {
|
|
|
40508
40544
|
}
|
|
40509
40545
|
|
|
40510
40546
|
/**
|
|
40511
|
-
* Retrieve a paginated list of [Hostinger
|
|
40547
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40512
40548
|
* @summary List API tokens
|
|
40513
40549
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40514
40550
|
* @param {number} [page] Page number
|
|
@@ -40522,7 +40558,7 @@ export class MailAPITokensApi extends BaseAPI {
|
|
|
40522
40558
|
}
|
|
40523
40559
|
|
|
40524
40560
|
/**
|
|
40525
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40561
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40526
40562
|
* @summary Revoke API token
|
|
40527
40563
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40528
40564
|
* @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
|
};
|