@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.
Files changed (78) hide show
  1. package/.github/workflows/build-release.yaml +135 -0
  2. package/CODEOWNERS +1 -0
  3. package/README.md +9 -0
  4. package/api.ts +3791 -0
  5. package/base.ts +83 -0
  6. package/common.ts +111 -0
  7. package/configuration.ts +72 -0
  8. package/dist/api.d.ts +2457 -0
  9. package/dist/api.js +2484 -0
  10. package/dist/base.d.ts +63 -0
  11. package/dist/base.js +62 -0
  12. package/dist/common.d.ts +47 -0
  13. package/dist/common.js +118 -0
  14. package/dist/configuration.d.ts +51 -0
  15. package/dist/configuration.js +37 -0
  16. package/dist/esm/api.d.ts +2457 -0
  17. package/dist/esm/api.js +2457 -0
  18. package/dist/esm/base.d.ts +63 -0
  19. package/dist/esm/base.js +57 -0
  20. package/dist/esm/common.d.ts +47 -0
  21. package/dist/esm/common.js +109 -0
  22. package/dist/esm/configuration.d.ts +51 -0
  23. package/dist/esm/configuration.js +33 -0
  24. package/dist/esm/index.d.ts +10 -0
  25. package/dist/esm/index.js +12 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.js +28 -0
  28. package/docs/AccountApi.md +55 -0
  29. package/docs/Error.md +25 -0
  30. package/docs/FoldersApi.md +259 -0
  31. package/docs/MessagesApi.md +860 -0
  32. package/docs/Pagination.md +27 -0
  33. package/docs/QuotaApi.md +63 -0
  34. package/docs/SendApi.md +68 -0
  35. package/docs/V1FolderMessagesCollection.md +23 -0
  36. package/docs/V1FolderMessagesDeleteBulkRequest.md +21 -0
  37. package/docs/V1FolderMessagesFlagsBulkRequest.md +25 -0
  38. package/docs/V1FolderMessagesFlagsRequest.md +23 -0
  39. package/docs/V1FolderMessagesMessage.md +47 -0
  40. package/docs/V1FolderMessagesMessageAddress.md +23 -0
  41. package/docs/V1FolderMessagesMessageAttachment.md +31 -0
  42. package/docs/V1FolderMessagesMessageText.md +23 -0
  43. package/docs/V1FolderMessagesMessageTextResource.md +21 -0
  44. package/docs/V1FolderMessagesMoveBulkRequest.md +23 -0
  45. package/docs/V1FolderMessagesMoveRequest.md +21 -0
  46. package/docs/V1FolderMessagesResource.md +21 -0
  47. package/docs/V1FolderMessagesSearchRequest.md +45 -0
  48. package/docs/V1FolderMessagesUpdateFlagsResult.md +21 -0
  49. package/docs/V1FolderMessagesUpdateFlagsResultData.md +22 -0
  50. package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +22 -0
  51. package/docs/V1FoldersCollection.md +23 -0
  52. package/docs/V1FoldersCreateRequest.md +21 -0
  53. package/docs/V1FoldersFolder.md +31 -0
  54. package/docs/V1FoldersResource.md +21 -0
  55. package/docs/V1FoldersUpdateRequest.md +21 -0
  56. package/docs/V1MeMailbox.md +23 -0
  57. package/docs/V1MeResource.md +21 -0
  58. package/docs/V1MeResourceData.md +22 -0
  59. package/docs/V1QuotaQuota.md +29 -0
  60. package/docs/V1QuotaQuotaResource.md +27 -0
  61. package/docs/V1QuotaResource.md +21 -0
  62. package/docs/V1SendAttachment.md +29 -0
  63. package/docs/V1SendMessageRef.md +23 -0
  64. package/docs/V1SendRequest.md +39 -0
  65. package/docs/V1WebhooksCollection.md +23 -0
  66. package/docs/V1WebhooksCreateRequest.md +29 -0
  67. package/docs/V1WebhooksResource.md +21 -0
  68. package/docs/V1WebhooksResourceWithSecret.md +21 -0
  69. package/docs/V1WebhooksTestResult.md +21 -0
  70. package/docs/V1WebhooksTestResultData.md +24 -0
  71. package/docs/V1WebhooksUpdateRequest.md +29 -0
  72. package/docs/V1WebhooksWebhook.md +39 -0
  73. package/docs/V1WebhooksWebhookWithSecret.md +41 -0
  74. package/docs/WebhooksApi.md +439 -0
  75. package/index.ts +15 -0
  76. package/package.json +34 -0
  77. package/tsconfig.esm.json +7 -0
  78. package/tsconfig.json +18 -0
