@hostinger/mail-sdk 1.19.4 → 1.19.6
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 +206 -67
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +149 -67
- package/dist/api.js +144 -30
- 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 +149 -67
- package/dist/esm/api.js +139 -29
- 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/FeedbackApi.md +70 -0
- package/docs/MessagesApi.md +7 -7
- package/docs/SendApi.md +1 -0
- package/docs/V1FeedbackSubmitRequest.md +23 -0
- package/docs/V1FolderMessagesFlagsBulkRequest.md +2 -2
- package/docs/V1FolderMessagesFlagsRequest.md +2 -2
- package/docs/V1FolderMessagesSearchRequest.md +14 -14
- package/docs/V1SendAttachment.md +2 -2
- package/docs/V1SendRequest.md +8 -8
- package/docs/V1WebhooksCreateRequest.md +5 -5
- package/docs/V1WebhooksUpdateRequest.md +5 -5
- package/docs/WebhooksApi.md +6 -6
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -6,11 +6,11 @@ Body for partially updating a webhook. All fields optional; only present fields
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**name** | **string** |
|
|
10
|
-
**description** | **string** |
|
|
11
|
-
**events** | **Array<string>** |
|
|
12
|
-
**status** | **string** |
|
|
13
|
-
**url** | **string** |
|
|
9
|
+
**name** | **string** | Human-readable webhook name. | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Free-text note about the webhook purpose. Send null to clear. | [optional] [default to undefined]
|
|
11
|
+
**events** | **Array<string>** | Event types that trigger a delivery. Replaces the current list. | [optional] [default to undefined]
|
|
12
|
+
**status** | **string** | Delivery state. Only active webhooks receive events; paused keeps config but stops deliveries. | [optional] [default to undefined]
|
|
13
|
+
**url** | **string** | HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts). | [optional] [default to undefined]
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
package/docs/WebhooksApi.md
CHANGED
|
@@ -207,9 +207,9 @@ const configuration = new Configuration();
|
|
|
207
207
|
const apiInstance = new WebhooksApi(configuration);
|
|
208
208
|
|
|
209
209
|
let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
|
|
210
|
-
let status: 'active' | 'paused' | 'disabled'; // (optional) (default to undefined)
|
|
211
|
-
let page: number; // (optional) (default to 1)
|
|
212
|
-
let perPage: number; // (optional) (default to 15)
|
|
210
|
+
let status: 'active' | 'paused' | 'disabled'; //Return only webhooks with this status. (optional) (default to undefined)
|
|
211
|
+
let page: number; //Page number (1-based). (optional) (default to 1)
|
|
212
|
+
let perPage: number; //Items per page (max 1000). (optional) (default to 15)
|
|
213
213
|
|
|
214
214
|
const { status, data } = await apiInstance.listWebhooks(
|
|
215
215
|
mailboxResourceId,
|
|
@@ -224,9 +224,9 @@ const { status, data } = await apiInstance.listWebhooks(
|
|
|
224
224
|
|Name | Type | Description | Notes|
|
|
225
225
|
|------------- | ------------- | ------------- | -------------|
|
|
226
226
|
| **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
|
|
227
|
-
| **status** | [**'active' | 'paused' | 'disabled'**]**Array<'active' | 'paused' | 'disabled'>** |
|
|
228
|
-
| **page** | [**number**] |
|
|
229
|
-
| **perPage** | [**number**] |
|
|
227
|
+
| **status** | [**'active' | 'paused' | 'disabled'**]**Array<'active' | 'paused' | 'disabled'>** | Return only webhooks with this status. | (optional) defaults to undefined|
|
|
228
|
+
| **page** | [**number**] | Page number (1-based). | (optional) defaults to 1|
|
|
229
|
+
| **perPage** | [**number**] | Items per page (max 1000). | (optional) defaults to 15|
|
|
230
230
|
|
|
231
231
|
|
|
232
232
|
### Return type
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.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
|