@hostinger/mail-sdk 1.19.6 → 1.19.8
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/README.md +2 -2
- package/api.ts +75 -75
- package/base.ts +1 -1
- package/common.ts +14 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +19 -19
- package/dist/api.js +68 -68
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +7 -1
- package/dist/common.js +15 -2
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +19 -19
- package/dist/esm/api.js +69 -69
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +7 -1
- package/dist/esm/common.js +13 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/MessagesApi.md +2 -2
- package/docs/V1SendRequest.md +2 -2
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.3.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
|
|
@@ -873,13 +873,13 @@ export interface V1SendRequest {
|
|
|
873
873
|
*/
|
|
874
874
|
'attachments': Array<V1SendAttachment>;
|
|
875
875
|
/**
|
|
876
|
-
* 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.
|
|
876
|
+
* Source message this is a reply to, as an object {uid, folder} — not the Message-ID header string. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf.
|
|
877
877
|
* @type {V1SendMessageRef}
|
|
878
878
|
* @memberof V1SendRequest
|
|
879
879
|
*/
|
|
880
880
|
'inReplyTo': V1SendMessageRef;
|
|
881
881
|
/**
|
|
882
|
-
* Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
882
|
+
* Source message this forwards, as an object {uid, folder} — not the Message-ID header string. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
|
|
883
883
|
* @type {V1SendMessageRef}
|
|
884
884
|
* @memberof V1SendRequest
|
|
885
885
|
*/
|
|
@@ -1578,7 +1578,7 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1578
1578
|
*/
|
|
1579
1579
|
getMessageAttachment: (mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1580
1580
|
/**
|
|
1581
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1581
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
1582
1582
|
* @summary Get message source
|
|
1583
1583
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1584
1584
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1588,7 +1588,7 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1588
1588
|
*/
|
|
1589
1589
|
getMessageSource: (mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1590
1590
|
/**
|
|
1591
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
1591
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
1592
1592
|
* @summary Get message text content
|
|
1593
1593
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1594
1594
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1721,7 +1721,7 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
|
1721
1721
|
*/
|
|
1722
1722
|
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
1723
1723
|
/**
|
|
1724
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1724
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
1725
1725
|
* @summary Get message source
|
|
1726
1726
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1727
1727
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1731,7 +1731,7 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
|
1731
1731
|
*/
|
|
1732
1732
|
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
1733
1733
|
/**
|
|
1734
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
1734
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
1735
1735
|
* @summary Get message text content
|
|
1736
1736
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1737
1737
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1864,7 +1864,7 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
|
|
|
1864
1864
|
*/
|
|
1865
1865
|
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
1866
1866
|
/**
|
|
1867
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1867
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
1868
1868
|
* @summary Get message source
|
|
1869
1869
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1870
1870
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1874,7 +1874,7 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
|
|
|
1874
1874
|
*/
|
|
1875
1875
|
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
1876
1876
|
/**
|
|
1877
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
1877
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
1878
1878
|
* @summary Get message text content
|
|
1879
1879
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1880
1880
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -2014,7 +2014,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
2014
2014
|
*/
|
|
2015
2015
|
getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
2016
2016
|
/**
|
|
2017
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
2017
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
2018
2018
|
* @summary Get message source
|
|
2019
2019
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2020
2020
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -2025,7 +2025,7 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
2025
2025
|
*/
|
|
2026
2026
|
getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
2027
2027
|
/**
|
|
2028
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
2028
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
2029
2029
|
* @summary Get message text content
|
|
2030
2030
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2031
2031
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -2177,11 +2177,11 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
2177
2177
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
2178
2178
|
* @summary Send email
|
|
2179
2179
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2180
|
-
* @param {V1SendRequest
|
|
2180
|
+
* @param {V1SendRequest} v1SendRequest
|
|
2181
2181
|
* @param {*} [options] Override http request option.
|
|
2182
2182
|
* @throws {RequiredError}
|
|
2183
2183
|
*/
|
|
2184
|
-
sendEmail: (mailboxResourceId: string, v1SendRequest: V1SendRequest
|
|
2184
|
+
sendEmail: (mailboxResourceId: string, v1SendRequest: V1SendRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2185
2185
|
};
|
|
2186
2186
|
/**
|
|
2187
2187
|
* SendApi - functional programming interface
|
|
@@ -2192,11 +2192,11 @@ export declare const SendApiFp: (configuration?: Configuration) => {
|
|
|
2192
2192
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
2193
2193
|
* @summary Send email
|
|
2194
2194
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2195
|
-
* @param {V1SendRequest
|
|
2195
|
+
* @param {V1SendRequest} v1SendRequest
|
|
2196
2196
|
* @param {*} [options] Override http request option.
|
|
2197
2197
|
* @throws {RequiredError}
|
|
2198
2198
|
*/
|
|
2199
|
-
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest
|
|
2199
|
+
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2200
2200
|
};
|
|
2201
2201
|
/**
|
|
2202
2202
|
* SendApi - factory interface
|
|
@@ -2207,11 +2207,11 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2207
2207
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
2208
2208
|
* @summary Send email
|
|
2209
2209
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2210
|
-
* @param {V1SendRequest
|
|
2210
|
+
* @param {V1SendRequest} v1SendRequest
|
|
2211
2211
|
* @param {*} [options] Override http request option.
|
|
2212
2212
|
* @throws {RequiredError}
|
|
2213
2213
|
*/
|
|
2214
|
-
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest
|
|
2214
|
+
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2215
2215
|
};
|
|
2216
2216
|
/**
|
|
2217
2217
|
* SendApi - object-oriented interface
|
|
@@ -2224,12 +2224,12 @@ export declare class SendApi extends BaseAPI {
|
|
|
2224
2224
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
2225
2225
|
* @summary Send email
|
|
2226
2226
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2227
|
-
* @param {V1SendRequest
|
|
2227
|
+
* @param {V1SendRequest} v1SendRequest
|
|
2228
2228
|
* @param {*} [options] Override http request option.
|
|
2229
2229
|
* @throws {RequiredError}
|
|
2230
2230
|
* @memberof SendApi
|
|
2231
2231
|
*/
|
|
2232
|
-
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest
|
|
2232
|
+
sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
2233
2233
|
}
|
|
2234
2234
|
/**
|
|
2235
2235
|
* WebhooksApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.3.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
|
|
@@ -177,7 +177,7 @@ const FeedbackApiAxiosParamCreator = function (configuration) {
|
|
|
177
177
|
// verify required parameter 'v1FeedbackSubmitRequest' is not null or undefined
|
|
178
178
|
(0, common_1.assertParamExists)('submitFeedback', 'v1FeedbackSubmitRequest', v1FeedbackSubmitRequest);
|
|
179
179
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/feedback`
|
|
180
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
180
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
181
181
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
182
182
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
183
|
let baseOptions;
|
|
@@ -291,7 +291,7 @@ const FoldersApiAxiosParamCreator = function (configuration) {
|
|
|
291
291
|
// verify required parameter 'v1FoldersCreateRequest' is not null or undefined
|
|
292
292
|
(0, common_1.assertParamExists)('createFolder', 'v1FoldersCreateRequest', v1FoldersCreateRequest);
|
|
293
293
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders`
|
|
294
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
294
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
295
295
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
296
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
297
297
|
let baseOptions;
|
|
@@ -328,8 +328,8 @@ const FoldersApiAxiosParamCreator = function (configuration) {
|
|
|
328
328
|
// verify required parameter 'folder' is not null or undefined
|
|
329
329
|
(0, common_1.assertParamExists)('deleteFolder', 'folder', folder);
|
|
330
330
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}`
|
|
331
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
332
|
-
.replace(`{${"folder"}}`,
|
|
331
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
332
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
333
333
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
334
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
335
|
let baseOptions;
|
|
@@ -363,7 +363,7 @@ const FoldersApiAxiosParamCreator = function (configuration) {
|
|
|
363
363
|
// verify required parameter 'mailboxResourceId' is not null or undefined
|
|
364
364
|
(0, common_1.assertParamExists)('listFolders', 'mailboxResourceId', mailboxResourceId);
|
|
365
365
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders`
|
|
366
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
366
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
367
367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
368
368
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
369
369
|
let baseOptions;
|
|
@@ -407,8 +407,8 @@ const FoldersApiAxiosParamCreator = function (configuration) {
|
|
|
407
407
|
// verify required parameter 'v1FoldersUpdateRequest' is not null or undefined
|
|
408
408
|
(0, common_1.assertParamExists)('updateFolder', 'v1FoldersUpdateRequest', v1FoldersUpdateRequest);
|
|
409
409
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}`
|
|
410
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
411
|
-
.replace(`{${"folder"}}`,
|
|
410
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
411
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
412
412
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
413
413
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
414
414
|
let baseOptions;
|
|
@@ -645,8 +645,8 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
645
645
|
// verify required parameter 'folder' is not null or undefined
|
|
646
646
|
(0, common_1.assertParamExists)('deleteAllMessages', 'folder', folder);
|
|
647
647
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages`
|
|
648
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
649
|
-
.replace(`{${"folder"}}`,
|
|
648
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
649
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
650
650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
651
651
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
652
652
|
let baseOptions;
|
|
@@ -684,9 +684,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
684
684
|
// verify required parameter 'uid' is not null or undefined
|
|
685
685
|
(0, common_1.assertParamExists)('deleteMessage', 'uid', uid);
|
|
686
686
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}`
|
|
687
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
688
|
-
.replace(`{${"folder"}}`,
|
|
689
|
-
.replace(`{${"uid"}}`,
|
|
687
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
688
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
689
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid));
|
|
690
690
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
691
691
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
692
692
|
let baseOptions;
|
|
@@ -724,8 +724,8 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
724
724
|
// verify required parameter 'v1FolderMessagesDeleteBulkRequest' is not null or undefined
|
|
725
725
|
(0, common_1.assertParamExists)('deleteMessages', 'v1FolderMessagesDeleteBulkRequest', v1FolderMessagesDeleteBulkRequest);
|
|
726
726
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/delete`
|
|
727
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
728
|
-
.replace(`{${"folder"}}`,
|
|
727
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
728
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
729
729
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
730
730
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
731
731
|
let baseOptions;
|
|
@@ -765,9 +765,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
765
765
|
// verify required parameter 'uid' is not null or undefined
|
|
766
766
|
(0, common_1.assertParamExists)('getMessage', 'uid', uid);
|
|
767
767
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}`
|
|
768
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
769
|
-
.replace(`{${"folder"}}`,
|
|
770
|
-
.replace(`{${"uid"}}`,
|
|
768
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
769
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
770
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid));
|
|
771
771
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
772
772
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
773
773
|
let baseOptions;
|
|
@@ -808,10 +808,10 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
808
808
|
// verify required parameter 'attachmentId' is not null or undefined
|
|
809
809
|
(0, common_1.assertParamExists)('getMessageAttachment', 'attachmentId', attachmentId);
|
|
810
810
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/attachments/{attachmentId}`
|
|
811
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
812
|
-
.replace(`{${"folder"}}`,
|
|
813
|
-
.replace(`{${"uid"}}`,
|
|
814
|
-
.replace(`{${"attachmentId"}}`,
|
|
811
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
812
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
813
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid))
|
|
814
|
+
.replace(`{${"attachmentId"}}`, (0, common_1.encodePathParam)('attachmentId', attachmentId));
|
|
815
815
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
816
816
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
817
817
|
let baseOptions;
|
|
@@ -833,7 +833,7 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
833
833
|
};
|
|
834
834
|
}),
|
|
835
835
|
/**
|
|
836
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
836
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
837
837
|
* @summary Get message source
|
|
838
838
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
839
839
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -849,9 +849,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
849
849
|
// verify required parameter 'uid' is not null or undefined
|
|
850
850
|
(0, common_1.assertParamExists)('getMessageSource', 'uid', uid);
|
|
851
851
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/source`
|
|
852
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
853
|
-
.replace(`{${"folder"}}`,
|
|
854
|
-
.replace(`{${"uid"}}`,
|
|
852
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
853
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
854
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid));
|
|
855
855
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
856
856
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
857
857
|
let baseOptions;
|
|
@@ -873,7 +873,7 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
873
873
|
};
|
|
874
874
|
}),
|
|
875
875
|
/**
|
|
876
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
876
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
877
877
|
* @summary Get message text content
|
|
878
878
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
879
879
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -889,9 +889,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
889
889
|
// verify required parameter 'uid' is not null or undefined
|
|
890
890
|
(0, common_1.assertParamExists)('getMessageText', 'uid', uid);
|
|
891
891
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/text`
|
|
892
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
893
|
-
.replace(`{${"folder"}}`,
|
|
894
|
-
.replace(`{${"uid"}}`,
|
|
892
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
893
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
894
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid));
|
|
895
895
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
896
896
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
897
897
|
let baseOptions;
|
|
@@ -929,8 +929,8 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
929
929
|
// verify required parameter 'folder' is not null or undefined
|
|
930
930
|
(0, common_1.assertParamExists)('listMessages', 'folder', folder);
|
|
931
931
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages`
|
|
932
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
933
|
-
.replace(`{${"folder"}}`,
|
|
932
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
933
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
934
934
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
935
935
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
936
936
|
let baseOptions;
|
|
@@ -980,9 +980,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
980
980
|
// verify required parameter 'v1FolderMessagesMoveRequest' is not null or undefined
|
|
981
981
|
(0, common_1.assertParamExists)('moveMessage', 'v1FolderMessagesMoveRequest', v1FolderMessagesMoveRequest);
|
|
982
982
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/move`
|
|
983
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
984
|
-
.replace(`{${"folder"}}`,
|
|
985
|
-
.replace(`{${"uid"}}`,
|
|
983
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
984
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
985
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid));
|
|
986
986
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
987
987
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
988
988
|
let baseOptions;
|
|
@@ -1022,8 +1022,8 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
1022
1022
|
// verify required parameter 'v1FolderMessagesMoveBulkRequest' is not null or undefined
|
|
1023
1023
|
(0, common_1.assertParamExists)('moveMessages', 'v1FolderMessagesMoveBulkRequest', v1FolderMessagesMoveBulkRequest);
|
|
1024
1024
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/move`
|
|
1025
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
1026
|
-
.replace(`{${"folder"}}`,
|
|
1025
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
1026
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
1027
1027
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1028
1028
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1029
1029
|
let baseOptions;
|
|
@@ -1066,9 +1066,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
1066
1066
|
// verify required parameter 'v1FolderMessagesFlagsRequest' is not null or undefined
|
|
1067
1067
|
(0, common_1.assertParamExists)('patchMessage', 'v1FolderMessagesFlagsRequest', v1FolderMessagesFlagsRequest);
|
|
1068
1068
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}`
|
|
1069
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
1070
|
-
.replace(`{${"folder"}}`,
|
|
1071
|
-
.replace(`{${"uid"}}`,
|
|
1069
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
1070
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder))
|
|
1071
|
+
.replace(`{${"uid"}}`, (0, common_1.encodePathParam)('uid', uid));
|
|
1072
1072
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1073
1073
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1074
1074
|
let baseOptions;
|
|
@@ -1109,8 +1109,8 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
1109
1109
|
// verify required parameter 'folder' is not null or undefined
|
|
1110
1110
|
(0, common_1.assertParamExists)('searchMessages', 'folder', folder);
|
|
1111
1111
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/search`
|
|
1112
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
1113
|
-
.replace(`{${"folder"}}`,
|
|
1112
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
1113
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
1114
1114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1115
1115
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1116
1116
|
let baseOptions;
|
|
@@ -1159,8 +1159,8 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
1159
1159
|
// verify required parameter 'v1FolderMessagesFlagsBulkRequest' is not null or undefined
|
|
1160
1160
|
(0, common_1.assertParamExists)('updateMessageFlags', 'v1FolderMessagesFlagsBulkRequest', v1FolderMessagesFlagsBulkRequest);
|
|
1161
1161
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/flags`
|
|
1162
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
1163
|
-
.replace(`{${"folder"}}`,
|
|
1162
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
1163
|
+
.replace(`{${"folder"}}`, (0, common_1.encodePathParam)('folder', folder));
|
|
1164
1164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1165
1165
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1166
1166
|
let baseOptions;
|
|
@@ -1279,7 +1279,7 @@ const MessagesApiFp = function (configuration) {
|
|
|
1279
1279
|
});
|
|
1280
1280
|
},
|
|
1281
1281
|
/**
|
|
1282
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1282
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
1283
1283
|
* @summary Get message source
|
|
1284
1284
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1285
1285
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1296,7 +1296,7 @@ const MessagesApiFp = function (configuration) {
|
|
|
1296
1296
|
});
|
|
1297
1297
|
},
|
|
1298
1298
|
/**
|
|
1299
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
1299
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
1300
1300
|
* @summary Get message text content
|
|
1301
1301
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1302
1302
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1492,7 +1492,7 @@ const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1492
1492
|
return localVarFp.getMessageAttachment(mailboxResourceId, folder, uid, attachmentId, options).then((request) => request(axios, basePath));
|
|
1493
1493
|
},
|
|
1494
1494
|
/**
|
|
1495
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1495
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
1496
1496
|
* @summary Get message source
|
|
1497
1497
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1498
1498
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1504,7 +1504,7 @@ const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1504
1504
|
return localVarFp.getMessageSource(mailboxResourceId, folder, uid, options).then((request) => request(axios, basePath));
|
|
1505
1505
|
},
|
|
1506
1506
|
/**
|
|
1507
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
1507
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
1508
1508
|
* @summary Get message text content
|
|
1509
1509
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1510
1510
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1670,7 +1670,7 @@ class MessagesApi extends base_1.BaseAPI {
|
|
|
1670
1670
|
return (0, exports.MessagesApiFp)(this.configuration).getMessageAttachment(mailboxResourceId, folder, uid, attachmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1671
1671
|
}
|
|
1672
1672
|
/**
|
|
1673
|
-
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
|
|
1673
|
+
* Retrieve raw RFC822 source of a message as `message/rfc822` attachment. Does not change the message `\\Seen` flag.
|
|
1674
1674
|
* @summary Get message source
|
|
1675
1675
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1676
1676
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1683,7 +1683,7 @@ class MessagesApi extends base_1.BaseAPI {
|
|
|
1683
1683
|
return (0, exports.MessagesApiFp)(this.configuration).getMessageSource(mailboxResourceId, folder, uid, options).then((request) => request(this.axios, this.basePath));
|
|
1684
1684
|
}
|
|
1685
1685
|
/**
|
|
1686
|
-
* Retrieve rendered text (plain + HTML) of a message.
|
|
1686
|
+
* Retrieve rendered text (plain + HTML) of a message. Does not change the message `\\Seen` flag.
|
|
1687
1687
|
* @summary Get message text content
|
|
1688
1688
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1689
1689
|
* @param {string} folder Folder path (URL-encoded).
|
|
@@ -1799,7 +1799,7 @@ const QuotaApiAxiosParamCreator = function (configuration) {
|
|
|
1799
1799
|
// verify required parameter 'mailboxResourceId' is not null or undefined
|
|
1800
1800
|
(0, common_1.assertParamExists)('getQuota', 'mailboxResourceId', mailboxResourceId);
|
|
1801
1801
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/quota`
|
|
1802
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
1802
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
1803
1803
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1804
1804
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1805
1805
|
let baseOptions;
|
|
@@ -1898,7 +1898,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
1898
1898
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
1899
1899
|
* @summary Send email
|
|
1900
1900
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1901
|
-
* @param {V1SendRequest
|
|
1901
|
+
* @param {V1SendRequest} v1SendRequest
|
|
1902
1902
|
* @param {*} [options] Override http request option.
|
|
1903
1903
|
* @throws {RequiredError}
|
|
1904
1904
|
*/
|
|
@@ -1908,7 +1908,7 @@ const SendApiAxiosParamCreator = function (configuration) {
|
|
|
1908
1908
|
// verify required parameter 'v1SendRequest' is not null or undefined
|
|
1909
1909
|
(0, common_1.assertParamExists)('sendEmail', 'v1SendRequest', v1SendRequest);
|
|
1910
1910
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/send`
|
|
1911
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
1911
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
1912
1912
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1913
1913
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1914
1914
|
let baseOptions;
|
|
@@ -1945,7 +1945,7 @@ const SendApiFp = function (configuration) {
|
|
|
1945
1945
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
1946
1946
|
* @summary Send email
|
|
1947
1947
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1948
|
-
* @param {V1SendRequest
|
|
1948
|
+
* @param {V1SendRequest} v1SendRequest
|
|
1949
1949
|
* @param {*} [options] Override http request option.
|
|
1950
1950
|
* @throws {RequiredError}
|
|
1951
1951
|
*/
|
|
@@ -1971,7 +1971,7 @@ const SendApiFactory = function (configuration, basePath, axios) {
|
|
|
1971
1971
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
1972
1972
|
* @summary Send email
|
|
1973
1973
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1974
|
-
* @param {V1SendRequest
|
|
1974
|
+
* @param {V1SendRequest} v1SendRequest
|
|
1975
1975
|
* @param {*} [options] Override http request option.
|
|
1976
1976
|
* @throws {RequiredError}
|
|
1977
1977
|
*/
|
|
@@ -1992,7 +1992,7 @@ class SendApi extends base_1.BaseAPI {
|
|
|
1992
1992
|
* Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
|
|
1993
1993
|
* @summary Send email
|
|
1994
1994
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1995
|
-
* @param {V1SendRequest
|
|
1995
|
+
* @param {V1SendRequest} v1SendRequest
|
|
1996
1996
|
* @param {*} [options] Override http request option.
|
|
1997
1997
|
* @throws {RequiredError}
|
|
1998
1998
|
* @memberof SendApi
|
|
@@ -2022,7 +2022,7 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2022
2022
|
// verify required parameter 'v1WebhooksCreateRequest' is not null or undefined
|
|
2023
2023
|
(0, common_1.assertParamExists)('createWebhook', 'v1WebhooksCreateRequest', v1WebhooksCreateRequest);
|
|
2024
2024
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks`
|
|
2025
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2025
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
2026
2026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2027
2027
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2028
2028
|
let baseOptions;
|
|
@@ -2059,8 +2059,8 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2059
2059
|
// verify required parameter 'webhook' is not null or undefined
|
|
2060
2060
|
(0, common_1.assertParamExists)('deleteWebhook', 'webhook', webhook);
|
|
2061
2061
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}`
|
|
2062
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2063
|
-
.replace(`{${"webhook"}}`,
|
|
2062
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
2063
|
+
.replace(`{${"webhook"}}`, (0, common_1.encodePathParam)('webhook', webhook));
|
|
2064
2064
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2065
2065
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2066
2066
|
let baseOptions;
|
|
@@ -2095,8 +2095,8 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2095
2095
|
// verify required parameter 'webhook' is not null or undefined
|
|
2096
2096
|
(0, common_1.assertParamExists)('getWebhook', 'webhook', webhook);
|
|
2097
2097
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}`
|
|
2098
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2099
|
-
.replace(`{${"webhook"}}`,
|
|
2098
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
2099
|
+
.replace(`{${"webhook"}}`, (0, common_1.encodePathParam)('webhook', webhook));
|
|
2100
2100
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2101
2101
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2102
2102
|
let baseOptions;
|
|
@@ -2131,7 +2131,7 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2131
2131
|
// verify required parameter 'mailboxResourceId' is not null or undefined
|
|
2132
2132
|
(0, common_1.assertParamExists)('listWebhooks', 'mailboxResourceId', mailboxResourceId);
|
|
2133
2133
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks`
|
|
2134
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2134
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId));
|
|
2135
2135
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2136
2136
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2137
2137
|
let baseOptions;
|
|
@@ -2175,8 +2175,8 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2175
2175
|
// verify required parameter 'webhook' is not null or undefined
|
|
2176
2176
|
(0, common_1.assertParamExists)('regenerateWebhookSecret', 'webhook', webhook);
|
|
2177
2177
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/regenerate-secret`
|
|
2178
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2179
|
-
.replace(`{${"webhook"}}`,
|
|
2178
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
2179
|
+
.replace(`{${"webhook"}}`, (0, common_1.encodePathParam)('webhook', webhook));
|
|
2180
2180
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2181
2181
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2182
2182
|
let baseOptions;
|
|
@@ -2211,8 +2211,8 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2211
2211
|
// verify required parameter 'webhook' is not null or undefined
|
|
2212
2212
|
(0, common_1.assertParamExists)('testWebhook', 'webhook', webhook);
|
|
2213
2213
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/test`
|
|
2214
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2215
|
-
.replace(`{${"webhook"}}`,
|
|
2214
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
2215
|
+
.replace(`{${"webhook"}}`, (0, common_1.encodePathParam)('webhook', webhook));
|
|
2216
2216
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2217
2217
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2218
2218
|
let baseOptions;
|
|
@@ -2250,8 +2250,8 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2250
2250
|
// verify required parameter 'v1WebhooksUpdateRequest' is not null or undefined
|
|
2251
2251
|
(0, common_1.assertParamExists)('updateWebhook', 'v1WebhooksUpdateRequest', v1WebhooksUpdateRequest);
|
|
2252
2252
|
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}`
|
|
2253
|
-
.replace(`{${"mailboxResourceId"}}`,
|
|
2254
|
-
.replace(`{${"webhook"}}`,
|
|
2253
|
+
.replace(`{${"mailboxResourceId"}}`, (0, common_1.encodePathParam)('mailboxResourceId', mailboxResourceId))
|
|
2254
|
+
.replace(`{${"webhook"}}`, (0, common_1.encodePathParam)('webhook', webhook));
|
|
2255
2255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2256
2256
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2257
2257
|
let baseOptions;
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.3.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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.3.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
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.3.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
|
|
@@ -20,6 +20,12 @@ export declare const DUMMY_BASE_URL = "https://example.com";
|
|
|
20
20
|
* @export
|
|
21
21
|
*/
|
|
22
22
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Empty values and dot segments survive encoding and collapse or resolve away, which would change the endpoint.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const encodePathParam: (paramName: string, paramValue: unknown) => string;
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
25
31
|
* @export
|