@@ -0,0 +1,27 @@
1
+ # Pagination
2
+
3
+ Pagination metadata for paginated collections.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **page** | **number** | Current page number (1-based). | [default to undefined]
10
+ **perPage** | **number** | Items per page. | [default to undefined]
11
+ **total** | **number** | Total number of items across all pages. | [default to undefined]
12
+ **totalPages** | **number** | Total number of pages. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { Pagination } from '@hostinger/mail-sdk';
18
+
19
+ const instance: Pagination = {
20
+ page,
21
+ perPage,
22
+ total,
23
+ totalPages,
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,63 @@
1
+ # QuotaApi
2
+
3
+ All URIs are relative to *https://api.mail.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getQuota**](#getquota) | **GET** /api/v1/mailboxes/{mailboxResourceId}/quota | Get mailbox quota|
8
+
9
+ # **getQuota**
10
+ > V1QuotaResource getQuota()
11
+
12
+ Retrieve storage and message quota usage for the managed mailbox.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ QuotaApi,
19
+ Configuration
20
+ } from '@hostinger/mail-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new QuotaApi(configuration);
24
+
25
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.getQuota(
28
+ mailboxResourceId
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **V1QuotaResource**
42
+
43
+ ### Authorization
44
+
45
+ [BearerAuth](../README.md#BearerAuth)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | Mailbox quota usage. | - |
57
+ |**401** | Missing or invalid credentials. | - |
58
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
59
+ |**500** | Server-side failure. | - |
60
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
61
+
62
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
63
+
@@ -0,0 +1,68 @@
1
+ # SendApi
2
+
3
+ All URIs are relative to *https://api.mail.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**sendEmail**](#sendemail) | **POST** /api/v1/mailboxes/{mailboxResourceId}/send | Send email|
8
+
9
+ # **sendEmail**
10
+ > sendEmail(v1SendRequest)
11
+
12
+ Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ SendApi,
19
+ Configuration,
20
+ V1SendRequest
21
+ } from '@hostinger/mail-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new SendApi(configuration);
25
+
26
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
27
+ let v1SendRequest: V1SendRequest; //
28
+
29
+ const { status, data } = await apiInstance.sendEmail(
30
+ mailboxResourceId,
31
+ v1SendRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **v1SendRequest** | **V1SendRequest**| | |
40
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ void (empty response body)
46
+
47
+ ### Authorization
48
+
49
+ [BearerAuth](../README.md#BearerAuth)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: application/json
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**204** | Message sent and saved to sent folder. | - |
61
+ |**401** | Missing or invalid credentials. | - |
62
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
63
+ |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
64
+ |**500** | Server-side failure. | - |
65
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
66
+
67
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
68
+
@@ -0,0 +1,23 @@
1
+ # V1FolderMessagesCollection
2
+
3
+ Paginated list of messages.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**Array<V1FolderMessagesMessage>**](V1FolderMessagesMessage.md) | | [default to undefined]
10
+ **pagination** | [**Pagination**](Pagination.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1FolderMessagesCollection } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1FolderMessagesCollection = {
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,21 @@
1
+ # V1FolderMessagesDeleteBulkRequest
2
+
3
+ Body for permanently deleting multiple messages.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uids** | **Array<number>** | Message UIDs to delete. 1-100 entries, each > 0. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesDeleteBulkRequest } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesDeleteBulkRequest = {
17
+ uids,
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,25 @@
1
+ # V1FolderMessagesFlagsBulkRequest
2
+
3
+ Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uids** | **Array<number>** | Message UIDs to update. 1-100 entries, each > 0. | [default to undefined]
10
+ **addFlags** | **Array<string>** | | [optional] [default to undefined]
11
+ **removeFlags** | **Array<string>** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { V1FolderMessagesFlagsBulkRequest } from '@hostinger/mail-sdk';
17
+
18
+ const instance: V1FolderMessagesFlagsBulkRequest = {
19
+ uids,
20
+ addFlags,
21
+ removeFlags,
22
+ };
23
+ ```
24
+
25
+ [[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
+ # V1FolderMessagesFlagsRequest
2
+
3
+ Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **addFlags** | **Array<string>** | | [optional] [default to undefined]
10
+ **removeFlags** | **Array<string>** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1FolderMessagesFlagsRequest } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1FolderMessagesFlagsRequest = {
18
+ addFlags,
19
+ removeFlags,
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,47 @@
1
+ # V1FolderMessagesMessage
2
+
3
+ A message in a folder of the managed mailbox.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uid** | **number** | | [default to undefined]
10
+ **path** | **string** | | [default to undefined]
11
+ **date** | **string** | | [default to undefined]
12
+ **flags** | **Array<string>** | | [default to undefined]
13
+ **unseen** | **boolean** | | [default to undefined]
14
+ **size** | **number** | | [default to undefined]
15
+ **subject** | **string** | | [default to undefined]
16
+ **from** | [**V1FolderMessagesMessageAddress**](V1FolderMessagesMessageAddress.md) | | [default to undefined]
17
+ **to** | [**Array<V1FolderMessagesMessageAddress>**](V1FolderMessagesMessageAddress.md) | | [default to undefined]
18
+ **cc** | [**Array<V1FolderMessagesMessageAddress>**](V1FolderMessagesMessageAddress.md) | | [default to undefined]
19
+ **bcc** | [**Array<V1FolderMessagesMessageAddress>**](V1FolderMessagesMessageAddress.md) | | [default to undefined]
20
+ **messageId** | **string** | | [default to undefined]
21
+ **inReplyTo** | **string** | | [default to undefined]
22
+ **attachments** | [**Array<V1FolderMessagesMessageAttachment>**](V1FolderMessagesMessageAttachment.md) | | [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { V1FolderMessagesMessage } from '@hostinger/mail-sdk';
28
+
29
+ const instance: V1FolderMessagesMessage = {
30
+ uid,
31
+ path,
32
+ date,
33
+ flags,
34
+ unseen,
35
+ size,
36
+ subject,
37
+ from,
38
+ to,
39
+ cc,
40
+ bcc,
41
+ messageId,
42
+ inReplyTo,
43
+ attachments,
44
+ };
45
+ ```
46
+
47
+ [[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
+ # V1FolderMessagesMessageAddress
2
+
3
+ A single email address with optional display name.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **address** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1FolderMessagesMessageAddress } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1FolderMessagesMessageAddress = {
18
+ name,
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,31 @@
1
+ # V1FolderMessagesMessageAttachment
2
+
3
+ Attachment metadata attached to a message.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint. | [default to undefined]
10
+ **contentType** | **string** | | [default to undefined]
11
+ **sizeBytes** | **number** | | [default to undefined]
12
+ **inline** | **boolean** | | [default to undefined]
13
+ **filename** | **string** | | [default to undefined]
14
+ **contentId** | **string** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { V1FolderMessagesMessageAttachment } from '@hostinger/mail-sdk';
20
+
21
+ const instance: V1FolderMessagesMessageAttachment = {
22
+ id,
23
+ contentType,
24
+ sizeBytes,
25
+ inline,
26
+ filename,
27
+ contentId,
28
+ };
29
+ ```
30
+
31
+ [[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
+ # V1FolderMessagesMessageText
2
+
3
+ Rendered text and HTML parts of a message.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **text** | **string** | | [default to undefined]
10
+ **html** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1FolderMessagesMessageText } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1FolderMessagesMessageText = {
18
+ text,
19
+ html,
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
+ # V1FolderMessagesMessageTextResource
2
+
3
+ Single message text payload.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**V1FolderMessagesMessageText**](V1FolderMessagesMessageText.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesMessageTextResource } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesMessageTextResource = {
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,23 @@
1
+ # V1FolderMessagesMoveBulkRequest
2
+
3
+ Body for moving multiple messages to a target folder.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uids** | **Array<number>** | Message UIDs to move. 1-100 entries, each > 0. | [default to undefined]
10
+ **targetFolder** | **string** | Destination folder path. | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1FolderMessagesMoveBulkRequest } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1FolderMessagesMoveBulkRequest = {
18
+ uids,
19
+ targetFolder,
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
+ # V1FolderMessagesMoveRequest
2
+
3
+ Body for moving a single message to a target folder.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **targetFolder** | **string** | Destination folder path. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesMoveRequest } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesMoveRequest = {
17
+ targetFolder,
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
+ # V1FolderMessagesResource
2
+
3
+ Single message payload.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**V1FolderMessagesMessage**](V1FolderMessagesMessage.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesResource } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesResource = {
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,45 @@
1
+ # V1FolderMessagesSearchRequest
2
+
3
+ Search criteria. All fields optional; combine to narrow results.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **since** | **string** | | [optional] [default to undefined]
10
+ **before** | **string** | | [optional] [default to undefined]
11
+ **flags** | **Array<string>** | | [optional] [default to undefined]
12
+ **uid** | **string** | | [optional] [default to undefined]
13
+ **subject** | **string** | | [optional] [default to undefined]
14
+ **from** | **string** | | [optional] [default to undefined]
15
+ **to** | **string** | | [optional] [default to undefined]
16
+ **cc** | **string** | | [optional] [default to undefined]
17
+ **body** | **string** | | [optional] [default to undefined]
18
+ **header** | **string** | | [optional] [default to undefined]
19
+ **larger** | **number** | | [optional] [default to undefined]
20
+ **smaller** | **number** | | [optional] [default to undefined]
21
+ **text** | **string** | | [optional] [default to undefined]
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import { V1FolderMessagesSearchRequest } from '@hostinger/mail-sdk';
27
+
28
+ const instance: V1FolderMessagesSearchRequest = {
29
+ since,
30
+ before,
31
+ flags,
32
+ uid,
33
+ subject,
34
+ from,
35
+ to,
36
+ cc,
37
+ body,
38
+ header,
39
+ larger,
40
+ smaller,
41
+ text,
42
+ };
43
+ ```
44
+
45
+ [[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
+ # V1FolderMessagesUpdateFlagsResult
2
+
3
+ Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**V1FolderMessagesUpdateFlagsResultData**](V1FolderMessagesUpdateFlagsResultData.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesUpdateFlagsResult } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesUpdateFlagsResult = {
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
+ # V1FolderMessagesUpdateFlagsResultData
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **successful** | **Array<number>** | | [default to undefined]
9
+ **failed** | [**Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>**](V1FolderMessagesUpdateFlagsResultDataFailedInner.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesUpdateFlagsResultData } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesUpdateFlagsResultData = {
17
+ successful,
18
+ failed,
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,22 @@
1
+ # V1FolderMessagesUpdateFlagsResultDataFailedInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uid** | **number** | | [default to undefined]
9
+ **reason** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FolderMessagesUpdateFlagsResultDataFailedInner } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FolderMessagesUpdateFlagsResultDataFailedInner = {
17
+ uid,
18
+ reason,
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,23 @@
1
+ # V1FoldersCollection
2
+
3
+ Paginated list of folders.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**Array<V1FoldersFolder>**](V1FoldersFolder.md) | | [default to undefined]
10
+ **pagination** | [**Pagination**](Pagination.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1FoldersCollection } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1FoldersCollection = {
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,21 @@
1
+ # V1FoldersCreateRequest
2
+
3
+ Body for creating a folder.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | Folder name. Length 1-100 after trimming. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1FoldersCreateRequest } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1FoldersCreateRequest = {
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,31 @@
1
+ # V1FoldersFolder
2
+
3
+ A folder (IMAP mailbox) in the managed mailbox.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **path** | **string** | Full hierarchical folder path including the delimiter. | [default to undefined]
10
+ **name** | **string** | Leaf name of the folder. | [default to undefined]
11
+ **delimiter** | **string** | Hierarchy delimiter used by the IMAP server. | [default to undefined]
12
+ **specialUse** | **string** | IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders. | [default to undefined]
13
+ **messageCount** | **number** | Total number of messages in the folder. | [default to undefined]
14
+ **unreadCount** | **number** | Number of unread messages in the folder. | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { V1FoldersFolder } from '@hostinger/mail-sdk';
20
+
21
+ const instance: V1FoldersFolder = {
22
+ path,
23
+ name,
24
+ delimiter,
25
+ specialUse,
26
+ messageCount,
27
+ unreadCount,
28
+ };
29
+ ```
30
+
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)