hostinger-api-sdk 2.14.0 → 2.14.1
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 +14 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +14 -14
- package/dist/api.js +13 -13
- 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 +14 -14
- package/dist/esm/api.js +13 -13
- 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/MailAPITokensApi.md +3 -3
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@2.14.
|
|
1
|
+
## @hostinger/sdk@2.14.1
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@2.14.
|
|
8
|
+
npm install @hostinger/sdk@2.14.1 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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
|
|
@@ -11307,7 +11307,7 @@ export interface MailV1ApiTokensApiTokenCreatedResource {
|
|
|
11307
11307
|
*/
|
|
11308
11308
|
'id': string;
|
|
11309
11309
|
/**
|
|
11310
|
-
* Plaintext API token, returned only in this response. Grants access to the [Hostinger
|
|
11310
|
+
* Plaintext API token, returned only in this response. Grants access to the mailboxes it is scoped to through the [Hostinger Mail API](https://api.mail.hostinger.com/).
|
|
11311
11311
|
* @type {string}
|
|
11312
11312
|
* @memberof MailV1ApiTokensApiTokenCreatedResource
|
|
11313
11313
|
*/
|
|
@@ -40262,7 +40262,7 @@ export type ListWebsitesV1WebsiteTypesEnum = typeof ListWebsitesV1WebsiteTypesEn
|
|
|
40262
40262
|
export const MailAPITokensApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40263
40263
|
return {
|
|
40264
40264
|
/**
|
|
40265
|
-
* Create an API token for the given mail order.
|
|
40265
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40266
40266
|
* @summary Create API token
|
|
40267
40267
|
* @param {string} orderId Order resource ID
|
|
40268
40268
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40306,7 +40306,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration?: Confi
|
|
|
40306
40306
|
};
|
|
40307
40307
|
},
|
|
40308
40308
|
/**
|
|
40309
|
-
* Retrieve a paginated list of [Hostinger
|
|
40309
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40310
40310
|
* @summary List API tokens
|
|
40311
40311
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40312
40312
|
* @param {number} [page] Page number
|
|
@@ -40355,7 +40355,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration?: Confi
|
|
|
40355
40355
|
};
|
|
40356
40356
|
},
|
|
40357
40357
|
/**
|
|
40358
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40358
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40359
40359
|
* @summary Revoke API token
|
|
40360
40360
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40361
40361
|
* @param {*} [options] Override http request option.
|
|
@@ -40403,7 +40403,7 @@ export const MailAPITokensApiFp = function(configuration?: Configuration) {
|
|
|
40403
40403
|
const localVarAxiosParamCreator = MailAPITokensApiAxiosParamCreator(configuration)
|
|
40404
40404
|
return {
|
|
40405
40405
|
/**
|
|
40406
|
-
* Create an API token for the given mail order.
|
|
40406
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40407
40407
|
* @summary Create API token
|
|
40408
40408
|
* @param {string} orderId Order resource ID
|
|
40409
40409
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40416,7 +40416,7 @@ export const MailAPITokensApiFp = function(configuration?: Configuration) {
|
|
|
40416
40416
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40417
40417
|
},
|
|
40418
40418
|
/**
|
|
40419
|
-
* Retrieve a paginated list of [Hostinger
|
|
40419
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40420
40420
|
* @summary List API tokens
|
|
40421
40421
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40422
40422
|
* @param {number} [page] Page number
|
|
@@ -40430,7 +40430,7 @@ export const MailAPITokensApiFp = function(configuration?: Configuration) {
|
|
|
40430
40430
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40431
40431
|
},
|
|
40432
40432
|
/**
|
|
40433
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40433
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40434
40434
|
* @summary Revoke API token
|
|
40435
40435
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40436
40436
|
* @param {*} [options] Override http request option.
|
|
@@ -40452,7 +40452,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40452
40452
|
const localVarFp = MailAPITokensApiFp(configuration)
|
|
40453
40453
|
return {
|
|
40454
40454
|
/**
|
|
40455
|
-
* Create an API token for the given mail order.
|
|
40455
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40456
40456
|
* @summary Create API token
|
|
40457
40457
|
* @param {string} orderId Order resource ID
|
|
40458
40458
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40463,7 +40463,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40463
40463
|
return localVarFp.createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(axios, basePath));
|
|
40464
40464
|
},
|
|
40465
40465
|
/**
|
|
40466
|
-
* Retrieve a paginated list of [Hostinger
|
|
40466
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40467
40467
|
* @summary List API tokens
|
|
40468
40468
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40469
40469
|
* @param {number} [page] Page number
|
|
@@ -40475,7 +40475,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40475
40475
|
return localVarFp.listAPITokensV1(orderId, page, perPage, options).then((request) => request(axios, basePath));
|
|
40476
40476
|
},
|
|
40477
40477
|
/**
|
|
40478
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40478
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40479
40479
|
* @summary Revoke API token
|
|
40480
40480
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40481
40481
|
* @param {*} [options] Override http request option.
|
|
@@ -40495,7 +40495,7 @@ export const MailAPITokensApiFactory = function (configuration?: Configuration,
|
|
|
40495
40495
|
*/
|
|
40496
40496
|
export class MailAPITokensApi extends BaseAPI {
|
|
40497
40497
|
/**
|
|
40498
|
-
* Create an API token for the given mail order.
|
|
40498
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
40499
40499
|
* @summary Create API token
|
|
40500
40500
|
* @param {string} orderId Order resource ID
|
|
40501
40501
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -40508,7 +40508,7 @@ export class MailAPITokensApi extends BaseAPI {
|
|
|
40508
40508
|
}
|
|
40509
40509
|
|
|
40510
40510
|
/**
|
|
40511
|
-
* Retrieve a paginated list of [Hostinger
|
|
40511
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
40512
40512
|
* @summary List API tokens
|
|
40513
40513
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
40514
40514
|
* @param {number} [page] Page number
|
|
@@ -40522,7 +40522,7 @@ export class MailAPITokensApi extends BaseAPI {
|
|
|
40522
40522
|
}
|
|
40523
40523
|
|
|
40524
40524
|
/**
|
|
40525
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
40525
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
40526
40526
|
* @summary Revoke API token
|
|
40527
40527
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
40528
40528
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/2.14.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/2.14.1",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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
|
|
@@ -11073,7 +11073,7 @@ export interface MailV1ApiTokensApiTokenCreatedResource {
|
|
|
11073
11073
|
*/
|
|
11074
11074
|
'id': string;
|
|
11075
11075
|
/**
|
|
11076
|
-
* Plaintext API token, returned only in this response. Grants access to the [Hostinger
|
|
11076
|
+
* Plaintext API token, returned only in this response. Grants access to the mailboxes it is scoped to through the [Hostinger Mail API](https://api.mail.hostinger.com/).
|
|
11077
11077
|
* @type {string}
|
|
11078
11078
|
* @memberof MailV1ApiTokensApiTokenCreatedResource
|
|
11079
11079
|
*/
|
|
@@ -29348,7 +29348,7 @@ export type ListWebsitesV1WebsiteTypesEnum = typeof ListWebsitesV1WebsiteTypesEn
|
|
|
29348
29348
|
*/
|
|
29349
29349
|
export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29350
29350
|
/**
|
|
29351
|
-
* Create an API token for the given mail order.
|
|
29351
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29352
29352
|
* @summary Create API token
|
|
29353
29353
|
* @param {string} orderId Order resource ID
|
|
29354
29354
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29357,7 +29357,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29357
29357
|
*/
|
|
29358
29358
|
createAPITokenV1: (orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29359
29359
|
/**
|
|
29360
|
-
* Retrieve a paginated list of [Hostinger
|
|
29360
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29361
29361
|
* @summary List API tokens
|
|
29362
29362
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29363
29363
|
* @param {number} [page] Page number
|
|
@@ -29367,7 +29367,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29367
29367
|
*/
|
|
29368
29368
|
listAPITokensV1: (orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29369
29369
|
/**
|
|
29370
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29370
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29371
29371
|
* @summary Revoke API token
|
|
29372
29372
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29373
29373
|
* @param {*} [options] Override http request option.
|
|
@@ -29381,7 +29381,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29381
29381
|
*/
|
|
29382
29382
|
export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
29383
29383
|
/**
|
|
29384
|
-
* Create an API token for the given mail order.
|
|
29384
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29385
29385
|
* @summary Create API token
|
|
29386
29386
|
* @param {string} orderId Order resource ID
|
|
29387
29387
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29390,7 +29390,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29390
29390
|
*/
|
|
29391
29391
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MailV1ApiTokensApiTokenCreatedResource>>;
|
|
29392
29392
|
/**
|
|
29393
|
-
* Retrieve a paginated list of [Hostinger
|
|
29393
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29394
29394
|
* @summary List API tokens
|
|
29395
29395
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29396
29396
|
* @param {number} [page] Page number
|
|
@@ -29400,7 +29400,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29400
29400
|
*/
|
|
29401
29401
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MailListAPITokensV1200Response>>;
|
|
29402
29402
|
/**
|
|
29403
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29403
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29404
29404
|
* @summary Revoke API token
|
|
29405
29405
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29406
29406
|
* @param {*} [options] Override http request option.
|
|
@@ -29414,7 +29414,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29414
29414
|
*/
|
|
29415
29415
|
export declare const MailAPITokensApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
29416
29416
|
/**
|
|
29417
|
-
* Create an API token for the given mail order.
|
|
29417
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29418
29418
|
* @summary Create API token
|
|
29419
29419
|
* @param {string} orderId Order resource ID
|
|
29420
29420
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29423,7 +29423,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29423
29423
|
*/
|
|
29424
29424
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): AxiosPromise<MailV1ApiTokensApiTokenCreatedResource>;
|
|
29425
29425
|
/**
|
|
29426
|
-
* Retrieve a paginated list of [Hostinger
|
|
29426
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29427
29427
|
* @summary List API tokens
|
|
29428
29428
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29429
29429
|
* @param {number} [page] Page number
|
|
@@ -29433,7 +29433,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29433
29433
|
*/
|
|
29434
29434
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<MailListAPITokensV1200Response>;
|
|
29435
29435
|
/**
|
|
29436
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29436
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29437
29437
|
* @summary Revoke API token
|
|
29438
29438
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29439
29439
|
* @param {*} [options] Override http request option.
|
|
@@ -29449,7 +29449,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29449
29449
|
*/
|
|
29450
29450
|
export declare class MailAPITokensApi extends BaseAPI {
|
|
29451
29451
|
/**
|
|
29452
|
-
* Create an API token for the given mail order.
|
|
29452
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29453
29453
|
* @summary Create API token
|
|
29454
29454
|
* @param {string} orderId Order resource ID
|
|
29455
29455
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29459,7 +29459,7 @@ export declare class MailAPITokensApi extends BaseAPI {
|
|
|
29459
29459
|
*/
|
|
29460
29460
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MailV1ApiTokensApiTokenCreatedResource, any, {}, any>>;
|
|
29461
29461
|
/**
|
|
29462
|
-
* Retrieve a paginated list of [Hostinger
|
|
29462
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29463
29463
|
* @summary List API tokens
|
|
29464
29464
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29465
29465
|
* @param {number} [page] Page number
|
|
@@ -29470,7 +29470,7 @@ export declare class MailAPITokensApi extends BaseAPI {
|
|
|
29470
29470
|
*/
|
|
29471
29471
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MailListAPITokensV1200Response, any, {}, any>>;
|
|
29472
29472
|
/**
|
|
29473
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29473
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29474
29474
|
* @summary Revoke API token
|
|
29475
29475
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29476
29476
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.14.
|
|
7
|
+
* API Version: 2.14.1
|
|
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
|
|
@@ -20700,7 +20700,7 @@ exports.ListWebsitesV1WebsiteTypesEnum = {
|
|
|
20700
20700
|
const MailAPITokensApiAxiosParamCreator = function (configuration) {
|
|
20701
20701
|
return {
|
|
20702
20702
|
/**
|
|
20703
|
-
* Create an API token for the given mail order.
|
|
20703
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20704
20704
|
* @summary Create API token
|
|
20705
20705
|
* @param {string} orderId Order resource ID
|
|
20706
20706
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20737,7 +20737,7 @@ const MailAPITokensApiAxiosParamCreator = function (configuration) {
|
|
|
20737
20737
|
};
|
|
20738
20738
|
}),
|
|
20739
20739
|
/**
|
|
20740
|
-
* Retrieve a paginated list of [Hostinger
|
|
20740
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20741
20741
|
* @summary List API tokens
|
|
20742
20742
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20743
20743
|
* @param {number} [page] Page number
|
|
@@ -20777,7 +20777,7 @@ const MailAPITokensApiAxiosParamCreator = function (configuration) {
|
|
|
20777
20777
|
};
|
|
20778
20778
|
}),
|
|
20779
20779
|
/**
|
|
20780
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20780
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20781
20781
|
* @summary Revoke API token
|
|
20782
20782
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20783
20783
|
* @param {*} [options] Override http request option.
|
|
@@ -20819,7 +20819,7 @@ const MailAPITokensApiFp = function (configuration) {
|
|
|
20819
20819
|
const localVarAxiosParamCreator = (0, exports.MailAPITokensApiAxiosParamCreator)(configuration);
|
|
20820
20820
|
return {
|
|
20821
20821
|
/**
|
|
20822
|
-
* Create an API token for the given mail order.
|
|
20822
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20823
20823
|
* @summary Create API token
|
|
20824
20824
|
* @param {string} orderId Order resource ID
|
|
20825
20825
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20835,7 +20835,7 @@ const MailAPITokensApiFp = function (configuration) {
|
|
|
20835
20835
|
});
|
|
20836
20836
|
},
|
|
20837
20837
|
/**
|
|
20838
|
-
* Retrieve a paginated list of [Hostinger
|
|
20838
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20839
20839
|
* @summary List API tokens
|
|
20840
20840
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20841
20841
|
* @param {number} [page] Page number
|
|
@@ -20852,7 +20852,7 @@ const MailAPITokensApiFp = function (configuration) {
|
|
|
20852
20852
|
});
|
|
20853
20853
|
},
|
|
20854
20854
|
/**
|
|
20855
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20855
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20856
20856
|
* @summary Revoke API token
|
|
20857
20857
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20858
20858
|
* @param {*} [options] Override http request option.
|
|
@@ -20877,7 +20877,7 @@ const MailAPITokensApiFactory = function (configuration, basePath, axios) {
|
|
|
20877
20877
|
const localVarFp = (0, exports.MailAPITokensApiFp)(configuration);
|
|
20878
20878
|
return {
|
|
20879
20879
|
/**
|
|
20880
|
-
* Create an API token for the given mail order.
|
|
20880
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20881
20881
|
* @summary Create API token
|
|
20882
20882
|
* @param {string} orderId Order resource ID
|
|
20883
20883
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20888,7 +20888,7 @@ const MailAPITokensApiFactory = function (configuration, basePath, axios) {
|
|
|
20888
20888
|
return localVarFp.createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(axios, basePath));
|
|
20889
20889
|
},
|
|
20890
20890
|
/**
|
|
20891
|
-
* Retrieve a paginated list of [Hostinger
|
|
20891
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20892
20892
|
* @summary List API tokens
|
|
20893
20893
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20894
20894
|
* @param {number} [page] Page number
|
|
@@ -20900,7 +20900,7 @@ const MailAPITokensApiFactory = function (configuration, basePath, axios) {
|
|
|
20900
20900
|
return localVarFp.listAPITokensV1(orderId, page, perPage, options).then((request) => request(axios, basePath));
|
|
20901
20901
|
},
|
|
20902
20902
|
/**
|
|
20903
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20903
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20904
20904
|
* @summary Revoke API token
|
|
20905
20905
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20906
20906
|
* @param {*} [options] Override http request option.
|
|
@@ -20920,7 +20920,7 @@ exports.MailAPITokensApiFactory = MailAPITokensApiFactory;
|
|
|
20920
20920
|
*/
|
|
20921
20921
|
class MailAPITokensApi extends base_1.BaseAPI {
|
|
20922
20922
|
/**
|
|
20923
|
-
* Create an API token for the given mail order.
|
|
20923
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20924
20924
|
* @summary Create API token
|
|
20925
20925
|
* @param {string} orderId Order resource ID
|
|
20926
20926
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20932,7 +20932,7 @@ class MailAPITokensApi extends base_1.BaseAPI {
|
|
|
20932
20932
|
return (0, exports.MailAPITokensApiFp)(this.configuration).createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(this.axios, this.basePath));
|
|
20933
20933
|
}
|
|
20934
20934
|
/**
|
|
20935
|
-
* Retrieve a paginated list of [Hostinger
|
|
20935
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20936
20936
|
* @summary List API tokens
|
|
20937
20937
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20938
20938
|
* @param {number} [page] Page number
|
|
@@ -20945,7 +20945,7 @@ class MailAPITokensApi extends base_1.BaseAPI {
|
|
|
20945
20945
|
return (0, exports.MailAPITokensApiFp)(this.configuration).listAPITokensV1(orderId, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
20946
20946
|
}
|
|
20947
20947
|
/**
|
|
20948
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20948
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20949
20949
|
* @summary Revoke API token
|
|
20950
20950
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20951
20951
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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 API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.14.
|
|
7
|
+
* API Version: 2.14.1
|
|
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 API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.14.
|
|
7
|
+
* API Version: 2.14.1
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.14.
|
|
7
|
+
* API Version: 2.14.1
|
|
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-typescript-sdk/2.14.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.14.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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
|
|
@@ -11073,7 +11073,7 @@ export interface MailV1ApiTokensApiTokenCreatedResource {
|
|
|
11073
11073
|
*/
|
|
11074
11074
|
'id': string;
|
|
11075
11075
|
/**
|
|
11076
|
-
* Plaintext API token, returned only in this response. Grants access to the [Hostinger
|
|
11076
|
+
* Plaintext API token, returned only in this response. Grants access to the mailboxes it is scoped to through the [Hostinger Mail API](https://api.mail.hostinger.com/).
|
|
11077
11077
|
* @type {string}
|
|
11078
11078
|
* @memberof MailV1ApiTokensApiTokenCreatedResource
|
|
11079
11079
|
*/
|
|
@@ -29348,7 +29348,7 @@ export type ListWebsitesV1WebsiteTypesEnum = typeof ListWebsitesV1WebsiteTypesEn
|
|
|
29348
29348
|
*/
|
|
29349
29349
|
export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29350
29350
|
/**
|
|
29351
|
-
* Create an API token for the given mail order.
|
|
29351
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29352
29352
|
* @summary Create API token
|
|
29353
29353
|
* @param {string} orderId Order resource ID
|
|
29354
29354
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29357,7 +29357,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29357
29357
|
*/
|
|
29358
29358
|
createAPITokenV1: (orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29359
29359
|
/**
|
|
29360
|
-
* Retrieve a paginated list of [Hostinger
|
|
29360
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29361
29361
|
* @summary List API tokens
|
|
29362
29362
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29363
29363
|
* @param {number} [page] Page number
|
|
@@ -29367,7 +29367,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29367
29367
|
*/
|
|
29368
29368
|
listAPITokensV1: (orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29369
29369
|
/**
|
|
29370
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29370
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29371
29371
|
* @summary Revoke API token
|
|
29372
29372
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29373
29373
|
* @param {*} [options] Override http request option.
|
|
@@ -29381,7 +29381,7 @@ export declare const MailAPITokensApiAxiosParamCreator: (configuration?: Configu
|
|
|
29381
29381
|
*/
|
|
29382
29382
|
export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
29383
29383
|
/**
|
|
29384
|
-
* Create an API token for the given mail order.
|
|
29384
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29385
29385
|
* @summary Create API token
|
|
29386
29386
|
* @param {string} orderId Order resource ID
|
|
29387
29387
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29390,7 +29390,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29390
29390
|
*/
|
|
29391
29391
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MailV1ApiTokensApiTokenCreatedResource>>;
|
|
29392
29392
|
/**
|
|
29393
|
-
* Retrieve a paginated list of [Hostinger
|
|
29393
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29394
29394
|
* @summary List API tokens
|
|
29395
29395
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29396
29396
|
* @param {number} [page] Page number
|
|
@@ -29400,7 +29400,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29400
29400
|
*/
|
|
29401
29401
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MailListAPITokensV1200Response>>;
|
|
29402
29402
|
/**
|
|
29403
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29403
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29404
29404
|
* @summary Revoke API token
|
|
29405
29405
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29406
29406
|
* @param {*} [options] Override http request option.
|
|
@@ -29414,7 +29414,7 @@ export declare const MailAPITokensApiFp: (configuration?: Configuration) => {
|
|
|
29414
29414
|
*/
|
|
29415
29415
|
export declare const MailAPITokensApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
29416
29416
|
/**
|
|
29417
|
-
* Create an API token for the given mail order.
|
|
29417
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29418
29418
|
* @summary Create API token
|
|
29419
29419
|
* @param {string} orderId Order resource ID
|
|
29420
29420
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29423,7 +29423,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29423
29423
|
*/
|
|
29424
29424
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): AxiosPromise<MailV1ApiTokensApiTokenCreatedResource>;
|
|
29425
29425
|
/**
|
|
29426
|
-
* Retrieve a paginated list of [Hostinger
|
|
29426
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29427
29427
|
* @summary List API tokens
|
|
29428
29428
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29429
29429
|
* @param {number} [page] Page number
|
|
@@ -29433,7 +29433,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29433
29433
|
*/
|
|
29434
29434
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<MailListAPITokensV1200Response>;
|
|
29435
29435
|
/**
|
|
29436
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29436
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29437
29437
|
* @summary Revoke API token
|
|
29438
29438
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29439
29439
|
* @param {*} [options] Override http request option.
|
|
@@ -29449,7 +29449,7 @@ export declare const MailAPITokensApiFactory: (configuration?: Configuration, ba
|
|
|
29449
29449
|
*/
|
|
29450
29450
|
export declare class MailAPITokensApi extends BaseAPI {
|
|
29451
29451
|
/**
|
|
29452
|
-
* Create an API token for the given mail order.
|
|
29452
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
29453
29453
|
* @summary Create API token
|
|
29454
29454
|
* @param {string} orderId Order resource ID
|
|
29455
29455
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -29459,7 +29459,7 @@ export declare class MailAPITokensApi extends BaseAPI {
|
|
|
29459
29459
|
*/
|
|
29460
29460
|
createAPITokenV1(orderId: string, mailV1SchemaCreateApiTokenRequestSchema: MailV1SchemaCreateApiTokenRequestSchema, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MailV1ApiTokensApiTokenCreatedResource, any, {}, any>>;
|
|
29461
29461
|
/**
|
|
29462
|
-
* Retrieve a paginated list of [Hostinger
|
|
29462
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
29463
29463
|
* @summary List API tokens
|
|
29464
29464
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
29465
29465
|
* @param {number} [page] Page number
|
|
@@ -29470,7 +29470,7 @@ export declare class MailAPITokensApi extends BaseAPI {
|
|
|
29470
29470
|
*/
|
|
29471
29471
|
listAPITokensV1(orderId?: string | null, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MailListAPITokensV1200Response, any, {}, any>>;
|
|
29472
29472
|
/**
|
|
29473
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
29473
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
29474
29474
|
* @summary Revoke API token
|
|
29475
29475
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
29476
29476
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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
|
|
@@ -20465,7 +20465,7 @@ export const ListWebsitesV1WebsiteTypesEnum = {
|
|
|
20465
20465
|
export const MailAPITokensApiAxiosParamCreator = function (configuration) {
|
|
20466
20466
|
return {
|
|
20467
20467
|
/**
|
|
20468
|
-
* Create an API token for the given mail order.
|
|
20468
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20469
20469
|
* @summary Create API token
|
|
20470
20470
|
* @param {string} orderId Order resource ID
|
|
20471
20471
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20502,7 +20502,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration) {
|
|
|
20502
20502
|
};
|
|
20503
20503
|
}),
|
|
20504
20504
|
/**
|
|
20505
|
-
* Retrieve a paginated list of [Hostinger
|
|
20505
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20506
20506
|
* @summary List API tokens
|
|
20507
20507
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20508
20508
|
* @param {number} [page] Page number
|
|
@@ -20542,7 +20542,7 @@ export const MailAPITokensApiAxiosParamCreator = function (configuration) {
|
|
|
20542
20542
|
};
|
|
20543
20543
|
}),
|
|
20544
20544
|
/**
|
|
20545
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20545
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20546
20546
|
* @summary Revoke API token
|
|
20547
20547
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20548
20548
|
* @param {*} [options] Override http request option.
|
|
@@ -20583,7 +20583,7 @@ export const MailAPITokensApiFp = function (configuration) {
|
|
|
20583
20583
|
const localVarAxiosParamCreator = MailAPITokensApiAxiosParamCreator(configuration);
|
|
20584
20584
|
return {
|
|
20585
20585
|
/**
|
|
20586
|
-
* Create an API token for the given mail order.
|
|
20586
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20587
20587
|
* @summary Create API token
|
|
20588
20588
|
* @param {string} orderId Order resource ID
|
|
20589
20589
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20599,7 +20599,7 @@ export const MailAPITokensApiFp = function (configuration) {
|
|
|
20599
20599
|
});
|
|
20600
20600
|
},
|
|
20601
20601
|
/**
|
|
20602
|
-
* Retrieve a paginated list of [Hostinger
|
|
20602
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20603
20603
|
* @summary List API tokens
|
|
20604
20604
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20605
20605
|
* @param {number} [page] Page number
|
|
@@ -20616,7 +20616,7 @@ export const MailAPITokensApiFp = function (configuration) {
|
|
|
20616
20616
|
});
|
|
20617
20617
|
},
|
|
20618
20618
|
/**
|
|
20619
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20619
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20620
20620
|
* @summary Revoke API token
|
|
20621
20621
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20622
20622
|
* @param {*} [options] Override http request option.
|
|
@@ -20640,7 +20640,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
|
|
|
20640
20640
|
const localVarFp = MailAPITokensApiFp(configuration);
|
|
20641
20641
|
return {
|
|
20642
20642
|
/**
|
|
20643
|
-
* Create an API token for the given mail order.
|
|
20643
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20644
20644
|
* @summary Create API token
|
|
20645
20645
|
* @param {string} orderId Order resource ID
|
|
20646
20646
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20651,7 +20651,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
|
|
|
20651
20651
|
return localVarFp.createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(axios, basePath));
|
|
20652
20652
|
},
|
|
20653
20653
|
/**
|
|
20654
|
-
* Retrieve a paginated list of [Hostinger
|
|
20654
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20655
20655
|
* @summary List API tokens
|
|
20656
20656
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20657
20657
|
* @param {number} [page] Page number
|
|
@@ -20663,7 +20663,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
|
|
|
20663
20663
|
return localVarFp.listAPITokensV1(orderId, page, perPage, options).then((request) => request(axios, basePath));
|
|
20664
20664
|
},
|
|
20665
20665
|
/**
|
|
20666
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20666
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20667
20667
|
* @summary Revoke API token
|
|
20668
20668
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20669
20669
|
* @param {*} [options] Override http request option.
|
|
@@ -20682,7 +20682,7 @@ export const MailAPITokensApiFactory = function (configuration, basePath, axios)
|
|
|
20682
20682
|
*/
|
|
20683
20683
|
export class MailAPITokensApi extends BaseAPI {
|
|
20684
20684
|
/**
|
|
20685
|
-
* Create an API token for the given mail order.
|
|
20685
|
+
* Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
20686
20686
|
* @summary Create API token
|
|
20687
20687
|
* @param {string} orderId Order resource ID
|
|
20688
20688
|
* @param {MailV1SchemaCreateApiTokenRequestSchema} mailV1SchemaCreateApiTokenRequestSchema
|
|
@@ -20694,7 +20694,7 @@ export class MailAPITokensApi extends BaseAPI {
|
|
|
20694
20694
|
return MailAPITokensApiFp(this.configuration).createAPITokenV1(orderId, mailV1SchemaCreateApiTokenRequestSchema, options).then((request) => request(this.axios, this.basePath));
|
|
20695
20695
|
}
|
|
20696
20696
|
/**
|
|
20697
|
-
* Retrieve a paginated list of [Hostinger
|
|
20697
|
+
* Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
20698
20698
|
* @summary List API tokens
|
|
20699
20699
|
* @param {string | null} [orderId] Filter tokens by order resource ID. Single value or comma-separated list.
|
|
20700
20700
|
* @param {number} [page] Page number
|
|
@@ -20707,7 +20707,7 @@ export class MailAPITokensApi extends BaseAPI {
|
|
|
20707
20707
|
return MailAPITokensApiFp(this.configuration).listAPITokensV1(orderId, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
20708
20708
|
}
|
|
20709
20709
|
/**
|
|
20710
|
-
* Revoke an API token. The token immediately loses access to the [Hostinger
|
|
20710
|
+
* Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
20711
20711
|
* @summary Revoke API token
|
|
20712
20712
|
* @param {string} tokenId API token ID (returned when the token was created)
|
|
20713
20713
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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 API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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 API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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 API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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 API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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 API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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-typescript-sdk/2.14.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.14.1" }, (_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 API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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 API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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 API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.14.
|
|
4
|
+
* API Version: 2.14.1
|
|
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 API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.14.
|
|
7
|
+
* API Version: 2.14.1
|
|
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/docs/MailAPITokensApi.md
CHANGED
|
@@ -11,7 +11,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
11
11
|
# **createAPITokenV1**
|
|
12
12
|
> MailV1ApiTokensApiTokenCreatedResource createAPITokenV1(mailV1SchemaCreateApiTokenRequestSchema)
|
|
13
13
|
|
|
14
|
-
Create an API token for the given mail order.
|
|
14
|
+
Create an API token for the given mail order. Through the [Hostinger Mail API](https://api.mail.hostinger.com/), the token grants access to the mailboxes it is scoped to (for example, to read, search, send and organise email messages), without signing in with a mailbox password over IMAP, SMTP or webmail. A token covers either all mailboxes of the order or only the ones you choose. Set `scope.has_all_mailboxes` to `true` to cover all current and future mailboxes, or to `false` and list specific mailboxes in `scope.mailbox_ids`. The plaintext token is returned only in this response, never again. Store it securely, because anyone who has it gets the same access. A maximum of 10 tokens can exist per order.
|
|
15
15
|
|
|
16
16
|
### Example
|
|
17
17
|
|
|
@@ -71,7 +71,7 @@ const { status, data } = await apiInstance.createAPITokenV1(
|
|
|
71
71
|
# **listAPITokensV1**
|
|
72
72
|
> MailListAPITokensV1200Response listAPITokensV1()
|
|
73
73
|
|
|
74
|
-
Retrieve a paginated list of [Hostinger
|
|
74
|
+
Retrieve a paginated list of [Hostinger Mail API](https://api.mail.hostinger.com/) tokens across all your mail orders, optionally filtered by order. Plaintext tokens are never included; they are returned only when a token is created.
|
|
75
75
|
|
|
76
76
|
### Example
|
|
77
77
|
|
|
@@ -131,7 +131,7 @@ const { status, data } = await apiInstance.listAPITokensV1(
|
|
|
131
131
|
# **revokeAPITokenV1**
|
|
132
132
|
> CommonSuccessEmptyResource revokeAPITokenV1()
|
|
133
133
|
|
|
134
|
-
Revoke an API token. The token immediately loses access to the [Hostinger
|
|
134
|
+
Revoke an API token. The token immediately loses access to the [Hostinger Mail API](https://api.mail.hostinger.com/). This action cannot be undone.
|
|
135
135
|
|
|
136
136
|
### Example
|
|
137
137
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | Unique API token identifier | [optional] [default to undefined]
|
|
9
|
-
**token** | **string** | Plaintext API token, returned only in this response. Grants access to the [Hostinger
|
|
9
|
+
**token** | **string** | Plaintext API token, returned only in this response. Grants access to the mailboxes it is scoped to through the [Hostinger Mail API](https://api.mail.hostinger.com/). | [optional] [default to undefined]
|
|
10
10
|
**name** | **string** | Human-readable label for this token | [optional] [default to undefined]
|
|
11
11
|
**scope** | [**MailV1ApiTokensApiTokenScopeResource**](MailV1ApiTokensApiTokenScopeResource.md) | | [optional] [default to undefined]
|
|
12
12
|
**created_at** | **string** | | [optional] [default to undefined]
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.14.
|
|
6
|
+
* API Version: 2.14.1
|
|
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
|