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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.14.0
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 Email API](https://api.mail.hostinger.com/) for mailbox provisioning and management.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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; `failed` or `unregistered` mean 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.
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. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
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 Email 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
+ * 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 Email API](https://api.mail.hostinger.com/). This action cannot be undone.
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. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
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 Email 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
+ * 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 Email API](https://api.mail.hostinger.com/). This action cannot be undone.
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. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
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 Email 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.
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 Email API](https://api.mail.hostinger.com/). This action cannot be undone.
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. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
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 Email 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.
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 Email API](https://api.mail.hostinger.com/). This action cannot be undone.
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.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.14.0
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
@@ -594,6 +594,10 @@ export const HostingV1PocketBaseBackendResourceStateEnum = {
594
594
  Unknown: 'unknown',
595
595
  Missing: 'missing'
596
596
  };
597
+ export const HostingV1PocketBaseBackendResourceFailureReasonEnum = {
598
+ ProcessLimit: 'process_limit',
599
+ StartFailed: 'start_failed'
600
+ };
597
601
  export const HostingV1PocketBaseInstanceResourceStateEnum = {
598
602
  Asleep: 'asleep',
599
603
  Starting: 'starting',
@@ -604,6 +608,10 @@ export const HostingV1PocketBaseInstanceResourceStateEnum = {
604
608
  Unknown: 'unknown',
605
609
  Missing: 'missing'
606
610
  };
611
+ export const HostingV1PocketBaseInstanceResourceFailureReasonEnum = {
612
+ ProcessLimit: 'process_limit',
613
+ StartFailed: 'start_failed'
614
+ };
607
615
  export const HostingV1SslSslStatusResourceStatusEnum = {
608
616
  NotInstalled: 'not_installed',
609
617
  Installing: 'installing',
@@ -18958,7 +18966,7 @@ export const HostingPocketBaseApiAxiosParamCreator = function (configuration) {
18958
18966
  };
18959
18967
  }),
18960
18968
  /**
18961
- * 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` or `unregistered` mean 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.
18969
+ * 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.
18962
18970
  * @summary Get PocketBase backend
18963
18971
  * @param {string} username
18964
18972
  * @param {string} domain Domain name
@@ -18994,7 +19002,7 @@ export const HostingPocketBaseApiAxiosParamCreator = function (configuration) {
18994
19002
  };
18995
19003
  }),
18996
19004
  /**
18997
- * 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` or `unregistered` mean 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.
19005
+ * 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.
18998
19006
  * @summary List account PocketBase backends
18999
19007
  * @param {string} username
19000
19008
  * @param {*} [options] Override http request option.
@@ -19107,7 +19115,7 @@ export const HostingPocketBaseApiFp = function (configuration) {
19107
19115
  });
19108
19116
  },
19109
19117
  /**
19110
- * 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` or `unregistered` mean 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.
19118
+ * 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.
19111
19119
  * @summary Get PocketBase backend
19112
19120
  * @param {string} username
19113
19121
  * @param {string} domain Domain name
@@ -19123,7 +19131,7 @@ export const HostingPocketBaseApiFp = function (configuration) {
19123
19131
  });
19124
19132
  },
19125
19133
  /**
19126
- * 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` or `unregistered` mean 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.
19134
+ * 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.
19127
19135
  * @summary List account PocketBase backends
19128
19136
  * @param {string} username
19129
19137
  * @param {*} [options] Override http request option.
@@ -19187,7 +19195,7 @@ export const HostingPocketBaseApiFactory = function (configuration, basePath, ax
19187
19195
  return localVarFp.deletePocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
19188
19196
  },
19189
19197
  /**
19190
- * 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` or `unregistered` mean 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.
19198
+ * 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.
19191
19199
  * @summary Get PocketBase backend
19192
19200
  * @param {string} username
19193
19201
  * @param {string} domain Domain name
@@ -19198,7 +19206,7 @@ export const HostingPocketBaseApiFactory = function (configuration, basePath, ax
19198
19206
  return localVarFp.getPocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
19199
19207
  },
19200
19208
  /**
19201
- * 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` or `unregistered` mean 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.
19209
+ * 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.
19202
19210
  * @summary List account PocketBase backends
19203
19211
  * @param {string} username
19204
19212
  * @param {*} [options] Override http request option.
@@ -19254,7 +19262,7 @@ export class HostingPocketBaseApi extends BaseAPI {
19254
19262
  return HostingPocketBaseApiFp(this.configuration).deletePocketBaseBackendV1(username, domain, options).then((request) => request(this.axios, this.basePath));
19255
19263
  }
19256
19264
  /**
19257
- * 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` or `unregistered` mean 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.
19265
+ * 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.
19258
19266
  * @summary Get PocketBase backend
19259
19267
  * @param {string} username
19260
19268
  * @param {string} domain Domain name
@@ -19266,7 +19274,7 @@ export class HostingPocketBaseApi extends BaseAPI {
19266
19274
  return HostingPocketBaseApiFp(this.configuration).getPocketBaseBackendV1(username, domain, options).then((request) => request(this.axios, this.basePath));
19267
19275
  }
19268
19276
  /**
19269
- * 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` or `unregistered` mean 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.
19277
+ * 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.
19270
19278
  * @summary List account PocketBase backends
19271
19279
  * @param {string} username
19272
19280
  * @param {*} [options] Override http request option.
@@ -20465,7 +20473,7 @@ export const ListWebsitesV1WebsiteTypesEnum = {
20465
20473
  export const MailAPITokensApiAxiosParamCreator = function (configuration) {
20466
20474
  return {
20467
20475
  /**
20468
- * Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
20476
+ * 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.
20469
20477
  * @summary Create API token
20470
20478
  * @param {string} orderId Order resource ID
20471
20479
  * @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
@@ -20502,7 +20510,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration) {
20502
20510
  };
20503
20511
  }),
20504
20512
  /**
20505
- * Retrieve a paginated list of [Hostinger Email 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.
20513
+ * 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.
20506
20514
  * @summary List API tokens
20507
20515
  * @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
20508
20516
  * @param {number} [page] Page number
@@ -20542,7 +20550,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration) {
20542
20550
  };
20543
20551
  }),
20544
20552
  /**
20545
- * Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
20553
+ * Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
20546
20554
  * @summary Revoke API token
20547
20555
  * @param {string} tokenId API token ID (returned when the token was created)
20548
20556
  * @param {*} [options] Override http request option.
@@ -20583,7 +20591,7 @@ export const MailAPITokensApiFp = function (configuration) {
20583
20591
  const localVarAxiosParamCreator = MailAPITokensApiAxiosParamCreator(configuration);
20584
20592
  return {
20585
20593
  /**
20586
- * Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
20594
+ * 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.
20587
20595
  * @summary Create API token
20588
20596
  * @param {string} orderId Order resource ID
20589
20597
  * @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
@@ -20599,7 +20607,7 @@ export const MailAPITokensApiFp = function (configuration) {
20599
20607
  });
20600
20608
  },
20601
20609
  /**
20602
- * Retrieve a paginated list of [Hostinger Email 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.
20610
+ * 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.
20603
20611
  * @summary List API tokens
20604
20612
  * @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
20605
20613
  * @param {number} [page] Page number
@@ -20616,7 +20624,7 @@ export const MailAPITokensApiFp = function (configuration) {
20616
20624
  });
20617
20625
  },
20618
20626
  /**
20619
- * Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
20627
+ * Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
20620
20628
  * @summary Revoke API token
20621
20629
  * @param {string} tokenId API token ID (returned when the token was created)
20622
20630
  * @param {*} [options] Override http request option.
@@ -20640,7 +20648,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
20640
20648
  const localVarFp = MailAPITokensApiFp(configuration);
20641
20649
  return {
20642
20650
  /**
20643
- * Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
20651
+ * 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.
20644
20652
  * @summary Create API token
20645
20653
  * @param {string} orderId Order resource ID
20646
20654
  * @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
@@ -20651,7 +20659,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
20651
20659
  return localVarFp.createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(axios, basePath));
20652
20660
  },
20653
20661
  /**
20654
- * Retrieve a paginated list of [Hostinger Email 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.
20662
+ * 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.
20655
20663
  * @summary List API tokens
20656
20664
  * @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
20657
20665
  * @param {number} [page] Page number
@@ -20663,7 +20671,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
20663
20671
  return localVarFp.listAPITokensV1(orderId, page, perPage, options).then((request) => request(axios, basePath));
20664
20672
  },
20665
20673
  /**
20666
- * Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
20674
+ * Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
20667
20675
  * @summary Revoke API token
20668
20676
  * @param {string} tokenId API token ID (returned when the token was created)
20669
20677
  * @param {*} [options] Override http request option.
@@ -20682,7 +20690,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
20682
20690
  */
20683
20691
  export class MailAPITokensApi extends BaseAPI {
20684
20692
  /**
20685
- * Create an API token for the given mail order. The token grants access to the [Hostinger Email API](https://api.mail.hostinger.com/), where you can provision and manage the mailboxes it is scoped to. The plaintext token is returned only in this response, never again. A maximum of 10 tokens can exist per order. Use `scope.has_all_mailboxes` to cover all current and future mailboxes, or list specific mailboxes in `scope.mailbox_ids`.
20693
+ * 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.
20686
20694
  * @summary Create API token
20687
20695
  * @param {string} orderId Order resource ID
20688
20696
  * @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
@@ -20694,7 +20702,7 @@ export class MailAPITokensApi extends BaseAPI {
20694
20702
  return MailAPITokensApiFp(this.configuration).createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(this.axios, this.basePath));
20695
20703
  }
20696
20704
  /**
20697
- * Retrieve a paginated list of [Hostinger Email 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.
20705
+ * 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.
20698
20706
  * @summary List API tokens
20699
20707
  * @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
20700
20708
  * @param {number} [page] Page number
@@ -20707,7 +20715,7 @@ export class MailAPITokensApi extends BaseAPI {
20707
20715
  return MailAPITokensApiFp(this.configuration).listAPITokensV1(orderId, page, perPage, options).then((request) => request(this.axios, this.basePath));
20708
20716
  }
20709
20717
  /**
20710
- * Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
20718
+ * Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
20711
20719
  * @summary Revoke API token
20712
20720
  * @param {string} tokenId API token ID (returned when the token was created)
20713
20721
  * @param {*} [options] Override http request option.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.14.0
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
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.14.0
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.14.0
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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.14.0
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.14.0
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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.14.0
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.14.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.14.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**