hostinger-mail-api-sdk 1.17.5 → 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 +18 -2
- package/README.md +2 -2
- package/configuration.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/AccountApi.md +1 -1
- package/docs/Error.md +1 -1
- package/docs/FoldersApi.md +4 -4
- package/docs/MessagesApi.md +13 -13
- package/docs/Pagination.md +1 -1
- package/docs/QuotaApi.md +1 -1
- package/docs/SendApi.md +1 -1
- package/docs/V1FolderMessagesCollection.md +1 -1
- package/docs/V1FolderMessagesDeleteBulkRequest.md +1 -1
- package/docs/V1FolderMessagesFlagsBulkRequest.md +1 -1
- package/docs/V1FolderMessagesFlagsRequest.md +1 -1
- package/docs/V1FolderMessagesMessage.md +1 -1
- package/docs/V1FolderMessagesMessageAddress.md +1 -1
- package/docs/V1FolderMessagesMessageAttachment.md +1 -1
- package/docs/V1FolderMessagesMessageText.md +1 -1
- package/docs/V1FolderMessagesMessageTextResource.md +1 -1
- package/docs/V1FolderMessagesMoveBulkRequest.md +1 -1
- package/docs/V1FolderMessagesMoveRequest.md +1 -1
- package/docs/V1FolderMessagesResource.md +1 -1
- package/docs/V1FolderMessagesSearchRequest.md +1 -1
- package/docs/V1FolderMessagesUpdateFlagsResult.md +1 -1
- package/docs/V1FolderMessagesUpdateFlagsResultData.md +1 -1
- package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +1 -1
- package/docs/V1FoldersCollection.md +1 -1
- package/docs/V1FoldersCreateRequest.md +1 -1
- package/docs/V1FoldersFolder.md +1 -1
- package/docs/V1FoldersResource.md +1 -1
- package/docs/V1FoldersUpdateRequest.md +1 -1
- package/docs/V1MeMailbox.md +1 -1
- package/docs/V1MeResource.md +1 -1
- package/docs/V1MeResourceData.md +1 -1
- package/docs/V1QuotaQuota.md +1 -1
- package/docs/V1QuotaQuotaResource.md +1 -1
- package/docs/V1QuotaResource.md +1 -1
- package/docs/V1SendAttachment.md +1 -1
- package/docs/V1SendMessageRef.md +1 -1
- package/docs/V1SendRequest.md +1 -1
- package/docs/V1WebhooksCollection.md +1 -1
- package/docs/V1WebhooksCreateRequest.md +1 -1
- package/docs/V1WebhooksResource.md +1 -1
- package/docs/V1WebhooksResourceWithSecret.md +1 -1
- package/docs/V1WebhooksTestResult.md +1 -1
- package/docs/V1WebhooksTestResultData.md +1 -1
- package/docs/V1WebhooksUpdateRequest.md +1 -1
- package/docs/V1WebhooksWebhook.md +1 -1
- package/docs/V1WebhooksWebhookWithSecret.md +1 -1
- package/docs/WebhooksApi.md +7 -7
- package/package.json +1 -1
|
@@ -63,6 +63,22 @@ jobs:
|
|
|
63
63
|
- name: Publish package
|
|
64
64
|
run: npm publish --provenance --access public
|
|
65
65
|
|
|
66
|
+
# The package was published unscoped before moving to @hostinger. Republish
|
|
67
|
+
# each release under the old name so existing installs keep updating.
|
|
68
|
+
# Both names point their npm trusted publisher at this workflow file, which
|
|
69
|
+
# is what the config keys on — the job/step it runs in is not part of it.
|
|
70
|
+
# hostinger-mail-api-sdk is substituted by scripts/post-typescript-axios.sh and
|
|
71
|
+
# is empty for an API that never had an unscoped package.
|
|
72
|
+
- name: Publish legacy unscoped alias
|
|
73
|
+
run: |
|
|
74
|
+
LEGACY='hostinger-mail-api-sdk'
|
|
75
|
+
if [ -z "$LEGACY" ]; then
|
|
76
|
+
echo "No legacy npm name configured — nothing to alias."
|
|
77
|
+
exit 0
|
|
78
|
+
fi
|
|
79
|
+
jq --arg n "$LEGACY" '.name = $n' package.json > pkg.tmp && mv pkg.tmp package.json
|
|
80
|
+
npm publish --provenance --access public
|
|
81
|
+
|
|
66
82
|
publish-github:
|
|
67
83
|
runs-on: ubuntu-latest
|
|
68
84
|
needs: [release]
|
|
@@ -76,7 +92,7 @@ jobs:
|
|
|
76
92
|
|
|
77
93
|
- uses: actions/setup-node@v4
|
|
78
94
|
with:
|
|
79
|
-
node-version: '
|
|
95
|
+
node-version: '26.x'
|
|
80
96
|
registry-url: 'https://npm.pkg.github.com'
|
|
81
97
|
scope: '@hostinger'
|
|
82
98
|
|
|
@@ -96,7 +112,7 @@ jobs:
|
|
|
96
112
|
runs-on: ubuntu-latest
|
|
97
113
|
steps:
|
|
98
114
|
- name: Notify Slack on release failure
|
|
99
|
-
uses: slackapi/slack-github-action@
|
|
115
|
+
uses: slackapi/slack-github-action@v4.0.0
|
|
100
116
|
with:
|
|
101
117
|
errors: true
|
|
102
118
|
webhook: ${{ secrets.PLATFORM_INCIDENT_SLACK_CHANNEL_WEBHOOK }}
|
package/README.md
CHANGED
package/configuration.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/docs/AccountApi.md
CHANGED
|
@@ -17,7 +17,7 @@ Returns the authenticated account and the mailboxes it can manage.
|
|
|
17
17
|
import {
|
|
18
18
|
AccountApi,
|
|
19
19
|
Configuration
|
|
20
|
-
} from 'hostinger
|
|
20
|
+
} from '@hostinger/mail-sdk';
|
|
21
21
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new AccountApi(configuration);
|
package/docs/Error.md
CHANGED
package/docs/FoldersApi.md
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
FoldersApi,
|
|
22
22
|
Configuration,
|
|
23
23
|
V1FoldersCreateRequest
|
|
24
|
-
} from 'hostinger
|
|
24
|
+
} from '@hostinger/mail-sdk';
|
|
25
25
|
|
|
26
26
|
const configuration = new Configuration();
|
|
27
27
|
const apiInstance = new FoldersApi(configuration);
|
|
@@ -81,7 +81,7 @@ Delete a folder and all of its subfolders.
|
|
|
81
81
|
import {
|
|
82
82
|
FoldersApi,
|
|
83
83
|
Configuration
|
|
84
|
-
} from 'hostinger
|
|
84
|
+
} from '@hostinger/mail-sdk';
|
|
85
85
|
|
|
86
86
|
const configuration = new Configuration();
|
|
87
87
|
const apiInstance = new FoldersApi(configuration);
|
|
@@ -142,7 +142,7 @@ Retrieve a paginated list of folders in the managed mailbox.
|
|
|
142
142
|
import {
|
|
143
143
|
FoldersApi,
|
|
144
144
|
Configuration
|
|
145
|
-
} from 'hostinger
|
|
145
|
+
} from '@hostinger/mail-sdk';
|
|
146
146
|
|
|
147
147
|
const configuration = new Configuration();
|
|
148
148
|
const apiInstance = new FoldersApi(configuration);
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
FoldersApi,
|
|
206
206
|
Configuration,
|
|
207
207
|
V1FoldersUpdateRequest
|
|
208
|
-
} from 'hostinger
|
|
208
|
+
} from '@hostinger/mail-sdk';
|
|
209
209
|
|
|
210
210
|
const configuration = new Configuration();
|
|
211
211
|
const apiInstance = new FoldersApi(configuration);
|
package/docs/MessagesApi.md
CHANGED
|
@@ -29,7 +29,7 @@ Permanently delete every message in a folder (empty the folder).
|
|
|
29
29
|
import {
|
|
30
30
|
MessagesApi,
|
|
31
31
|
Configuration
|
|
32
|
-
} from 'hostinger
|
|
32
|
+
} from '@hostinger/mail-sdk';
|
|
33
33
|
|
|
34
34
|
const configuration = new Configuration();
|
|
35
35
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -89,7 +89,7 @@ Permanently delete a single message.
|
|
|
89
89
|
import {
|
|
90
90
|
MessagesApi,
|
|
91
91
|
Configuration
|
|
92
|
-
} from 'hostinger
|
|
92
|
+
} from '@hostinger/mail-sdk';
|
|
93
93
|
|
|
94
94
|
const configuration = new Configuration();
|
|
95
95
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
MessagesApi,
|
|
153
153
|
Configuration,
|
|
154
154
|
V1FolderMessagesDeleteBulkRequest
|
|
155
|
-
} from 'hostinger
|
|
155
|
+
} from '@hostinger/mail-sdk';
|
|
156
156
|
|
|
157
157
|
const configuration = new Configuration();
|
|
158
158
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -214,7 +214,7 @@ Retrieve a single message by UID.
|
|
|
214
214
|
import {
|
|
215
215
|
MessagesApi,
|
|
216
216
|
Configuration
|
|
217
|
-
} from 'hostinger
|
|
217
|
+
} from '@hostinger/mail-sdk';
|
|
218
218
|
|
|
219
219
|
const configuration = new Configuration();
|
|
220
220
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -277,7 +277,7 @@ Download a message attachment as `application/octet-stream`.
|
|
|
277
277
|
import {
|
|
278
278
|
MessagesApi,
|
|
279
279
|
Configuration
|
|
280
|
-
} from 'hostinger
|
|
280
|
+
} from '@hostinger/mail-sdk';
|
|
281
281
|
|
|
282
282
|
const configuration = new Configuration();
|
|
283
283
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -343,7 +343,7 @@ Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
|
343
343
|
import {
|
|
344
344
|
MessagesApi,
|
|
345
345
|
Configuration
|
|
346
|
-
} from 'hostinger
|
|
346
|
+
} from '@hostinger/mail-sdk';
|
|
347
347
|
|
|
348
348
|
const configuration = new Configuration();
|
|
349
349
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -406,7 +406,7 @@ Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
|
|
|
406
406
|
import {
|
|
407
407
|
MessagesApi,
|
|
408
408
|
Configuration
|
|
409
|
-
} from 'hostinger
|
|
409
|
+
} from '@hostinger/mail-sdk';
|
|
410
410
|
|
|
411
411
|
const configuration = new Configuration();
|
|
412
412
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -469,7 +469,7 @@ List messages in a folder. Use POST /search for filtering. Sort fields: uid, dat
|
|
|
469
469
|
import {
|
|
470
470
|
MessagesApi,
|
|
471
471
|
Configuration
|
|
472
|
-
} from 'hostinger
|
|
472
|
+
} from '@hostinger/mail-sdk';
|
|
473
473
|
|
|
474
474
|
const configuration = new Configuration();
|
|
475
475
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -538,7 +538,7 @@ import {
|
|
|
538
538
|
MessagesApi,
|
|
539
539
|
Configuration,
|
|
540
540
|
V1FolderMessagesMoveRequest
|
|
541
|
-
} from 'hostinger
|
|
541
|
+
} from '@hostinger/mail-sdk';
|
|
542
542
|
|
|
543
543
|
const configuration = new Configuration();
|
|
544
544
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -604,7 +604,7 @@ import {
|
|
|
604
604
|
MessagesApi,
|
|
605
605
|
Configuration,
|
|
606
606
|
V1FolderMessagesMoveBulkRequest
|
|
607
|
-
} from 'hostinger
|
|
607
|
+
} from '@hostinger/mail-sdk';
|
|
608
608
|
|
|
609
609
|
const configuration = new Configuration();
|
|
610
610
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -667,7 +667,7 @@ import {
|
|
|
667
667
|
MessagesApi,
|
|
668
668
|
Configuration,
|
|
669
669
|
V1FolderMessagesFlagsRequest
|
|
670
|
-
} from 'hostinger
|
|
670
|
+
} from '@hostinger/mail-sdk';
|
|
671
671
|
|
|
672
672
|
const configuration = new Configuration();
|
|
673
673
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -734,7 +734,7 @@ import {
|
|
|
734
734
|
MessagesApi,
|
|
735
735
|
Configuration,
|
|
736
736
|
V1FolderMessagesSearchRequest
|
|
737
|
-
} from 'hostinger
|
|
737
|
+
} from '@hostinger/mail-sdk';
|
|
738
738
|
|
|
739
739
|
const configuration = new Configuration();
|
|
740
740
|
const apiInstance = new MessagesApi(configuration);
|
|
@@ -806,7 +806,7 @@ import {
|
|
|
806
806
|
MessagesApi,
|
|
807
807
|
Configuration,
|
|
808
808
|
V1FolderMessagesFlagsBulkRequest
|
|
809
|
-
} from 'hostinger
|
|
809
|
+
} from '@hostinger/mail-sdk';
|
|
810
810
|
|
|
811
811
|
const configuration = new Configuration();
|
|
812
812
|
const apiInstance = new MessagesApi(configuration);
|
package/docs/Pagination.md
CHANGED
package/docs/QuotaApi.md
CHANGED
|
@@ -17,7 +17,7 @@ Retrieve storage and message quota usage for the managed mailbox.
|
|
|
17
17
|
import {
|
|
18
18
|
QuotaApi,
|
|
19
19
|
Configuration
|
|
20
|
-
} from 'hostinger
|
|
20
|
+
} from '@hostinger/mail-sdk';
|
|
21
21
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new QuotaApi(configuration);
|
package/docs/SendApi.md
CHANGED
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { V1FolderMessagesCollection } from 'hostinger
|
|
15
|
+
import { V1FolderMessagesCollection } from '@hostinger/mail-sdk';
|
|
16
16
|
|
|
17
17
|
const instance: V1FolderMessagesCollection = {
|
|
18
18
|
data,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesDeleteBulkRequest } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesDeleteBulkRequest } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesDeleteBulkRequest = {
|
|
17
17
|
uids,
|
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { V1FolderMessagesFlagsBulkRequest } from 'hostinger
|
|
16
|
+
import { V1FolderMessagesFlagsBulkRequest } from '@hostinger/mail-sdk';
|
|
17
17
|
|
|
18
18
|
const instance: V1FolderMessagesFlagsBulkRequest = {
|
|
19
19
|
uids,
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { V1FolderMessagesFlagsRequest } from 'hostinger
|
|
15
|
+
import { V1FolderMessagesFlagsRequest } from '@hostinger/mail-sdk';
|
|
16
16
|
|
|
17
17
|
const instance: V1FolderMessagesFlagsRequest = {
|
|
18
18
|
addFlags,
|
|
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
|
|
|
24
24
|
## Example
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
27
|
-
import { V1FolderMessagesMessage } from 'hostinger
|
|
27
|
+
import { V1FolderMessagesMessage } from '@hostinger/mail-sdk';
|
|
28
28
|
|
|
29
29
|
const instance: V1FolderMessagesMessage = {
|
|
30
30
|
uid,
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { V1FolderMessagesMessageAddress } from 'hostinger
|
|
15
|
+
import { V1FolderMessagesMessageAddress } from '@hostinger/mail-sdk';
|
|
16
16
|
|
|
17
17
|
const instance: V1FolderMessagesMessageAddress = {
|
|
18
18
|
name,
|
|
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import { V1FolderMessagesMessageAttachment } from 'hostinger
|
|
19
|
+
import { V1FolderMessagesMessageAttachment } from '@hostinger/mail-sdk';
|
|
20
20
|
|
|
21
21
|
const instance: V1FolderMessagesMessageAttachment = {
|
|
22
22
|
id,
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { V1FolderMessagesMessageText } from 'hostinger
|
|
15
|
+
import { V1FolderMessagesMessageText } from '@hostinger/mail-sdk';
|
|
16
16
|
|
|
17
17
|
const instance: V1FolderMessagesMessageText = {
|
|
18
18
|
text,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesMessageTextResource } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesMessageTextResource } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesMessageTextResource = {
|
|
17
17
|
data,
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { V1FolderMessagesMoveBulkRequest } from 'hostinger
|
|
15
|
+
import { V1FolderMessagesMoveBulkRequest } from '@hostinger/mail-sdk';
|
|
16
16
|
|
|
17
17
|
const instance: V1FolderMessagesMoveBulkRequest = {
|
|
18
18
|
uids,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesMoveRequest } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesMoveRequest } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesMoveRequest = {
|
|
17
17
|
targetFolder,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesResource } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesResource } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesResource = {
|
|
17
17
|
data,
|
|
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
## Example
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
|
-
import { V1FolderMessagesSearchRequest } from 'hostinger
|
|
26
|
+
import { V1FolderMessagesSearchRequest } from '@hostinger/mail-sdk';
|
|
27
27
|
|
|
28
28
|
const instance: V1FolderMessagesSearchRequest = {
|
|
29
29
|
since,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesUpdateFlagsResult } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesUpdateFlagsResult } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesUpdateFlagsResult = {
|
|
17
17
|
data,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesUpdateFlagsResultData } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesUpdateFlagsResultData } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesUpdateFlagsResultData = {
|
|
17
17
|
successful,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1FolderMessagesUpdateFlagsResultDataFailedInner } from 'hostinger
|
|
14
|
+
import { V1FolderMessagesUpdateFlagsResultDataFailedInner } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1FolderMessagesUpdateFlagsResultDataFailedInner = {
|
|
17
17
|
uid,
|
package/docs/V1FoldersFolder.md
CHANGED
package/docs/V1MeMailbox.md
CHANGED
package/docs/V1MeResource.md
CHANGED
package/docs/V1MeResourceData.md
CHANGED
package/docs/V1QuotaQuota.md
CHANGED
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import { V1QuotaQuotaResource } from 'hostinger
|
|
17
|
+
import { V1QuotaQuotaResource } from '@hostinger/mail-sdk';
|
|
18
18
|
|
|
19
19
|
const instance: V1QuotaQuotaResource = {
|
|
20
20
|
resourceName,
|
package/docs/V1QuotaResource.md
CHANGED
package/docs/V1SendAttachment.md
CHANGED
package/docs/V1SendMessageRef.md
CHANGED
package/docs/V1SendRequest.md
CHANGED
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { V1WebhooksCreateRequest } from 'hostinger
|
|
18
|
+
import { V1WebhooksCreateRequest } from '@hostinger/mail-sdk';
|
|
19
19
|
|
|
20
20
|
const instance: V1WebhooksCreateRequest = {
|
|
21
21
|
name,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { V1WebhooksResourceWithSecret } from 'hostinger
|
|
14
|
+
import { V1WebhooksResourceWithSecret } from '@hostinger/mail-sdk';
|
|
15
15
|
|
|
16
16
|
const instance: V1WebhooksResourceWithSecret = {
|
|
17
17
|
data,
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import { V1WebhooksTestResultData } from 'hostinger
|
|
15
|
+
import { V1WebhooksTestResultData } from '@hostinger/mail-sdk';
|
|
16
16
|
|
|
17
17
|
const instance: V1WebhooksTestResultData = {
|
|
18
18
|
httpStatus,
|
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { V1WebhooksUpdateRequest } from 'hostinger
|
|
18
|
+
import { V1WebhooksUpdateRequest } from '@hostinger/mail-sdk';
|
|
19
19
|
|
|
20
20
|
const instance: V1WebhooksUpdateRequest = {
|
|
21
21
|
name,
|
|
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import { V1WebhooksWebhookWithSecret } from 'hostinger
|
|
24
|
+
import { V1WebhooksWebhookWithSecret } from '@hostinger/mail-sdk';
|
|
25
25
|
|
|
26
26
|
const instance: V1WebhooksWebhookWithSecret = {
|
|
27
27
|
id,
|
package/docs/WebhooksApi.md
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
WebhooksApi,
|
|
25
25
|
Configuration,
|
|
26
26
|
V1WebhooksCreateRequest
|
|
27
|
-
} from 'hostinger
|
|
27
|
+
} from '@hostinger/mail-sdk';
|
|
28
28
|
|
|
29
29
|
const configuration = new Configuration();
|
|
30
30
|
const apiInstance = new WebhooksApi(configuration);
|
|
@@ -83,7 +83,7 @@ Delete a webhook.
|
|
|
83
83
|
import {
|
|
84
84
|
WebhooksApi,
|
|
85
85
|
Configuration
|
|
86
|
-
} from 'hostinger
|
|
86
|
+
} from '@hostinger/mail-sdk';
|
|
87
87
|
|
|
88
88
|
const configuration = new Configuration();
|
|
89
89
|
const apiInstance = new WebhooksApi(configuration);
|
|
@@ -142,7 +142,7 @@ Retrieve a single webhook by id.
|
|
|
142
142
|
import {
|
|
143
143
|
WebhooksApi,
|
|
144
144
|
Configuration
|
|
145
|
-
} from 'hostinger
|
|
145
|
+
} from '@hostinger/mail-sdk';
|
|
146
146
|
|
|
147
147
|
const configuration = new Configuration();
|
|
148
148
|
const apiInstance = new WebhooksApi(configuration);
|
|
@@ -201,7 +201,7 @@ List webhooks for a mailbox.
|
|
|
201
201
|
import {
|
|
202
202
|
WebhooksApi,
|
|
203
203
|
Configuration
|
|
204
|
-
} from 'hostinger
|
|
204
|
+
} from '@hostinger/mail-sdk';
|
|
205
205
|
|
|
206
206
|
const configuration = new Configuration();
|
|
207
207
|
const apiInstance = new WebhooksApi(configuration);
|
|
@@ -266,7 +266,7 @@ Regenerate the webhook secret. The previous secret is immediately invalidated. T
|
|
|
266
266
|
import {
|
|
267
267
|
WebhooksApi,
|
|
268
268
|
Configuration
|
|
269
|
-
} from 'hostinger
|
|
269
|
+
} from '@hostinger/mail-sdk';
|
|
270
270
|
|
|
271
271
|
const configuration = new Configuration();
|
|
272
272
|
const apiInstance = new WebhooksApi(configuration);
|
|
@@ -325,7 +325,7 @@ Send a test delivery to the webhook URL and return the upstream response.
|
|
|
325
325
|
import {
|
|
326
326
|
WebhooksApi,
|
|
327
327
|
Configuration
|
|
328
|
-
} from 'hostinger
|
|
328
|
+
} from '@hostinger/mail-sdk';
|
|
329
329
|
|
|
330
330
|
const configuration = new Configuration();
|
|
331
331
|
const apiInstance = new WebhooksApi(configuration);
|
|
@@ -385,7 +385,7 @@ import {
|
|
|
385
385
|
WebhooksApi,
|
|
386
386
|
Configuration,
|
|
387
387
|
V1WebhooksUpdateRequest
|
|
388
|
-
} from 'hostinger
|
|
388
|
+
} from '@hostinger/mail-sdk';
|
|
389
389
|
|
|
390
390
|
const configuration = new Configuration();
|
|
391
391
|
const apiInstance = new WebhooksApi(configuration);
|