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.
Files changed (53) hide show
  1. package/.github/workflows/build-release.yaml +18 -2
  2. package/README.md +2 -2
  3. package/configuration.ts +1 -1
  4. package/dist/configuration.js +1 -1
  5. package/dist/esm/configuration.js +1 -1
  6. package/docs/AccountApi.md +1 -1
  7. package/docs/Error.md +1 -1
  8. package/docs/FoldersApi.md +4 -4
  9. package/docs/MessagesApi.md +13 -13
  10. package/docs/Pagination.md +1 -1
  11. package/docs/QuotaApi.md +1 -1
  12. package/docs/SendApi.md +1 -1
  13. package/docs/V1FolderMessagesCollection.md +1 -1
  14. package/docs/V1FolderMessagesDeleteBulkRequest.md +1 -1
  15. package/docs/V1FolderMessagesFlagsBulkRequest.md +1 -1
  16. package/docs/V1FolderMessagesFlagsRequest.md +1 -1
  17. package/docs/V1FolderMessagesMessage.md +1 -1
  18. package/docs/V1FolderMessagesMessageAddress.md +1 -1
  19. package/docs/V1FolderMessagesMessageAttachment.md +1 -1
  20. package/docs/V1FolderMessagesMessageText.md +1 -1
  21. package/docs/V1FolderMessagesMessageTextResource.md +1 -1
  22. package/docs/V1FolderMessagesMoveBulkRequest.md +1 -1
  23. package/docs/V1FolderMessagesMoveRequest.md +1 -1
  24. package/docs/V1FolderMessagesResource.md +1 -1
  25. package/docs/V1FolderMessagesSearchRequest.md +1 -1
  26. package/docs/V1FolderMessagesUpdateFlagsResult.md +1 -1
  27. package/docs/V1FolderMessagesUpdateFlagsResultData.md +1 -1
  28. package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +1 -1
  29. package/docs/V1FoldersCollection.md +1 -1
  30. package/docs/V1FoldersCreateRequest.md +1 -1
  31. package/docs/V1FoldersFolder.md +1 -1
  32. package/docs/V1FoldersResource.md +1 -1
  33. package/docs/V1FoldersUpdateRequest.md +1 -1
  34. package/docs/V1MeMailbox.md +1 -1
  35. package/docs/V1MeResource.md +1 -1
  36. package/docs/V1MeResourceData.md +1 -1
  37. package/docs/V1QuotaQuota.md +1 -1
  38. package/docs/V1QuotaQuotaResource.md +1 -1
  39. package/docs/V1QuotaResource.md +1 -1
  40. package/docs/V1SendAttachment.md +1 -1
  41. package/docs/V1SendMessageRef.md +1 -1
  42. package/docs/V1SendRequest.md +1 -1
  43. package/docs/V1WebhooksCollection.md +1 -1
  44. package/docs/V1WebhooksCreateRequest.md +1 -1
  45. package/docs/V1WebhooksResource.md +1 -1
  46. package/docs/V1WebhooksResourceWithSecret.md +1 -1
  47. package/docs/V1WebhooksTestResult.md +1 -1
  48. package/docs/V1WebhooksTestResultData.md +1 -1
  49. package/docs/V1WebhooksUpdateRequest.md +1 -1
  50. package/docs/V1WebhooksWebhook.md +1 -1
  51. package/docs/V1WebhooksWebhookWithSecret.md +1 -1
  52. package/docs/WebhooksApi.md +7 -7
  53. 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: '20.x'
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@v2.1.0
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
@@ -1,9 +1,9 @@
1
- ## hostinger-mail-api-sdk@1.17.5
1
+ ## @hostinger/mail-sdk@1.19.0
2
2
 
3
3
 
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-mail-api-sdk@1.17.5 --save
8
+ npm install @hostinger/mail-sdk@1.19.0 --save
9
9
  ```
package/configuration.ts CHANGED
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-mail-typescript-sdk/1.17.5",
51
+ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
@@ -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.17.5" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
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.17.5" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
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
  /**
@@ -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-mail-api-sdk';
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
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { ModelError } from 'hostinger-mail-api-sdk';
16
+ import { ModelError } from '@hostinger/mail-sdk';
17
17
 
18
18
  const instance: ModelError = {
19
19
  error,
@@ -21,7 +21,7 @@ import {
21
21
  FoldersApi,
22
22
  Configuration,
23
23
  V1FoldersCreateRequest
24
- } from 'hostinger-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
208
+ } from '@hostinger/mail-sdk';
209
209
 
210
210
  const configuration = new Configuration();
211
211
  const apiInstance = new FoldersApi(configuration);
@@ -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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
809
+ } from '@hostinger/mail-sdk';
810
810
 
811
811
  const configuration = new Configuration();
812
812
  const apiInstance = new MessagesApi(configuration);
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import { Pagination } from 'hostinger-mail-api-sdk';
17
+ import { Pagination } from '@hostinger/mail-sdk';
18
18
 
19
19
  const instance: Pagination = {
20
20
  page,
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-mail-api-sdk';
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
@@ -18,7 +18,7 @@ import {
18
18
  SendApi,
19
19
  Configuration,
20
20
  V1SendRequest
21
- } from 'hostinger-mail-api-sdk';
21
+ } from '@hostinger/mail-sdk';
22
22
 
23
23
  const configuration = new Configuration();
24
24
  const apiInstance = new SendApi(configuration);
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { V1FolderMessagesCollection } from 'hostinger-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
14
+ import { V1FolderMessagesUpdateFlagsResultDataFailedInner } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1FolderMessagesUpdateFlagsResultDataFailedInner = {
17
17
  uid,
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { V1FoldersCollection } from 'hostinger-mail-api-sdk';
15
+ import { V1FoldersCollection } from '@hostinger/mail-sdk';
16
16
 
17
17
  const instance: V1FoldersCollection = {
18
18
  data,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1FoldersCreateRequest } from 'hostinger-mail-api-sdk';
14
+ import { V1FoldersCreateRequest } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1FoldersCreateRequest = {
17
17
  name,
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  ## Example
17
17
 
18
18
  ```typescript
