@hostinger/mail-sdk 1.19.0
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/.github/workflows/build-release.yaml +135 -0
- package/CODEOWNERS +1 -0
- package/README.md +9 -0
- package/api.ts +3791 -0
- package/base.ts +83 -0
- package/common.ts +111 -0
- package/configuration.ts +72 -0
- package/dist/api.d.ts +2457 -0
- package/dist/api.js +2484 -0
- package/dist/base.d.ts +63 -0
- package/dist/base.js +62 -0
- package/dist/common.d.ts +47 -0
- package/dist/common.js +118 -0
- package/dist/configuration.d.ts +51 -0
- package/dist/configuration.js +37 -0
- package/dist/esm/api.d.ts +2457 -0
- package/dist/esm/api.js +2457 -0
- package/dist/esm/base.d.ts +63 -0
- package/dist/esm/base.js +57 -0
- package/dist/esm/common.d.ts +47 -0
- package/dist/esm/common.js +109 -0
- package/dist/esm/configuration.d.ts +51 -0
- package/dist/esm/configuration.js +33 -0
- package/dist/esm/index.d.ts +10 -0
- package/dist/esm/index.js +12 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +28 -0
- package/docs/AccountApi.md +55 -0
- package/docs/Error.md +25 -0
- package/docs/FoldersApi.md +259 -0
- package/docs/MessagesApi.md +860 -0
- package/docs/Pagination.md +27 -0
- package/docs/QuotaApi.md +63 -0
- package/docs/SendApi.md +68 -0
- package/docs/V1FolderMessagesCollection.md +23 -0
- package/docs/V1FolderMessagesDeleteBulkRequest.md +21 -0
- package/docs/V1FolderMessagesFlagsBulkRequest.md +25 -0
- package/docs/V1FolderMessagesFlagsRequest.md +23 -0
- package/docs/V1FolderMessagesMessage.md +47 -0
- package/docs/V1FolderMessagesMessageAddress.md +23 -0
- package/docs/V1FolderMessagesMessageAttachment.md +31 -0
- package/docs/V1FolderMessagesMessageText.md +23 -0
- package/docs/V1FolderMessagesMessageTextResource.md +21 -0
- package/docs/V1FolderMessagesMoveBulkRequest.md +23 -0
- package/docs/V1FolderMessagesMoveRequest.md +21 -0
- package/docs/V1FolderMessagesResource.md +21 -0
- package/docs/V1FolderMessagesSearchRequest.md +45 -0
- package/docs/V1FolderMessagesUpdateFlagsResult.md +21 -0
- package/docs/V1FolderMessagesUpdateFlagsResultData.md +22 -0
- package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +22 -0
- package/docs/V1FoldersCollection.md +23 -0
- package/docs/V1FoldersCreateRequest.md +21 -0
- package/docs/V1FoldersFolder.md +31 -0
- package/docs/V1FoldersResource.md +21 -0
- package/docs/V1FoldersUpdateRequest.md +21 -0
- package/docs/V1MeMailbox.md +23 -0
- package/docs/V1MeResource.md +21 -0
- package/docs/V1MeResourceData.md +22 -0
- package/docs/V1QuotaQuota.md +29 -0
- package/docs/V1QuotaQuotaResource.md +27 -0
- package/docs/V1QuotaResource.md +21 -0
- package/docs/V1SendAttachment.md +29 -0
- package/docs/V1SendMessageRef.md +23 -0
- package/docs/V1SendRequest.md +39 -0
- package/docs/V1WebhooksCollection.md +23 -0
- package/docs/V1WebhooksCreateRequest.md +29 -0
- package/docs/V1WebhooksResource.md +21 -0
- package/docs/V1WebhooksResourceWithSecret.md +21 -0
- package/docs/V1WebhooksTestResult.md +21 -0
- package/docs/V1WebhooksTestResultData.md +24 -0
- package/docs/V1WebhooksUpdateRequest.md +29 -0
- package/docs/V1WebhooksWebhook.md +39 -0
- package/docs/V1WebhooksWebhookWithSecret.md +41 -0
- package/docs/WebhooksApi.md +439 -0
- package/index.ts +15 -0
- package/package.json +34 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1FoldersResource
|
|
2
|
+
|
|
3
|
+
Single folder payload.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**V1FoldersFolder**](V1FoldersFolder.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1FoldersResource } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1FoldersResource = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1FoldersUpdateRequest
|
|
2
|
+
|
|
3
|
+
Body for renaming a folder.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | New folder name. Length 1-100 after trimming. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1FoldersUpdateRequest } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1FoldersUpdateRequest = {
|
|
17
|
+
name,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# V1MeMailbox
|
|
2
|
+
|
|
3
|
+
A mailbox the authenticated API token can manage.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**resourceId** | **string** | Unique identifier of the mailbox. | [default to undefined]
|
|
10
|
+
**address** | **string** | Email address of the mailbox. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { V1MeMailbox } from '@hostinger/mail-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: V1MeMailbox = {
|
|
18
|
+
resourceId,
|
|
19
|
+
address,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1MeResource
|
|
2
|
+
|
|
3
|
+
Authenticated account payload.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**V1MeResourceData**](V1MeResourceData.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1MeResource } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1MeResource = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# V1MeResourceData
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**orderResourceId** | **string** | Identifier of the order this API token is scoped to. | [default to undefined]
|
|
9
|
+
**mailboxes** | [**Array<V1MeMailbox>**](V1MeMailbox.md) | Mailboxes that the authenticated API token can manage. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1MeResourceData } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1MeResourceData = {
|
|
17
|
+
orderResourceId,
|
|
18
|
+
mailboxes,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# V1QuotaQuota
|
|
2
|
+
|
|
3
|
+
Storage and message quota usage for the managed mailbox.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**quotas** | [**Array<V1QuotaQuotaResource>**](V1QuotaQuotaResource.md) | Per-resource quota breakdown reported by the IMAP server. | [default to undefined]
|
|
10
|
+
**totalUsage** | **number** | Aggregate storage usage across all resources, in bytes. | [default to undefined]
|
|
11
|
+
**totalLimit** | **number** | Aggregate storage limit across all resources, in bytes. | [default to undefined]
|
|
12
|
+
**totalPercentage** | **number** | Aggregate storage usage as a percentage of the total limit. | [default to undefined]
|
|
13
|
+
**supported** | **boolean** | Whether the IMAP server reports quota information for this mailbox. | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { V1QuotaQuota } from '@hostinger/mail-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: V1QuotaQuota = {
|
|
21
|
+
quotas,
|
|
22
|
+
totalUsage,
|
|
23
|
+
totalLimit,
|
|
24
|
+
totalPercentage,
|
|
25
|
+
supported,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# V1QuotaQuotaResource
|
|
2
|
+
|
|
3
|
+
Usage and limit for a single IMAP quota resource.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**resourceName** | **string** | Name of the quota resource as reported by the IMAP server. | [default to undefined]
|
|
10
|
+
**usage** | **number** | Current usage of the resource (bytes for STORAGE, count for MESSAGE). | [default to undefined]
|
|
11
|
+
**limit** | **number** | Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE). | [default to undefined]
|
|
12
|
+
**percentage** | **number** | Usage as a percentage of the limit. | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { V1QuotaQuotaResource } from '@hostinger/mail-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: V1QuotaQuotaResource = {
|
|
20
|
+
resourceName,
|
|
21
|
+
usage,
|
|
22
|
+
limit,
|
|
23
|
+
percentage,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1QuotaResource
|
|
2
|
+
|
|
3
|
+
Mailbox quota payload.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**V1QuotaQuota**](V1QuotaQuota.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1QuotaResource } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1QuotaResource = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# V1SendAttachment
|
|
2
|
+
|
|
3
|
+
Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**filename** | **string** | | [default to undefined]
|
|
10
|
+
**content** | **string** | Attachment body. Base64-encoded by default; set encoding to switch. | [default to undefined]
|
|
11
|
+
**contentType** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**cid** | **string** | Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">. | [optional] [default to undefined]
|
|
13
|
+
**encoding** | **string** | Encoding of content. Defaults to base64. | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { V1SendAttachment } from '@hostinger/mail-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: V1SendAttachment = {
|
|
21
|
+
filename,
|
|
22
|
+
content,
|
|
23
|
+
contentType,
|
|
24
|
+
cid,
|
|
25
|
+
encoding,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# V1SendMessageRef
|
|
2
|
+
|
|
3
|
+
Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uid** | **number** | UID of the source message. | [default to undefined]
|
|
10
|
+
**folder** | **string** | Folder containing the source message. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { V1SendMessageRef } from '@hostinger/mail-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: V1SendMessageRef = {
|
|
18
|
+
uid,
|
|
19
|
+
folder,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# V1SendRequest
|
|
2
|
+
|
|
3
|
+
Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**to** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**displayName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**cc** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**bcc** | **Array<string>** | | [optional] [default to undefined]
|
|
13
|
+
**subject** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**text** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**html** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**attachments** | [**Array<V1SendAttachment>**](V1SendAttachment.md) | | [optional] [default to undefined]
|
|
17
|
+
**inReplyTo** | [**V1SendMessageRef**](V1SendMessageRef.md) | Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf. | [optional] [default to undefined]
|
|
18
|
+
**forwardOf** | [**V1SendMessageRef**](V1SendMessageRef.md) | Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo. | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { V1SendRequest } from '@hostinger/mail-sdk';
|
|
24
|
+
|
|
25
|
+
const instance: V1SendRequest = {
|
|
26
|
+
to,
|
|
27
|
+
displayName,
|
|
28
|
+
cc,
|
|
29
|
+
bcc,
|
|
30
|
+
subject,
|
|
31
|
+
text,
|
|
32
|
+
html,
|
|
33
|
+
attachments,
|
|
34
|
+
inReplyTo,
|
|
35
|
+
forwardOf,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# V1WebhooksCollection
|
|
2
|
+
|
|
3
|
+
Paginated list of webhooks.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**Array<V1WebhooksWebhook>**](V1WebhooksWebhook.md) | | [default to undefined]
|
|
10
|
+
**pagination** | [**Pagination**](Pagination.md) | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { V1WebhooksCollection } from '@hostinger/mail-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: V1WebhooksCollection = {
|
|
18
|
+
data,
|
|
19
|
+
pagination,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# V1WebhooksCreateRequest
|
|
2
|
+
|
|
3
|
+
Body for creating a webhook.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**events** | **Array<string>** | | [default to undefined]
|
|
12
|
+
**status** | **string** | | [optional] [default to StatusEnum_Active]
|
|
13
|
+
**url** | **string** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { V1WebhooksCreateRequest } from '@hostinger/mail-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: V1WebhooksCreateRequest = {
|
|
21
|
+
name,
|
|
22
|
+
description,
|
|
23
|
+
events,
|
|
24
|
+
status,
|
|
25
|
+
url,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1WebhooksResource
|
|
2
|
+
|
|
3
|
+
Single webhook payload.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**V1WebhooksWebhook**](V1WebhooksWebhook.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1WebhooksResource } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1WebhooksResource = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1WebhooksResourceWithSecret
|
|
2
|
+
|
|
3
|
+
Single webhook payload including the one-time secret.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**V1WebhooksWebhookWithSecret**](V1WebhooksWebhookWithSecret.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1WebhooksResourceWithSecret } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1WebhooksResourceWithSecret = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# V1WebhooksTestResult
|
|
2
|
+
|
|
3
|
+
Result of a webhook test delivery.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**V1WebhooksTestResultData**](V1WebhooksTestResultData.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { V1WebhooksTestResult } from '@hostinger/mail-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: V1WebhooksTestResult = {
|
|
17
|
+
data,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# V1WebhooksTestResultData
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**httpStatus** | **number** | | [default to undefined]
|
|
9
|
+
**success** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**error** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { V1WebhooksTestResultData } from '@hostinger/mail-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: V1WebhooksTestResultData = {
|
|
18
|
+
httpStatus,
|
|
19
|
+
success,
|
|
20
|
+
error,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# V1WebhooksUpdateRequest
|
|
2
|
+
|
|
3
|
+
Body for partially updating a webhook. All fields optional; only present fields are applied.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
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]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { V1WebhooksUpdateRequest } from '@hostinger/mail-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: V1WebhooksUpdateRequest = {
|
|
21
|
+
name,
|
|
22
|
+
description,
|
|
23
|
+
events,
|
|
24
|
+
status,
|
|
25
|
+
url,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# V1WebhooksWebhook
|
|
2
|
+
|
|
3
|
+
Webhook configured for a managed mailbox.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique webhook identifier (UUID v7). | [default to undefined]
|
|
10
|
+
**accountResourceId** | **string** | Resource ID of the mailbox this webhook is attached to. | [default to undefined]
|
|
11
|
+
**mailbox** | **string** | Email address of the mailbox. | [default to undefined]
|
|
12
|
+
**name** | **string** | | [default to undefined]
|
|
13
|
+
**description** | **string** | | [default to undefined]
|
|
14
|
+
**events** | **Array<string>** | | [default to undefined]
|
|
15
|
+
**status** | **string** | | [default to undefined]
|
|
16
|
+
**url** | **string** | | [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { V1WebhooksWebhook } from '@hostinger/mail-sdk';
|
|
24
|
+
|
|
25
|
+
const instance: V1WebhooksWebhook = {
|
|
26
|
+
id,
|
|
27
|
+
accountResourceId,
|
|
28
|
+
mailbox,
|
|
29
|
+
name,
|
|
30
|
+
description,
|
|
31
|
+
events,
|
|
32
|
+
status,
|
|
33
|
+
url,
|
|
34
|
+
createdAt,
|
|
35
|
+
updatedAt,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# V1WebhooksWebhookWithSecret
|
|
2
|
+
|
|
3
|
+
Webhook payload that includes the one-time `secret`. Returned at creation and after secret regeneration. The secret is delivered as a bearer token on every webhook request (`Authorization: Bearer <secret>`); store it securely as it is not returned again.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique webhook identifier (UUID v7). | [default to undefined]
|
|
10
|
+
**accountResourceId** | **string** | Resource ID of the mailbox this webhook is attached to. | [default to undefined]
|
|
11
|
+
**mailbox** | **string** | Email address of the mailbox. | [default to undefined]
|
|
12
|
+
**name** | **string** | | [default to undefined]
|
|
13
|
+
**description** | **string** | | [default to undefined]
|
|
14
|
+
**events** | **Array<string>** | | [default to undefined]
|
|
15
|
+
**status** | **string** | | [default to undefined]
|
|
16
|
+
**url** | **string** | | [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
**secret** | **string** | | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { V1WebhooksWebhookWithSecret } from '@hostinger/mail-sdk';
|
|
25
|
+
|
|
26
|
+
const instance: V1WebhooksWebhookWithSecret = {
|
|
27
|
+
id,
|
|
28
|
+
accountResourceId,
|
|
29
|
+
mailbox,
|
|
30
|
+
name,
|
|
31
|
+
description,
|
|
32
|
+
events,
|
|
33
|
+
status,
|
|
34
|
+
url,
|
|
35
|
+
createdAt,
|
|
36
|
+
updatedAt,
|
|
37
|
+
secret,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|