hostinger-mail-api-sdk 1.0.2 → 1.17.2
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 +29 -1
- package/README.md +2 -2
- package/api.ts +33 -2
- package/base.ts +2 -2
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +60 -29
- package/dist/api.js +2 -2
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +60 -29
- package/dist/esm/api.js +2 -2
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/V1SendMessageRef.md +23 -0
- package/docs/V1SendRequest.md +4 -0
- package/index.ts +2 -2
- package/package.json +2 -2
|
@@ -51,7 +51,7 @@ jobs:
|
|
|
51
51
|
|
|
52
52
|
- uses: actions/setup-node@v4
|
|
53
53
|
with:
|
|
54
|
-
node-version: '
|
|
54
|
+
node-version: '26.x'
|
|
55
55
|
registry-url: 'https://registry.npmjs.org'
|
|
56
56
|
|
|
57
57
|
- name: Update NPM
|
|
@@ -89,3 +89,31 @@ jobs:
|
|
|
89
89
|
npm publish --provenance --access public
|
|
90
90
|
env:
|
|
91
91
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
92
|
+
|
|
93
|
+
notify-failure:
|
|
94
|
+
needs: [release, publish-npmjs, publish-github]
|
|
95
|
+
if: failure()
|
|
96
|
+
runs-on: ubuntu-latest
|
|
97
|
+
steps:
|
|
98
|
+
- name: Notify Slack on release failure
|
|
99
|
+
uses: slackapi/slack-github-action@v2.1.0
|
|
100
|
+
with:
|
|
101
|
+
errors: true
|
|
102
|
+
webhook: ${{ secrets.PLATFORM_INCIDENT_SLACK_CHANNEL_WEBHOOK }}
|
|
103
|
+
webhook-type: incoming-webhook
|
|
104
|
+
payload: |
|
|
105
|
+
text: ":rotating_light: Release failed in ${{ github.repository }}"
|
|
106
|
+
blocks:
|
|
107
|
+
- type: section
|
|
108
|
+
text:
|
|
109
|
+
type: mrkdwn
|
|
110
|
+
text: |
|
|
111
|
+
:rotating_light: *Release failed:* `${{ github.repository }}`
|
|
112
|
+
*Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>
|
|
113
|
+
- type: actions
|
|
114
|
+
elements:
|
|
115
|
+
- type: button
|
|
116
|
+
text:
|
|
117
|
+
type: plain_text
|
|
118
|
+
text: "View failed run"
|
|
119
|
+
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
package/README.md
CHANGED
package/api.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -788,6 +788,25 @@ export interface V1SendAttachment {
|
|
|
788
788
|
*/
|
|
789
789
|
'encoding': string;
|
|
790
790
|
}
|
|
791
|
+
/**
|
|
792
|
+
* Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
793
|
+
* @export
|
|
794
|
+
* @interface V1SendMessageRef
|
|
795
|
+
*/
|
|
796
|
+
export interface V1SendMessageRef {
|
|
797
|
+
/**
|
|
798
|
+
* UID of the source message.
|
|
799
|
+
* @type {number}
|
|
800
|
+
* @memberof V1SendMessageRef
|
|
801
|
+
*/
|
|
802
|
+
'uid': number;
|
|
803
|
+
/**
|
|
804
|
+
* Folder containing the source message.
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof V1SendMessageRef
|
|
807
|
+
*/
|
|
808
|
+
'folder': string;
|
|
809
|
+
}
|
|
791
810
|
/**
|
|
792
811
|
* Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
793
812
|
* @export
|
|
@@ -842,6 +861,18 @@ export interface V1SendRequest {
|
|
|
842
861
|
* @memberof V1SendRequest
|
|
843
862
|
*/
|
|
844
863
|
'attachments': Array<V1SendAttachment>;
|
|
864
|
+
/**
|
|
865
|
+
* 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.
|
|
866
|
+
* @type {V1SendMessageRef}
|
|
867
|
+
* @memberof V1SendRequest
|
|
868
|
+
*/
|
|
869
|
+
'inReplyTo': V1SendMessageRef;
|
|
870
|
+
/**
|
|
871
|
+
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
872
|
+
* @type {V1SendMessageRef}
|
|
873
|
+
* @memberof V1SendRequest
|
|
874
|
+
*/
|
|
875
|
+
'forwardOf': V1SendMessageRef;
|
|
845
876
|
}
|
|
846
877
|
/**
|
|
847
878
|
* Paginated list of webhooks.
|
package/base.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -106,6 +106,6 @@ export const toPathString = function (url: URL) {
|
|
|
106
106
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
107
107
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
108
108
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
109
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
109
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
110
110
|
};
|
|
111
111
|
}
|
package/configuration.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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.
|
|
51
|
+
'User-Agent': "hostinger-mail-typescript-sdk/1.17.2",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -780,6 +780,25 @@ export interface V1SendAttachment {
|
|
|
780
780
|
*/
|
|
781
781
|
'encoding': string;
|
|
782
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
* Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
785
|
+
* @export
|
|
786
|
+
* @interface V1SendMessageRef
|
|
787
|
+
*/
|
|
788
|
+
export interface V1SendMessageRef {
|
|
789
|
+
/**
|
|
790
|
+
* UID of the source message.
|
|
791
|
+
* @type {number}
|
|
792
|
+
* @memberof V1SendMessageRef
|
|
793
|
+
*/
|
|
794
|
+
'uid': number;
|
|
795
|
+
/**
|
|
796
|
+
* Folder containing the source message.
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof V1SendMessageRef
|
|
799
|
+
*/
|
|
800
|
+
'folder': string;
|
|
801
|
+
}
|
|
783
802
|
/**
|
|
784
803
|
* Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
785
804
|
* @export
|
|
@@ -834,6 +853,18 @@ export interface V1SendRequest {
|
|
|
834
853
|
* @memberof V1SendRequest
|
|
835
854
|
*/
|
|
836
855
|
'attachments': Array<V1SendAttachment>;
|
|
856
|
+
/**
|
|
857
|
+
* 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.
|
|
858
|
+
* @type {V1SendMessageRef}
|
|
859
|
+
* @memberof V1SendRequest
|
|
860
|
+
*/
|
|
861
|
+
'inReplyTo': V1SendMessageRef;
|
|
862
|
+
/**
|
|
863
|
+
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
864
|
+
* @type {V1SendMessageRef}
|
|
865
|
+
* @memberof V1SendRequest
|
|
866
|
+
*/
|
|
867
|
+
'forwardOf': V1SendMessageRef;
|
|
837
868
|
}
|
|
838
869
|
/**
|
|
839
870
|
* Paginated list of webhooks.
|
|
@@ -1225,7 +1256,7 @@ export declare class AccountApi extends BaseAPI {
|
|
|
1225
1256
|
* @throws {RequiredError}
|
|
1226
1257
|
* @memberof AccountApi
|
|
1227
1258
|
*/
|
|
1228
|
-
getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}>>;
|
|
1259
|
+
getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}, any>>;
|
|
1229
1260
|
}
|
|
1230
1261
|
/**
|
|
1231
1262
|
* FoldersApi - axios parameter creator
|
|
@@ -1375,7 +1406,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1375
1406
|
* @throws {RequiredError}
|
|
1376
1407
|
* @memberof FoldersApi
|
|
1377
1408
|
*/
|
|
1378
|
-
createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}>>;
|
|
1409
|
+
createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}, any>>;
|
|
1379
1410
|
/**
|
|
1380
1411
|
* Delete a folder and all of its subfolders.
|
|
1381
1412
|
* @summary Delete folder
|
|
@@ -1385,7 +1416,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1385
1416
|
* @throws {RequiredError}
|
|
1386
1417
|
* @memberof FoldersApi
|
|
1387
1418
|
*/
|
|
1388
|
-
deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1419
|
+
deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1389
1420
|
/**
|
|
1390
1421
|
* Retrieve a paginated list of folders in the managed mailbox.
|
|
1391
1422
|
* @summary List folders
|
|
@@ -1396,7 +1427,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1396
1427
|
* @throws {RequiredError}
|
|
1397
1428
|
* @memberof FoldersApi
|
|
1398
1429
|
*/
|
|
1399
|
-
listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersCollection, any, {}>>;
|
|
1430
|
+
listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersCollection, any, {}, any>>;
|
|
1400
1431
|
/**
|
|
1401
1432
|
* Rename an existing folder.
|
|
1402
1433
|
* @summary Update folder
|
|
@@ -1407,7 +1438,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1407
1438
|
* @throws {RequiredError}
|
|
1408
1439
|
* @memberof FoldersApi
|
|
1409
1440
|
*/
|
|
1410
|
-
updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}>>;
|
|
1441
|
+
updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}, any>>;
|
|
1411
1442
|
}
|
|
1412
1443
|
/**
|
|
1413
1444
|
* MessagesApi - axios parameter creator
|
|
@@ -1854,7 +1885,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1854
1885
|
* @throws {RequiredError}
|
|
1855
1886
|
* @memberof MessagesApi
|
|
1856
1887
|
*/
|
|
1857
|
-
deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1888
|
+
deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1858
1889
|
/**
|
|
1859
1890
|
* Permanently delete a single message.
|
|
1860
1891
|
* @summary Delete message
|
|
@@ -1865,7 +1896,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1865
1896
|
* @throws {RequiredError}
|
|
1866
1897
|
* @memberof MessagesApi
|
|
1867
1898
|
*/
|
|
1868
|
-
deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1899
|
+
deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1869
1900
|
/**
|
|
1870
1901
|
* Permanently delete multiple messages from a folder.
|
|
1871
1902
|
* @summary Delete messages
|
|
@@ -1876,7 +1907,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1876
1907
|
* @throws {RequiredError}
|
|
1877
1908
|
* @memberof MessagesApi
|
|
1878
1909
|
*/
|
|
1879
|
-
deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1910
|
+
deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1880
1911
|
/**
|
|
1881
1912
|
* Retrieve a single message by UID.
|
|
1882
1913
|
* @summary Get message
|
|
@@ -1887,7 +1918,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1887
1918
|
* @throws {RequiredError}
|
|
1888
1919
|
* @memberof MessagesApi
|
|
1889
1920
|
*/
|
|
1890
|
-
getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}>>;
|
|
1921
|
+
getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}, any>>;
|
|
1891
1922
|
/**
|
|
1892
1923
|
* Download a message attachment as `application/octet-stream`.
|
|
1893
1924
|
* @summary Download message attachment
|
|
@@ -1899,7 +1930,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1899
1930
|
* @throws {RequiredError}
|
|
1900
1931
|
* @memberof MessagesApi
|
|
1901
1932
|
*/
|
|
1902
|
-
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
1933
|
+
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
1903
1934
|
/**
|
|
1904
1935
|
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1905
1936
|
* @summary Get message source
|
|
@@ -1910,7 +1941,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1910
1941
|
* @throws {RequiredError}
|
|
1911
1942
|
* @memberof MessagesApi
|
|
1912
1943
|
*/
|
|
1913
|
-
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
1944
|
+
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
1914
1945
|
/**
|
|
1915
1946
|
* Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
|
|
1916
1947
|
* @summary Get message text content
|
|
@@ -1921,7 +1952,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1921
1952
|
* @throws {RequiredError}
|
|
1922
1953
|
* @memberof MessagesApi
|
|
1923
1954
|
*/
|
|
1924
|
-
getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesMessageTextResource, any, {}>>;
|
|
1955
|
+
getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesMessageTextResource, any, {}, any>>;
|
|
1925
1956
|
/**
|
|
1926
1957
|
* List messages in a folder. Use POST /search for filtering. Sort fields: uid, date, size (prefix with `-` for descending). Default `-uid`.
|
|
1927
1958
|
* @summary List messages
|
|
@@ -1934,7 +1965,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1934
1965
|
* @throws {RequiredError}
|
|
1935
1966
|
* @memberof MessagesApi
|
|
1936
1967
|
*/
|
|
1937
|
-
listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}>>;
|
|
1968
|
+
listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}, any>>;
|
|
1938
1969
|
/**
|
|
1939
1970
|
* Move a single message to a target folder.
|
|
1940
1971
|
* @summary Move message
|
|
@@ -1946,7 +1977,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1946
1977
|
* @throws {RequiredError}
|
|
1947
1978
|
* @memberof MessagesApi
|
|
1948
1979
|
*/
|
|
1949
|
-
moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1980
|
+
moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1950
1981
|
/**
|
|
1951
1982
|
* Move multiple messages from a source folder to a target folder.
|
|
1952
1983
|
* @summary Move messages
|
|
@@ -1957,7 +1988,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1957
1988
|
* @throws {RequiredError}
|
|
1958
1989
|
* @memberof MessagesApi
|
|
1959
1990
|
*/
|
|
1960
|
-
moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1991
|
+
moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1961
1992
|
/**
|
|
1962
1993
|
* Add and/or remove flags on a single message. Returns the updated message.
|
|
1963
1994
|
* @summary Update message flags
|
|
@@ -1969,7 +2000,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1969
2000
|
* @throws {RequiredError}
|
|
1970
2001
|
* @memberof MessagesApi
|
|
1971
2002
|
*/
|
|
1972
|
-
patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}>>;
|
|
2003
|
+
patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}, any>>;
|
|
1973
2004
|
/**
|
|
1974
2005
|
* Search messages in a folder. Filters in body; pagination and sort via query (`page`, `perPage`, `sort`).
|
|
1975
2006
|
* @summary Search messages
|
|
@@ -1983,7 +2014,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1983
2014
|
* @throws {RequiredError}
|
|
1984
2015
|
* @memberof MessagesApi
|
|
1985
2016
|
*/
|
|
1986
|
-
searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}>>;
|
|
2017
|
+
searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}, any>>;
|
|
1987
2018
|
/**
|
|
1988
2019
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1989
2020
|
* @summary Update message flags
|
|
@@ -1994,7 +2025,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1994
2025
|
* @throws {RequiredError}
|
|
1995
2026
|
* @memberof MessagesApi
|
|
1996
2027
|
*/
|
|
1997
|
-
updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesUpdateFlagsResult, any, {}>>;
|
|
2028
|
+
updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesUpdateFlagsResult, any, {}, any>>;
|
|
1998
2029
|
}
|
|
1999
2030
|
/**
|
|
2000
2031
|
* QuotaApi - axios parameter creator
|
|
@@ -2053,7 +2084,7 @@ export declare class QuotaApi extends BaseAPI {
|
|
|
2053
2084
|
* @throws {RequiredError}
|
|
2054
2085
|
* @memberof QuotaApi
|
|
2055
2086
|
*/
|
|
2056
|
-
getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1QuotaResource, any, {}>>;
|
|
2087
|
+
getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1QuotaResource, any, {}, any>>;
|
|
2057
2088
|
}
|
|
2058
2089
|
/**
|
|
2059
2090
|
* SendApi - axios parameter creator
|
|
@@ -2116,7 +2147,7 @@ export declare class SendApi extends BaseAPI {
|
|
|
2116
2147
|
* @throws {RequiredError}
|
|
2117
2148
|
* @memberof SendApi
|
|
2118
2149
|
*/
|
|
2119
|
-
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
2150
|
+
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
2120
2151
|
}
|
|
2121
2152
|
/**
|
|
2122
2153
|
* WebhooksApi - axios parameter creator
|
|
@@ -2350,7 +2381,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2350
2381
|
* @throws {RequiredError}
|
|
2351
2382
|
* @memberof WebhooksApi
|
|
2352
2383
|
*/
|
|
2353
|
-
createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}>>;
|
|
2384
|
+
createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}, any>>;
|
|
2354
2385
|
/**
|
|
2355
2386
|
* Delete a webhook.
|
|
2356
2387
|
* @summary Delete webhook
|
|
@@ -2360,7 +2391,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2360
2391
|
* @throws {RequiredError}
|
|
2361
2392
|
* @memberof WebhooksApi
|
|
2362
2393
|
*/
|
|
2363
|
-
deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
2394
|
+
deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
2364
2395
|
/**
|
|
2365
2396
|
* Retrieve a single webhook by id.
|
|
2366
2397
|
* @summary Get webhook
|
|
@@ -2370,7 +2401,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2370
2401
|
* @throws {RequiredError}
|
|
2371
2402
|
* @memberof WebhooksApi
|
|
2372
2403
|
*/
|
|
2373
|
-
getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}>>;
|
|
2404
|
+
getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}, any>>;
|
|
2374
2405
|
/**
|
|
2375
2406
|
* List webhooks for a mailbox.
|
|
2376
2407
|
* @summary List webhooks
|
|
@@ -2382,7 +2413,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2382
2413
|
* @throws {RequiredError}
|
|
2383
2414
|
* @memberof WebhooksApi
|
|
2384
2415
|
*/
|
|
2385
|
-
listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksCollection, any, {}>>;
|
|
2416
|
+
listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksCollection, any, {}, any>>;
|
|
2386
2417
|
/**
|
|
2387
2418
|
* Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
|
|
2388
2419
|
* @summary Regenerate webhook secret
|
|
@@ -2392,7 +2423,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2392
2423
|
* @throws {RequiredError}
|
|
2393
2424
|
* @memberof WebhooksApi
|
|
2394
2425
|
*/
|
|
2395
|
-
regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}>>;
|
|
2426
|
+
regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}, any>>;
|
|
2396
2427
|
/**
|
|
2397
2428
|
* Send a test delivery to the webhook URL and return the upstream response.
|
|
2398
2429
|
* @summary Test webhook
|
|
@@ -2402,7 +2433,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2402
2433
|
* @throws {RequiredError}
|
|
2403
2434
|
* @memberof WebhooksApi
|
|
2404
2435
|
*/
|
|
2405
|
-
testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksTestResult, any, {}>>;
|
|
2436
|
+
testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksTestResult, any, {}, any>>;
|
|
2406
2437
|
/**
|
|
2407
2438
|
* Partially update a webhook.
|
|
2408
2439
|
* @summary Update webhook
|
|
@@ -2413,7 +2444,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2413
2444
|
* @throws {RequiredError}
|
|
2414
2445
|
* @memberof WebhooksApi
|
|
2415
2446
|
*/
|
|
2416
|
-
updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}>>;
|
|
2447
|
+
updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}, any>>;
|
|
2417
2448
|
}
|
|
2418
2449
|
/**
|
|
2419
2450
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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.17.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -780,6 +780,25 @@ export interface V1SendAttachment {
|
|
|
780
780
|
*/
|
|
781
781
|
'encoding': string;
|
|
782
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
* Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
|
|
785
|
+
* @export
|
|
786
|
+
* @interface V1SendMessageRef
|
|
787
|
+
*/
|
|
788
|
+
export interface V1SendMessageRef {
|
|
789
|
+
/**
|
|
790
|
+
* UID of the source message.
|
|
791
|
+
* @type {number}
|
|
792
|
+
* @memberof V1SendMessageRef
|
|
793
|
+
*/
|
|
794
|
+
'uid': number;
|
|
795
|
+
/**
|
|
796
|
+
* Folder containing the source message.
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof V1SendMessageRef
|
|
799
|
+
*/
|
|
800
|
+
'folder': string;
|
|
801
|
+
}
|
|
783
802
|
/**
|
|
784
803
|
* Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
785
804
|
* @export
|
|
@@ -834,6 +853,18 @@ export interface V1SendRequest {
|
|
|
834
853
|
* @memberof V1SendRequest
|
|
835
854
|
*/
|
|
836
855
|
'attachments': Array<V1SendAttachment>;
|
|
856
|
+
/**
|
|
857
|
+
* 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.
|
|
858
|
+
* @type {V1SendMessageRef}
|
|
859
|
+
* @memberof V1SendRequest
|
|
860
|
+
*/
|
|
861
|
+
'inReplyTo': V1SendMessageRef;
|
|
862
|
+
/**
|
|
863
|
+
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
864
|
+
* @type {V1SendMessageRef}
|
|
865
|
+
* @memberof V1SendRequest
|
|
866
|
+
*/
|
|
867
|
+
'forwardOf': V1SendMessageRef;
|
|
837
868
|
}
|
|
838
869
|
/**
|
|
839
870
|
* Paginated list of webhooks.
|
|
@@ -1225,7 +1256,7 @@ export declare class AccountApi extends BaseAPI {
|
|
|
1225
1256
|
* @throws {RequiredError}
|
|
1226
1257
|
* @memberof AccountApi
|
|
1227
1258
|
*/
|
|
1228
|
-
getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}>>;
|
|
1259
|
+
getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}, any>>;
|
|
1229
1260
|
}
|
|
1230
1261
|
/**
|
|
1231
1262
|
* FoldersApi - axios parameter creator
|
|
@@ -1375,7 +1406,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1375
1406
|
* @throws {RequiredError}
|
|
1376
1407
|
* @memberof FoldersApi
|
|
1377
1408
|
*/
|
|
1378
|
-
createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}>>;
|
|
1409
|
+
createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}, any>>;
|
|
1379
1410
|
/**
|
|
1380
1411
|
* Delete a folder and all of its subfolders.
|
|
1381
1412
|
* @summary Delete folder
|
|
@@ -1385,7 +1416,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1385
1416
|
* @throws {RequiredError}
|
|
1386
1417
|
* @memberof FoldersApi
|
|
1387
1418
|
*/
|
|
1388
|
-
deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1419
|
+
deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1389
1420
|
/**
|
|
1390
1421
|
* Retrieve a paginated list of folders in the managed mailbox.
|
|
1391
1422
|
* @summary List folders
|
|
@@ -1396,7 +1427,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1396
1427
|
* @throws {RequiredError}
|
|
1397
1428
|
* @memberof FoldersApi
|
|
1398
1429
|
*/
|
|
1399
|
-
listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersCollection, any, {}>>;
|
|
1430
|
+
listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersCollection, any, {}, any>>;
|
|
1400
1431
|
/**
|
|
1401
1432
|
* Rename an existing folder.
|
|
1402
1433
|
* @summary Update folder
|
|
@@ -1407,7 +1438,7 @@ export declare class FoldersApi extends BaseAPI {
|
|
|
1407
1438
|
* @throws {RequiredError}
|
|
1408
1439
|
* @memberof FoldersApi
|
|
1409
1440
|
*/
|
|
1410
|
-
updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}>>;
|
|
1441
|
+
updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}, any>>;
|
|
1411
1442
|
}
|
|
1412
1443
|
/**
|
|
1413
1444
|
* MessagesApi - axios parameter creator
|
|
@@ -1854,7 +1885,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1854
1885
|
* @throws {RequiredError}
|
|
1855
1886
|
* @memberof MessagesApi
|
|
1856
1887
|
*/
|
|
1857
|
-
deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1888
|
+
deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1858
1889
|
/**
|
|
1859
1890
|
* Permanently delete a single message.
|
|
1860
1891
|
* @summary Delete message
|
|
@@ -1865,7 +1896,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1865
1896
|
* @throws {RequiredError}
|
|
1866
1897
|
* @memberof MessagesApi
|
|
1867
1898
|
*/
|
|
1868
|
-
deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1899
|
+
deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1869
1900
|
/**
|
|
1870
1901
|
* Permanently delete multiple messages from a folder.
|
|
1871
1902
|
* @summary Delete messages
|
|
@@ -1876,7 +1907,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1876
1907
|
* @throws {RequiredError}
|
|
1877
1908
|
* @memberof MessagesApi
|
|
1878
1909
|
*/
|
|
1879
|
-
deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1910
|
+
deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1880
1911
|
/**
|
|
1881
1912
|
* Retrieve a single message by UID.
|
|
1882
1913
|
* @summary Get message
|
|
@@ -1887,7 +1918,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1887
1918
|
* @throws {RequiredError}
|
|
1888
1919
|
* @memberof MessagesApi
|
|
1889
1920
|
*/
|
|
1890
|
-
getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}>>;
|
|
1921
|
+
getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}, any>>;
|
|
1891
1922
|
/**
|
|
1892
1923
|
* Download a message attachment as `application/octet-stream`.
|
|
1893
1924
|
* @summary Download message attachment
|
|
@@ -1899,7 +1930,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1899
1930
|
* @throws {RequiredError}
|
|
1900
1931
|
* @memberof MessagesApi
|
|
1901
1932
|
*/
|
|
1902
|
-
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
1933
|
+
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
1903
1934
|
/**
|
|
1904
1935
|
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1905
1936
|
* @summary Get message source
|
|
@@ -1910,7 +1941,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1910
1941
|
* @throws {RequiredError}
|
|
1911
1942
|
* @memberof MessagesApi
|
|
1912
1943
|
*/
|
|
1913
|
-
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
1944
|
+
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
1914
1945
|
/**
|
|
1915
1946
|
* Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
|
|
1916
1947
|
* @summary Get message text content
|
|
@@ -1921,7 +1952,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1921
1952
|
* @throws {RequiredError}
|
|
1922
1953
|
* @memberof MessagesApi
|
|
1923
1954
|
*/
|
|
1924
|
-
getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesMessageTextResource, any, {}>>;
|
|
1955
|
+
getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesMessageTextResource, any, {}, any>>;
|
|
1925
1956
|
/**
|
|
1926
1957
|
* List messages in a folder. Use POST /search for filtering. Sort fields: uid, date, size (prefix with `-` for descending). Default `-uid`.
|
|
1927
1958
|
* @summary List messages
|
|
@@ -1934,7 +1965,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1934
1965
|
* @throws {RequiredError}
|
|
1935
1966
|
* @memberof MessagesApi
|
|
1936
1967
|
*/
|
|
1937
|
-
listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}>>;
|
|
1968
|
+
listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}, any>>;
|
|
1938
1969
|
/**
|
|
1939
1970
|
* Move a single message to a target folder.
|
|
1940
1971
|
* @summary Move message
|
|
@@ -1946,7 +1977,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1946
1977
|
* @throws {RequiredError}
|
|
1947
1978
|
* @memberof MessagesApi
|
|
1948
1979
|
*/
|
|
1949
|
-
moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1980
|
+
moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1950
1981
|
/**
|
|
1951
1982
|
* Move multiple messages from a source folder to a target folder.
|
|
1952
1983
|
* @summary Move messages
|
|
@@ -1957,7 +1988,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1957
1988
|
* @throws {RequiredError}
|
|
1958
1989
|
* @memberof MessagesApi
|
|
1959
1990
|
*/
|
|
1960
|
-
moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1991
|
+
moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
1961
1992
|
/**
|
|
1962
1993
|
* Add and/or remove flags on a single message. Returns the updated message.
|
|
1963
1994
|
* @summary Update message flags
|
|
@@ -1969,7 +2000,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1969
2000
|
* @throws {RequiredError}
|
|
1970
2001
|
* @memberof MessagesApi
|
|
1971
2002
|
*/
|
|
1972
|
-
patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}>>;
|
|
2003
|
+
patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}, any>>;
|
|
1973
2004
|
/**
|
|
1974
2005
|
* Search messages in a folder. Filters in body; pagination and sort via query (`page`, `perPage`, `sort`).
|
|
1975
2006
|
* @summary Search messages
|
|
@@ -1983,7 +2014,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1983
2014
|
* @throws {RequiredError}
|
|
1984
2015
|
* @memberof MessagesApi
|
|
1985
2016
|
*/
|
|
1986
|
-
searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}>>;
|
|
2017
|
+
searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}, any>>;
|
|
1987
2018
|
/**
|
|
1988
2019
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1989
2020
|
* @summary Update message flags
|
|
@@ -1994,7 +2025,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
1994
2025
|
* @throws {RequiredError}
|
|
1995
2026
|
* @memberof MessagesApi
|
|
1996
2027
|
*/
|
|
1997
|
-
updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesUpdateFlagsResult, any, {}>>;
|
|
2028
|
+
updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesUpdateFlagsResult, any, {}, any>>;
|
|
1998
2029
|
}
|
|
1999
2030
|
/**
|
|
2000
2031
|
* QuotaApi - axios parameter creator
|
|
@@ -2053,7 +2084,7 @@ export declare class QuotaApi extends BaseAPI {
|
|
|
2053
2084
|
* @throws {RequiredError}
|
|
2054
2085
|
* @memberof QuotaApi
|
|
2055
2086
|
*/
|
|
2056
|
-
getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1QuotaResource, any, {}>>;
|
|
2087
|
+
getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1QuotaResource, any, {}, any>>;
|
|
2057
2088
|
}
|
|
2058
2089
|
/**
|
|
2059
2090
|
* SendApi - axios parameter creator
|
|
@@ -2116,7 +2147,7 @@ export declare class SendApi extends BaseAPI {
|
|
|
2116
2147
|
* @throws {RequiredError}
|
|
2117
2148
|
* @memberof SendApi
|
|
2118
2149
|
*/
|
|
2119
|
-
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
2150
|
+
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
2120
2151
|
}
|
|
2121
2152
|
/**
|
|
2122
2153
|
* WebhooksApi - axios parameter creator
|
|
@@ -2350,7 +2381,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2350
2381
|
* @throws {RequiredError}
|
|
2351
2382
|
* @memberof WebhooksApi
|
|
2352
2383
|
*/
|
|
2353
|
-
createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}>>;
|
|
2384
|
+
createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}, any>>;
|
|
2354
2385
|
/**
|
|
2355
2386
|
* Delete a webhook.
|
|
2356
2387
|
* @summary Delete webhook
|
|
@@ -2360,7 +2391,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2360
2391
|
* @throws {RequiredError}
|
|
2361
2392
|
* @memberof WebhooksApi
|
|
2362
2393
|
*/
|
|
2363
|
-
deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
2394
|
+
deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
2364
2395
|
/**
|
|
2365
2396
|
* Retrieve a single webhook by id.
|
|
2366
2397
|
* @summary Get webhook
|
|
@@ -2370,7 +2401,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2370
2401
|
* @throws {RequiredError}
|
|
2371
2402
|
* @memberof WebhooksApi
|
|
2372
2403
|
*/
|
|
2373
|
-
getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}>>;
|
|
2404
|
+
getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}, any>>;
|
|
2374
2405
|
/**
|
|
2375
2406
|
* List webhooks for a mailbox.
|
|
2376
2407
|
* @summary List webhooks
|
|
@@ -2382,7 +2413,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2382
2413
|
* @throws {RequiredError}
|
|
2383
2414
|
* @memberof WebhooksApi
|
|
2384
2415
|
*/
|
|
2385
|
-
listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksCollection, any, {}>>;
|
|
2416
|
+
listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksCollection, any, {}, any>>;
|
|
2386
2417
|
/**
|
|
2387
2418
|
* Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
|
|
2388
2419
|
* @summary Regenerate webhook secret
|
|
@@ -2392,7 +2423,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2392
2423
|
* @throws {RequiredError}
|
|
2393
2424
|
* @memberof WebhooksApi
|
|
2394
2425
|
*/
|
|
2395
|
-
regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}>>;
|
|
2426
|
+
regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}, any>>;
|
|
2396
2427
|
/**
|
|
2397
2428
|
* Send a test delivery to the webhook URL and return the upstream response.
|
|
2398
2429
|
* @summary Test webhook
|
|
@@ -2402,7 +2433,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2402
2433
|
* @throws {RequiredError}
|
|
2403
2434
|
* @memberof WebhooksApi
|
|
2404
2435
|
*/
|
|
2405
|
-
testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksTestResult, any, {}>>;
|
|
2436
|
+
testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksTestResult, any, {}, any>>;
|
|
2406
2437
|
/**
|
|
2407
2438
|
* Partially update a webhook.
|
|
2408
2439
|
* @summary Update webhook
|
|
@@ -2413,7 +2444,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
2413
2444
|
* @throws {RequiredError}
|
|
2414
2445
|
* @memberof WebhooksApi
|
|
2415
2446
|
*/
|
|
2416
|
-
updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}>>;
|
|
2447
|
+
updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}, any>>;
|
|
2417
2448
|
}
|
|
2418
2449
|
/**
|
|
2419
2450
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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.17.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hostinger
|
|
2
|
+
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Hostinger
|
|
5
|
+
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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-api-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)
|
package/docs/V1SendRequest.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**text** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**html** | **string** | | [optional] [default to undefined]
|
|
16
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]
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -29,6 +31,8 @@ const instance: V1SendRequest = {
|
|
|
29
31
|
text,
|
|
30
32
|
html,
|
|
31
33
|
attachments,
|
|
34
|
+
inReplyTo,
|
|
35
|
+
forwardOf,
|
|
32
36
|
};
|
|
33
37
|
```
|
|
34
38
|
|
package/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Hostinger
|
|
4
|
+
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hostinger-mail-api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.2",
|
|
4
4
|
"description": "Hostinger API TypeScript SDK",
|
|
5
5
|
"author": "Hostinger",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"axios": "^1.8.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "12.11.5 -
|
|
31
|
+
"@types/node": "12.11.5 - 26.1.2",
|
|
32
32
|
"typescript": "^4.0 || ^5.0"
|
|
33
33
|
}
|
|
34
34
|
}
|