19
- import { V1FoldersFolder } from 'hostinger-mail-api-sdk';
19
+ import { V1FoldersFolder } from '@hostinger/mail-sdk';
20
20
 
21
21
  const instance: V1FoldersFolder = {
22
22
  path,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1FoldersResource } from 'hostinger-mail-api-sdk';
14
+ import { V1FoldersResource } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1FoldersResource = {
17
17
  data,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1FoldersUpdateRequest } from 'hostinger-mail-api-sdk';
14
+ import { V1FoldersUpdateRequest } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1FoldersUpdateRequest = {
17
17
  name,
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { V1MeMailbox } from 'hostinger-mail-api-sdk';
15
+ import { V1MeMailbox } from '@hostinger/mail-sdk';
16
16
 
17
17
  const instance: V1MeMailbox = {
18
18
  resourceId,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1MeResource } from 'hostinger-mail-api-sdk';
14
+ import { V1MeResource } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1MeResource = {
17
17
  data,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1MeResourceData } from 'hostinger-mail-api-sdk';
14
+ import { V1MeResourceData } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1MeResourceData = {
17
17
  orderResourceId,
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  ## Example
16
16
 
17
17
  ```typescript
18
- import { V1QuotaQuota } from 'hostinger-mail-api-sdk';
18
+ import { V1QuotaQuota } from '@hostinger/mail-sdk';
19
19
 
20
20
  const instance: V1QuotaQuota = {
21
21
  quotas,
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import { V1QuotaQuotaResource } from 'hostinger-mail-api-sdk';
17
+ import { V1QuotaQuotaResource } from '@hostinger/mail-sdk';
18
18
 
19
19
  const instance: V1QuotaQuotaResource = {
20
20
  resourceName,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1QuotaResource } from 'hostinger-mail-api-sdk';
14
+ import { V1QuotaResource } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1QuotaResource = {
17
17
  data,
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  ## Example
16
16
 
17
17
  ```typescript
18
- import { V1SendAttachment } from 'hostinger-mail-api-sdk';
18
+ import { V1SendAttachment } from '@hostinger/mail-sdk';
19
19
 
20
20
  const instance: V1SendAttachment = {
21
21
  filename,
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { V1SendMessageRef } from 'hostinger-mail-api-sdk';
15
+ import { V1SendMessageRef } from '@hostinger/mail-sdk';
16
16
 
17
17
  const instance: V1SendMessageRef = {
18
18
  uid,
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
20
20
  ## Example
21
21
 
22
22
  ```typescript
23
- import { V1SendRequest } from 'hostinger-mail-api-sdk';
23
+ import { V1SendRequest } from '@hostinger/mail-sdk';
24
24
 
25
25
  const instance: V1SendRequest = {
26
26
  to,
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { V1WebhooksCollection } from 'hostinger-mail-api-sdk';
15
+ import { V1WebhooksCollection } from '@hostinger/mail-sdk';
16
16
 
17
17
  const instance: V1WebhooksCollection = {
18
18
  data,
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
15
15
  ## Example
16
16
 
17
17
  ```typescript
18
- import { V1WebhooksCreateRequest } from 'hostinger-mail-api-sdk';
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 { V1WebhooksResource } from 'hostinger-mail-api-sdk';
14
+ import { V1WebhooksResource } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1WebhooksResource = {
17
17
  data,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1WebhooksResourceWithSecret } from 'hostinger-mail-api-sdk';
14
+ import { V1WebhooksResourceWithSecret } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1WebhooksResourceWithSecret = {
17
17
  data,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { V1WebhooksTestResult } from 'hostinger-mail-api-sdk';
14
+ import { V1WebhooksTestResult } from '@hostinger/mail-sdk';
15
15
 
16
16
  const instance: V1WebhooksTestResult = {
17
17
  data,
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { V1WebhooksTestResultData } from 'hostinger-mail-api-sdk';
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-mail-api-sdk';
18
+ import { V1WebhooksUpdateRequest } from '@hostinger/mail-sdk';
19
19
 
20
20
  const instance: V1WebhooksUpdateRequest = {
21
21
  name,
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
20
20
  ## Example
21
21
 
22
22
  ```typescript
23
- import { V1WebhooksWebhook } from 'hostinger-mail-api-sdk';
23
+ import { V1WebhooksWebhook } from '@hostinger/mail-sdk';
24
24
 
25
25
  const instance: V1WebhooksWebhook = {
26
26
  id,
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
21
21
  ## Example
22
22
 
23
23
  ```typescript
24
- import { V1WebhooksWebhookWithSecret } from 'hostinger-mail-api-sdk';
24
+ import { V1WebhooksWebhookWithSecret } from '@hostinger/mail-sdk';
25
25
 
26
26
  const instance: V1WebhooksWebhookWithSecret = {
27
27
  id,
@@ -24,7 +24,7 @@ import {
24
24
  WebhooksApi,
25
25
  Configuration,
26
26
  V1WebhooksCreateRequest
27
- } from 'hostinger-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
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-mail-api-sdk';
388
+ } from '@hostinger/mail-sdk';
389
389
 
390
390
  const configuration = new Configuration();
391
391
  const apiInstance = new WebhooksApi(configuration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-mail-api-sdk",
3
- "version": "1.17.5",
3
+ "version": "1.19.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {