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.
@@ -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/index.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
package/dist/index.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
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.14.0
7
+ * API Version: 2.14.2
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -136,7 +136,7 @@ const { status, data } = await apiInstance.deletePocketBaseBackendV1(
136
136
  # **getPocketBaseBackendV1**
137
137
  > HostingV1PocketBaseBackendResource getPocketBaseBackendV1()
138
138
 
139
- 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.
139
+ 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.
140
140
 
141
141
  ### Example
142
142
 
@@ -194,7 +194,7 @@ const { status, data } = await apiInstance.getPocketBaseBackendV1(
194
194
  # **listAccountPocketBaseBackendsV1**
195
195
  > Array<HostingV1PocketBaseInstanceResource> listAccountPocketBaseBackendsV1()
196
196
 
197
- 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.
197
+ 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.
198
198
 
199
199
  ### Example
200
200
 
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
10
10
  **api_url** | **string** | Base URL of the PocketBase REST API | [default to undefined]
11
11
  **admin_url** | **string** | URL of the PocketBase dashboard | [default to undefined]
12
12
  **state** | **string** | Live process state. The instance sleeps when idle and wakes on the first request. Null when the server could not be reached. | [default to undefined]
13
+ **failure_reason** | **string** | Why the last start did not succeed, set only while &#x60;state&#x60; is &#x60;failed&#x60;. &#x60;process_limit&#x60; means the hosting account has no free process slots, usually because its Node.js apps are running; &#x60;start_failed&#x60; is any other cause. | [default to undefined]
14
+ **retry_after_seconds** | **number** | Seconds until Hostinger tries to start the instance again, set only while &#x60;state&#x60; is &#x60;failed&#x60;. Null when the next try is due now. | [default to undefined]
13
15
  **version** | **string** | PocketBase version | [default to undefined]
14
16
  **next_steps** | **Array&lt;string&gt;** | What to do next with this backend | [default to undefined]
15
17
 
@@ -24,6 +26,8 @@ const instance: HostingV1PocketBaseBackendResource = {
24
26
  api_url,
25
27
  admin_url,
26
28
  state,
29
+ failure_reason,
30
+ retry_after_seconds,
27
31
  version,
28
32
  next_steps,
29
33
  };
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
10
10
  **api_url** | **string** | Base URL of the PocketBase REST API | [default to undefined]
11
11
  **admin_url** | **string** | URL of the PocketBase dashboard | [default to undefined]
12
12
  **state** | **string** | Live process state. The instance sleeps when idle and wakes on the first request. Null when the server could not be reached. | [default to undefined]
13
+ **failure_reason** | **string** | Why the last start did not succeed, set only while &#x60;state&#x60; is &#x60;failed&#x60;. &#x60;process_limit&#x60; means the hosting account has no free process slots, usually because its Node.js apps are running; &#x60;start_failed&#x60; is any other cause. | [default to undefined]
14
+ **retry_after_seconds** | **number** | Seconds until Hostinger tries to start the instance again, set only while &#x60;state&#x60; is &#x60;failed&#x60;. Null when the next try is due now. | [default to undefined]
13
15
  **version** | **string** | PocketBase version | [default to undefined]
14
16
  **disk_usage_kb** | **number** | Disk space used by the instance data, in KB | [default to undefined]
15
17
 
@@ -24,6 +26,8 @@ const instance: HostingV1PocketBaseInstanceResource = {
24
26
  api_url,
25
27
  admin_url,
26
28
  state,
29
+ failure_reason,
30
+ retry_after_seconds,
27
31
  version,
28
32
  disk_usage_kb,
29
33
  };
@@ -11,7 +11,7 @@ All URIs are relative to *https://developers.hostinger.com*
11
11
  # **createAPITokenV1**
12
12
  > MailV1ApiTokensApiTokenCreatedResource createAPITokenV1(mailV1SchemaCreateApiTokenRequestSchema)
13
13
 
14
- 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`.
14
+ 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.
15
15
 
16
16
  ### Example
17
17
 
@@ -71,7 +71,7 @@ const { status, data } = await apiInstance.createAPITokenV1(
71
71
  # **listAPITokensV1**
72
72
  > MailListAPITokensV1200Response listAPITokensV1()
73
73
 
74
- 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.
74
+ 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.
75
75
 
76
76
  ### Example
77
77
 
@@ -131,7 +131,7 @@ const { status, data } = await apiInstance.listAPITokensV1(
131
131
  # **revokeAPITokenV1**
132
132
  > CommonSuccessEmptyResource revokeAPITokenV1()
133
133
 
134
- Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.
134
+ Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
135
135
 
136
136
  ### Example
137
137
 
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | Unique API token identifier | [optional] [default to undefined]
9
- **token** | **string** | 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. | [optional] [default to undefined]
9
+ **token** | **string** | 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/). | [optional] [default to undefined]
10
10
  **name** | **string** | Human-readable label for this token | [optional] [default to undefined]
11
11
  **scope** | [**MailV1ApiTokensApiTokenScopeResource**](MailV1ApiTokensApiTokenScopeResource.md) | | [optional] [default to undefined]
12
12
  **created_at** | **string** | | [optional] [default to undefined]
package/index.ts 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "2.14.0",
3
+ "version": "2.14.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {