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/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
|
|
@@ -11073,7 +11107,7 @@ export interface MailV1ApiTokensApiTokenCreatedResource {
|
|
|
11073
11107
|
*/
|
|
11074
11108
|
'id': string;
|
|
11075
11109
|
/**
|
|
11076
|
-
* Plaintext API token, returned only in this response. Grants access to the [Hostinger
|
|
11110
|
+
* 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/).
|
|
11077
11111
|
* @type {string}
|
|
11078
11112
|
* @memberof MailV1ApiTokensApiTokenCreatedResource
|
|
11079
11113
|
*/
|
|
@@ -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.
|
|
@@ -29348,7 +29382,7 @@ export type ListWebsitesV1WebsiteTypesEnum = typeof ListWebsitesV1WebsiteTypesEn
|
|
|
29348
29382
|
*/
|
|
29349
29383
|
export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29350
29384
|
/**
|
|
29351
|
-
* Create an API token for the given mail order.
|
|
29385
|
+
* 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.
|
|
29352
29386
|
* @summary Create API token
|
|
29353
29387
|
* @param {string} orderId Order resource ID
|
|
29354
29388
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29357,7 +29391,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29357
29391
|
*/
|
|
29358
29392
|
createAPITokenV1: (orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29359
29393
|
/**
|
|
29360
|
-
* Retrieve a paginated list of [Hostinger
|
|
29394
|
+
* 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.
|
|
29361
29395
|
* @summary List API tokens
|
|
29362
29396
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29363
29397
|
* @param {number} [page] Page number
|
|
@@ -29367,7 +29401,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29367
29401
|
*/
|
|
29368
29402
|
listAPITokensV1: (orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29369
29403
|
/**
|
|
29370
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29404
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29371
29405
|
* @summary Revoke API token
|
|
29372
29406
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29373
29407
|
* @param {*} [options] Override http request option.
|
|
@@ -29381,7 +29415,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29381
29415
|
*/
|
|
29382
29416
|
export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
29383
29417
|
/**
|
|
29384
|
-
* Create an API token for the given mail order.
|
|
29418
|
+
* 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.
|
|
29385
29419
|
* @summary Create API token
|
|
29386
29420
|
* @param {string} orderId Order resource ID
|
|
29387
29421
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29390,7 +29424,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29390
29424
|
*/
|
|
29391
29425
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MailV1ApiTokensApiTokenCreatedResource>>;
|
|
29392
29426
|
/**
|
|
29393
|
-
* Retrieve a paginated list of [Hostinger
|
|
29427
|
+
* 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.
|
|
29394
29428
|
* @summary List API tokens
|
|
29395
29429
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29396
29430
|
* @param {number} [page] Page number
|
|
@@ -29400,7 +29434,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29400
29434
|
*/
|
|
29401
29435
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MailListAPITokensV1200Response>>;
|
|
29402
29436
|
/**
|
|
29403
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29437
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29404
29438
|
* @summary Revoke API token
|
|
29405
29439
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29406
29440
|
* @param {*} [options] Override http request option.
|
|
@@ -29414,7 +29448,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29414
29448
|
*/
|
|
29415
29449
|
export declare const MailAPITokensApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
29416
29450
|
/**
|
|
29417
|
-
* Create an API token for the given mail order.
|
|
29451
|
+
* 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.
|
|
29418
29452
|
* @summary Create API token
|
|
29419
29453
|
* @param {string} orderId Order resource ID
|
|
29420
29454
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29423,7 +29457,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29423
29457
|
*/
|
|
29424
29458
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): AxiosPromise<MailV1ApiTokensApiTokenCreatedResource>;
|
|
29425
29459
|
/**
|
|
29426
|
-
* Retrieve a paginated list of [Hostinger
|
|
29460
|
+
* 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.
|
|
29427
29461
|
* @summary List API tokens
|
|
29428
29462
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29429
29463
|
* @param {number} [page] Page number
|
|
@@ -29433,7 +29467,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29433
29467
|
*/
|
|
29434
29468
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<MailListAPITokensV1200Response>;
|
|
29435
29469
|
/**
|
|
29436
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29470
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29437
29471
|
* @summary Revoke API token
|
|
29438
29472
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29439
29473
|
* @param {*} [options] Override http request option.
|
|
@@ -29449,7 +29483,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29449
29483
|
*/
|
|
29450
29484
|
export declare class MailAPITokensApi extends BaseAPI {
|
|
29451
29485
|
/**
|
|
29452
|
-
* Create an API token for the given mail order.
|
|
29486
|
+
* 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.
|
|
29453
29487
|
* @summary Create API token
|
|
29454
29488
|
* @param {string} orderId Order resource ID
|
|
29455
29489
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29459,7 +29493,7 @@ export declare class MailAPITokensApi extends BaseAPI {
|
|
|
29459
29493
|
*/
|
|
29460
29494
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MailV1ApiTokensApiTokenCreatedResource, any, {}, any>>;
|
|
29461
29495
|
/**
|
|
29462
|
-
* Retrieve a paginated list of [Hostinger
|
|
29496
|
+
* 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.
|
|
29463
29497
|
* @summary List API tokens
|
|
29464
29498
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29465
29499
|
* @param {number} [page] Page number
|
|
@@ -29470,7 +29504,7 @@ export declare class MailAPITokensApi extends BaseAPI {
|
|
|
29470
29504
|
*/
|
|
29471
29505
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MailListAPITokensV1200Response, any, {}, any>>;
|
|
29472
29506
|
/**
|
|
29473
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29507
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29474
29508
|
* @summary Revoke API token
|
|
29475
29509
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29476
29510
|
* @param {*} [options] Override http request option.
|