@hostinger/mail-sdk 1.19.5 → 1.19.7

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/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger Mail API
6
6
  *
7
- * API Version: 1.2.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
@@ -164,7 +164,7 @@ exports.AccountApi = AccountApi;
164
164
  const FeedbackApiAxiosParamCreator = function (configuration) {
165
165
  return {
166
166
  /**
167
- * Report a problem or suggestion about this API or the MCP server to the Hostinger mail team. Report when a call returned 4xx/5xx or unexpected data, was too slow, when documentation was missing or unclear, or when a capability you needed does not exist. Mention the failing operation and the status code you received so the team can find the request. Never include tokens, passwords or email contents: the message is scrubbed of secrets and capped at 2000 characters. Send one report per distinct issue. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
167
+ * Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
168
168
  * @summary Submit feedback
169
169
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
170
170
  * @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
@@ -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"}}`, encodeURIComponent(String(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;
@@ -211,7 +211,7 @@ const FeedbackApiFp = function (configuration) {
211
211
  const localVarAxiosParamCreator = (0, exports.FeedbackApiAxiosParamCreator)(configuration);
212
212
  return {
213
213
  /**
214
- * Report a problem or suggestion about this API or the MCP server to the Hostinger mail team. Report when a call returned 4xx/5xx or unexpected data, was too slow, when documentation was missing or unclear, or when a capability you needed does not exist. Mention the failing operation and the status code you received so the team can find the request. Never include tokens, passwords or email contents: the message is scrubbed of secrets and capped at 2000 characters. Send one report per distinct issue. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
214
+ * Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
215
215
  * @summary Submit feedback
216
216
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
217
217
  * @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
@@ -237,7 +237,7 @@ const FeedbackApiFactory = function (configuration, basePath, axios) {
237
237
  const localVarFp = (0, exports.FeedbackApiFp)(configuration);
238
238
  return {
239
239
  /**
240
- * Report a problem or suggestion about this API or the MCP server to the Hostinger mail team. Report when a call returned 4xx/5xx or unexpected data, was too slow, when documentation was missing or unclear, or when a capability you needed does not exist. Mention the failing operation and the status code you received so the team can find the request. Never include tokens, passwords or email contents: the message is scrubbed of secrets and capped at 2000 characters. Send one report per distinct issue. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
240
+ * Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
241
241
  * @summary Submit feedback
242
242
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
243
243
  * @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
@@ -258,7 +258,7 @@ exports.FeedbackApiFactory = FeedbackApiFactory;
258
258
  */
259
259
  class FeedbackApi extends base_1.BaseAPI {
260
260
  /**
261
- * Report a problem or suggestion about this API or the MCP server to the Hostinger mail team. Report when a call returned 4xx/5xx or unexpected data, was too slow, when documentation was missing or unclear, or when a capability you needed does not exist. Mention the failing operation and the status code you received so the team can find the request. Never include tokens, passwords or email contents: the message is scrubbed of secrets and capped at 2000 characters. Send one report per distinct issue. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
261
+ * Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
262
262
  * @summary Submit feedback
263
263
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
264
264
  * @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
@@ -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"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
332
- .replace(`{${"folder"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
411
- .replace(`{${"folder"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
649
- .replace(`{${"folder"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
688
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
689
- .replace(`{${"uid"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
728
- .replace(`{${"folder"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
769
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
770
- .replace(`{${"uid"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
812
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
813
- .replace(`{${"uid"}}`, encodeURIComponent(String(uid)))
814
- .replace(`{${"attachmentId"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
853
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
854
- .replace(`{${"uid"}}`, encodeURIComponent(String(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. Marks message as `\\Seen`.
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"}}`, encodeURIComponent(String(mailboxResourceId)))
893
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
894
- .replace(`{${"uid"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
933
- .replace(`{${"folder"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
984
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
985
- .replace(`{${"uid"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
1026
- .replace(`{${"folder"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
1070
- .replace(`{${"folder"}}`, encodeURIComponent(String(folder)))
1071
- .replace(`{${"uid"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
1113
- .replace(`{${"folder"}}`, encodeURIComponent(String(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;
@@ -1144,7 +1144,7 @@ const MessagesApiAxiosParamCreator = function (configuration) {
1144
1144
  }),
1145
1145
  /**
1146
1146
  * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1147
- * @summary Update message flags
1147
+ * @summary Update flags on multiple messages
1148
1148
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1149
1149
  * @param {string} folder Folder path (URL-encoded).
1150
1150
  * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
@@ -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"}}`, encodeURIComponent(String(mailboxResourceId)))
1163
- .replace(`{${"folder"}}`, encodeURIComponent(String(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. Marks message as `\\Seen`.
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).
@@ -1406,7 +1406,7 @@ const MessagesApiFp = function (configuration) {
1406
1406
  },
1407
1407
  /**
1408
1408
  * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1409
- * @summary Update message flags
1409
+ * @summary Update flags on multiple messages
1410
1410
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1411
1411
  * @param {string} folder Folder path (URL-encoded).
1412
1412
  * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
@@ -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. Marks message as `\\Seen`.
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).
@@ -1584,7 +1584,7 @@ const MessagesApiFactory = function (configuration, basePath, axios) {
1584
1584
  },
1585
1585
  /**
1586
1586
  * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1587
- * @summary Update message flags
1587
+ * @summary Update flags on multiple messages
1588
1588
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1589
1589
  * @param {string} folder Folder path (URL-encoded).
1590
1590
  * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
@@ -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. Marks message as `\\Seen`.
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).
@@ -1769,7 +1769,7 @@ class MessagesApi extends base_1.BaseAPI {
1769
1769
  }
1770
1770
  /**
1771
1771
  * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1772
- * @summary Update message flags
1772
+ * @summary Update flags on multiple messages
1773
1773
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1774
1774
  * @param {string} folder Folder path (URL-encoded).
1775
1775
  * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
@@ -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"}}`, encodeURIComponent(String(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 | null} 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"}}`, encodeURIComponent(String(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 | null} 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 | null} 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 | null} 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"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
2063
- .replace(`{${"webhook"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
2099
- .replace(`{${"webhook"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
2179
- .replace(`{${"webhook"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
2215
- .replace(`{${"webhook"}}`, encodeURIComponent(String(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"}}`, encodeURIComponent(String(mailboxResourceId)))
2254
- .replace(`{${"webhook"}}`, encodeURIComponent(String(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.2.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.2.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.2.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
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger Mail API
6
6
  *
7
- * API Version: 1.2.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
@@ -19,7 +19,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setBearerAuthToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
22
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setBearerAuthToObject = exports.encodePathParam = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
23
23
  const base_1 = require("./base");
24
24
  /**
25
25
  *
@@ -37,6 +37,19 @@ const assertParamExists = function (functionName, paramName, paramValue) {
37
37
  }
38
38
  };
39
39
  exports.assertParamExists = assertParamExists;
40
+ /**
41
+ * Empty values and dot segments survive encoding and collapse or resolve away, which would change the endpoint.
42
+ * @throws {RequiredError}
43
+ * @export
44
+ */
45
+ const encodePathParam = function (paramName, paramValue) {
46
+ const value = String(paramValue);
47
+ if (value === '' || value === '.' || value === '..') {
48
+ throw new base_1.RequiredError(paramName, `Invalid value for path parameter ${paramName}.`);
49
+ }
50
+ return encodeURIComponent(value);
51
+ };
52
+ exports.encodePathParam = encodePathParam;
40
53
  /**
41
54
  *
42
55
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger Mail API
3
3
  *
4
- * API Version: 1.2.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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger Mail API
6
6
  *
7
- * API Version: 1.2.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
@@ -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.5" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.7" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**