hostinger-mail-api-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.
@@ -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** | | [optional] [default to undefined]
10
- **description** | **string** | | [optional] [default to undefined]
11
- **events** | **Array<string>** | | [optional] [default to undefined]
12
- **status** | **string** | | [optional] [default to undefined]
13
- **url** | **string** | | [optional] [default to undefined]
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
 
@@ -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** | [**&#39;active&#39; | &#39;paused&#39; | &#39;disabled&#39;**]**Array<&#39;active&#39; &#124; &#39;paused&#39; &#124; &#39;disabled&#39;>** | | (optional) defaults to undefined|
228
- | **page** | [**number**] | | (optional) defaults to 1|
229
- | **perPage** | [**number**] | | (optional) defaults to 15|
227
+ | **status** | [**&#39;active&#39; | &#39;paused&#39; | &#39;disabled&#39;**]**Array<&#39;active&#39; &#124; &#39;paused&#39; &#124; &#39;disabled&#39;>** | 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.1.0
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-mail-api-sdk",
3
- "version": "1.19.4",
3
+ "version": "1.19.6",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {