hostinger-api-sdk 1.2.0 → 1.3.0
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 +2249 -120
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1339 -73
- package/dist/api.js +1710 -104
- 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 +1339 -73
- package/dist/esm/api.js +1681 -96
- 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/EcommerceSalesChannelsApi.md +66 -4
- package/docs/EcommerceStoresApi.md +54 -0
- package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
- package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
- package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
- package/docs/WordPressAIToolsApi.md +129 -0
- package/docs/WordPressInstallationsApi.md +408 -0
- package/docs/WordPressLiteSpeedCacheApi.md +121 -0
- package/docs/WordPressLoginApi.md +64 -0
- package/docs/WordPressMaintenanceApi.md +126 -0
- package/docs/WordPressObjectCacheApi.md +126 -0
- package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
- package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
- package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
- package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
- package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
- package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
- package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
- package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
- package/docs/WordPressV1InstallationsVersionResource.md +22 -0
- package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
- package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
- package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
- package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
- package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
- package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
- 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 API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.3.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -394,11 +394,27 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
394
394
|
Unlocked: 'unlocked',
|
|
395
395
|
Locked: 'locked'
|
|
396
396
|
};
|
|
397
|
+
export const WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
|
|
398
|
+
Llmstxt: 'llmstxt',
|
|
399
|
+
Web2agent: 'web2agent'
|
|
400
|
+
};
|
|
397
401
|
export const WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
|
|
398
402
|
All: 'all',
|
|
399
403
|
None: 'none',
|
|
400
404
|
Minor: 'minor'
|
|
401
405
|
};
|
|
406
|
+
export const WordPressV1InstallationsUpdateResourceTypeEnum = {
|
|
407
|
+
Major: 'major',
|
|
408
|
+
Minor: 'minor'
|
|
409
|
+
};
|
|
410
|
+
export const WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = {
|
|
411
|
+
Enabled: 'enabled',
|
|
412
|
+
Disabled: 'disabled'
|
|
413
|
+
};
|
|
414
|
+
export const WordPressV1MemcachedMemcachedStatusResourceStatusEnum = {
|
|
415
|
+
Active: 'active',
|
|
416
|
+
Inactive: 'inactive'
|
|
417
|
+
};
|
|
402
418
|
export const WordPressV1PluginsInstalledPluginResourceStatusEnum = {
|
|
403
419
|
Active: 'active',
|
|
404
420
|
Inactive: 'inactive'
|
|
@@ -3466,17 +3482,17 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
|
|
|
3466
3482
|
return {
|
|
3467
3483
|
/**
|
|
3468
3484
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3469
|
-
* @summary Create
|
|
3485
|
+
* @summary Create custom sales channel
|
|
3470
3486
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3471
3487
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3472
3488
|
* @param {*} [options] Override http request option.
|
|
3473
3489
|
* @throws {RequiredError}
|
|
3474
3490
|
*/
|
|
3475
|
-
|
|
3491
|
+
createCustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
|
|
3476
3492
|
// verify required parameter 'storeId' is not null or undefined
|
|
3477
|
-
assertParamExists('
|
|
3493
|
+
assertParamExists('createCustomSalesChannelV1', 'storeId', storeId);
|
|
3478
3494
|
// verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
|
|
3479
|
-
assertParamExists('
|
|
3495
|
+
assertParamExists('createCustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
|
|
3480
3496
|
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
3481
3497
|
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3482
3498
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3533,6 +3549,47 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
|
|
|
3533
3549
|
options: localVarRequestOptions,
|
|
3534
3550
|
};
|
|
3535
3551
|
}),
|
|
3552
|
+
/**
|
|
3553
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3554
|
+
* @summary Update sales channel
|
|
3555
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3556
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3557
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3558
|
+
* @param {*} [options] Override http request option.
|
|
3559
|
+
* @throws {RequiredError}
|
|
3560
|
+
*/
|
|
3561
|
+
updateSalesChannelV1: (storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1) => __awaiter(this, [storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1], void 0, function* (storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options = {}) {
|
|
3562
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3563
|
+
assertParamExists('updateSalesChannelV1', 'storeId', storeId);
|
|
3564
|
+
// verify required parameter 'salesChannelId' is not null or undefined
|
|
3565
|
+
assertParamExists('updateSalesChannelV1', 'salesChannelId', salesChannelId);
|
|
3566
|
+
// verify required parameter 'ecommerceV1SalesChannelUpdateRequest' is not null or undefined
|
|
3567
|
+
assertParamExists('updateSalesChannelV1', 'ecommerceV1SalesChannelUpdateRequest', ecommerceV1SalesChannelUpdateRequest);
|
|
3568
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
|
|
3569
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
|
|
3570
|
+
.replace(`{${"sales_channel_id"}}`, encodeURIComponent(String(salesChannelId)));
|
|
3571
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3572
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3573
|
+
let baseOptions;
|
|
3574
|
+
if (configuration) {
|
|
3575
|
+
baseOptions = configuration.baseOptions;
|
|
3576
|
+
}
|
|
3577
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3578
|
+
const localVarHeaderParameter = {};
|
|
3579
|
+
const localVarQueryParameter = {};
|
|
3580
|
+
// authentication apiToken required
|
|
3581
|
+
// http bearer authentication required
|
|
3582
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3583
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3584
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3586
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3587
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelUpdateRequest, localVarRequestOptions, configuration);
|
|
3588
|
+
return {
|
|
3589
|
+
url: toPathString(localVarUrlObj),
|
|
3590
|
+
options: localVarRequestOptions,
|
|
3591
|
+
};
|
|
3592
|
+
}),
|
|
3536
3593
|
};
|
|
3537
3594
|
};
|
|
3538
3595
|
/**
|
|
@@ -3544,17 +3601,17 @@ export const EcommerceSalesChannelsApiFp = function (configuration) {
|
|
|
3544
3601
|
return {
|
|
3545
3602
|
/**
|
|
3546
3603
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3547
|
-
* @summary Create
|
|
3604
|
+
* @summary Create custom sales channel
|
|
3548
3605
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3549
3606
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3550
3607
|
* @param {*} [options] Override http request option.
|
|
3551
3608
|
* @throws {RequiredError}
|
|
3552
3609
|
*/
|
|
3553
|
-
|
|
3610
|
+
createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3554
3611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3555
3612
|
var _a, _b;
|
|
3556
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3557
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.
|
|
3613
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
|
|
3614
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.createCustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3558
3615
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3559
3616
|
});
|
|
3560
3617
|
},
|
|
@@ -3573,6 +3630,23 @@ export const EcommerceSalesChannelsApiFp = function (configuration) {
|
|
|
3573
3630
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3574
3631
|
});
|
|
3575
3632
|
},
|
|
3633
|
+
/**
|
|
3634
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3635
|
+
* @summary Update sales channel
|
|
3636
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3637
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3638
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3639
|
+
* @param {*} [options] Override http request option.
|
|
3640
|
+
* @throws {RequiredError}
|
|
3641
|
+
*/
|
|
3642
|
+
updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
|
|
3643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3644
|
+
var _a, _b;
|
|
3645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options);
|
|
3646
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.updateSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3647
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3648
|
+
});
|
|
3649
|
+
},
|
|
3576
3650
|
};
|
|
3577
3651
|
};
|
|
3578
3652
|
/**
|
|
@@ -3584,14 +3658,14 @@ export const EcommerceSalesChannelsApiFactory = function (configuration, basePat
|
|
|
3584
3658
|
return {
|
|
3585
3659
|
/**
|
|
3586
3660
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3587
|
-
* @summary Create
|
|
3661
|
+
* @summary Create custom sales channel
|
|
3588
3662
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3589
3663
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3590
3664
|
* @param {*} [options] Override http request option.
|
|
3591
3665
|
* @throws {RequiredError}
|
|
3592
3666
|
*/
|
|
3593
|
-
|
|
3594
|
-
return localVarFp.
|
|
3667
|
+
createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3668
|
+
return localVarFp.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
|
|
3595
3669
|
},
|
|
3596
3670
|
/**
|
|
3597
3671
|
* List a store\'s active sales channels with their full metadata.
|
|
@@ -3603,6 +3677,18 @@ export const EcommerceSalesChannelsApiFactory = function (configuration, basePat
|
|
|
3603
3677
|
listSalesChannelsV1(storeId, options) {
|
|
3604
3678
|
return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
|
|
3605
3679
|
},
|
|
3680
|
+
/**
|
|
3681
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3682
|
+
* @summary Update sales channel
|
|
3683
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3684
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3685
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3686
|
+
* @param {*} [options] Override http request option.
|
|
3687
|
+
* @throws {RequiredError}
|
|
3688
|
+
*/
|
|
3689
|
+
updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
|
|
3690
|
+
return localVarFp.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3691
|
+
},
|
|
3606
3692
|
};
|
|
3607
3693
|
};
|
|
3608
3694
|
/**
|
|
@@ -3614,15 +3700,15 @@ export const EcommerceSalesChannelsApiFactory = function (configuration, basePat
|
|
|
3614
3700
|
export class EcommerceSalesChannelsApi extends BaseAPI {
|
|
3615
3701
|
/**
|
|
3616
3702
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3617
|
-
* @summary Create
|
|
3703
|
+
* @summary Create custom sales channel
|
|
3618
3704
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3619
3705
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3620
3706
|
* @param {*} [options] Override http request option.
|
|
3621
3707
|
* @throws {RequiredError}
|
|
3622
3708
|
* @memberof EcommerceSalesChannelsApi
|
|
3623
3709
|
*/
|
|
3624
|
-
|
|
3625
|
-
return EcommerceSalesChannelsApiFp(this.configuration).
|
|
3710
|
+
createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3711
|
+
return EcommerceSalesChannelsApiFp(this.configuration).createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3626
3712
|
}
|
|
3627
3713
|
/**
|
|
3628
3714
|
* List a store\'s active sales channels with their full metadata.
|
|
@@ -3635,6 +3721,19 @@ export class EcommerceSalesChannelsApi extends BaseAPI {
|
|
|
3635
3721
|
listSalesChannelsV1(storeId, options) {
|
|
3636
3722
|
return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
3637
3723
|
}
|
|
3724
|
+
/**
|
|
3725
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3726
|
+
* @summary Update sales channel
|
|
3727
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3728
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3729
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
* @memberof EcommerceSalesChannelsApi
|
|
3733
|
+
*/
|
|
3734
|
+
updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
|
|
3735
|
+
return EcommerceSalesChannelsApiFp(this.configuration).updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3736
|
+
}
|
|
3638
3737
|
}
|
|
3639
3738
|
/**
|
|
3640
3739
|
* EcommerceShippingApi - axios parameter creator
|
|
@@ -3817,6 +3916,38 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
|
3817
3916
|
options: localVarRequestOptions,
|
|
3818
3917
|
};
|
|
3819
3918
|
}),
|
|
3919
|
+
/**
|
|
3920
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
3921
|
+
* @summary Get store metadata
|
|
3922
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
3923
|
+
* @param {*} [options] Override http request option.
|
|
3924
|
+
* @throws {RequiredError}
|
|
3925
|
+
*/
|
|
3926
|
+
getStoreMetadataV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
3927
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3928
|
+
assertParamExists('getStoreMetadataV1', 'storeId', storeId);
|
|
3929
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/metadata`
|
|
3930
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3931
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3932
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3933
|
+
let baseOptions;
|
|
3934
|
+
if (configuration) {
|
|
3935
|
+
baseOptions = configuration.baseOptions;
|
|
3936
|
+
}
|
|
3937
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3938
|
+
const localVarHeaderParameter = {};
|
|
3939
|
+
const localVarQueryParameter = {};
|
|
3940
|
+
// authentication apiToken required
|
|
3941
|
+
// http bearer authentication required
|
|
3942
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3945
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3946
|
+
return {
|
|
3947
|
+
url: toPathString(localVarUrlObj),
|
|
3948
|
+
options: localVarRequestOptions,
|
|
3949
|
+
};
|
|
3950
|
+
}),
|
|
3820
3951
|
/**
|
|
3821
3952
|
* Retrieve the stores associated with your account.
|
|
3822
3953
|
* @summary Get stores
|
|
@@ -3888,6 +4019,21 @@ export const EcommerceStoresApiFp = function (configuration) {
|
|
|
3888
4019
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3889
4020
|
});
|
|
3890
4021
|
},
|
|
4022
|
+
/**
|
|
4023
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
4024
|
+
* @summary Get store metadata
|
|
4025
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
4026
|
+
* @param {*} [options] Override http request option.
|
|
4027
|
+
* @throws {RequiredError}
|
|
4028
|
+
*/
|
|
4029
|
+
getStoreMetadataV1(storeId, options) {
|
|
4030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4031
|
+
var _a, _b;
|
|
4032
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoreMetadataV1(storeId, options);
|
|
4033
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.getStoreMetadataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4034
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4035
|
+
});
|
|
4036
|
+
},
|
|
3891
4037
|
/**
|
|
3892
4038
|
* Retrieve the stores associated with your account.
|
|
3893
4039
|
* @summary Get stores
|
|
@@ -3932,6 +4078,16 @@ export const EcommerceStoresApiFactory = function (configuration, basePath, axio
|
|
|
3932
4078
|
deleteStoreV1(storeId, options) {
|
|
3933
4079
|
return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
|
|
3934
4080
|
},
|
|
4081
|
+
/**
|
|
4082
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
4083
|
+
* @summary Get store metadata
|
|
4084
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
4085
|
+
* @param {*} [options] Override http request option.
|
|
4086
|
+
* @throws {RequiredError}
|
|
4087
|
+
*/
|
|
4088
|
+
getStoreMetadataV1(storeId, options) {
|
|
4089
|
+
return localVarFp.getStoreMetadataV1(storeId, options).then((request) => request(axios, basePath));
|
|
4090
|
+
},
|
|
3935
4091
|
/**
|
|
3936
4092
|
* Retrieve the stores associated with your account.
|
|
3937
4093
|
* @summary Get stores
|
|
@@ -3973,6 +4129,17 @@ export class EcommerceStoresApi extends BaseAPI {
|
|
|
3973
4129
|
deleteStoreV1(storeId, options) {
|
|
3974
4130
|
return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
3975
4131
|
}
|
|
4132
|
+
/**
|
|
4133
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
4134
|
+
* @summary Get store metadata
|
|
4135
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
4136
|
+
* @param {*} [options] Override http request option.
|
|
4137
|
+
* @throws {RequiredError}
|
|
4138
|
+
* @memberof EcommerceStoresApi
|
|
4139
|
+
*/
|
|
4140
|
+
getStoreMetadataV1(storeId, options) {
|
|
4141
|
+
return EcommerceStoresApiFp(this.configuration).getStoreMetadataV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
4142
|
+
}
|
|
3976
4143
|
/**
|
|
3977
4144
|
* Retrieve the stores associated with your account.
|
|
3978
4145
|
* @summary Get stores
|
|
@@ -13031,33 +13198,37 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
13031
13198
|
}
|
|
13032
13199
|
}
|
|
13033
13200
|
/**
|
|
13034
|
-
*
|
|
13201
|
+
* WordPressAIToolsApi - axios parameter creator
|
|
13035
13202
|
* @export
|
|
13036
13203
|
*/
|
|
13037
|
-
export const
|
|
13204
|
+
export const WordPressAIToolsApiAxiosParamCreator = function (configuration) {
|
|
13038
13205
|
return {
|
|
13039
13206
|
/**
|
|
13040
|
-
*
|
|
13041
|
-
* @summary
|
|
13207
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13208
|
+
* @summary Set AI option status
|
|
13042
13209
|
* @param {string} username
|
|
13043
|
-
* @param {
|
|
13210
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13211
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13044
13212
|
* @param {*} [options] Override http request option.
|
|
13045
13213
|
* @throws {RequiredError}
|
|
13046
13214
|
*/
|
|
13047
|
-
|
|
13215
|
+
setAIOptionStatusV1: (username_1, software_1, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest_1, ...args_1], void 0, function* (username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options = {}) {
|
|
13048
13216
|
// verify required parameter 'username' is not null or undefined
|
|
13049
|
-
assertParamExists('
|
|
13050
|
-
// verify required parameter '
|
|
13051
|
-
assertParamExists('
|
|
13052
|
-
|
|
13053
|
-
|
|
13217
|
+
assertParamExists('setAIOptionStatusV1', 'username', username);
|
|
13218
|
+
// verify required parameter 'software' is not null or undefined
|
|
13219
|
+
assertParamExists('setAIOptionStatusV1', 'software', software);
|
|
13220
|
+
// verify required parameter 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest' is not null or undefined
|
|
13221
|
+
assertParamExists('setAIOptionStatusV1', 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest', wordPressV1HostingerPluginsUpdateAiOptionStatusRequest);
|
|
13222
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
|
|
13223
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13224
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13054
13225
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13055
13226
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13056
13227
|
let baseOptions;
|
|
13057
13228
|
if (configuration) {
|
|
13058
13229
|
baseOptions = configuration.baseOptions;
|
|
13059
13230
|
}
|
|
13060
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13231
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
13061
13232
|
const localVarHeaderParameter = {};
|
|
13062
13233
|
const localVarQueryParameter = {};
|
|
13063
13234
|
// authentication apiToken required
|
|
@@ -13067,23 +13238,29 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
13067
13238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13068
13239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13069
13240
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13070
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
13241
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, localVarRequestOptions, configuration);
|
|
13071
13242
|
return {
|
|
13072
13243
|
url: toPathString(localVarUrlObj),
|
|
13073
13244
|
options: localVarRequestOptions,
|
|
13074
13245
|
};
|
|
13075
13246
|
}),
|
|
13076
13247
|
/**
|
|
13077
|
-
*
|
|
13078
|
-
* @summary
|
|
13079
|
-
* @param {string
|
|
13080
|
-
* @param {string
|
|
13081
|
-
* @param {
|
|
13248
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13249
|
+
* @summary Show AI option status
|
|
13250
|
+
* @param {string} username
|
|
13251
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13252
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13082
13253
|
* @param {*} [options] Override http request option.
|
|
13083
13254
|
* @throws {RequiredError}
|
|
13084
13255
|
*/
|
|
13085
|
-
|
|
13086
|
-
|
|
13256
|
+
showAIOptionStatusV1: (username_1, software_1, option_1, ...args_1) => __awaiter(this, [username_1, software_1, option_1, ...args_1], void 0, function* (username, software, option, options = {}) {
|
|
13257
|
+
// verify required parameter 'username' is not null or undefined
|
|
13258
|
+
assertParamExists('showAIOptionStatusV1', 'username', username);
|
|
13259
|
+
// verify required parameter 'software' is not null or undefined
|
|
13260
|
+
assertParamExists('showAIOptionStatusV1', 'software', software);
|
|
13261
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
|
|
13262
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13263
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13087
13264
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13088
13265
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13089
13266
|
let baseOptions;
|
|
@@ -13096,14 +13273,8 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
13096
13273
|
// authentication apiToken required
|
|
13097
13274
|
// http bearer authentication required
|
|
13098
13275
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13099
|
-
if (
|
|
13100
|
-
localVarQueryParameter['
|
|
13101
|
-
}
|
|
13102
|
-
if (domain !== undefined) {
|
|
13103
|
-
localVarQueryParameter['domain'] = domain;
|
|
13104
|
-
}
|
|
13105
|
-
if (ownership !== undefined) {
|
|
13106
|
-
localVarQueryParameter['ownership'] = ownership;
|
|
13276
|
+
if (option !== undefined) {
|
|
13277
|
+
localVarQueryParameter['option'] = option;
|
|
13107
13278
|
}
|
|
13108
13279
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13109
13280
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -13116,120 +13287,1534 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
13116
13287
|
};
|
|
13117
13288
|
};
|
|
13118
13289
|
/**
|
|
13119
|
-
*
|
|
13290
|
+
* WordPressAIToolsApi - functional programming interface
|
|
13120
13291
|
* @export
|
|
13121
13292
|
*/
|
|
13122
|
-
export const
|
|
13123
|
-
const localVarAxiosParamCreator =
|
|
13293
|
+
export const WordPressAIToolsApiFp = function (configuration) {
|
|
13294
|
+
const localVarAxiosParamCreator = WordPressAIToolsApiAxiosParamCreator(configuration);
|
|
13124
13295
|
return {
|
|
13125
13296
|
/**
|
|
13126
|
-
*
|
|
13127
|
-
* @summary
|
|
13297
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13298
|
+
* @summary Set AI option status
|
|
13128
13299
|
* @param {string} username
|
|
13129
|
-
* @param {
|
|
13300
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13301
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13130
13302
|
* @param {*} [options] Override http request option.
|
|
13131
13303
|
* @throws {RequiredError}
|
|
13132
13304
|
*/
|
|
13133
|
-
|
|
13305
|
+
setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
|
|
13134
13306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13135
13307
|
var _a, _b;
|
|
13136
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13137
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
13308
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options);
|
|
13309
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressAIToolsApi.setAIOptionStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13138
13310
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13139
13311
|
});
|
|
13140
13312
|
},
|
|
13141
13313
|
/**
|
|
13142
|
-
*
|
|
13143
|
-
* @summary
|
|
13144
|
-
* @param {string
|
|
13145
|
-
* @param {string
|
|
13146
|
-
* @param {
|
|
13314
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13315
|
+
* @summary Show AI option status
|
|
13316
|
+
* @param {string} username
|
|
13317
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13318
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13147
13319
|
* @param {*} [options] Override http request option.
|
|
13148
13320
|
* @throws {RequiredError}
|
|
13149
13321
|
*/
|
|
13150
|
-
|
|
13322
|
+
showAIOptionStatusV1(username, software, option, options) {
|
|
13151
13323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13152
13324
|
var _a, _b;
|
|
13153
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13154
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
13325
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showAIOptionStatusV1(username, software, option, options);
|
|
13326
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressAIToolsApi.showAIOptionStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13155
13327
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13156
13328
|
});
|
|
13157
13329
|
},
|
|
13158
13330
|
};
|
|
13159
13331
|
};
|
|
13160
13332
|
/**
|
|
13161
|
-
*
|
|
13333
|
+
* WordPressAIToolsApi - factory interface
|
|
13162
13334
|
* @export
|
|
13163
13335
|
*/
|
|
13164
|
-
export const
|
|
13165
|
-
const localVarFp =
|
|
13336
|
+
export const WordPressAIToolsApiFactory = function (configuration, basePath, axios) {
|
|
13337
|
+
const localVarFp = WordPressAIToolsApiFp(configuration);
|
|
13166
13338
|
return {
|
|
13167
13339
|
/**
|
|
13168
|
-
*
|
|
13169
|
-
* @summary
|
|
13340
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13341
|
+
* @summary Set AI option status
|
|
13170
13342
|
* @param {string} username
|
|
13171
|
-
* @param {
|
|
13343
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13344
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13172
13345
|
* @param {*} [options] Override http request option.
|
|
13173
13346
|
* @throws {RequiredError}
|
|
13174
13347
|
*/
|
|
13175
|
-
|
|
13176
|
-
return localVarFp.
|
|
13348
|
+
setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
|
|
13349
|
+
return localVarFp.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(axios, basePath));
|
|
13177
13350
|
},
|
|
13178
13351
|
/**
|
|
13179
|
-
*
|
|
13180
|
-
* @summary
|
|
13181
|
-
* @param {string
|
|
13182
|
-
* @param {string
|
|
13183
|
-
* @param {
|
|
13352
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13353
|
+
* @summary Show AI option status
|
|
13354
|
+
* @param {string} username
|
|
13355
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13356
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13184
13357
|
* @param {*} [options] Override http request option.
|
|
13185
13358
|
* @throws {RequiredError}
|
|
13186
13359
|
*/
|
|
13187
|
-
|
|
13188
|
-
return localVarFp.
|
|
13360
|
+
showAIOptionStatusV1(username, software, option, options) {
|
|
13361
|
+
return localVarFp.showAIOptionStatusV1(username, software, option, options).then((request) => request(axios, basePath));
|
|
13189
13362
|
},
|
|
13190
13363
|
};
|
|
13191
13364
|
};
|
|
13192
13365
|
/**
|
|
13193
|
-
*
|
|
13366
|
+
* WordPressAIToolsApi - object-oriented interface
|
|
13194
13367
|
* @export
|
|
13195
|
-
* @class
|
|
13368
|
+
* @class WordPressAIToolsApi
|
|
13196
13369
|
* @extends {BaseAPI}
|
|
13197
13370
|
*/
|
|
13198
|
-
export class
|
|
13371
|
+
export class WordPressAIToolsApi extends BaseAPI {
|
|
13199
13372
|
/**
|
|
13200
|
-
*
|
|
13201
|
-
* @summary
|
|
13373
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13374
|
+
* @summary Set AI option status
|
|
13202
13375
|
* @param {string} username
|
|
13203
|
-
* @param {
|
|
13376
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13377
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13204
13378
|
* @param {*} [options] Override http request option.
|
|
13205
13379
|
* @throws {RequiredError}
|
|
13206
|
-
* @memberof
|
|
13380
|
+
* @memberof WordPressAIToolsApi
|
|
13207
13381
|
*/
|
|
13208
|
-
|
|
13209
|
-
return
|
|
13382
|
+
setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
|
|
13383
|
+
return WordPressAIToolsApiFp(this.configuration).setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13210
13384
|
}
|
|
13211
13385
|
/**
|
|
13212
|
-
*
|
|
13213
|
-
* @summary
|
|
13214
|
-
* @param {string
|
|
13215
|
-
* @param {string
|
|
13216
|
-
* @param {
|
|
13386
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13387
|
+
* @summary Show AI option status
|
|
13388
|
+
* @param {string} username
|
|
13389
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13390
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13217
13391
|
* @param {*} [options] Override http request option.
|
|
13218
13392
|
* @throws {RequiredError}
|
|
13219
|
-
* @memberof
|
|
13393
|
+
* @memberof WordPressAIToolsApi
|
|
13220
13394
|
*/
|
|
13221
|
-
|
|
13222
|
-
return
|
|
13395
|
+
showAIOptionStatusV1(username, software, option, options) {
|
|
13396
|
+
return WordPressAIToolsApiFp(this.configuration).showAIOptionStatusV1(username, software, option, options).then((request) => request(this.axios, this.basePath));
|
|
13223
13397
|
}
|
|
13224
13398
|
}
|
|
13225
13399
|
/**
|
|
13226
13400
|
* @export
|
|
13227
13401
|
*/
|
|
13228
|
-
export const
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
All: 'all'
|
|
13402
|
+
export const ShowAIOptionStatusV1OptionEnum = {
|
|
13403
|
+
Llmstxt: 'llmstxt',
|
|
13404
|
+
Web2agent: 'web2agent'
|
|
13232
13405
|
};
|
|
13406
|
+
/**
|
|
13407
|
+
* WordPressInstallationsApi - axios parameter creator
|
|
13408
|
+
* @export
|
|
13409
|
+
*/
|
|
13410
|
+
export const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
13411
|
+
return {
|
|
13412
|
+
/**
|
|
13413
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13414
|
+
* @summary Check if WordPress installations are valid
|
|
13415
|
+
* @param {string} username
|
|
13416
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
13417
|
+
* @param {*} [options] Override http request option.
|
|
13418
|
+
* @throws {RequiredError}
|
|
13419
|
+
*/
|
|
13420
|
+
checkIfWordPressInstallationsAreValidV1: (username_1, wordPressV1InstallationsCheckIsValidRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsCheckIsValidRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsCheckIsValidRequest, options = {}) {
|
|
13421
|
+
// verify required parameter 'username' is not null or undefined
|
|
13422
|
+
assertParamExists('checkIfWordPressInstallationsAreValidV1', 'username', username);
|
|
13423
|
+
// verify required parameter 'wordPressV1InstallationsCheckIsValidRequest' is not null or undefined
|
|
13424
|
+
assertParamExists('checkIfWordPressInstallationsAreValidV1', 'wordPressV1InstallationsCheckIsValidRequest', wordPressV1InstallationsCheckIsValidRequest);
|
|
13425
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid`
|
|
13426
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
13427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13429
|
+
let baseOptions;
|
|
13430
|
+
if (configuration) {
|
|
13431
|
+
baseOptions = configuration.baseOptions;
|
|
13432
|
+
}
|
|
13433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13434
|
+
const localVarHeaderParameter = {};
|
|
13435
|
+
const localVarQueryParameter = {};
|
|
13436
|
+
// authentication apiToken required
|
|
13437
|
+
// http bearer authentication required
|
|
13438
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13439
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13440
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13442
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13443
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsCheckIsValidRequest, localVarRequestOptions, configuration);
|
|
13444
|
+
return {
|
|
13445
|
+
url: toPathString(localVarUrlObj),
|
|
13446
|
+
options: localVarRequestOptions,
|
|
13447
|
+
};
|
|
13448
|
+
}),
|
|
13449
|
+
/**
|
|
13450
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13451
|
+
* @summary Delete WordPress installation
|
|
13452
|
+
* @param {string} username
|
|
13453
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13454
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
13455
|
+
* @param {*} [options] Override http request option.
|
|
13456
|
+
* @throws {RequiredError}
|
|
13457
|
+
*/
|
|
13458
|
+
deleteWordPressInstallationV1: (username_1, software_1, wordPressV1InstallationsDeleteInstallationRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1InstallationsDeleteInstallationRequest_1, ...args_1], void 0, function* (username, software, wordPressV1InstallationsDeleteInstallationRequest, options = {}) {
|
|
13459
|
+
// verify required parameter 'username' is not null or undefined
|
|
13460
|
+
assertParamExists('deleteWordPressInstallationV1', 'username', username);
|
|
13461
|
+
// verify required parameter 'software' is not null or undefined
|
|
13462
|
+
assertParamExists('deleteWordPressInstallationV1', 'software', software);
|
|
13463
|
+
// verify required parameter 'wordPressV1InstallationsDeleteInstallationRequest' is not null or undefined
|
|
13464
|
+
assertParamExists('deleteWordPressInstallationV1', 'wordPressV1InstallationsDeleteInstallationRequest', wordPressV1InstallationsDeleteInstallationRequest);
|
|
13465
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}`
|
|
13466
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13467
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13470
|
+
let baseOptions;
|
|
13471
|
+
if (configuration) {
|
|
13472
|
+
baseOptions = configuration.baseOptions;
|
|
13473
|
+
}
|
|
13474
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
13475
|
+
const localVarHeaderParameter = {};
|
|
13476
|
+
const localVarQueryParameter = {};
|
|
13477
|
+
// authentication apiToken required
|
|
13478
|
+
// http bearer authentication required
|
|
13479
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13480
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13483
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13484
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsDeleteInstallationRequest, localVarRequestOptions, configuration);
|
|
13485
|
+
return {
|
|
13486
|
+
url: toPathString(localVarUrlObj),
|
|
13487
|
+
options: localVarRequestOptions,
|
|
13488
|
+
};
|
|
13489
|
+
}),
|
|
13490
|
+
/**
|
|
13491
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
13492
|
+
* @summary Detect WordPress installations
|
|
13493
|
+
* @param {string} username
|
|
13494
|
+
* @param {*} [options] Override http request option.
|
|
13495
|
+
* @throws {RequiredError}
|
|
13496
|
+
*/
|
|
13497
|
+
detectWordPressInstallationsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
13498
|
+
// verify required parameter 'username' is not null or undefined
|
|
13499
|
+
assertParamExists('detectWordPressInstallationsV1', 'username', username);
|
|
13500
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/detect`
|
|
13501
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
13502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13503
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13504
|
+
let baseOptions;
|
|
13505
|
+
if (configuration) {
|
|
13506
|
+
baseOptions = configuration.baseOptions;
|
|
13507
|
+
}
|
|
13508
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13509
|
+
const localVarHeaderParameter = {};
|
|
13510
|
+
const localVarQueryParameter = {};
|
|
13511
|
+
// authentication apiToken required
|
|
13512
|
+
// http bearer authentication required
|
|
13513
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13514
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13515
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13516
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13517
|
+
return {
|
|
13518
|
+
url: toPathString(localVarUrlObj),
|
|
13519
|
+
options: localVarRequestOptions,
|
|
13520
|
+
};
|
|
13521
|
+
}),
|
|
13522
|
+
/**
|
|
13523
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13524
|
+
* @summary Get installation JWT token
|
|
13525
|
+
* @param {string} username
|
|
13526
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13527
|
+
* @param {*} [options] Override http request option.
|
|
13528
|
+
* @throws {RequiredError}
|
|
13529
|
+
*/
|
|
13530
|
+
getInstallationJWTTokenV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13531
|
+
// verify required parameter 'username' is not null or undefined
|
|
13532
|
+
assertParamExists('getInstallationJWTTokenV1', 'username', username);
|
|
13533
|
+
// verify required parameter 'software' is not null or undefined
|
|
13534
|
+
assertParamExists('getInstallationJWTTokenV1', 'software', software);
|
|
13535
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token`
|
|
13536
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13537
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13539
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13540
|
+
let baseOptions;
|
|
13541
|
+
if (configuration) {
|
|
13542
|
+
baseOptions = configuration.baseOptions;
|
|
13543
|
+
}
|
|
13544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13545
|
+
const localVarHeaderParameter = {};
|
|
13546
|
+
const localVarQueryParameter = {};
|
|
13547
|
+
// authentication apiToken required
|
|
13548
|
+
// http bearer authentication required
|
|
13549
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13552
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13553
|
+
return {
|
|
13554
|
+
url: toPathString(localVarUrlObj),
|
|
13555
|
+
options: localVarRequestOptions,
|
|
13556
|
+
};
|
|
13557
|
+
}),
|
|
13558
|
+
/**
|
|
13559
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
13560
|
+
* @summary Install WordPress
|
|
13561
|
+
* @param {string} username
|
|
13562
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
13563
|
+
* @param {*} [options] Override http request option.
|
|
13564
|
+
* @throws {RequiredError}
|
|
13565
|
+
*/
|
|
13566
|
+
installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
|
|
13567
|
+
// verify required parameter 'username' is not null or undefined
|
|
13568
|
+
assertParamExists('installWordPressV1', 'username', username);
|
|
13569
|
+
// verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
|
|
13570
|
+
assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
|
|
13571
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
13572
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
13573
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13574
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13575
|
+
let baseOptions;
|
|
13576
|
+
if (configuration) {
|
|
13577
|
+
baseOptions = configuration.baseOptions;
|
|
13578
|
+
}
|
|
13579
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13580
|
+
const localVarHeaderParameter = {};
|
|
13581
|
+
const localVarQueryParameter = {};
|
|
13582
|
+
// authentication apiToken required
|
|
13583
|
+
// http bearer authentication required
|
|
13584
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13585
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13588
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13589
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
|
|
13590
|
+
return {
|
|
13591
|
+
url: toPathString(localVarUrlObj),
|
|
13592
|
+
options: localVarRequestOptions,
|
|
13593
|
+
};
|
|
13594
|
+
}),
|
|
13595
|
+
/**
|
|
13596
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13597
|
+
* @summary List available WordPress core updates
|
|
13598
|
+
* @param {string} username
|
|
13599
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13600
|
+
* @param {*} [options] Override http request option.
|
|
13601
|
+
* @throws {RequiredError}
|
|
13602
|
+
*/
|
|
13603
|
+
listAvailableWordPressCoreUpdatesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13604
|
+
// verify required parameter 'username' is not null or undefined
|
|
13605
|
+
assertParamExists('listAvailableWordPressCoreUpdatesV1', 'username', username);
|
|
13606
|
+
// verify required parameter 'software' is not null or undefined
|
|
13607
|
+
assertParamExists('listAvailableWordPressCoreUpdatesV1', 'software', software);
|
|
13608
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/updates`
|
|
13609
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13610
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13611
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13612
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13613
|
+
let baseOptions;
|
|
13614
|
+
if (configuration) {
|
|
13615
|
+
baseOptions = configuration.baseOptions;
|
|
13616
|
+
}
|
|
13617
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13618
|
+
const localVarHeaderParameter = {};
|
|
13619
|
+
const localVarQueryParameter = {};
|
|
13620
|
+
// authentication apiToken required
|
|
13621
|
+
// http bearer authentication required
|
|
13622
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13623
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13624
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13625
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13626
|
+
return {
|
|
13627
|
+
url: toPathString(localVarUrlObj),
|
|
13628
|
+
options: localVarRequestOptions,
|
|
13629
|
+
};
|
|
13630
|
+
}),
|
|
13631
|
+
/**
|
|
13632
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
13633
|
+
* @summary List WordPress installations
|
|
13634
|
+
* @param {string | null} [username] Filter by specific username
|
|
13635
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13636
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
13637
|
+
* @param {*} [options] Override http request option.
|
|
13638
|
+
* @throws {RequiredError}
|
|
13639
|
+
*/
|
|
13640
|
+
listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
|
|
13641
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
13642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13643
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13644
|
+
let baseOptions;
|
|
13645
|
+
if (configuration) {
|
|
13646
|
+
baseOptions = configuration.baseOptions;
|
|
13647
|
+
}
|
|
13648
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13649
|
+
const localVarHeaderParameter = {};
|
|
13650
|
+
const localVarQueryParameter = {};
|
|
13651
|
+
// authentication apiToken required
|
|
13652
|
+
// http bearer authentication required
|
|
13653
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13654
|
+
if (username !== undefined) {
|
|
13655
|
+
localVarQueryParameter['username'] = username;
|
|
13656
|
+
}
|
|
13657
|
+
if (domain !== undefined) {
|
|
13658
|
+
localVarQueryParameter['domain'] = domain;
|
|
13659
|
+
}
|
|
13660
|
+
if (ownership !== undefined) {
|
|
13661
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
13662
|
+
}
|
|
13663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13666
|
+
return {
|
|
13667
|
+
url: toPathString(localVarUrlObj),
|
|
13668
|
+
options: localVarRequestOptions,
|
|
13669
|
+
};
|
|
13670
|
+
}),
|
|
13671
|
+
/**
|
|
13672
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13673
|
+
* @summary Show WordPress core version
|
|
13674
|
+
* @param {string} username
|
|
13675
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13676
|
+
* @param {*} [options] Override http request option.
|
|
13677
|
+
* @throws {RequiredError}
|
|
13678
|
+
*/
|
|
13679
|
+
showWordPressCoreVersionV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13680
|
+
// verify required parameter 'username' is not null or undefined
|
|
13681
|
+
assertParamExists('showWordPressCoreVersionV1', 'username', username);
|
|
13682
|
+
// verify required parameter 'software' is not null or undefined
|
|
13683
|
+
assertParamExists('showWordPressCoreVersionV1', 'software', software);
|
|
13684
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/version`
|
|
13685
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13686
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13687
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13688
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13689
|
+
let baseOptions;
|
|
13690
|
+
if (configuration) {
|
|
13691
|
+
baseOptions = configuration.baseOptions;
|
|
13692
|
+
}
|
|
13693
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13694
|
+
const localVarHeaderParameter = {};
|
|
13695
|
+
const localVarQueryParameter = {};
|
|
13696
|
+
// authentication apiToken required
|
|
13697
|
+
// http bearer authentication required
|
|
13698
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13699
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13700
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13701
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13702
|
+
return {
|
|
13703
|
+
url: toPathString(localVarUrlObj),
|
|
13704
|
+
options: localVarRequestOptions,
|
|
13705
|
+
};
|
|
13706
|
+
}),
|
|
13707
|
+
/**
|
|
13708
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13709
|
+
* @summary Update WordPress core
|
|
13710
|
+
* @param {string} username
|
|
13711
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13712
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
13713
|
+
* @param {*} [options] Override http request option.
|
|
13714
|
+
* @throws {RequiredError}
|
|
13715
|
+
*/
|
|
13716
|
+
updateWordPressCoreV1: (username_1, software_1, wordPressV1InstallationsUpdateInstallationRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1InstallationsUpdateInstallationRequest_1, ...args_1], void 0, function* (username, software, wordPressV1InstallationsUpdateInstallationRequest, options = {}) {
|
|
13717
|
+
// verify required parameter 'username' is not null or undefined
|
|
13718
|
+
assertParamExists('updateWordPressCoreV1', 'username', username);
|
|
13719
|
+
// verify required parameter 'software' is not null or undefined
|
|
13720
|
+
assertParamExists('updateWordPressCoreV1', 'software', software);
|
|
13721
|
+
// verify required parameter 'wordPressV1InstallationsUpdateInstallationRequest' is not null or undefined
|
|
13722
|
+
assertParamExists('updateWordPressCoreV1', 'wordPressV1InstallationsUpdateInstallationRequest', wordPressV1InstallationsUpdateInstallationRequest);
|
|
13723
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/update`
|
|
13724
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13725
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13726
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13727
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13728
|
+
let baseOptions;
|
|
13729
|
+
if (configuration) {
|
|
13730
|
+
baseOptions = configuration.baseOptions;
|
|
13731
|
+
}
|
|
13732
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13733
|
+
const localVarHeaderParameter = {};
|
|
13734
|
+
const localVarQueryParameter = {};
|
|
13735
|
+
// authentication apiToken required
|
|
13736
|
+
// http bearer authentication required
|
|
13737
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13738
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13739
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13741
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13742
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsUpdateInstallationRequest, localVarRequestOptions, configuration);
|
|
13743
|
+
return {
|
|
13744
|
+
url: toPathString(localVarUrlObj),
|
|
13745
|
+
options: localVarRequestOptions,
|
|
13746
|
+
};
|
|
13747
|
+
}),
|
|
13748
|
+
};
|
|
13749
|
+
};
|
|
13750
|
+
/**
|
|
13751
|
+
* WordPressInstallationsApi - functional programming interface
|
|
13752
|
+
* @export
|
|
13753
|
+
*/
|
|
13754
|
+
export const WordPressInstallationsApiFp = function (configuration) {
|
|
13755
|
+
const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration);
|
|
13756
|
+
return {
|
|
13757
|
+
/**
|
|
13758
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13759
|
+
* @summary Check if WordPress installations are valid
|
|
13760
|
+
* @param {string} username
|
|
13761
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
13762
|
+
* @param {*} [options] Override http request option.
|
|
13763
|
+
* @throws {RequiredError}
|
|
13764
|
+
*/
|
|
13765
|
+
checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
|
|
13766
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13767
|
+
var _a, _b;
|
|
13768
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options);
|
|
13769
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.checkIfWordPressInstallationsAreValidV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13770
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13771
|
+
});
|
|
13772
|
+
},
|
|
13773
|
+
/**
|
|
13774
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13775
|
+
* @summary Delete WordPress installation
|
|
13776
|
+
* @param {string} username
|
|
13777
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13778
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
13779
|
+
* @param {*} [options] Override http request option.
|
|
13780
|
+
* @throws {RequiredError}
|
|
13781
|
+
*/
|
|
13782
|
+
deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
|
|
13783
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13784
|
+
var _a, _b;
|
|
13785
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options);
|
|
13786
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.deleteWordPressInstallationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13788
|
+
});
|
|
13789
|
+
},
|
|
13790
|
+
/**
|
|
13791
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
13792
|
+
* @summary Detect WordPress installations
|
|
13793
|
+
* @param {string} username
|
|
13794
|
+
* @param {*} [options] Override http request option.
|
|
13795
|
+
* @throws {RequiredError}
|
|
13796
|
+
*/
|
|
13797
|
+
detectWordPressInstallationsV1(username, options) {
|
|
13798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13799
|
+
var _a, _b;
|
|
13800
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.detectWordPressInstallationsV1(username, options);
|
|
13801
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.detectWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13802
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13803
|
+
});
|
|
13804
|
+
},
|
|
13805
|
+
/**
|
|
13806
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13807
|
+
* @summary Get installation JWT token
|
|
13808
|
+
* @param {string} username
|
|
13809
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13810
|
+
* @param {*} [options] Override http request option.
|
|
13811
|
+
* @throws {RequiredError}
|
|
13812
|
+
*/
|
|
13813
|
+
getInstallationJWTTokenV1(username, software, options) {
|
|
13814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13815
|
+
var _a, _b;
|
|
13816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallationJWTTokenV1(username, software, options);
|
|
13817
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.getInstallationJWTTokenV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13819
|
+
});
|
|
13820
|
+
},
|
|
13821
|
+
/**
|
|
13822
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
13823
|
+
* @summary Install WordPress
|
|
13824
|
+
* @param {string} username
|
|
13825
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
13826
|
+
* @param {*} [options] Override http request option.
|
|
13827
|
+
* @throws {RequiredError}
|
|
13828
|
+
*/
|
|
13829
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
13830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13831
|
+
var _a, _b;
|
|
13832
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
|
|
13833
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13834
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13835
|
+
});
|
|
13836
|
+
},
|
|
13837
|
+
/**
|
|
13838
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13839
|
+
* @summary List available WordPress core updates
|
|
13840
|
+
* @param {string} username
|
|
13841
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13842
|
+
* @param {*} [options] Override http request option.
|
|
13843
|
+
* @throws {RequiredError}
|
|
13844
|
+
*/
|
|
13845
|
+
listAvailableWordPressCoreUpdatesV1(username, software, options) {
|
|
13846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13847
|
+
var _a, _b;
|
|
13848
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressCoreUpdatesV1(username, software, options);
|
|
13849
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.listAvailableWordPressCoreUpdatesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13850
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13851
|
+
});
|
|
13852
|
+
},
|
|
13853
|
+
/**
|
|
13854
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
13855
|
+
* @summary List WordPress installations
|
|
13856
|
+
* @param {string | null} [username] Filter by specific username
|
|
13857
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13858
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
13859
|
+
* @param {*} [options] Override http request option.
|
|
13860
|
+
* @throws {RequiredError}
|
|
13861
|
+
*/
|
|
13862
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
13863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13864
|
+
var _a, _b;
|
|
13865
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
13866
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13867
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13868
|
+
});
|
|
13869
|
+
},
|
|
13870
|
+
/**
|
|
13871
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13872
|
+
* @summary Show WordPress core version
|
|
13873
|
+
* @param {string} username
|
|
13874
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13875
|
+
* @param {*} [options] Override http request option.
|
|
13876
|
+
* @throws {RequiredError}
|
|
13877
|
+
*/
|
|
13878
|
+
showWordPressCoreVersionV1(username, software, options) {
|
|
13879
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13880
|
+
var _a, _b;
|
|
13881
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showWordPressCoreVersionV1(username, software, options);
|
|
13882
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.showWordPressCoreVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13883
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13884
|
+
});
|
|
13885
|
+
},
|
|
13886
|
+
/**
|
|
13887
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
13888
|
+
* @summary Update WordPress core
|
|
13889
|
+
* @param {string} username
|
|
13890
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13891
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
13892
|
+
* @param {*} [options] Override http request option.
|
|
13893
|
+
* @throws {RequiredError}
|
|
13894
|
+
*/
|
|
13895
|
+
updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
|
|
13896
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13897
|
+
var _a, _b;
|
|
13898
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options);
|
|
13899
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.updateWordPressCoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13900
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13901
|
+
});
|
|
13902
|
+
},
|
|
13903
|
+
};
|
|
13904
|
+
};
|
|
13905
|
+
/**
|
|
13906
|
+
* WordPressInstallationsApi - factory interface
|
|
13907
|
+
* @export
|
|
13908
|
+
*/
|
|
13909
|
+
export const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
|
|
13910
|
+
const localVarFp = WordPressInstallationsApiFp(configuration);
|
|
13911
|
+
return {
|
|
13912
|
+
/**
|
|
13913
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13914
|
+
* @summary Check if WordPress installations are valid
|
|
13915
|
+
* @param {string} username
|
|
13916
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
13917
|
+
* @param {*} [options] Override http request option.
|
|
13918
|
+
* @throws {RequiredError}
|
|
13919
|
+
*/
|
|
13920
|
+
checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
|
|
13921
|
+
return localVarFp.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(axios, basePath));
|
|
13922
|
+
},
|
|
13923
|
+
/**
|
|
13924
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13925
|
+
* @summary Delete WordPress installation
|
|
13926
|
+
* @param {string} username
|
|
13927
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13928
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
13929
|
+
* @param {*} [options] Override http request option.
|
|
13930
|
+
* @throws {RequiredError}
|
|
13931
|
+
*/
|
|
13932
|
+
deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
|
|
13933
|
+
return localVarFp.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(axios, basePath));
|
|
13934
|
+
},
|
|
13935
|
+
/**
|
|
13936
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
13937
|
+
* @summary Detect WordPress installations
|
|
13938
|
+
* @param {string} username
|
|
13939
|
+
* @param {*} [options] Override http request option.
|
|
13940
|
+
* @throws {RequiredError}
|
|
13941
|
+
*/
|
|
13942
|
+
detectWordPressInstallationsV1(username, options) {
|
|
13943
|
+
return localVarFp.detectWordPressInstallationsV1(username, options).then((request) => request(axios, basePath));
|
|
13944
|
+
},
|
|
13945
|
+
/**
|
|
13946
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13947
|
+
* @summary Get installation JWT token
|
|
13948
|
+
* @param {string} username
|
|
13949
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13950
|
+
* @param {*} [options] Override http request option.
|
|
13951
|
+
* @throws {RequiredError}
|
|
13952
|
+
*/
|
|
13953
|
+
getInstallationJWTTokenV1(username, software, options) {
|
|
13954
|
+
return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
|
|
13955
|
+
},
|
|
13956
|
+
/**
|
|
13957
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
13958
|
+
* @summary Install WordPress
|
|
13959
|
+
* @param {string} username
|
|
13960
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
13961
|
+
* @param {*} [options] Override http request option.
|
|
13962
|
+
* @throws {RequiredError}
|
|
13963
|
+
*/
|
|
13964
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
13965
|
+
return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
|
|
13966
|
+
},
|
|
13967
|
+
/**
|
|
13968
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13969
|
+
* @summary List available WordPress core updates
|
|
13970
|
+
* @param {string} username
|
|
13971
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13972
|
+
* @param {*} [options] Override http request option.
|
|
13973
|
+
* @throws {RequiredError}
|
|
13974
|
+
*/
|
|
13975
|
+
listAvailableWordPressCoreUpdatesV1(username, software, options) {
|
|
13976
|
+
return localVarFp.listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(axios, basePath));
|
|
13977
|
+
},
|
|
13978
|
+
/**
|
|
13979
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
13980
|
+
* @summary List WordPress installations
|
|
13981
|
+
* @param {string | null} [username] Filter by specific username
|
|
13982
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
13983
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
13984
|
+
* @param {*} [options] Override http request option.
|
|
13985
|
+
* @throws {RequiredError}
|
|
13986
|
+
*/
|
|
13987
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
13988
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
13989
|
+
},
|
|
13990
|
+
/**
|
|
13991
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13992
|
+
* @summary Show WordPress core version
|
|
13993
|
+
* @param {string} username
|
|
13994
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13995
|
+
* @param {*} [options] Override http request option.
|
|
13996
|
+
* @throws {RequiredError}
|
|
13997
|
+
*/
|
|
13998
|
+
showWordPressCoreVersionV1(username, software, options) {
|
|
13999
|
+
return localVarFp.showWordPressCoreVersionV1(username, software, options).then((request) => request(axios, basePath));
|
|
14000
|
+
},
|
|
14001
|
+
/**
|
|
14002
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
14003
|
+
* @summary Update WordPress core
|
|
14004
|
+
* @param {string} username
|
|
14005
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14006
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
14007
|
+
* @param {*} [options] Override http request option.
|
|
14008
|
+
* @throws {RequiredError}
|
|
14009
|
+
*/
|
|
14010
|
+
updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
|
|
14011
|
+
return localVarFp.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(axios, basePath));
|
|
14012
|
+
},
|
|
14013
|
+
};
|
|
14014
|
+
};
|
|
14015
|
+
/**
|
|
14016
|
+
* WordPressInstallationsApi - object-oriented interface
|
|
14017
|
+
* @export
|
|
14018
|
+
* @class WordPressInstallationsApi
|
|
14019
|
+
* @extends {BaseAPI}
|
|
14020
|
+
*/
|
|
14021
|
+
export class WordPressInstallationsApi extends BaseAPI {
|
|
14022
|
+
/**
|
|
14023
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14024
|
+
* @summary Check if WordPress installations are valid
|
|
14025
|
+
* @param {string} username
|
|
14026
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
14027
|
+
* @param {*} [options] Override http request option.
|
|
14028
|
+
* @throws {RequiredError}
|
|
14029
|
+
* @memberof WordPressInstallationsApi
|
|
14030
|
+
*/
|
|
14031
|
+
checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
|
|
14032
|
+
return WordPressInstallationsApiFp(this.configuration).checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14033
|
+
}
|
|
14034
|
+
/**
|
|
14035
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14036
|
+
* @summary Delete WordPress installation
|
|
14037
|
+
* @param {string} username
|
|
14038
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14039
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
14040
|
+
* @param {*} [options] Override http request option.
|
|
14041
|
+
* @throws {RequiredError}
|
|
14042
|
+
* @memberof WordPressInstallationsApi
|
|
14043
|
+
*/
|
|
14044
|
+
deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
|
|
14045
|
+
return WordPressInstallationsApiFp(this.configuration).deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14046
|
+
}
|
|
14047
|
+
/**
|
|
14048
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
14049
|
+
* @summary Detect WordPress installations
|
|
14050
|
+
* @param {string} username
|
|
14051
|
+
* @param {*} [options] Override http request option.
|
|
14052
|
+
* @throws {RequiredError}
|
|
14053
|
+
* @memberof WordPressInstallationsApi
|
|
14054
|
+
*/
|
|
14055
|
+
detectWordPressInstallationsV1(username, options) {
|
|
14056
|
+
return WordPressInstallationsApiFp(this.configuration).detectWordPressInstallationsV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
14057
|
+
}
|
|
14058
|
+
/**
|
|
14059
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14060
|
+
* @summary Get installation JWT token
|
|
14061
|
+
* @param {string} username
|
|
14062
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14063
|
+
* @param {*} [options] Override http request option.
|
|
14064
|
+
* @throws {RequiredError}
|
|
14065
|
+
* @memberof WordPressInstallationsApi
|
|
14066
|
+
*/
|
|
14067
|
+
getInstallationJWTTokenV1(username, software, options) {
|
|
14068
|
+
return WordPressInstallationsApiFp(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14069
|
+
}
|
|
14070
|
+
/**
|
|
14071
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14072
|
+
* @summary Install WordPress
|
|
14073
|
+
* @param {string} username
|
|
14074
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
14075
|
+
* @param {*} [options] Override http request option.
|
|
14076
|
+
* @throws {RequiredError}
|
|
14077
|
+
* @memberof WordPressInstallationsApi
|
|
14078
|
+
*/
|
|
14079
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
14080
|
+
return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14081
|
+
}
|
|
14082
|
+
/**
|
|
14083
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14084
|
+
* @summary List available WordPress core updates
|
|
14085
|
+
* @param {string} username
|
|
14086
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14087
|
+
* @param {*} [options] Override http request option.
|
|
14088
|
+
* @throws {RequiredError}
|
|
14089
|
+
* @memberof WordPressInstallationsApi
|
|
14090
|
+
*/
|
|
14091
|
+
listAvailableWordPressCoreUpdatesV1(username, software, options) {
|
|
14092
|
+
return WordPressInstallationsApiFp(this.configuration).listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14093
|
+
}
|
|
14094
|
+
/**
|
|
14095
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
14096
|
+
* @summary List WordPress installations
|
|
14097
|
+
* @param {string | null} [username] Filter by specific username
|
|
14098
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
14099
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
14100
|
+
* @param {*} [options] Override http request option.
|
|
14101
|
+
* @throws {RequiredError}
|
|
14102
|
+
* @memberof WordPressInstallationsApi
|
|
14103
|
+
*/
|
|
14104
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
14105
|
+
return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
14106
|
+
}
|
|
14107
|
+
/**
|
|
14108
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14109
|
+
* @summary Show WordPress core version
|
|
14110
|
+
* @param {string} username
|
|
14111
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14112
|
+
* @param {*} [options] Override http request option.
|
|
14113
|
+
* @throws {RequiredError}
|
|
14114
|
+
* @memberof WordPressInstallationsApi
|
|
14115
|
+
*/
|
|
14116
|
+
showWordPressCoreVersionV1(username, software, options) {
|
|
14117
|
+
return WordPressInstallationsApiFp(this.configuration).showWordPressCoreVersionV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14118
|
+
}
|
|
14119
|
+
/**
|
|
14120
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
14121
|
+
* @summary Update WordPress core
|
|
14122
|
+
* @param {string} username
|
|
14123
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14124
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
14125
|
+
* @param {*} [options] Override http request option.
|
|
14126
|
+
* @throws {RequiredError}
|
|
14127
|
+
* @memberof WordPressInstallationsApi
|
|
14128
|
+
*/
|
|
14129
|
+
updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
|
|
14130
|
+
return WordPressInstallationsApiFp(this.configuration).updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14131
|
+
}
|
|
14132
|
+
}
|
|
14133
|
+
/**
|
|
14134
|
+
* @export
|
|
14135
|
+
*/
|
|
14136
|
+
export const ListWordPressInstallationsV1OwnershipEnum = {
|
|
14137
|
+
Owned: 'owned',
|
|
14138
|
+
Managed: 'managed',
|
|
14139
|
+
All: 'all'
|
|
14140
|
+
};
|
|
14141
|
+
/**
|
|
14142
|
+
* WordPressLiteSpeedCacheApi - axios parameter creator
|
|
14143
|
+
* @export
|
|
14144
|
+
*/
|
|
14145
|
+
export const WordPressLiteSpeedCacheApiAxiosParamCreator = function (configuration) {
|
|
14146
|
+
return {
|
|
14147
|
+
/**
|
|
14148
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14149
|
+
* @summary Purge LiteSpeed Cache
|
|
14150
|
+
* @param {string} username
|
|
14151
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14152
|
+
* @param {*} [options] Override http request option.
|
|
14153
|
+
* @throws {RequiredError}
|
|
14154
|
+
*/
|
|
14155
|
+
purgeLiteSpeedCacheV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14156
|
+
// verify required parameter 'username' is not null or undefined
|
|
14157
|
+
assertParamExists('purgeLiteSpeedCacheV1', 'username', username);
|
|
14158
|
+
// verify required parameter 'software' is not null or undefined
|
|
14159
|
+
assertParamExists('purgeLiteSpeedCacheV1', 'software', software);
|
|
14160
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge`
|
|
14161
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14162
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14165
|
+
let baseOptions;
|
|
14166
|
+
if (configuration) {
|
|
14167
|
+
baseOptions = configuration.baseOptions;
|
|
14168
|
+
}
|
|
14169
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14170
|
+
const localVarHeaderParameter = {};
|
|
14171
|
+
const localVarQueryParameter = {};
|
|
14172
|
+
// authentication apiToken required
|
|
14173
|
+
// http bearer authentication required
|
|
14174
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14175
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14177
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14178
|
+
return {
|
|
14179
|
+
url: toPathString(localVarUrlObj),
|
|
14180
|
+
options: localVarRequestOptions,
|
|
14181
|
+
};
|
|
14182
|
+
}),
|
|
14183
|
+
/**
|
|
14184
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14185
|
+
* @summary Show LiteSpeed Cache status
|
|
14186
|
+
* @param {string} username
|
|
14187
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14188
|
+
* @param {*} [options] Override http request option.
|
|
14189
|
+
* @throws {RequiredError}
|
|
14190
|
+
*/
|
|
14191
|
+
showLiteSpeedCacheStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14192
|
+
// verify required parameter 'username' is not null or undefined
|
|
14193
|
+
assertParamExists('showLiteSpeedCacheStatusV1', 'username', username);
|
|
14194
|
+
// verify required parameter 'software' is not null or undefined
|
|
14195
|
+
assertParamExists('showLiteSpeedCacheStatusV1', 'software', software);
|
|
14196
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status`
|
|
14197
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14198
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14201
|
+
let baseOptions;
|
|
14202
|
+
if (configuration) {
|
|
14203
|
+
baseOptions = configuration.baseOptions;
|
|
14204
|
+
}
|
|
14205
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14206
|
+
const localVarHeaderParameter = {};
|
|
14207
|
+
const localVarQueryParameter = {};
|
|
14208
|
+
// authentication apiToken required
|
|
14209
|
+
// http bearer authentication required
|
|
14210
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14211
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14213
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14214
|
+
return {
|
|
14215
|
+
url: toPathString(localVarUrlObj),
|
|
14216
|
+
options: localVarRequestOptions,
|
|
14217
|
+
};
|
|
14218
|
+
}),
|
|
14219
|
+
};
|
|
14220
|
+
};
|
|
14221
|
+
/**
|
|
14222
|
+
* WordPressLiteSpeedCacheApi - functional programming interface
|
|
14223
|
+
* @export
|
|
14224
|
+
*/
|
|
14225
|
+
export const WordPressLiteSpeedCacheApiFp = function (configuration) {
|
|
14226
|
+
const localVarAxiosParamCreator = WordPressLiteSpeedCacheApiAxiosParamCreator(configuration);
|
|
14227
|
+
return {
|
|
14228
|
+
/**
|
|
14229
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14230
|
+
* @summary Purge LiteSpeed Cache
|
|
14231
|
+
* @param {string} username
|
|
14232
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14233
|
+
* @param {*} [options] Override http request option.
|
|
14234
|
+
* @throws {RequiredError}
|
|
14235
|
+
*/
|
|
14236
|
+
purgeLiteSpeedCacheV1(username, software, options) {
|
|
14237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14238
|
+
var _a, _b;
|
|
14239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeLiteSpeedCacheV1(username, software, options);
|
|
14240
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressLiteSpeedCacheApi.purgeLiteSpeedCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14241
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14242
|
+
});
|
|
14243
|
+
},
|
|
14244
|
+
/**
|
|
14245
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14246
|
+
* @summary Show LiteSpeed Cache status
|
|
14247
|
+
* @param {string} username
|
|
14248
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14249
|
+
* @param {*} [options] Override http request option.
|
|
14250
|
+
* @throws {RequiredError}
|
|
14251
|
+
*/
|
|
14252
|
+
showLiteSpeedCacheStatusV1(username, software, options) {
|
|
14253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14254
|
+
var _a, _b;
|
|
14255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showLiteSpeedCacheStatusV1(username, software, options);
|
|
14256
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressLiteSpeedCacheApi.showLiteSpeedCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14257
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14258
|
+
});
|
|
14259
|
+
},
|
|
14260
|
+
};
|
|
14261
|
+
};
|
|
14262
|
+
/**
|
|
14263
|
+
* WordPressLiteSpeedCacheApi - factory interface
|
|
14264
|
+
* @export
|
|
14265
|
+
*/
|
|
14266
|
+
export const WordPressLiteSpeedCacheApiFactory = function (configuration, basePath, axios) {
|
|
14267
|
+
const localVarFp = WordPressLiteSpeedCacheApiFp(configuration);
|
|
14268
|
+
return {
|
|
14269
|
+
/**
|
|
14270
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14271
|
+
* @summary Purge LiteSpeed Cache
|
|
14272
|
+
* @param {string} username
|
|
14273
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14274
|
+
* @param {*} [options] Override http request option.
|
|
14275
|
+
* @throws {RequiredError}
|
|
14276
|
+
*/
|
|
14277
|
+
purgeLiteSpeedCacheV1(username, software, options) {
|
|
14278
|
+
return localVarFp.purgeLiteSpeedCacheV1(username, software, options).then((request) => request(axios, basePath));
|
|
14279
|
+
},
|
|
14280
|
+
/**
|
|
14281
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14282
|
+
* @summary Show LiteSpeed Cache status
|
|
14283
|
+
* @param {string} username
|
|
14284
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14285
|
+
* @param {*} [options] Override http request option.
|
|
14286
|
+
* @throws {RequiredError}
|
|
14287
|
+
*/
|
|
14288
|
+
showLiteSpeedCacheStatusV1(username, software, options) {
|
|
14289
|
+
return localVarFp.showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
14290
|
+
},
|
|
14291
|
+
};
|
|
14292
|
+
};
|
|
14293
|
+
/**
|
|
14294
|
+
* WordPressLiteSpeedCacheApi - object-oriented interface
|
|
14295
|
+
* @export
|
|
14296
|
+
* @class WordPressLiteSpeedCacheApi
|
|
14297
|
+
* @extends {BaseAPI}
|
|
14298
|
+
*/
|
|
14299
|
+
export class WordPressLiteSpeedCacheApi extends BaseAPI {
|
|
14300
|
+
/**
|
|
14301
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14302
|
+
* @summary Purge LiteSpeed Cache
|
|
14303
|
+
* @param {string} username
|
|
14304
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14305
|
+
* @param {*} [options] Override http request option.
|
|
14306
|
+
* @throws {RequiredError}
|
|
14307
|
+
* @memberof WordPressLiteSpeedCacheApi
|
|
14308
|
+
*/
|
|
14309
|
+
purgeLiteSpeedCacheV1(username, software, options) {
|
|
14310
|
+
return WordPressLiteSpeedCacheApiFp(this.configuration).purgeLiteSpeedCacheV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14311
|
+
}
|
|
14312
|
+
/**
|
|
14313
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14314
|
+
* @summary Show LiteSpeed Cache status
|
|
14315
|
+
* @param {string} username
|
|
14316
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14317
|
+
* @param {*} [options] Override http request option.
|
|
14318
|
+
* @throws {RequiredError}
|
|
14319
|
+
* @memberof WordPressLiteSpeedCacheApi
|
|
14320
|
+
*/
|
|
14321
|
+
showLiteSpeedCacheStatusV1(username, software, options) {
|
|
14322
|
+
return WordPressLiteSpeedCacheApiFp(this.configuration).showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14323
|
+
}
|
|
14324
|
+
}
|
|
14325
|
+
/**
|
|
14326
|
+
* WordPressLoginApi - axios parameter creator
|
|
14327
|
+
* @export
|
|
14328
|
+
*/
|
|
14329
|
+
export const WordPressLoginApiAxiosParamCreator = function (configuration) {
|
|
14330
|
+
return {
|
|
14331
|
+
/**
|
|
14332
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14333
|
+
* @summary Create login links
|
|
14334
|
+
* @param {string} username
|
|
14335
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14336
|
+
* @param {*} [options] Override http request option.
|
|
14337
|
+
* @throws {RequiredError}
|
|
14338
|
+
*/
|
|
14339
|
+
createLoginLinksV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14340
|
+
// verify required parameter 'username' is not null or undefined
|
|
14341
|
+
assertParamExists('createLoginLinksV1', 'username', username);
|
|
14342
|
+
// verify required parameter 'software' is not null or undefined
|
|
14343
|
+
assertParamExists('createLoginLinksV1', 'software', software);
|
|
14344
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/login/links`
|
|
14345
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14346
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14348
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14349
|
+
let baseOptions;
|
|
14350
|
+
if (configuration) {
|
|
14351
|
+
baseOptions = configuration.baseOptions;
|
|
14352
|
+
}
|
|
14353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14354
|
+
const localVarHeaderParameter = {};
|
|
14355
|
+
const localVarQueryParameter = {};
|
|
14356
|
+
// authentication apiToken required
|
|
14357
|
+
// http bearer authentication required
|
|
14358
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14359
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14362
|
+
return {
|
|
14363
|
+
url: toPathString(localVarUrlObj),
|
|
14364
|
+
options: localVarRequestOptions,
|
|
14365
|
+
};
|
|
14366
|
+
}),
|
|
14367
|
+
};
|
|
14368
|
+
};
|
|
14369
|
+
/**
|
|
14370
|
+
* WordPressLoginApi - functional programming interface
|
|
14371
|
+
* @export
|
|
14372
|
+
*/
|
|
14373
|
+
export const WordPressLoginApiFp = function (configuration) {
|
|
14374
|
+
const localVarAxiosParamCreator = WordPressLoginApiAxiosParamCreator(configuration);
|
|
14375
|
+
return {
|
|
14376
|
+
/**
|
|
14377
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14378
|
+
* @summary Create login links
|
|
14379
|
+
* @param {string} username
|
|
14380
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14381
|
+
* @param {*} [options] Override http request option.
|
|
14382
|
+
* @throws {RequiredError}
|
|
14383
|
+
*/
|
|
14384
|
+
createLoginLinksV1(username, software, options) {
|
|
14385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14386
|
+
var _a, _b;
|
|
14387
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createLoginLinksV1(username, software, options);
|
|
14388
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressLoginApi.createLoginLinksV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14389
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14390
|
+
});
|
|
14391
|
+
},
|
|
14392
|
+
};
|
|
14393
|
+
};
|
|
14394
|
+
/**
|
|
14395
|
+
* WordPressLoginApi - factory interface
|
|
14396
|
+
* @export
|
|
14397
|
+
*/
|
|
14398
|
+
export const WordPressLoginApiFactory = function (configuration, basePath, axios) {
|
|
14399
|
+
const localVarFp = WordPressLoginApiFp(configuration);
|
|
14400
|
+
return {
|
|
14401
|
+
/**
|
|
14402
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14403
|
+
* @summary Create login links
|
|
14404
|
+
* @param {string} username
|
|
14405
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14406
|
+
* @param {*} [options] Override http request option.
|
|
14407
|
+
* @throws {RequiredError}
|
|
14408
|
+
*/
|
|
14409
|
+
createLoginLinksV1(username, software, options) {
|
|
14410
|
+
return localVarFp.createLoginLinksV1(username, software, options).then((request) => request(axios, basePath));
|
|
14411
|
+
},
|
|
14412
|
+
};
|
|
14413
|
+
};
|
|
14414
|
+
/**
|
|
14415
|
+
* WordPressLoginApi - object-oriented interface
|
|
14416
|
+
* @export
|
|
14417
|
+
* @class WordPressLoginApi
|
|
14418
|
+
* @extends {BaseAPI}
|
|
14419
|
+
*/
|
|
14420
|
+
export class WordPressLoginApi extends BaseAPI {
|
|
14421
|
+
/**
|
|
14422
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14423
|
+
* @summary Create login links
|
|
14424
|
+
* @param {string} username
|
|
14425
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14426
|
+
* @param {*} [options] Override http request option.
|
|
14427
|
+
* @throws {RequiredError}
|
|
14428
|
+
* @memberof WordPressLoginApi
|
|
14429
|
+
*/
|
|
14430
|
+
createLoginLinksV1(username, software, options) {
|
|
14431
|
+
return WordPressLoginApiFp(this.configuration).createLoginLinksV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14432
|
+
}
|
|
14433
|
+
}
|
|
14434
|
+
/**
|
|
14435
|
+
* WordPressMaintenanceApi - axios parameter creator
|
|
14436
|
+
* @export
|
|
14437
|
+
*/
|
|
14438
|
+
export const WordPressMaintenanceApiAxiosParamCreator = function (configuration) {
|
|
14439
|
+
return {
|
|
14440
|
+
/**
|
|
14441
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14442
|
+
* @summary Show maintenance status
|
|
14443
|
+
* @param {string} username
|
|
14444
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14445
|
+
* @param {*} [options] Override http request option.
|
|
14446
|
+
* @throws {RequiredError}
|
|
14447
|
+
*/
|
|
14448
|
+
showMaintenanceStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14449
|
+
// verify required parameter 'username' is not null or undefined
|
|
14450
|
+
assertParamExists('showMaintenanceStatusV1', 'username', username);
|
|
14451
|
+
// verify required parameter 'software' is not null or undefined
|
|
14452
|
+
assertParamExists('showMaintenanceStatusV1', 'software', software);
|
|
14453
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status`
|
|
14454
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14455
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14458
|
+
let baseOptions;
|
|
14459
|
+
if (configuration) {
|
|
14460
|
+
baseOptions = configuration.baseOptions;
|
|
14461
|
+
}
|
|
14462
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14463
|
+
const localVarHeaderParameter = {};
|
|
14464
|
+
const localVarQueryParameter = {};
|
|
14465
|
+
// authentication apiToken required
|
|
14466
|
+
// http bearer authentication required
|
|
14467
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14468
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14470
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14471
|
+
return {
|
|
14472
|
+
url: toPathString(localVarUrlObj),
|
|
14473
|
+
options: localVarRequestOptions,
|
|
14474
|
+
};
|
|
14475
|
+
}),
|
|
14476
|
+
/**
|
|
14477
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14478
|
+
* @summary Toggle maintenance mode
|
|
14479
|
+
* @param {string} username
|
|
14480
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14481
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
14482
|
+
* @param {*} [options] Override http request option.
|
|
14483
|
+
* @throws {RequiredError}
|
|
14484
|
+
*/
|
|
14485
|
+
toggleMaintenanceModeV1: (username_1, software_1, wordPressV1MaintenanceToggleMaintenanceRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1MaintenanceToggleMaintenanceRequest_1, ...args_1], void 0, function* (username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options = {}) {
|
|
14486
|
+
// verify required parameter 'username' is not null or undefined
|
|
14487
|
+
assertParamExists('toggleMaintenanceModeV1', 'username', username);
|
|
14488
|
+
// verify required parameter 'software' is not null or undefined
|
|
14489
|
+
assertParamExists('toggleMaintenanceModeV1', 'software', software);
|
|
14490
|
+
// verify required parameter 'wordPressV1MaintenanceToggleMaintenanceRequest' is not null or undefined
|
|
14491
|
+
assertParamExists('toggleMaintenanceModeV1', 'wordPressV1MaintenanceToggleMaintenanceRequest', wordPressV1MaintenanceToggleMaintenanceRequest);
|
|
14492
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle`
|
|
14493
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14494
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14497
|
+
let baseOptions;
|
|
14498
|
+
if (configuration) {
|
|
14499
|
+
baseOptions = configuration.baseOptions;
|
|
14500
|
+
}
|
|
14501
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
14502
|
+
const localVarHeaderParameter = {};
|
|
14503
|
+
const localVarQueryParameter = {};
|
|
14504
|
+
// authentication apiToken required
|
|
14505
|
+
// http bearer authentication required
|
|
14506
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14507
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14508
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14510
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14511
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1MaintenanceToggleMaintenanceRequest, localVarRequestOptions, configuration);
|
|
14512
|
+
return {
|
|
14513
|
+
url: toPathString(localVarUrlObj),
|
|
14514
|
+
options: localVarRequestOptions,
|
|
14515
|
+
};
|
|
14516
|
+
}),
|
|
14517
|
+
};
|
|
14518
|
+
};
|
|
14519
|
+
/**
|
|
14520
|
+
* WordPressMaintenanceApi - functional programming interface
|
|
14521
|
+
* @export
|
|
14522
|
+
*/
|
|
14523
|
+
export const WordPressMaintenanceApiFp = function (configuration) {
|
|
14524
|
+
const localVarAxiosParamCreator = WordPressMaintenanceApiAxiosParamCreator(configuration);
|
|
14525
|
+
return {
|
|
14526
|
+
/**
|
|
14527
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14528
|
+
* @summary Show maintenance status
|
|
14529
|
+
* @param {string} username
|
|
14530
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14531
|
+
* @param {*} [options] Override http request option.
|
|
14532
|
+
* @throws {RequiredError}
|
|
14533
|
+
*/
|
|
14534
|
+
showMaintenanceStatusV1(username, software, options) {
|
|
14535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14536
|
+
var _a, _b;
|
|
14537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showMaintenanceStatusV1(username, software, options);
|
|
14538
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressMaintenanceApi.showMaintenanceStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14540
|
+
});
|
|
14541
|
+
},
|
|
14542
|
+
/**
|
|
14543
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14544
|
+
* @summary Toggle maintenance mode
|
|
14545
|
+
* @param {string} username
|
|
14546
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14547
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
14548
|
+
* @param {*} [options] Override http request option.
|
|
14549
|
+
* @throws {RequiredError}
|
|
14550
|
+
*/
|
|
14551
|
+
toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
|
|
14552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14553
|
+
var _a, _b;
|
|
14554
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options);
|
|
14555
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressMaintenanceApi.toggleMaintenanceModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14556
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14557
|
+
});
|
|
14558
|
+
},
|
|
14559
|
+
};
|
|
14560
|
+
};
|
|
14561
|
+
/**
|
|
14562
|
+
* WordPressMaintenanceApi - factory interface
|
|
14563
|
+
* @export
|
|
14564
|
+
*/
|
|
14565
|
+
export const WordPressMaintenanceApiFactory = function (configuration, basePath, axios) {
|
|
14566
|
+
const localVarFp = WordPressMaintenanceApiFp(configuration);
|
|
14567
|
+
return {
|
|
14568
|
+
/**
|
|
14569
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14570
|
+
* @summary Show maintenance status
|
|
14571
|
+
* @param {string} username
|
|
14572
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14573
|
+
* @param {*} [options] Override http request option.
|
|
14574
|
+
* @throws {RequiredError}
|
|
14575
|
+
*/
|
|
14576
|
+
showMaintenanceStatusV1(username, software, options) {
|
|
14577
|
+
return localVarFp.showMaintenanceStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
14578
|
+
},
|
|
14579
|
+
/**
|
|
14580
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14581
|
+
* @summary Toggle maintenance mode
|
|
14582
|
+
* @param {string} username
|
|
14583
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14584
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
14585
|
+
* @param {*} [options] Override http request option.
|
|
14586
|
+
* @throws {RequiredError}
|
|
14587
|
+
*/
|
|
14588
|
+
toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
|
|
14589
|
+
return localVarFp.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(axios, basePath));
|
|
14590
|
+
},
|
|
14591
|
+
};
|
|
14592
|
+
};
|
|
14593
|
+
/**
|
|
14594
|
+
* WordPressMaintenanceApi - object-oriented interface
|
|
14595
|
+
* @export
|
|
14596
|
+
* @class WordPressMaintenanceApi
|
|
14597
|
+
* @extends {BaseAPI}
|
|
14598
|
+
*/
|
|
14599
|
+
export class WordPressMaintenanceApi extends BaseAPI {
|
|
14600
|
+
/**
|
|
14601
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14602
|
+
* @summary Show maintenance status
|
|
14603
|
+
* @param {string} username
|
|
14604
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14605
|
+
* @param {*} [options] Override http request option.
|
|
14606
|
+
* @throws {RequiredError}
|
|
14607
|
+
* @memberof WordPressMaintenanceApi
|
|
14608
|
+
*/
|
|
14609
|
+
showMaintenanceStatusV1(username, software, options) {
|
|
14610
|
+
return WordPressMaintenanceApiFp(this.configuration).showMaintenanceStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14611
|
+
}
|
|
14612
|
+
/**
|
|
14613
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14614
|
+
* @summary Toggle maintenance mode
|
|
14615
|
+
* @param {string} username
|
|
14616
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14617
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
14618
|
+
* @param {*} [options] Override http request option.
|
|
14619
|
+
* @throws {RequiredError}
|
|
14620
|
+
* @memberof WordPressMaintenanceApi
|
|
14621
|
+
*/
|
|
14622
|
+
toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
|
|
14623
|
+
return WordPressMaintenanceApiFp(this.configuration).toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14624
|
+
}
|
|
14625
|
+
}
|
|
14626
|
+
/**
|
|
14627
|
+
* WordPressObjectCacheApi - axios parameter creator
|
|
14628
|
+
* @export
|
|
14629
|
+
*/
|
|
14630
|
+
export const WordPressObjectCacheApiAxiosParamCreator = function (configuration) {
|
|
14631
|
+
return {
|
|
14632
|
+
/**
|
|
14633
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14634
|
+
* @summary Show Memcached object cache status
|
|
14635
|
+
* @param {string} username
|
|
14636
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14637
|
+
* @param {*} [options] Override http request option.
|
|
14638
|
+
* @throws {RequiredError}
|
|
14639
|
+
*/
|
|
14640
|
+
showMemcachedObjectCacheStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14641
|
+
// verify required parameter 'username' is not null or undefined
|
|
14642
|
+
assertParamExists('showMemcachedObjectCacheStatusV1', 'username', username);
|
|
14643
|
+
// verify required parameter 'software' is not null or undefined
|
|
14644
|
+
assertParamExists('showMemcachedObjectCacheStatusV1', 'software', software);
|
|
14645
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status`
|
|
14646
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14647
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14648
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14649
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14650
|
+
let baseOptions;
|
|
14651
|
+
if (configuration) {
|
|
14652
|
+
baseOptions = configuration.baseOptions;
|
|
14653
|
+
}
|
|
14654
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14655
|
+
const localVarHeaderParameter = {};
|
|
14656
|
+
const localVarQueryParameter = {};
|
|
14657
|
+
// authentication apiToken required
|
|
14658
|
+
// http bearer authentication required
|
|
14659
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14662
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14663
|
+
return {
|
|
14664
|
+
url: toPathString(localVarUrlObj),
|
|
14665
|
+
options: localVarRequestOptions,
|
|
14666
|
+
};
|
|
14667
|
+
}),
|
|
14668
|
+
/**
|
|
14669
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14670
|
+
* @summary Toggle Memcached object cache
|
|
14671
|
+
* @param {string} username
|
|
14672
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14673
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
14674
|
+
* @param {*} [options] Override http request option.
|
|
14675
|
+
* @throws {RequiredError}
|
|
14676
|
+
*/
|
|
14677
|
+
toggleMemcachedObjectCacheV1: (username_1, software_1, wordPressV1MemcachedToggleMemcachedRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1MemcachedToggleMemcachedRequest_1, ...args_1], void 0, function* (username, software, wordPressV1MemcachedToggleMemcachedRequest, options = {}) {
|
|
14678
|
+
// verify required parameter 'username' is not null or undefined
|
|
14679
|
+
assertParamExists('toggleMemcachedObjectCacheV1', 'username', username);
|
|
14680
|
+
// verify required parameter 'software' is not null or undefined
|
|
14681
|
+
assertParamExists('toggleMemcachedObjectCacheV1', 'software', software);
|
|
14682
|
+
// verify required parameter 'wordPressV1MemcachedToggleMemcachedRequest' is not null or undefined
|
|
14683
|
+
assertParamExists('toggleMemcachedObjectCacheV1', 'wordPressV1MemcachedToggleMemcachedRequest', wordPressV1MemcachedToggleMemcachedRequest);
|
|
14684
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle`
|
|
14685
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14686
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14687
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14688
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14689
|
+
let baseOptions;
|
|
14690
|
+
if (configuration) {
|
|
14691
|
+
baseOptions = configuration.baseOptions;
|
|
14692
|
+
}
|
|
14693
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
14694
|
+
const localVarHeaderParameter = {};
|
|
14695
|
+
const localVarQueryParameter = {};
|
|
14696
|
+
// authentication apiToken required
|
|
14697
|
+
// http bearer authentication required
|
|
14698
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14699
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14700
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14701
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14702
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14703
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1MemcachedToggleMemcachedRequest, localVarRequestOptions, configuration);
|
|
14704
|
+
return {
|
|
14705
|
+
url: toPathString(localVarUrlObj),
|
|
14706
|
+
options: localVarRequestOptions,
|
|
14707
|
+
};
|
|
14708
|
+
}),
|
|
14709
|
+
};
|
|
14710
|
+
};
|
|
14711
|
+
/**
|
|
14712
|
+
* WordPressObjectCacheApi - functional programming interface
|
|
14713
|
+
* @export
|
|
14714
|
+
*/
|
|
14715
|
+
export const WordPressObjectCacheApiFp = function (configuration) {
|
|
14716
|
+
const localVarAxiosParamCreator = WordPressObjectCacheApiAxiosParamCreator(configuration);
|
|
14717
|
+
return {
|
|
14718
|
+
/**
|
|
14719
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14720
|
+
* @summary Show Memcached object cache status
|
|
14721
|
+
* @param {string} username
|
|
14722
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14723
|
+
* @param {*} [options] Override http request option.
|
|
14724
|
+
* @throws {RequiredError}
|
|
14725
|
+
*/
|
|
14726
|
+
showMemcachedObjectCacheStatusV1(username, software, options) {
|
|
14727
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14728
|
+
var _a, _b;
|
|
14729
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showMemcachedObjectCacheStatusV1(username, software, options);
|
|
14730
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressObjectCacheApi.showMemcachedObjectCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14732
|
+
});
|
|
14733
|
+
},
|
|
14734
|
+
/**
|
|
14735
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14736
|
+
* @summary Toggle Memcached object cache
|
|
14737
|
+
* @param {string} username
|
|
14738
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14739
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
14740
|
+
* @param {*} [options] Override http request option.
|
|
14741
|
+
* @throws {RequiredError}
|
|
14742
|
+
*/
|
|
14743
|
+
toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
|
|
14744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14745
|
+
var _a, _b;
|
|
14746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options);
|
|
14747
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressObjectCacheApi.toggleMemcachedObjectCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14748
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14749
|
+
});
|
|
14750
|
+
},
|
|
14751
|
+
};
|
|
14752
|
+
};
|
|
14753
|
+
/**
|
|
14754
|
+
* WordPressObjectCacheApi - factory interface
|
|
14755
|
+
* @export
|
|
14756
|
+
*/
|
|
14757
|
+
export const WordPressObjectCacheApiFactory = function (configuration, basePath, axios) {
|
|
14758
|
+
const localVarFp = WordPressObjectCacheApiFp(configuration);
|
|
14759
|
+
return {
|
|
14760
|
+
/**
|
|
14761
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14762
|
+
* @summary Show Memcached object cache status
|
|
14763
|
+
* @param {string} username
|
|
14764
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14765
|
+
* @param {*} [options] Override http request option.
|
|
14766
|
+
* @throws {RequiredError}
|
|
14767
|
+
*/
|
|
14768
|
+
showMemcachedObjectCacheStatusV1(username, software, options) {
|
|
14769
|
+
return localVarFp.showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
14770
|
+
},
|
|
14771
|
+
/**
|
|
14772
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14773
|
+
* @summary Toggle Memcached object cache
|
|
14774
|
+
* @param {string} username
|
|
14775
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14776
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
14777
|
+
* @param {*} [options] Override http request option.
|
|
14778
|
+
* @throws {RequiredError}
|
|
14779
|
+
*/
|
|
14780
|
+
toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
|
|
14781
|
+
return localVarFp.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(axios, basePath));
|
|
14782
|
+
},
|
|
14783
|
+
};
|
|
14784
|
+
};
|
|
14785
|
+
/**
|
|
14786
|
+
* WordPressObjectCacheApi - object-oriented interface
|
|
14787
|
+
* @export
|
|
14788
|
+
* @class WordPressObjectCacheApi
|
|
14789
|
+
* @extends {BaseAPI}
|
|
14790
|
+
*/
|
|
14791
|
+
export class WordPressObjectCacheApi extends BaseAPI {
|
|
14792
|
+
/**
|
|
14793
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14794
|
+
* @summary Show Memcached object cache status
|
|
14795
|
+
* @param {string} username
|
|
14796
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14797
|
+
* @param {*} [options] Override http request option.
|
|
14798
|
+
* @throws {RequiredError}
|
|
14799
|
+
* @memberof WordPressObjectCacheApi
|
|
14800
|
+
*/
|
|
14801
|
+
showMemcachedObjectCacheStatusV1(username, software, options) {
|
|
14802
|
+
return WordPressObjectCacheApiFp(this.configuration).showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14803
|
+
}
|
|
14804
|
+
/**
|
|
14805
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14806
|
+
* @summary Toggle Memcached object cache
|
|
14807
|
+
* @param {string} username
|
|
14808
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14809
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
14810
|
+
* @param {*} [options] Override http request option.
|
|
14811
|
+
* @throws {RequiredError}
|
|
14812
|
+
* @memberof WordPressObjectCacheApi
|
|
14813
|
+
*/
|
|
14814
|
+
toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
|
|
14815
|
+
return WordPressObjectCacheApiFp(this.configuration).toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14816
|
+
}
|
|
14817
|
+
}
|
|
13233
14818
|
/**
|
|
13234
14819
|
* WordPressPluginsApi - axios parameter creator
|
|
13235
14820
|
* @export
|