hostinger-mail-api-sdk 1.19.4 → 1.19.6
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 +206 -67
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +149 -67
- package/dist/api.js +144 -30
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +149 -67
- package/dist/esm/api.js +139 -29
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -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/FeedbackApi.md +70 -0
- package/docs/MessagesApi.md +7 -7
- package/docs/SendApi.md +1 -0
- package/docs/V1FeedbackSubmitRequest.md +23 -0
- package/docs/V1FolderMessagesFlagsBulkRequest.md +2 -2
- package/docs/V1FolderMessagesFlagsRequest.md +2 -2
- package/docs/V1FolderMessagesSearchRequest.md +14 -14
- package/docs/V1SendAttachment.md +2 -2
- package/docs/V1SendRequest.md +8 -8
- package/docs/V1WebhooksCreateRequest.md +5 -5
- package/docs/V1WebhooksUpdateRequest.md +5 -5
- package/docs/WebhooksApi.md +6 -6
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -150,6 +150,116 @@ export class AccountApi extends BaseAPI {
|
|
|
150
150
|
return AccountApiFp(this.configuration).getCurrentAccount(options).then((request) => request(this.axios, this.basePath));
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* FeedbackApi - axios parameter creator
|
|
155
|
+
* @export
|
|
156
|
+
*/
|
|
157
|
+
export const FeedbackApiAxiosParamCreator = function (configuration) {
|
|
158
|
+
return {
|
|
159
|
+
/**
|
|
160
|
+
* 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.
|
|
161
|
+
* @summary Submit feedback
|
|
162
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
163
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
submitFeedback: (mailboxResourceId_1, v1FeedbackSubmitRequest_1, ...args_1) => __awaiter(this, [mailboxResourceId_1, v1FeedbackSubmitRequest_1, ...args_1], void 0, function* (mailboxResourceId, v1FeedbackSubmitRequest, options = {}) {
|
|
168
|
+
// verify required parameter 'mailboxResourceId' is not null or undefined
|
|
169
|
+
assertParamExists('submitFeedback', 'mailboxResourceId', mailboxResourceId);
|
|
170
|
+
// verify required parameter 'v1FeedbackSubmitRequest' is not null or undefined
|
|
171
|
+
assertParamExists('submitFeedback', 'v1FeedbackSubmitRequest', v1FeedbackSubmitRequest);
|
|
172
|
+
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/feedback`
|
|
173
|
+
.replace(`{${"mailboxResourceId"}}`, encodeURIComponent(String(mailboxResourceId)));
|
|
174
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
176
|
+
let baseOptions;
|
|
177
|
+
if (configuration) {
|
|
178
|
+
baseOptions = configuration.baseOptions;
|
|
179
|
+
}
|
|
180
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
181
|
+
const localVarHeaderParameter = {};
|
|
182
|
+
const localVarQueryParameter = {};
|
|
183
|
+
// authentication BearerAuth required
|
|
184
|
+
// http bearer authentication required
|
|
185
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
187
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v1FeedbackSubmitRequest, localVarRequestOptions, configuration);
|
|
191
|
+
return {
|
|
192
|
+
url: toPathString(localVarUrlObj),
|
|
193
|
+
options: localVarRequestOptions,
|
|
194
|
+
};
|
|
195
|
+
}),
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* FeedbackApi - functional programming interface
|
|
200
|
+
* @export
|
|
201
|
+
*/
|
|
202
|
+
export const FeedbackApiFp = function (configuration) {
|
|
203
|
+
const localVarAxiosParamCreator = FeedbackApiAxiosParamCreator(configuration);
|
|
204
|
+
return {
|
|
205
|
+
/**
|
|
206
|
+
* 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.
|
|
207
|
+
* @summary Submit feedback
|
|
208
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
209
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
+
var _a, _b;
|
|
216
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options);
|
|
217
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['FeedbackApi.submitFeedback']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
218
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
219
|
+
});
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* FeedbackApi - factory interface
|
|
225
|
+
* @export
|
|
226
|
+
*/
|
|
227
|
+
export const FeedbackApiFactory = function (configuration, basePath, axios) {
|
|
228
|
+
const localVarFp = FeedbackApiFp(configuration);
|
|
229
|
+
return {
|
|
230
|
+
/**
|
|
231
|
+
* 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.
|
|
232
|
+
* @summary Submit feedback
|
|
233
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
234
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options) {
|
|
239
|
+
return localVarFp.submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options).then((request) => request(axios, basePath));
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* FeedbackApi - object-oriented interface
|
|
245
|
+
* @export
|
|
246
|
+
* @class FeedbackApi
|
|
247
|
+
* @extends {BaseAPI}
|
|
248
|
+
*/
|
|
249
|
+
export class FeedbackApi extends BaseAPI {
|
|
250
|
+
/**
|
|
251
|
+
* 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.
|
|
252
|
+
* @summary Submit feedback
|
|
253
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
254
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
* @memberof FeedbackApi
|
|
258
|
+
*/
|
|
259
|
+
submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options) {
|
|
260
|
+
return FeedbackApiFp(this.configuration).submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
261
|
+
}
|
|
262
|
+
}
|
|
153
263
|
/**
|
|
154
264
|
* FoldersApi - axios parameter creator
|
|
155
265
|
* @export
|
|
@@ -971,9 +1081,9 @@ export const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
971
1081
|
* @summary Search messages
|
|
972
1082
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
973
1083
|
* @param {string} folder Folder path (URL-encoded).
|
|
974
|
-
* @param {number} [page]
|
|
975
|
-
* @param {number} [perPage]
|
|
976
|
-
* @param {string} [sort]
|
|
1084
|
+
* @param {number} [page] Page number (1-based).
|
|
1085
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1086
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
977
1087
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
978
1088
|
* @param {*} [options] Override http request option.
|
|
979
1089
|
* @throws {RequiredError}
|
|
@@ -1019,7 +1129,7 @@ export const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
1019
1129
|
}),
|
|
1020
1130
|
/**
|
|
1021
1131
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1022
|
-
* @summary Update
|
|
1132
|
+
* @summary Update flags on multiple messages
|
|
1023
1133
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1024
1134
|
* @param {string} folder Folder path (URL-encoded).
|
|
1025
1135
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1263,9 +1373,9 @@ export const MessagesApiFp = function (configuration) {
|
|
|
1263
1373
|
* @summary Search messages
|
|
1264
1374
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1265
1375
|
* @param {string} folder Folder path (URL-encoded).
|
|
1266
|
-
* @param {number} [page]
|
|
1267
|
-
* @param {number} [perPage]
|
|
1268
|
-
* @param {string} [sort]
|
|
1376
|
+
* @param {number} [page] Page number (1-based).
|
|
1377
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1378
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
1269
1379
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
1270
1380
|
* @param {*} [options] Override http request option.
|
|
1271
1381
|
* @throws {RequiredError}
|
|
@@ -1280,7 +1390,7 @@ export const MessagesApiFp = function (configuration) {
|
|
|
1280
1390
|
},
|
|
1281
1391
|
/**
|
|
1282
1392
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1283
|
-
* @summary Update
|
|
1393
|
+
* @summary Update flags on multiple messages
|
|
1284
1394
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1285
1395
|
* @param {string} folder Folder path (URL-encoded).
|
|
1286
1396
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1445,9 +1555,9 @@ export const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1445
1555
|
* @summary Search messages
|
|
1446
1556
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1447
1557
|
* @param {string} folder Folder path (URL-encoded).
|
|
1448
|
-
* @param {number} [page]
|
|
1449
|
-
* @param {number} [perPage]
|
|
1450
|
-
* @param {string} [sort]
|
|
1558
|
+
* @param {number} [page] Page number (1-based).
|
|
1559
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1560
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
1451
1561
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
1452
1562
|
* @param {*} [options] Override http request option.
|
|
1453
1563
|
* @throws {RequiredError}
|
|
@@ -1457,7 +1567,7 @@ export const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1457
1567
|
},
|
|
1458
1568
|
/**
|
|
1459
1569
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1460
|
-
* @summary Update
|
|
1570
|
+
* @summary Update flags on multiple messages
|
|
1461
1571
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1462
1572
|
* @param {string} folder Folder path (URL-encoded).
|
|
1463
1573
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1628,9 +1738,9 @@ export class MessagesApi extends BaseAPI {
|
|
|
1628
1738
|
* @summary Search messages
|
|
1629
1739
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1630
1740
|
* @param {string} folder Folder path (URL-encoded).
|
|
1631
|
-
* @param {number} [page]
|
|
1632
|
-
* @param {number} [perPage]
|
|
1633
|
-
* @param {string} [sort]
|
|
1741
|
+
* @param {number} [page] Page number (1-based).
|
|
1742
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1743
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
1634
1744
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
1635
1745
|
* @param {*} [options] Override http request option.
|
|
1636
1746
|
* @throws {RequiredError}
|
|
@@ -1641,7 +1751,7 @@ export class MessagesApi extends BaseAPI {
|
|
|
1641
1751
|
}
|
|
1642
1752
|
/**
|
|
1643
1753
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1644
|
-
* @summary Update
|
|
1754
|
+
* @summary Update flags on multiple messages
|
|
1645
1755
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1646
1756
|
* @param {string} folder Folder path (URL-encoded).
|
|
1647
1757
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1984,9 +2094,9 @@ export const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
1984
2094
|
* List webhooks for a mailbox.
|
|
1985
2095
|
* @summary List webhooks
|
|
1986
2096
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1987
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
1988
|
-
* @param {number} [page]
|
|
1989
|
-
* @param {number} [perPage]
|
|
2097
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2098
|
+
* @param {number} [page] Page number (1-based).
|
|
2099
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
1990
2100
|
* @param {*} [options] Override http request option.
|
|
1991
2101
|
* @throws {RequiredError}
|
|
1992
2102
|
*/
|
|
@@ -2198,9 +2308,9 @@ export const WebhooksApiFp = function (configuration) {
|
|
|
2198
2308
|
* List webhooks for a mailbox.
|
|
2199
2309
|
* @summary List webhooks
|
|
2200
2310
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2201
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2202
|
-
* @param {number} [page]
|
|
2203
|
-
* @param {number} [perPage]
|
|
2311
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2312
|
+
* @param {number} [page] Page number (1-based).
|
|
2313
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2204
2314
|
* @param {*} [options] Override http request option.
|
|
2205
2315
|
* @throws {RequiredError}
|
|
2206
2316
|
*/
|
|
@@ -2307,9 +2417,9 @@ export const WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
2307
2417
|
* List webhooks for a mailbox.
|
|
2308
2418
|
* @summary List webhooks
|
|
2309
2419
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2310
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2311
|
-
* @param {number} [page]
|
|
2312
|
-
* @param {number} [perPage]
|
|
2420
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2421
|
+
* @param {number} [page] Page number (1-based).
|
|
2422
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2313
2423
|
* @param {*} [options] Override http request option.
|
|
2314
2424
|
* @throws {RequiredError}
|
|
2315
2425
|
*/
|
|
@@ -2399,9 +2509,9 @@ export class WebhooksApi extends BaseAPI {
|
|
|
2399
2509
|
* List webhooks for a mailbox.
|
|
2400
2510
|
* @summary List webhooks
|
|
2401
2511
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2402
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2403
|
-
* @param {number} [page]
|
|
2404
|
-
* @param {number} [perPage]
|
|
2512
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2513
|
+
* @param {number} [page] Page number (1-based).
|
|
2514
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2405
2515
|
* @param {*} [options] Override http request option.
|
|
2406
2516
|
* @throws {RequiredError}
|
|
2407
2517
|
* @memberof WebhooksApi
|
package/dist/esm/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.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.6" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger Mail API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# FeedbackApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mail.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**submitFeedback**](#submitfeedback) | **POST** /api/v1/mailboxes/{mailboxResourceId}/feedback | Submit feedback|
|
|
8
|
+
|
|
9
|
+
# **submitFeedback**
|
|
10
|
+
> submitFeedback(v1FeedbackSubmitRequest)
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
FeedbackApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
V1FeedbackSubmitRequest
|
|
21
|
+
} from '@hostinger/mail-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new FeedbackApi(configuration);
|
|
25
|
+
|
|
26
|
+
let mailboxResourceId: string; //Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`. (default to undefined)
|
|
27
|
+
let v1FeedbackSubmitRequest: V1FeedbackSubmitRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.submitFeedback(
|
|
30
|
+
mailboxResourceId,
|
|
31
|
+
v1FeedbackSubmitRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **v1FeedbackSubmitRequest** | **V1FeedbackSubmitRequest**| | |
|
|
40
|
+
| **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`. | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
void (empty response body)
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**204** | Feedback accepted. | - |
|
|
61
|
+
|**401** | Missing or invalid credentials. | - |
|
|
62
|
+
|**403** | Token is not authorized to manage the requested mailbox. | - |
|
|
63
|
+
|**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
|
|
64
|
+
|**429** | Feedback for this customer was submitted less than ten seconds ago. Wait and retry. | - |
|
|
65
|
+
|**500** | Server-side failure. | - |
|
|
66
|
+
|**502** | Upstream service is unavailable or returned an unexpected response. | - |
|
|
67
|
+
|**504** | Upstream service did not respond within the configured timeout. | - |
|
|
68
|
+
|
|
69
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
70
|
+
|
package/docs/MessagesApi.md
CHANGED
|
@@ -16,7 +16,7 @@ All URIs are relative to *https://api.mail.hostinger.com*
|
|
|
16
16
|
|[**moveMessages**](#movemessages) | **POST** /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/move | Move messages|
|
|
17
17
|
|[**patchMessage**](#patchmessage) | **PATCH** /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid} | Update message flags|
|
|
18
18
|
|[**searchMessages**](#searchmessages) | **POST** /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/search | Search messages|
|
|
19
|
-
|[**updateMessageFlags**](#updatemessageflags) | **POST** /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/flags | Update
|
|
19
|
+
|[**updateMessageFlags**](#updatemessageflags) | **POST** /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/flags | Update flags on multiple messages|
|
|
20
20
|
|
|
21
21
|
# **deleteAllMessages**
|
|
22
22
|
> deleteAllMessages()
|
|
@@ -741,9 +741,9 @@ const apiInstance = new MessagesApi(configuration);
|
|
|
741
741
|
|
|
742
742
|
let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
|
|
743
743
|
let folder: string; //Folder path (URL-encoded). (default to undefined)
|
|
744
|
-
let page: number; // (optional) (default to 1)
|
|
745
|
-
let perPage: number; // (optional) (default to 25)
|
|
746
|
-
let sort: string; // (optional) (default to '-uid')
|
|
744
|
+
let page: number; //Page number (1-based). (optional) (default to 1)
|
|
745
|
+
let perPage: number; //Items per page (max 100). (optional) (default to 25)
|
|
746
|
+
let sort: string; //Sort field with optional `-` prefix for descending. Allowed: uid, date, size. (optional) (default to '-uid')
|
|
747
747
|
let v1FolderMessagesSearchRequest: V1FolderMessagesSearchRequest; // (optional)
|
|
748
748
|
|
|
749
749
|
const { status, data } = await apiInstance.searchMessages(
|
|
@@ -763,9 +763,9 @@ const { status, data } = await apiInstance.searchMessages(
|
|
|
763
763
|
| **v1FolderMessagesSearchRequest** | **V1FolderMessagesSearchRequest**| | |
|
|
764
764
|
| **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
|
|
765
765
|
| **folder** | [**string**] | Folder path (URL-encoded). | defaults to undefined|
|
|
766
|
-
| **page** | [**number**] |
|
|
767
|
-
| **perPage** | [**number**] |
|
|
768
|
-
| **sort** | [**string**] |
|
|
766
|
+
| **page** | [**number**] | Page number (1-based). | (optional) defaults to 1|
|
|
767
|
+
| **perPage** | [**number**] | Items per page (max 100). | (optional) defaults to 25|
|
|
768
|
+
| **sort** | [**string**] | Sort field with optional `-` prefix for descending. Allowed: uid, date, size. | (optional) defaults to '-uid'|
|
|
769
769
|
|
|
770
770
|
|
|
771
771
|
### Return type
|
package/docs/SendApi.md
CHANGED
|
@@ -63,6 +63,7 @@ void (empty response body)
|
|
|
63
63
|
|**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
|
|
64
64
|
|**500** | Server-side failure. | - |
|
|
65
65
|
|**502** | Upstream service is unavailable or returned an unexpected response. | - |
|
|
66
|
+
|**504** | Upstream service did not respond within the configured timeout. | - |
|
|
66
67
|
|
|
67
68
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
68
69
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# V1FeedbackSubmitRequest
|
|
2
|
+
|
|
3
|
+
Feedback the user wants to send to the Hostinger mail team. The message is scrubbed of tokens, JWTs and key/secret/password values before validation and storage, so the length limit applies to the scrubbed text.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**score** | **number** | The user\'s rating of the Hostinger Email API: 1 (poor) to 10 (excellent). | [default to undefined]
|
|
10
|
+
**message** | **string** | The user\'s feedback in their own words. Never include tokens, passwords or email contents. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { V1FeedbackSubmitRequest } from '@hostinger/mail-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: V1FeedbackSubmitRequest = {
|
|
18
|
+
score,
|
|
19
|
+
message,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -7,8 +7,8 @@ Add and/or remove flags on multiple messages. At least one of addFlags or remove
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**uids** | **Array<number>** | Message UIDs to update. 1-100 entries, each > 0. | [default to undefined]
|
|
10
|
-
**addFlags** | **Array<string>** |
|
|
11
|
-
**removeFlags** | **Array<string>** |
|
|
10
|
+
**addFlags** | **Array<string>** | IMAP flags to set on every listed message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded. | [optional] [default to undefined]
|
|
11
|
+
**removeFlags** | **Array<string>** | IMAP flags to clear from every listed message. | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -6,8 +6,8 @@ Add and/or remove flags on a message. At least one of addFlags or removeFlags mu
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**addFlags** | **Array<string>** |
|
|
10
|
-
**removeFlags** | **Array<string>** |
|
|
9
|
+
**addFlags** | **Array<string>** | IMAP flags to set on the message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded. | [optional] [default to undefined]
|
|
10
|
+
**removeFlags** | **Array<string>** | IMAP flags to clear from the message. | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
# V1FolderMessagesSearchRequest
|
|
2
2
|
|
|
3
|
-
Search criteria. All fields optional
|
|
3
|
+
Search criteria. All fields optional. subject, from, to, cc and body are alternatives (a message matching any one of them qualifies); all other fields are combined with AND.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**since** | **string** |
|
|
10
|
-
**before** | **string** |
|
|
11
|
-
**flags** | **Array<string>** |
|
|
12
|
-
**uid** | **string** |
|
|
13
|
-
**subject** | **string** |
|
|
14
|
-
**from** | **string** |
|
|
15
|
-
**to** | **string** |
|
|
16
|
-
**cc** | **string** |
|
|
17
|
-
**body** | **string** |
|
|
18
|
-
**header** | **string** |
|
|
19
|
-
**larger** | **number** |
|
|
20
|
-
**smaller** | **number** |
|
|
21
|
-
**text** | **string** |
|
|
9
|
+
**since** | **string** | Only messages received on or after this date (YYYY-MM-DD). | [optional] [default to undefined]
|
|
10
|
+
**before** | **string** | Only messages received before this date (YYYY-MM-DD). | [optional] [default to undefined]
|
|
11
|
+
**flags** | **Array<string>** | Only messages carrying all of these IMAP flags, e.g. \\Seen, \\Flagged, \\Answered, $forwarded. | [optional] [default to undefined]
|
|
12
|
+
**uid** | **string** | IMAP UID set: single UID, range (1:100), open range (100:*), or comma-separated list. | [optional] [default to undefined]
|
|
13
|
+
**subject** | **string** | Case-insensitive substring match on the Subject header. OR-combined with from/to/cc/body. | [optional] [default to undefined]
|
|
14
|
+
**from** | **string** | Case-insensitive substring match on the From header. OR-combined with subject/to/cc/body. | [optional] [default to undefined]
|
|
15
|
+
**to** | **string** | Case-insensitive substring match on the To header. OR-combined with subject/from/cc/body. | [optional] [default to undefined]
|
|
16
|
+
**cc** | **string** | Case-insensitive substring match on the Cc header. OR-combined with subject/from/to/body. | [optional] [default to undefined]
|
|
17
|
+
**body** | **string** | Case-insensitive substring match on the message body only (headers excluded). OR-combined with subject/from/to/cc. | [optional] [default to undefined]
|
|
18
|
+
**header** | **string** | Match a specific header as Name:value, e.g. X-Custom-Header:value. Value match is a substring. | [optional] [default to undefined]
|
|
19
|
+
**larger** | **number** | Only messages larger than this size in bytes. | [optional] [default to undefined]
|
|
20
|
+
**smaller** | **number** | Only messages smaller than this size in bytes. | [optional] [default to undefined]
|
|
21
|
+
**text** | **string** | Case-insensitive substring match across headers and body. | [optional] [default to undefined]
|
|
22
22
|
|
|
23
23
|
## Example
|
|
24
24
|
|
package/docs/V1SendAttachment.md
CHANGED
|
@@ -6,9 +6,9 @@ Attachment payload for outgoing mail. Supports regular attachments and inline im
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**filename** | **string** |
|
|
9
|
+
**filename** | **string** | File name shown to the recipient, including extension. | [default to undefined]
|
|
10
10
|
**content** | **string** | Attachment body. Base64-encoded by default; set encoding to switch. | [default to undefined]
|
|
11
|
-
**contentType** | **string** |
|
|
11
|
+
**contentType** | **string** | MIME type of the attachment, e.g. application/pdf. Not inferred from filename; set it explicitly so clients render the attachment correctly. | [optional] [default to undefined]
|
|
12
12
|
**cid** | **string** | Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">. | [optional] [default to undefined]
|
|
13
13
|
**encoding** | **string** | Encoding of content. Defaults to base64. | [optional] [default to undefined]
|
|
14
14
|
|
package/docs/V1SendRequest.md
CHANGED
|
@@ -6,14 +6,14 @@ Outgoing message payload. At least one of to, cc, or bcc must be present.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**to** | **Array<string>** |
|
|
10
|
-
**displayName** | **string** |
|
|
11
|
-
**cc** | **Array<string>** |
|
|
12
|
-
**bcc** | **Array<string>** |
|
|
13
|
-
**subject** | **string** |
|
|
14
|
-
**text** | **string** |
|
|
15
|
-
**html** | **string** |
|
|
16
|
-
**attachments** | [**Array<V1SendAttachment>**](V1SendAttachment.md) |
|
|
9
|
+
**to** | **Array<string>** | Primary recipient email addresses. | [optional] [default to undefined]
|
|
10
|
+
**displayName** | **string** | Sender display name shown in the From header alongside the mailbox address. | [optional] [default to undefined]
|
|
11
|
+
**cc** | **Array<string>** | Carbon-copy recipient email addresses. | [optional] [default to undefined]
|
|
12
|
+
**bcc** | **Array<string>** | Blind-carbon-copy recipient email addresses. Not visible to other recipients. | [optional] [default to undefined]
|
|
13
|
+
**subject** | **string** | Message subject line. | [optional] [default to undefined]
|
|
14
|
+
**text** | **string** | Plain-text body. Optional; if both text and html are omitted the message is sent without a body. | [optional] [default to undefined]
|
|
15
|
+
**html** | **string** | HTML body. Optional; if both text and html are omitted the message is sent without a body. Inline images are referenced via cid: URLs matching attachment cid values. | [optional] [default to undefined]
|
|
16
|
+
**attachments** | [**Array<V1SendAttachment>**](V1SendAttachment.md) | Files to attach. Inline images set cid; regular attachments omit it. | [optional] [default to undefined]
|
|
17
17
|
**inReplyTo** | [**V1SendMessageRef**](V1SendMessageRef.md) | Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf. | [optional] [default to undefined]
|
|
18
18
|
**forwardOf** | [**V1SendMessageRef**](V1SendMessageRef.md) | Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo. | [optional] [default to undefined]
|
|
19
19
|
|
|
@@ -6,11 +6,11 @@ Body for creating a webhook.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**name** | **string** |
|
|
10
|
-
**description** | **string** |
|
|
11
|
-
**events** | **Array<string>** |
|
|
12
|
-
**status** | **string** |
|
|
13
|
-
**url** | **string** |
|
|
9
|
+
**name** | **string** | Human-readable webhook name. | [default to undefined]
|
|
10
|
+
**description** | **string** | Optional free-text note about the webhook purpose. | [optional] [default to undefined]
|
|
11
|
+
**events** | **Array<string>** | Event types that trigger a delivery. | [default to undefined]
|
|
12
|
+
**status** | **string** | Initial delivery state. Only active webhooks receive events. | [optional] [default to StatusEnum_Active]
|
|
13
|
+
**url** | **string** | HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts). | [default to undefined]
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|