hostinger-api-sdk 1.2.1 → 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 +1917 -85
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1112 -57
- package/dist/api.js +1545 -90
- 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 +1112 -57
- package/dist/esm/api.js +1516 -82
- 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/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/api.ts
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
|
|
@@ -5674,6 +5674,109 @@ export interface WordPressV1CommonVulnerabilityResource {
|
|
|
5674
5674
|
*/
|
|
5675
5675
|
'direct_url': string;
|
|
5676
5676
|
}
|
|
5677
|
+
/**
|
|
5678
|
+
*
|
|
5679
|
+
* @export
|
|
5680
|
+
* @interface WordPressV1HostingerPluginsAiOptionStatusResource
|
|
5681
|
+
*/
|
|
5682
|
+
export interface WordPressV1HostingerPluginsAiOptionStatusResource {
|
|
5683
|
+
/**
|
|
5684
|
+
* Whether the llms.txt AI option is enabled. Present when the option is requested or when no specific option filter is provided.
|
|
5685
|
+
* @type {boolean}
|
|
5686
|
+
* @memberof WordPressV1HostingerPluginsAiOptionStatusResource
|
|
5687
|
+
*/
|
|
5688
|
+
'is_llmstxt_enabled': boolean | null;
|
|
5689
|
+
/**
|
|
5690
|
+
* Whether the Web2Agent AI option is enabled. Present when the option is requested or when no specific option filter is provided.
|
|
5691
|
+
* @type {boolean}
|
|
5692
|
+
* @memberof WordPressV1HostingerPluginsAiOptionStatusResource
|
|
5693
|
+
*/
|
|
5694
|
+
'is_web2agent_enabled': boolean | null;
|
|
5695
|
+
}
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @export
|
|
5699
|
+
* @interface WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
5700
|
+
*/
|
|
5701
|
+
export interface WordPressV1HostingerPluginsUpdateAiOptionStatusRequest {
|
|
5702
|
+
/**
|
|
5703
|
+
* AI option name
|
|
5704
|
+
* @type {string}
|
|
5705
|
+
* @memberof WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
5706
|
+
*/
|
|
5707
|
+
'option': WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum;
|
|
5708
|
+
/**
|
|
5709
|
+
* Enable (true) or disable (false) the AI option.
|
|
5710
|
+
* @type {boolean}
|
|
5711
|
+
* @memberof WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
5712
|
+
*/
|
|
5713
|
+
'enable': boolean;
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5716
|
+
export const WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
|
|
5717
|
+
Llmstxt: 'llmstxt',
|
|
5718
|
+
Web2agent: 'web2agent'
|
|
5719
|
+
} as const;
|
|
5720
|
+
|
|
5721
|
+
export type WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = typeof WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum[keyof typeof WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum];
|
|
5722
|
+
|
|
5723
|
+
/**
|
|
5724
|
+
*
|
|
5725
|
+
* @export
|
|
5726
|
+
* @interface WordPressV1InstallationsCheckIsValidRequest
|
|
5727
|
+
*/
|
|
5728
|
+
export interface WordPressV1InstallationsCheckIsValidRequest {
|
|
5729
|
+
/**
|
|
5730
|
+
* WordPress installation (software) identifiers to validate.
|
|
5731
|
+
* @type {Array<string>}
|
|
5732
|
+
* @memberof WordPressV1InstallationsCheckIsValidRequest
|
|
5733
|
+
*/
|
|
5734
|
+
'software_ids': Array<string>;
|
|
5735
|
+
/**
|
|
5736
|
+
* Force fresh validation without cache. Preferable for troubleshooting purposes.
|
|
5737
|
+
* @type {boolean}
|
|
5738
|
+
* @memberof WordPressV1InstallationsCheckIsValidRequest
|
|
5739
|
+
*/
|
|
5740
|
+
'force': boolean;
|
|
5741
|
+
}
|
|
5742
|
+
/**
|
|
5743
|
+
*
|
|
5744
|
+
* @export
|
|
5745
|
+
* @interface WordPressV1InstallationsCheckIsValidResultResource
|
|
5746
|
+
*/
|
|
5747
|
+
export interface WordPressV1InstallationsCheckIsValidResultResource {
|
|
5748
|
+
/**
|
|
5749
|
+
* WordPress installation (software) identifier
|
|
5750
|
+
* @type {string}
|
|
5751
|
+
* @memberof WordPressV1InstallationsCheckIsValidResultResource
|
|
5752
|
+
*/
|
|
5753
|
+
'software_id': string;
|
|
5754
|
+
/**
|
|
5755
|
+
* Whether the WordPress installation is valid and working correctly
|
|
5756
|
+
* @type {boolean}
|
|
5757
|
+
* @memberof WordPressV1InstallationsCheckIsValidResultResource
|
|
5758
|
+
*/
|
|
5759
|
+
'is_valid': boolean;
|
|
5760
|
+
}
|
|
5761
|
+
/**
|
|
5762
|
+
*
|
|
5763
|
+
* @export
|
|
5764
|
+
* @interface WordPressV1InstallationsDeleteInstallationRequest
|
|
5765
|
+
*/
|
|
5766
|
+
export interface WordPressV1InstallationsDeleteInstallationRequest {
|
|
5767
|
+
/**
|
|
5768
|
+
* Delete installation files from disk.
|
|
5769
|
+
* @type {boolean}
|
|
5770
|
+
* @memberof WordPressV1InstallationsDeleteInstallationRequest
|
|
5771
|
+
*/
|
|
5772
|
+
'delete_files': boolean;
|
|
5773
|
+
/**
|
|
5774
|
+
* Delete the installation database.
|
|
5775
|
+
* @type {boolean}
|
|
5776
|
+
* @memberof WordPressV1InstallationsDeleteInstallationRequest
|
|
5777
|
+
*/
|
|
5778
|
+
'delete_database': boolean;
|
|
5779
|
+
}
|
|
5677
5780
|
/**
|
|
5678
5781
|
*
|
|
5679
5782
|
* @export
|
|
@@ -5788,6 +5891,108 @@ export interface WordPressV1InstallationsInstallWordPressRequestDatabase {
|
|
|
5788
5891
|
*/
|
|
5789
5892
|
'password': string | null;
|
|
5790
5893
|
}
|
|
5894
|
+
/**
|
|
5895
|
+
*
|
|
5896
|
+
* @export
|
|
5897
|
+
* @interface WordPressV1InstallationsJwtTokenResource
|
|
5898
|
+
*/
|
|
5899
|
+
export interface WordPressV1InstallationsJwtTokenResource {
|
|
5900
|
+
/**
|
|
5901
|
+
* Signed JWT used to authenticate requests against the WordPress installation
|
|
5902
|
+
* @type {string}
|
|
5903
|
+
* @memberof WordPressV1InstallationsJwtTokenResource
|
|
5904
|
+
*/
|
|
5905
|
+
'token': string;
|
|
5906
|
+
/**
|
|
5907
|
+
* Token lifetime in seconds from the moment it was issued
|
|
5908
|
+
* @type {number}
|
|
5909
|
+
* @memberof WordPressV1InstallationsJwtTokenResource
|
|
5910
|
+
*/
|
|
5911
|
+
'expires_in': number;
|
|
5912
|
+
/**
|
|
5913
|
+
* Date-time at which the token expires, or null when not provided
|
|
5914
|
+
* @type {string}
|
|
5915
|
+
* @memberof WordPressV1InstallationsJwtTokenResource
|
|
5916
|
+
*/
|
|
5917
|
+
'expires_at': string | null;
|
|
5918
|
+
/**
|
|
5919
|
+
* MCP (Model Context Protocol) endpoint URL for the WordPress installation, or null when not provided
|
|
5920
|
+
* @type {string}
|
|
5921
|
+
* @memberof WordPressV1InstallationsJwtTokenResource
|
|
5922
|
+
*/
|
|
5923
|
+
'mcp_url': string | null;
|
|
5924
|
+
}
|
|
5925
|
+
/**
|
|
5926
|
+
*
|
|
5927
|
+
* @export
|
|
5928
|
+
* @interface WordPressV1InstallationsUpdateInstallationRequest
|
|
5929
|
+
*/
|
|
5930
|
+
export interface WordPressV1InstallationsUpdateInstallationRequest {
|
|
5931
|
+
/**
|
|
5932
|
+
* Update the minor version only.
|
|
5933
|
+
* @type {boolean}
|
|
5934
|
+
* @memberof WordPressV1InstallationsUpdateInstallationRequest
|
|
5935
|
+
*/
|
|
5936
|
+
'minor': boolean;
|
|
5937
|
+
/**
|
|
5938
|
+
* Update to a specific WordPress core version.
|
|
5939
|
+
* @type {string}
|
|
5940
|
+
* @memberof WordPressV1InstallationsUpdateInstallationRequest
|
|
5941
|
+
*/
|
|
5942
|
+
'version': string | null;
|
|
5943
|
+
}
|
|
5944
|
+
/**
|
|
5945
|
+
*
|
|
5946
|
+
* @export
|
|
5947
|
+
* @interface WordPressV1InstallationsUpdateResource
|
|
5948
|
+
*/
|
|
5949
|
+
export interface WordPressV1InstallationsUpdateResource {
|
|
5950
|
+
/**
|
|
5951
|
+
* Available WordPress core version
|
|
5952
|
+
* @type {string}
|
|
5953
|
+
* @memberof WordPressV1InstallationsUpdateResource
|
|
5954
|
+
*/
|
|
5955
|
+
'version': string;
|
|
5956
|
+
/**
|
|
5957
|
+
* Update type
|
|
5958
|
+
* @type {string}
|
|
5959
|
+
* @memberof WordPressV1InstallationsUpdateResource
|
|
5960
|
+
*/
|
|
5961
|
+
'type': WordPressV1InstallationsUpdateResourceTypeEnum;
|
|
5962
|
+
/**
|
|
5963
|
+
* Download URL for the update package
|
|
5964
|
+
* @type {string}
|
|
5965
|
+
* @memberof WordPressV1InstallationsUpdateResource
|
|
5966
|
+
*/
|
|
5967
|
+
'url': string;
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
export const WordPressV1InstallationsUpdateResourceTypeEnum = {
|
|
5971
|
+
Major: 'major',
|
|
5972
|
+
Minor: 'minor'
|
|
5973
|
+
} as const;
|
|
5974
|
+
|
|
5975
|
+
export type WordPressV1InstallationsUpdateResourceTypeEnum = typeof WordPressV1InstallationsUpdateResourceTypeEnum[keyof typeof WordPressV1InstallationsUpdateResourceTypeEnum];
|
|
5976
|
+
|
|
5977
|
+
/**
|
|
5978
|
+
*
|
|
5979
|
+
* @export
|
|
5980
|
+
* @interface WordPressV1InstallationsVersionResource
|
|
5981
|
+
*/
|
|
5982
|
+
export interface WordPressV1InstallationsVersionResource {
|
|
5983
|
+
/**
|
|
5984
|
+
* Installed WordPress core version
|
|
5985
|
+
* @type {string}
|
|
5986
|
+
* @memberof WordPressV1InstallationsVersionResource
|
|
5987
|
+
*/
|
|
5988
|
+
'version': string;
|
|
5989
|
+
/**
|
|
5990
|
+
* Known vulnerabilities affecting the installed core version
|
|
5991
|
+
* @type {Array<WordPressV1CommonVulnerabilityResource>}
|
|
5992
|
+
* @memberof WordPressV1InstallationsVersionResource
|
|
5993
|
+
*/
|
|
5994
|
+
'vulnerabilities': Array<WordPressV1CommonVulnerabilityResource>;
|
|
5995
|
+
}
|
|
5791
5996
|
/**
|
|
5792
5997
|
*
|
|
5793
5998
|
* @export
|
|
@@ -5867,6 +6072,118 @@ export interface WordPressV1InstallationsWordPressInstallationResource {
|
|
|
5867
6072
|
*/
|
|
5868
6073
|
'created_at': string;
|
|
5869
6074
|
}
|
|
6075
|
+
/**
|
|
6076
|
+
*
|
|
6077
|
+
* @export
|
|
6078
|
+
* @interface WordPressV1LitespeedLitespeedCacheStatusResource
|
|
6079
|
+
*/
|
|
6080
|
+
export interface WordPressV1LitespeedLitespeedCacheStatusResource {
|
|
6081
|
+
/**
|
|
6082
|
+
* Whether the LiteSpeed Cache plugin is installed on the WordPress installation
|
|
6083
|
+
* @type {boolean}
|
|
6084
|
+
* @memberof WordPressV1LitespeedLitespeedCacheStatusResource
|
|
6085
|
+
*/
|
|
6086
|
+
'is_installed': boolean;
|
|
6087
|
+
/**
|
|
6088
|
+
* Whether the LiteSpeed Cache plugin is active on the WordPress installation
|
|
6089
|
+
* @type {boolean}
|
|
6090
|
+
* @memberof WordPressV1LitespeedLitespeedCacheStatusResource
|
|
6091
|
+
*/
|
|
6092
|
+
'is_active': boolean;
|
|
6093
|
+
}
|
|
6094
|
+
/**
|
|
6095
|
+
*
|
|
6096
|
+
* @export
|
|
6097
|
+
* @interface WordPressV1LoginLoginLinksResource
|
|
6098
|
+
*/
|
|
6099
|
+
export interface WordPressV1LoginLoginLinksResource {
|
|
6100
|
+
/**
|
|
6101
|
+
* Primary auto-login URL for the WordPress installation
|
|
6102
|
+
* @type {string}
|
|
6103
|
+
* @memberof WordPressV1LoginLoginLinksResource
|
|
6104
|
+
*/
|
|
6105
|
+
'login': string | null;
|
|
6106
|
+
/**
|
|
6107
|
+
* Fallback auto-login URL using the temporary Hostinger domain
|
|
6108
|
+
* @type {string}
|
|
6109
|
+
* @memberof WordPressV1LoginLoginLinksResource
|
|
6110
|
+
*/
|
|
6111
|
+
'fallback': string | null;
|
|
6112
|
+
/**
|
|
6113
|
+
* Default WordPress admin URL used when auto-login is unavailable
|
|
6114
|
+
* @type {string}
|
|
6115
|
+
* @memberof WordPressV1LoginLoginLinksResource
|
|
6116
|
+
*/
|
|
6117
|
+
'default': string | null;
|
|
6118
|
+
}
|
|
6119
|
+
/**
|
|
6120
|
+
*
|
|
6121
|
+
* @export
|
|
6122
|
+
* @interface WordPressV1MaintenanceMaintenanceStatusResource
|
|
6123
|
+
*/
|
|
6124
|
+
export interface WordPressV1MaintenanceMaintenanceStatusResource {
|
|
6125
|
+
/**
|
|
6126
|
+
* Current maintenance mode status for the WordPress installation
|
|
6127
|
+
* @type {string}
|
|
6128
|
+
* @memberof WordPressV1MaintenanceMaintenanceStatusResource
|
|
6129
|
+
*/
|
|
6130
|
+
'status': WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum;
|
|
6131
|
+
}
|
|
6132
|
+
|
|
6133
|
+
export const WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = {
|
|
6134
|
+
Enabled: 'enabled',
|
|
6135
|
+
Disabled: 'disabled'
|
|
6136
|
+
} as const;
|
|
6137
|
+
|
|
6138
|
+
export type WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = typeof WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum[keyof typeof WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum];
|
|
6139
|
+
|
|
6140
|
+
/**
|
|
6141
|
+
*
|
|
6142
|
+
* @export
|
|
6143
|
+
* @interface WordPressV1MaintenanceToggleMaintenanceRequest
|
|
6144
|
+
*/
|
|
6145
|
+
export interface WordPressV1MaintenanceToggleMaintenanceRequest {
|
|
6146
|
+
/**
|
|
6147
|
+
* Enable (true) or disable (false) maintenance mode for the WordPress installation.
|
|
6148
|
+
* @type {boolean}
|
|
6149
|
+
* @memberof WordPressV1MaintenanceToggleMaintenanceRequest
|
|
6150
|
+
*/
|
|
6151
|
+
'enabled': boolean;
|
|
6152
|
+
}
|
|
6153
|
+
/**
|
|
6154
|
+
*
|
|
6155
|
+
* @export
|
|
6156
|
+
* @interface WordPressV1MemcachedMemcachedStatusResource
|
|
6157
|
+
*/
|
|
6158
|
+
export interface WordPressV1MemcachedMemcachedStatusResource {
|
|
6159
|
+
/**
|
|
6160
|
+
* Current Memcached object cache status for the WordPress installation
|
|
6161
|
+
* @type {string}
|
|
6162
|
+
* @memberof WordPressV1MemcachedMemcachedStatusResource
|
|
6163
|
+
*/
|
|
6164
|
+
'status': WordPressV1MemcachedMemcachedStatusResourceStatusEnum;
|
|
6165
|
+
}
|
|
6166
|
+
|
|
6167
|
+
export const WordPressV1MemcachedMemcachedStatusResourceStatusEnum = {
|
|
6168
|
+
Active: 'active',
|
|
6169
|
+
Inactive: 'inactive'
|
|
6170
|
+
} as const;
|
|
6171
|
+
|
|
6172
|
+
export type WordPressV1MemcachedMemcachedStatusResourceStatusEnum = typeof WordPressV1MemcachedMemcachedStatusResourceStatusEnum[keyof typeof WordPressV1MemcachedMemcachedStatusResourceStatusEnum];
|
|
6173
|
+
|
|
6174
|
+
/**
|
|
6175
|
+
*
|
|
6176
|
+
* @export
|
|
6177
|
+
* @interface WordPressV1MemcachedToggleMemcachedRequest
|
|
6178
|
+
*/
|
|
6179
|
+
export interface WordPressV1MemcachedToggleMemcachedRequest {
|
|
6180
|
+
/**
|
|
6181
|
+
* Activate (true) or deactivate (false) the Memcached object cache for the WordPress installation.
|
|
6182
|
+
* @type {boolean}
|
|
6183
|
+
* @memberof WordPressV1MemcachedToggleMemcachedRequest
|
|
6184
|
+
*/
|
|
6185
|
+
'enabled': boolean;
|
|
6186
|
+
}
|
|
5870
6187
|
/**
|
|
5871
6188
|
*
|
|
5872
6189
|
* @export
|
|
@@ -20102,26 +20419,30 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
20102
20419
|
|
|
20103
20420
|
|
|
20104
20421
|
/**
|
|
20105
|
-
*
|
|
20422
|
+
* WordPressAIToolsApi - axios parameter creator
|
|
20106
20423
|
* @export
|
|
20107
20424
|
*/
|
|
20108
|
-
export const
|
|
20425
|
+
export const WordPressAIToolsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20109
20426
|
return {
|
|
20110
20427
|
/**
|
|
20111
|
-
*
|
|
20112
|
-
* @summary
|
|
20428
|
+
* 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).
|
|
20429
|
+
* @summary Set AI option status
|
|
20113
20430
|
* @param {string} username
|
|
20114
|
-
* @param {
|
|
20431
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20432
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
20115
20433
|
* @param {*} [options] Override http request option.
|
|
20116
20434
|
* @throws {RequiredError}
|
|
20117
20435
|
*/
|
|
20118
|
-
|
|
20436
|
+
setAIOptionStatusV1: async (username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20119
20437
|
// verify required parameter 'username' is not null or undefined
|
|
20120
|
-
assertParamExists('
|
|
20121
|
-
// verify required parameter '
|
|
20122
|
-
assertParamExists('
|
|
20123
|
-
|
|
20124
|
-
|
|
20438
|
+
assertParamExists('setAIOptionStatusV1', 'username', username)
|
|
20439
|
+
// verify required parameter 'software' is not null or undefined
|
|
20440
|
+
assertParamExists('setAIOptionStatusV1', 'software', software)
|
|
20441
|
+
// verify required parameter 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest' is not null or undefined
|
|
20442
|
+
assertParamExists('setAIOptionStatusV1', 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest', wordPressV1HostingerPluginsUpdateAiOptionStatusRequest)
|
|
20443
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
|
|
20444
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
20445
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
20125
20446
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20126
20447
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20127
20448
|
let baseOptions;
|
|
@@ -20129,7 +20450,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
20129
20450
|
baseOptions = configuration.baseOptions;
|
|
20130
20451
|
}
|
|
20131
20452
|
|
|
20132
|
-
const localVarRequestOptions = { method: '
|
|
20453
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
20133
20454
|
const localVarHeaderParameter = {} as any;
|
|
20134
20455
|
const localVarQueryParameter = {} as any;
|
|
20135
20456
|
|
|
@@ -20144,7 +20465,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
20144
20465
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20145
20466
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20146
20467
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20147
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
20468
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, localVarRequestOptions, configuration)
|
|
20148
20469
|
|
|
20149
20470
|
return {
|
|
20150
20471
|
url: toPathString(localVarUrlObj),
|
|
@@ -20152,16 +20473,22 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
20152
20473
|
};
|
|
20153
20474
|
},
|
|
20154
20475
|
/**
|
|
20155
|
-
*
|
|
20156
|
-
* @summary
|
|
20157
|
-
* @param {string
|
|
20158
|
-
* @param {string
|
|
20159
|
-
* @param {
|
|
20476
|
+
* 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).
|
|
20477
|
+
* @summary Show AI option status
|
|
20478
|
+
* @param {string} username
|
|
20479
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20480
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
20160
20481
|
* @param {*} [options] Override http request option.
|
|
20161
20482
|
* @throws {RequiredError}
|
|
20162
20483
|
*/
|
|
20163
|
-
|
|
20164
|
-
|
|
20484
|
+
showAIOptionStatusV1: async (username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20485
|
+
// verify required parameter 'username' is not null or undefined
|
|
20486
|
+
assertParamExists('showAIOptionStatusV1', 'username', username)
|
|
20487
|
+
// verify required parameter 'software' is not null or undefined
|
|
20488
|
+
assertParamExists('showAIOptionStatusV1', 'software', software)
|
|
20489
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
|
|
20490
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
20491
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
20165
20492
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20166
20493
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20167
20494
|
let baseOptions;
|
|
@@ -20177,16 +20504,8 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
20177
20504
|
// http bearer authentication required
|
|
20178
20505
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20179
20506
|
|
|
20180
|
-
if (
|
|
20181
|
-
localVarQueryParameter['
|
|
20182
|
-
}
|
|
20183
|
-
|
|
20184
|
-
if (domain !== undefined) {
|
|
20185
|
-
localVarQueryParameter['domain'] = domain;
|
|
20186
|
-
}
|
|
20187
|
-
|
|
20188
|
-
if (ownership !== undefined) {
|
|
20189
|
-
localVarQueryParameter['ownership'] = ownership;
|
|
20507
|
+
if (option !== undefined) {
|
|
20508
|
+
localVarQueryParameter['option'] = option;
|
|
20190
20509
|
}
|
|
20191
20510
|
|
|
20192
20511
|
|
|
@@ -20204,119 +20523,1632 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
20204
20523
|
};
|
|
20205
20524
|
|
|
20206
20525
|
/**
|
|
20207
|
-
*
|
|
20526
|
+
* WordPressAIToolsApi - functional programming interface
|
|
20208
20527
|
* @export
|
|
20209
20528
|
*/
|
|
20210
|
-
export const
|
|
20211
|
-
const localVarAxiosParamCreator =
|
|
20529
|
+
export const WordPressAIToolsApiFp = function(configuration?: Configuration) {
|
|
20530
|
+
const localVarAxiosParamCreator = WordPressAIToolsApiAxiosParamCreator(configuration)
|
|
20212
20531
|
return {
|
|
20213
20532
|
/**
|
|
20214
|
-
*
|
|
20215
|
-
* @summary
|
|
20533
|
+
* 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).
|
|
20534
|
+
* @summary Set AI option status
|
|
20216
20535
|
* @param {string} username
|
|
20217
|
-
* @param {
|
|
20536
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20537
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
20218
20538
|
* @param {*} [options] Override http request option.
|
|
20219
20539
|
* @throws {RequiredError}
|
|
20220
20540
|
*/
|
|
20221
|
-
async
|
|
20222
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
20223
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
20541
|
+
async setAIOptionStatusV1(username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
20542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options);
|
|
20543
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressAIToolsApi.setAIOptionStatusV1']?.[0]?.url;
|
|
20224
20544
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20225
20545
|
},
|
|
20226
20546
|
/**
|
|
20227
|
-
*
|
|
20228
|
-
* @summary
|
|
20229
|
-
* @param {string
|
|
20230
|
-
* @param {string
|
|
20231
|
-
* @param {
|
|
20547
|
+
* 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).
|
|
20548
|
+
* @summary Show AI option status
|
|
20549
|
+
* @param {string} username
|
|
20550
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20551
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
20232
20552
|
* @param {*} [options] Override http request option.
|
|
20233
20553
|
* @throws {RequiredError}
|
|
20234
20554
|
*/
|
|
20235
|
-
async
|
|
20236
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
20237
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
20555
|
+
async showAIOptionStatusV1(username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1HostingerPluginsAiOptionStatusResource>> {
|
|
20556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.showAIOptionStatusV1(username, software, option, options);
|
|
20557
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressAIToolsApi.showAIOptionStatusV1']?.[0]?.url;
|
|
20238
20558
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20239
20559
|
},
|
|
20240
20560
|
}
|
|
20241
20561
|
};
|
|
20242
20562
|
|
|
20243
20563
|
/**
|
|
20244
|
-
*
|
|
20564
|
+
* WordPressAIToolsApi - factory interface
|
|
20245
20565
|
* @export
|
|
20246
20566
|
*/
|
|
20247
|
-
export const
|
|
20248
|
-
const localVarFp =
|
|
20567
|
+
export const WordPressAIToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20568
|
+
const localVarFp = WordPressAIToolsApiFp(configuration)
|
|
20249
20569
|
return {
|
|
20250
20570
|
/**
|
|
20251
|
-
*
|
|
20252
|
-
* @summary
|
|
20571
|
+
* 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).
|
|
20572
|
+
* @summary Set AI option status
|
|
20253
20573
|
* @param {string} username
|
|
20254
|
-
* @param {
|
|
20574
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20575
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
20255
20576
|
* @param {*} [options] Override http request option.
|
|
20256
20577
|
* @throws {RequiredError}
|
|
20257
20578
|
*/
|
|
20258
|
-
|
|
20259
|
-
return localVarFp.
|
|
20579
|
+
setAIOptionStatusV1(username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
20580
|
+
return localVarFp.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(axios, basePath));
|
|
20260
20581
|
},
|
|
20261
20582
|
/**
|
|
20262
|
-
*
|
|
20263
|
-
* @summary
|
|
20264
|
-
* @param {string
|
|
20265
|
-
* @param {string
|
|
20266
|
-
* @param {
|
|
20583
|
+
* 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).
|
|
20584
|
+
* @summary Show AI option status
|
|
20585
|
+
* @param {string} username
|
|
20586
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20587
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
20267
20588
|
* @param {*} [options] Override http request option.
|
|
20268
20589
|
* @throws {RequiredError}
|
|
20269
20590
|
*/
|
|
20270
|
-
|
|
20271
|
-
return localVarFp.
|
|
20591
|
+
showAIOptionStatusV1(username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1HostingerPluginsAiOptionStatusResource> {
|
|
20592
|
+
return localVarFp.showAIOptionStatusV1(username, software, option, options).then((request) => request(axios, basePath));
|
|
20272
20593
|
},
|
|
20273
20594
|
};
|
|
20274
20595
|
};
|
|
20275
20596
|
|
|
20276
20597
|
/**
|
|
20277
|
-
*
|
|
20598
|
+
* WordPressAIToolsApi - object-oriented interface
|
|
20278
20599
|
* @export
|
|
20279
|
-
* @class
|
|
20600
|
+
* @class WordPressAIToolsApi
|
|
20280
20601
|
* @extends {BaseAPI}
|
|
20281
20602
|
*/
|
|
20282
|
-
export class
|
|
20603
|
+
export class WordPressAIToolsApi extends BaseAPI {
|
|
20283
20604
|
/**
|
|
20284
|
-
*
|
|
20285
|
-
* @summary
|
|
20605
|
+
* 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).
|
|
20606
|
+
* @summary Set AI option status
|
|
20286
20607
|
* @param {string} username
|
|
20287
|
-
* @param {
|
|
20608
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20609
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
20288
20610
|
* @param {*} [options] Override http request option.
|
|
20289
20611
|
* @throws {RequiredError}
|
|
20290
|
-
* @memberof
|
|
20612
|
+
* @memberof WordPressAIToolsApi
|
|
20291
20613
|
*/
|
|
20292
|
-
public
|
|
20293
|
-
return
|
|
20614
|
+
public setAIOptionStatusV1(username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options?: RawAxiosRequestConfig) {
|
|
20615
|
+
return WordPressAIToolsApiFp(this.configuration).setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20294
20616
|
}
|
|
20295
20617
|
|
|
20296
20618
|
/**
|
|
20297
|
-
*
|
|
20298
|
-
* @summary
|
|
20299
|
-
* @param {string
|
|
20300
|
-
* @param {string
|
|
20301
|
-
* @param {
|
|
20619
|
+
* 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).
|
|
20620
|
+
* @summary Show AI option status
|
|
20621
|
+
* @param {string} username
|
|
20622
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20623
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
20302
20624
|
* @param {*} [options] Override http request option.
|
|
20303
20625
|
* @throws {RequiredError}
|
|
20304
|
-
* @memberof
|
|
20626
|
+
* @memberof WordPressAIToolsApi
|
|
20305
20627
|
*/
|
|
20306
|
-
public
|
|
20307
|
-
return
|
|
20628
|
+
public showAIOptionStatusV1(username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options?: RawAxiosRequestConfig) {
|
|
20629
|
+
return WordPressAIToolsApiFp(this.configuration).showAIOptionStatusV1(username, software, option, options).then((request) => request(this.axios, this.basePath));
|
|
20308
20630
|
}
|
|
20309
20631
|
}
|
|
20310
20632
|
|
|
20311
20633
|
/**
|
|
20312
20634
|
* @export
|
|
20313
20635
|
*/
|
|
20314
|
-
export const
|
|
20315
|
-
|
|
20316
|
-
|
|
20317
|
-
All: 'all'
|
|
20636
|
+
export const ShowAIOptionStatusV1OptionEnum = {
|
|
20637
|
+
Llmstxt: 'llmstxt',
|
|
20638
|
+
Web2agent: 'web2agent'
|
|
20318
20639
|
} as const;
|
|
20319
|
-
export type
|
|
20640
|
+
export type ShowAIOptionStatusV1OptionEnum = typeof ShowAIOptionStatusV1OptionEnum[keyof typeof ShowAIOptionStatusV1OptionEnum];
|
|
20641
|
+
|
|
20642
|
+
|
|
20643
|
+
/**
|
|
20644
|
+
* WordPressInstallationsApi - axios parameter creator
|
|
20645
|
+
* @export
|
|
20646
|
+
*/
|
|
20647
|
+
export const WordPressInstallationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20648
|
+
return {
|
|
20649
|
+
/**
|
|
20650
|
+
* 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).
|
|
20651
|
+
* @summary Check if WordPress installations are valid
|
|
20652
|
+
* @param {string} username
|
|
20653
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
20654
|
+
* @param {*} [options] Override http request option.
|
|
20655
|
+
* @throws {RequiredError}
|
|
20656
|
+
*/
|
|
20657
|
+
checkIfWordPressInstallationsAreValidV1: async (username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20658
|
+
// verify required parameter 'username' is not null or undefined
|
|
20659
|
+
assertParamExists('checkIfWordPressInstallationsAreValidV1', 'username', username)
|
|
20660
|
+
// verify required parameter 'wordPressV1InstallationsCheckIsValidRequest' is not null or undefined
|
|
20661
|
+
assertParamExists('checkIfWordPressInstallationsAreValidV1', 'wordPressV1InstallationsCheckIsValidRequest', wordPressV1InstallationsCheckIsValidRequest)
|
|
20662
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid`
|
|
20663
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
20664
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20665
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20666
|
+
let baseOptions;
|
|
20667
|
+
if (configuration) {
|
|
20668
|
+
baseOptions = configuration.baseOptions;
|
|
20669
|
+
}
|
|
20670
|
+
|
|
20671
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20672
|
+
const localVarHeaderParameter = {} as any;
|
|
20673
|
+
const localVarQueryParameter = {} as any;
|
|
20674
|
+
|
|
20675
|
+
// authentication apiToken required
|
|
20676
|
+
// http bearer authentication required
|
|
20677
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20678
|
+
|
|
20679
|
+
|
|
20680
|
+
|
|
20681
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20682
|
+
|
|
20683
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20684
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20685
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20686
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsCheckIsValidRequest, localVarRequestOptions, configuration)
|
|
20687
|
+
|
|
20688
|
+
return {
|
|
20689
|
+
url: toPathString(localVarUrlObj),
|
|
20690
|
+
options: localVarRequestOptions,
|
|
20691
|
+
};
|
|
20692
|
+
},
|
|
20693
|
+
/**
|
|
20694
|
+
* 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).
|
|
20695
|
+
* @summary Delete WordPress installation
|
|
20696
|
+
* @param {string} username
|
|
20697
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20698
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
20699
|
+
* @param {*} [options] Override http request option.
|
|
20700
|
+
* @throws {RequiredError}
|
|
20701
|
+
*/
|
|
20702
|
+
deleteWordPressInstallationV1: async (username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20703
|
+
// verify required parameter 'username' is not null or undefined
|
|
20704
|
+
assertParamExists('deleteWordPressInstallationV1', 'username', username)
|
|
20705
|
+
// verify required parameter 'software' is not null or undefined
|
|
20706
|
+
assertParamExists('deleteWordPressInstallationV1', 'software', software)
|
|
20707
|
+
// verify required parameter 'wordPressV1InstallationsDeleteInstallationRequest' is not null or undefined
|
|
20708
|
+
assertParamExists('deleteWordPressInstallationV1', 'wordPressV1InstallationsDeleteInstallationRequest', wordPressV1InstallationsDeleteInstallationRequest)
|
|
20709
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}`
|
|
20710
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
20711
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
20712
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20713
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20714
|
+
let baseOptions;
|
|
20715
|
+
if (configuration) {
|
|
20716
|
+
baseOptions = configuration.baseOptions;
|
|
20717
|
+
}
|
|
20718
|
+
|
|
20719
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
20720
|
+
const localVarHeaderParameter = {} as any;
|
|
20721
|
+
const localVarQueryParameter = {} as any;
|
|
20722
|
+
|
|
20723
|
+
// authentication apiToken required
|
|
20724
|
+
// http bearer authentication required
|
|
20725
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20726
|
+
|
|
20727
|
+
|
|
20728
|
+
|
|
20729
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20730
|
+
|
|
20731
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20732
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20733
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20734
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsDeleteInstallationRequest, localVarRequestOptions, configuration)
|
|
20735
|
+
|
|
20736
|
+
return {
|
|
20737
|
+
url: toPathString(localVarUrlObj),
|
|
20738
|
+
options: localVarRequestOptions,
|
|
20739
|
+
};
|
|
20740
|
+
},
|
|
20741
|
+
/**
|
|
20742
|
+
* 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.
|
|
20743
|
+
* @summary Detect WordPress installations
|
|
20744
|
+
* @param {string} username
|
|
20745
|
+
* @param {*} [options] Override http request option.
|
|
20746
|
+
* @throws {RequiredError}
|
|
20747
|
+
*/
|
|
20748
|
+
detectWordPressInstallationsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20749
|
+
// verify required parameter 'username' is not null or undefined
|
|
20750
|
+
assertParamExists('detectWordPressInstallationsV1', 'username', username)
|
|
20751
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/detect`
|
|
20752
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
20753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20754
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20755
|
+
let baseOptions;
|
|
20756
|
+
if (configuration) {
|
|
20757
|
+
baseOptions = configuration.baseOptions;
|
|
20758
|
+
}
|
|
20759
|
+
|
|
20760
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20761
|
+
const localVarHeaderParameter = {} as any;
|
|
20762
|
+
const localVarQueryParameter = {} as any;
|
|
20763
|
+
|
|
20764
|
+
// authentication apiToken required
|
|
20765
|
+
// http bearer authentication required
|
|
20766
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20767
|
+
|
|
20768
|
+
|
|
20769
|
+
|
|
20770
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20771
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20772
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20773
|
+
|
|
20774
|
+
return {
|
|
20775
|
+
url: toPathString(localVarUrlObj),
|
|
20776
|
+
options: localVarRequestOptions,
|
|
20777
|
+
};
|
|
20778
|
+
},
|
|
20779
|
+
/**
|
|
20780
|
+
* 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).
|
|
20781
|
+
* @summary Get installation JWT token
|
|
20782
|
+
* @param {string} username
|
|
20783
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20784
|
+
* @param {*} [options] Override http request option.
|
|
20785
|
+
* @throws {RequiredError}
|
|
20786
|
+
*/
|
|
20787
|
+
getInstallationJWTTokenV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20788
|
+
// verify required parameter 'username' is not null or undefined
|
|
20789
|
+
assertParamExists('getInstallationJWTTokenV1', 'username', username)
|
|
20790
|
+
// verify required parameter 'software' is not null or undefined
|
|
20791
|
+
assertParamExists('getInstallationJWTTokenV1', 'software', software)
|
|
20792
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token`
|
|
20793
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
20794
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
20795
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20796
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20797
|
+
let baseOptions;
|
|
20798
|
+
if (configuration) {
|
|
20799
|
+
baseOptions = configuration.baseOptions;
|
|
20800
|
+
}
|
|
20801
|
+
|
|
20802
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20803
|
+
const localVarHeaderParameter = {} as any;
|
|
20804
|
+
const localVarQueryParameter = {} as any;
|
|
20805
|
+
|
|
20806
|
+
// authentication apiToken required
|
|
20807
|
+
// http bearer authentication required
|
|
20808
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20809
|
+
|
|
20810
|
+
|
|
20811
|
+
|
|
20812
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20814
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20815
|
+
|
|
20816
|
+
return {
|
|
20817
|
+
url: toPathString(localVarUrlObj),
|
|
20818
|
+
options: localVarRequestOptions,
|
|
20819
|
+
};
|
|
20820
|
+
},
|
|
20821
|
+
/**
|
|
20822
|
+
* 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.
|
|
20823
|
+
* @summary Install WordPress
|
|
20824
|
+
* @param {string} username
|
|
20825
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
20826
|
+
* @param {*} [options] Override http request option.
|
|
20827
|
+
* @throws {RequiredError}
|
|
20828
|
+
*/
|
|
20829
|
+
installWordPressV1: async (username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20830
|
+
// verify required parameter 'username' is not null or undefined
|
|
20831
|
+
assertParamExists('installWordPressV1', 'username', username)
|
|
20832
|
+
// verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
|
|
20833
|
+
assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest)
|
|
20834
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
20835
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
20836
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20837
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20838
|
+
let baseOptions;
|
|
20839
|
+
if (configuration) {
|
|
20840
|
+
baseOptions = configuration.baseOptions;
|
|
20841
|
+
}
|
|
20842
|
+
|
|
20843
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20844
|
+
const localVarHeaderParameter = {} as any;
|
|
20845
|
+
const localVarQueryParameter = {} as any;
|
|
20846
|
+
|
|
20847
|
+
// authentication apiToken required
|
|
20848
|
+
// http bearer authentication required
|
|
20849
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20850
|
+
|
|
20851
|
+
|
|
20852
|
+
|
|
20853
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20854
|
+
|
|
20855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20857
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration)
|
|
20859
|
+
|
|
20860
|
+
return {
|
|
20861
|
+
url: toPathString(localVarUrlObj),
|
|
20862
|
+
options: localVarRequestOptions,
|
|
20863
|
+
};
|
|
20864
|
+
},
|
|
20865
|
+
/**
|
|
20866
|
+
* 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).
|
|
20867
|
+
* @summary List available WordPress core updates
|
|
20868
|
+
* @param {string} username
|
|
20869
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20870
|
+
* @param {*} [options] Override http request option.
|
|
20871
|
+
* @throws {RequiredError}
|
|
20872
|
+
*/
|
|
20873
|
+
listAvailableWordPressCoreUpdatesV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20874
|
+
// verify required parameter 'username' is not null or undefined
|
|
20875
|
+
assertParamExists('listAvailableWordPressCoreUpdatesV1', 'username', username)
|
|
20876
|
+
// verify required parameter 'software' is not null or undefined
|
|
20877
|
+
assertParamExists('listAvailableWordPressCoreUpdatesV1', 'software', software)
|
|
20878
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/updates`
|
|
20879
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
20880
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
20881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20883
|
+
let baseOptions;
|
|
20884
|
+
if (configuration) {
|
|
20885
|
+
baseOptions = configuration.baseOptions;
|
|
20886
|
+
}
|
|
20887
|
+
|
|
20888
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20889
|
+
const localVarHeaderParameter = {} as any;
|
|
20890
|
+
const localVarQueryParameter = {} as any;
|
|
20891
|
+
|
|
20892
|
+
// authentication apiToken required
|
|
20893
|
+
// http bearer authentication required
|
|
20894
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20895
|
+
|
|
20896
|
+
|
|
20897
|
+
|
|
20898
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20899
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20900
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20901
|
+
|
|
20902
|
+
return {
|
|
20903
|
+
url: toPathString(localVarUrlObj),
|
|
20904
|
+
options: localVarRequestOptions,
|
|
20905
|
+
};
|
|
20906
|
+
},
|
|
20907
|
+
/**
|
|
20908
|
+
* 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.
|
|
20909
|
+
* @summary List WordPress installations
|
|
20910
|
+
* @param {string | null} [username] Filter by specific username
|
|
20911
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
20912
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
20913
|
+
* @param {*} [options] Override http request option.
|
|
20914
|
+
* @throws {RequiredError}
|
|
20915
|
+
*/
|
|
20916
|
+
listWordPressInstallationsV1: async (username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20917
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
20918
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20919
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20920
|
+
let baseOptions;
|
|
20921
|
+
if (configuration) {
|
|
20922
|
+
baseOptions = configuration.baseOptions;
|
|
20923
|
+
}
|
|
20924
|
+
|
|
20925
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20926
|
+
const localVarHeaderParameter = {} as any;
|
|
20927
|
+
const localVarQueryParameter = {} as any;
|
|
20928
|
+
|
|
20929
|
+
// authentication apiToken required
|
|
20930
|
+
// http bearer authentication required
|
|
20931
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20932
|
+
|
|
20933
|
+
if (username !== undefined) {
|
|
20934
|
+
localVarQueryParameter['username'] = username;
|
|
20935
|
+
}
|
|
20936
|
+
|
|
20937
|
+
if (domain !== undefined) {
|
|
20938
|
+
localVarQueryParameter['domain'] = domain;
|
|
20939
|
+
}
|
|
20940
|
+
|
|
20941
|
+
if (ownership !== undefined) {
|
|
20942
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
20943
|
+
}
|
|
20944
|
+
|
|
20945
|
+
|
|
20946
|
+
|
|
20947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20949
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20950
|
+
|
|
20951
|
+
return {
|
|
20952
|
+
url: toPathString(localVarUrlObj),
|
|
20953
|
+
options: localVarRequestOptions,
|
|
20954
|
+
};
|
|
20955
|
+
},
|
|
20956
|
+
/**
|
|
20957
|
+
* 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).
|
|
20958
|
+
* @summary Show WordPress core version
|
|
20959
|
+
* @param {string} username
|
|
20960
|
+
* @param {string} software WordPress installation (software) identifier
|
|
20961
|
+
* @param {*} [options] Override http request option.
|
|
20962
|
+
* @throws {RequiredError}
|
|
20963
|
+
*/
|
|
20964
|
+
showWordPressCoreVersionV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20965
|
+
// verify required parameter 'username' is not null or undefined
|
|
20966
|
+
assertParamExists('showWordPressCoreVersionV1', 'username', username)
|
|
20967
|
+
// verify required parameter 'software' is not null or undefined
|
|
20968
|
+
assertParamExists('showWordPressCoreVersionV1', 'software', software)
|
|
20969
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/version`
|
|
20970
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
20971
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
20972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20973
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20974
|
+
let baseOptions;
|
|
20975
|
+
if (configuration) {
|
|
20976
|
+
baseOptions = configuration.baseOptions;
|
|
20977
|
+
}
|
|
20978
|
+
|
|
20979
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20980
|
+
const localVarHeaderParameter = {} as any;
|
|
20981
|
+
const localVarQueryParameter = {} as any;
|
|
20982
|
+
|
|
20983
|
+
// authentication apiToken required
|
|
20984
|
+
// http bearer authentication required
|
|
20985
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20986
|
+
|
|
20987
|
+
|
|
20988
|
+
|
|
20989
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20990
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20991
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20992
|
+
|
|
20993
|
+
return {
|
|
20994
|
+
url: toPathString(localVarUrlObj),
|
|
20995
|
+
options: localVarRequestOptions,
|
|
20996
|
+
};
|
|
20997
|
+
},
|
|
20998
|
+
/**
|
|
20999
|
+
* 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.
|
|
21000
|
+
* @summary Update WordPress core
|
|
21001
|
+
* @param {string} username
|
|
21002
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21003
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
21004
|
+
* @param {*} [options] Override http request option.
|
|
21005
|
+
* @throws {RequiredError}
|
|
21006
|
+
*/
|
|
21007
|
+
updateWordPressCoreV1: async (username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21008
|
+
// verify required parameter 'username' is not null or undefined
|
|
21009
|
+
assertParamExists('updateWordPressCoreV1', 'username', username)
|
|
21010
|
+
// verify required parameter 'software' is not null or undefined
|
|
21011
|
+
assertParamExists('updateWordPressCoreV1', 'software', software)
|
|
21012
|
+
// verify required parameter 'wordPressV1InstallationsUpdateInstallationRequest' is not null or undefined
|
|
21013
|
+
assertParamExists('updateWordPressCoreV1', 'wordPressV1InstallationsUpdateInstallationRequest', wordPressV1InstallationsUpdateInstallationRequest)
|
|
21014
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/update`
|
|
21015
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21016
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21019
|
+
let baseOptions;
|
|
21020
|
+
if (configuration) {
|
|
21021
|
+
baseOptions = configuration.baseOptions;
|
|
21022
|
+
}
|
|
21023
|
+
|
|
21024
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21025
|
+
const localVarHeaderParameter = {} as any;
|
|
21026
|
+
const localVarQueryParameter = {} as any;
|
|
21027
|
+
|
|
21028
|
+
// authentication apiToken required
|
|
21029
|
+
// http bearer authentication required
|
|
21030
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21031
|
+
|
|
21032
|
+
|
|
21033
|
+
|
|
21034
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21035
|
+
|
|
21036
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21037
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21038
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21039
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsUpdateInstallationRequest, localVarRequestOptions, configuration)
|
|
21040
|
+
|
|
21041
|
+
return {
|
|
21042
|
+
url: toPathString(localVarUrlObj),
|
|
21043
|
+
options: localVarRequestOptions,
|
|
21044
|
+
};
|
|
21045
|
+
},
|
|
21046
|
+
}
|
|
21047
|
+
};
|
|
21048
|
+
|
|
21049
|
+
/**
|
|
21050
|
+
* WordPressInstallationsApi - functional programming interface
|
|
21051
|
+
* @export
|
|
21052
|
+
*/
|
|
21053
|
+
export const WordPressInstallationsApiFp = function(configuration?: Configuration) {
|
|
21054
|
+
const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration)
|
|
21055
|
+
return {
|
|
21056
|
+
/**
|
|
21057
|
+
* 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).
|
|
21058
|
+
* @summary Check if WordPress installations are valid
|
|
21059
|
+
* @param {string} username
|
|
21060
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
21061
|
+
* @param {*} [options] Override http request option.
|
|
21062
|
+
* @throws {RequiredError}
|
|
21063
|
+
*/
|
|
21064
|
+
async checkIfWordPressInstallationsAreValidV1(username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsCheckIsValidResultResource>>> {
|
|
21065
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options);
|
|
21066
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.checkIfWordPressInstallationsAreValidV1']?.[0]?.url;
|
|
21067
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21068
|
+
},
|
|
21069
|
+
/**
|
|
21070
|
+
* 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).
|
|
21071
|
+
* @summary Delete WordPress installation
|
|
21072
|
+
* @param {string} username
|
|
21073
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21074
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
21075
|
+
* @param {*} [options] Override http request option.
|
|
21076
|
+
* @throws {RequiredError}
|
|
21077
|
+
*/
|
|
21078
|
+
async deleteWordPressInstallationV1(username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
21079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options);
|
|
21080
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.deleteWordPressInstallationV1']?.[0]?.url;
|
|
21081
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21082
|
+
},
|
|
21083
|
+
/**
|
|
21084
|
+
* 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.
|
|
21085
|
+
* @summary Detect WordPress installations
|
|
21086
|
+
* @param {string} username
|
|
21087
|
+
* @param {*} [options] Override http request option.
|
|
21088
|
+
* @throws {RequiredError}
|
|
21089
|
+
*/
|
|
21090
|
+
async detectWordPressInstallationsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
21091
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detectWordPressInstallationsV1(username, options);
|
|
21092
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.detectWordPressInstallationsV1']?.[0]?.url;
|
|
21093
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21094
|
+
},
|
|
21095
|
+
/**
|
|
21096
|
+
* 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).
|
|
21097
|
+
* @summary Get installation JWT token
|
|
21098
|
+
* @param {string} username
|
|
21099
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21100
|
+
* @param {*} [options] Override http request option.
|
|
21101
|
+
* @throws {RequiredError}
|
|
21102
|
+
*/
|
|
21103
|
+
async getInstallationJWTTokenV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1InstallationsJwtTokenResource>> {
|
|
21104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstallationJWTTokenV1(username, software, options);
|
|
21105
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.getInstallationJWTTokenV1']?.[0]?.url;
|
|
21106
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21107
|
+
},
|
|
21108
|
+
/**
|
|
21109
|
+
* 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.
|
|
21110
|
+
* @summary Install WordPress
|
|
21111
|
+
* @param {string} username
|
|
21112
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
21113
|
+
* @param {*} [options] Override http request option.
|
|
21114
|
+
* @throws {RequiredError}
|
|
21115
|
+
*/
|
|
21116
|
+
async installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
21117
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
|
|
21118
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.installWordPressV1']?.[0]?.url;
|
|
21119
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21120
|
+
},
|
|
21121
|
+
/**
|
|
21122
|
+
* 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).
|
|
21123
|
+
* @summary List available WordPress core updates
|
|
21124
|
+
* @param {string} username
|
|
21125
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21126
|
+
* @param {*} [options] Override http request option.
|
|
21127
|
+
* @throws {RequiredError}
|
|
21128
|
+
*/
|
|
21129
|
+
async listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsUpdateResource>>> {
|
|
21130
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableWordPressCoreUpdatesV1(username, software, options);
|
|
21131
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.listAvailableWordPressCoreUpdatesV1']?.[0]?.url;
|
|
21132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21133
|
+
},
|
|
21134
|
+
/**
|
|
21135
|
+
* 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.
|
|
21136
|
+
* @summary List WordPress installations
|
|
21137
|
+
* @param {string | null} [username] Filter by specific username
|
|
21138
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
21139
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
21140
|
+
* @param {*} [options] Override http request option.
|
|
21141
|
+
* @throws {RequiredError}
|
|
21142
|
+
*/
|
|
21143
|
+
async listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>>> {
|
|
21144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
21145
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']?.[0]?.url;
|
|
21146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21147
|
+
},
|
|
21148
|
+
/**
|
|
21149
|
+
* 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).
|
|
21150
|
+
* @summary Show WordPress core version
|
|
21151
|
+
* @param {string} username
|
|
21152
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21153
|
+
* @param {*} [options] Override http request option.
|
|
21154
|
+
* @throws {RequiredError}
|
|
21155
|
+
*/
|
|
21156
|
+
async showWordPressCoreVersionV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1InstallationsVersionResource>> {
|
|
21157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.showWordPressCoreVersionV1(username, software, options);
|
|
21158
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.showWordPressCoreVersionV1']?.[0]?.url;
|
|
21159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21160
|
+
},
|
|
21161
|
+
/**
|
|
21162
|
+
* 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.
|
|
21163
|
+
* @summary Update WordPress core
|
|
21164
|
+
* @param {string} username
|
|
21165
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21166
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
21167
|
+
* @param {*} [options] Override http request option.
|
|
21168
|
+
* @throws {RequiredError}
|
|
21169
|
+
*/
|
|
21170
|
+
async updateWordPressCoreV1(username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
21171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options);
|
|
21172
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.updateWordPressCoreV1']?.[0]?.url;
|
|
21173
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21174
|
+
},
|
|
21175
|
+
}
|
|
21176
|
+
};
|
|
21177
|
+
|
|
21178
|
+
/**
|
|
21179
|
+
* WordPressInstallationsApi - factory interface
|
|
21180
|
+
* @export
|
|
21181
|
+
*/
|
|
21182
|
+
export const WordPressInstallationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
21183
|
+
const localVarFp = WordPressInstallationsApiFp(configuration)
|
|
21184
|
+
return {
|
|
21185
|
+
/**
|
|
21186
|
+
* 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).
|
|
21187
|
+
* @summary Check if WordPress installations are valid
|
|
21188
|
+
* @param {string} username
|
|
21189
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
21190
|
+
* @param {*} [options] Override http request option.
|
|
21191
|
+
* @throws {RequiredError}
|
|
21192
|
+
*/
|
|
21193
|
+
checkIfWordPressInstallationsAreValidV1(username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsCheckIsValidResultResource>> {
|
|
21194
|
+
return localVarFp.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(axios, basePath));
|
|
21195
|
+
},
|
|
21196
|
+
/**
|
|
21197
|
+
* 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).
|
|
21198
|
+
* @summary Delete WordPress installation
|
|
21199
|
+
* @param {string} username
|
|
21200
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21201
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
21202
|
+
* @param {*} [options] Override http request option.
|
|
21203
|
+
* @throws {RequiredError}
|
|
21204
|
+
*/
|
|
21205
|
+
deleteWordPressInstallationV1(username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
21206
|
+
return localVarFp.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(axios, basePath));
|
|
21207
|
+
},
|
|
21208
|
+
/**
|
|
21209
|
+
* 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.
|
|
21210
|
+
* @summary Detect WordPress installations
|
|
21211
|
+
* @param {string} username
|
|
21212
|
+
* @param {*} [options] Override http request option.
|
|
21213
|
+
* @throws {RequiredError}
|
|
21214
|
+
*/
|
|
21215
|
+
detectWordPressInstallationsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
21216
|
+
return localVarFp.detectWordPressInstallationsV1(username, options).then((request) => request(axios, basePath));
|
|
21217
|
+
},
|
|
21218
|
+
/**
|
|
21219
|
+
* 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).
|
|
21220
|
+
* @summary Get installation JWT token
|
|
21221
|
+
* @param {string} username
|
|
21222
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21223
|
+
* @param {*} [options] Override http request option.
|
|
21224
|
+
* @throws {RequiredError}
|
|
21225
|
+
*/
|
|
21226
|
+
getInstallationJWTTokenV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1InstallationsJwtTokenResource> {
|
|
21227
|
+
return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
|
|
21228
|
+
},
|
|
21229
|
+
/**
|
|
21230
|
+
* 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.
|
|
21231
|
+
* @summary Install WordPress
|
|
21232
|
+
* @param {string} username
|
|
21233
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
21234
|
+
* @param {*} [options] Override http request option.
|
|
21235
|
+
* @throws {RequiredError}
|
|
21236
|
+
*/
|
|
21237
|
+
installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
21238
|
+
return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
|
|
21239
|
+
},
|
|
21240
|
+
/**
|
|
21241
|
+
* 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).
|
|
21242
|
+
* @summary List available WordPress core updates
|
|
21243
|
+
* @param {string} username
|
|
21244
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21245
|
+
* @param {*} [options] Override http request option.
|
|
21246
|
+
* @throws {RequiredError}
|
|
21247
|
+
*/
|
|
21248
|
+
listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsUpdateResource>> {
|
|
21249
|
+
return localVarFp.listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(axios, basePath));
|
|
21250
|
+
},
|
|
21251
|
+
/**
|
|
21252
|
+
* 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.
|
|
21253
|
+
* @summary List WordPress installations
|
|
21254
|
+
* @param {string | null} [username] Filter by specific username
|
|
21255
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
21256
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
21257
|
+
* @param {*} [options] Override http request option.
|
|
21258
|
+
* @throws {RequiredError}
|
|
21259
|
+
*/
|
|
21260
|
+
listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>> {
|
|
21261
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
21262
|
+
},
|
|
21263
|
+
/**
|
|
21264
|
+
* 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).
|
|
21265
|
+
* @summary Show WordPress core version
|
|
21266
|
+
* @param {string} username
|
|
21267
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21268
|
+
* @param {*} [options] Override http request option.
|
|
21269
|
+
* @throws {RequiredError}
|
|
21270
|
+
*/
|
|
21271
|
+
showWordPressCoreVersionV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1InstallationsVersionResource> {
|
|
21272
|
+
return localVarFp.showWordPressCoreVersionV1(username, software, options).then((request) => request(axios, basePath));
|
|
21273
|
+
},
|
|
21274
|
+
/**
|
|
21275
|
+
* 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.
|
|
21276
|
+
* @summary Update WordPress core
|
|
21277
|
+
* @param {string} username
|
|
21278
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21279
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
21280
|
+
* @param {*} [options] Override http request option.
|
|
21281
|
+
* @throws {RequiredError}
|
|
21282
|
+
*/
|
|
21283
|
+
updateWordPressCoreV1(username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
21284
|
+
return localVarFp.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(axios, basePath));
|
|
21285
|
+
},
|
|
21286
|
+
};
|
|
21287
|
+
};
|
|
21288
|
+
|
|
21289
|
+
/**
|
|
21290
|
+
* WordPressInstallationsApi - object-oriented interface
|
|
21291
|
+
* @export
|
|
21292
|
+
* @class WordPressInstallationsApi
|
|
21293
|
+
* @extends {BaseAPI}
|
|
21294
|
+
*/
|
|
21295
|
+
export class WordPressInstallationsApi extends BaseAPI {
|
|
21296
|
+
/**
|
|
21297
|
+
* 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).
|
|
21298
|
+
* @summary Check if WordPress installations are valid
|
|
21299
|
+
* @param {string} username
|
|
21300
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
21301
|
+
* @param {*} [options] Override http request option.
|
|
21302
|
+
* @throws {RequiredError}
|
|
21303
|
+
* @memberof WordPressInstallationsApi
|
|
21304
|
+
*/
|
|
21305
|
+
public checkIfWordPressInstallationsAreValidV1(username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options?: RawAxiosRequestConfig) {
|
|
21306
|
+
return WordPressInstallationsApiFp(this.configuration).checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21307
|
+
}
|
|
21308
|
+
|
|
21309
|
+
/**
|
|
21310
|
+
* 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).
|
|
21311
|
+
* @summary Delete WordPress installation
|
|
21312
|
+
* @param {string} username
|
|
21313
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21314
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
21315
|
+
* @param {*} [options] Override http request option.
|
|
21316
|
+
* @throws {RequiredError}
|
|
21317
|
+
* @memberof WordPressInstallationsApi
|
|
21318
|
+
*/
|
|
21319
|
+
public deleteWordPressInstallationV1(username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options?: RawAxiosRequestConfig) {
|
|
21320
|
+
return WordPressInstallationsApiFp(this.configuration).deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21321
|
+
}
|
|
21322
|
+
|
|
21323
|
+
/**
|
|
21324
|
+
* 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.
|
|
21325
|
+
* @summary Detect WordPress installations
|
|
21326
|
+
* @param {string} username
|
|
21327
|
+
* @param {*} [options] Override http request option.
|
|
21328
|
+
* @throws {RequiredError}
|
|
21329
|
+
* @memberof WordPressInstallationsApi
|
|
21330
|
+
*/
|
|
21331
|
+
public detectWordPressInstallationsV1(username: string, options?: RawAxiosRequestConfig) {
|
|
21332
|
+
return WordPressInstallationsApiFp(this.configuration).detectWordPressInstallationsV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
21333
|
+
}
|
|
21334
|
+
|
|
21335
|
+
/**
|
|
21336
|
+
* 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).
|
|
21337
|
+
* @summary Get installation JWT token
|
|
21338
|
+
* @param {string} username
|
|
21339
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21340
|
+
* @param {*} [options] Override http request option.
|
|
21341
|
+
* @throws {RequiredError}
|
|
21342
|
+
* @memberof WordPressInstallationsApi
|
|
21343
|
+
*/
|
|
21344
|
+
public getInstallationJWTTokenV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21345
|
+
return WordPressInstallationsApiFp(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21346
|
+
}
|
|
21347
|
+
|
|
21348
|
+
/**
|
|
21349
|
+
* 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.
|
|
21350
|
+
* @summary Install WordPress
|
|
21351
|
+
* @param {string} username
|
|
21352
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
21353
|
+
* @param {*} [options] Override http request option.
|
|
21354
|
+
* @throws {RequiredError}
|
|
21355
|
+
* @memberof WordPressInstallationsApi
|
|
21356
|
+
*/
|
|
21357
|
+
public installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig) {
|
|
21358
|
+
return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21359
|
+
}
|
|
21360
|
+
|
|
21361
|
+
/**
|
|
21362
|
+
* 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).
|
|
21363
|
+
* @summary List available WordPress core updates
|
|
21364
|
+
* @param {string} username
|
|
21365
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21366
|
+
* @param {*} [options] Override http request option.
|
|
21367
|
+
* @throws {RequiredError}
|
|
21368
|
+
* @memberof WordPressInstallationsApi
|
|
21369
|
+
*/
|
|
21370
|
+
public listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21371
|
+
return WordPressInstallationsApiFp(this.configuration).listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21372
|
+
}
|
|
21373
|
+
|
|
21374
|
+
/**
|
|
21375
|
+
* 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.
|
|
21376
|
+
* @summary List WordPress installations
|
|
21377
|
+
* @param {string | null} [username] Filter by specific username
|
|
21378
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
21379
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
21380
|
+
* @param {*} [options] Override http request option.
|
|
21381
|
+
* @throws {RequiredError}
|
|
21382
|
+
* @memberof WordPressInstallationsApi
|
|
21383
|
+
*/
|
|
21384
|
+
public listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig) {
|
|
21385
|
+
return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
21386
|
+
}
|
|
21387
|
+
|
|
21388
|
+
/**
|
|
21389
|
+
* 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).
|
|
21390
|
+
* @summary Show WordPress core version
|
|
21391
|
+
* @param {string} username
|
|
21392
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21393
|
+
* @param {*} [options] Override http request option.
|
|
21394
|
+
* @throws {RequiredError}
|
|
21395
|
+
* @memberof WordPressInstallationsApi
|
|
21396
|
+
*/
|
|
21397
|
+
public showWordPressCoreVersionV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21398
|
+
return WordPressInstallationsApiFp(this.configuration).showWordPressCoreVersionV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21399
|
+
}
|
|
21400
|
+
|
|
21401
|
+
/**
|
|
21402
|
+
* 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.
|
|
21403
|
+
* @summary Update WordPress core
|
|
21404
|
+
* @param {string} username
|
|
21405
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21406
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
21407
|
+
* @param {*} [options] Override http request option.
|
|
21408
|
+
* @throws {RequiredError}
|
|
21409
|
+
* @memberof WordPressInstallationsApi
|
|
21410
|
+
*/
|
|
21411
|
+
public updateWordPressCoreV1(username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options?: RawAxiosRequestConfig) {
|
|
21412
|
+
return WordPressInstallationsApiFp(this.configuration).updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21413
|
+
}
|
|
21414
|
+
}
|
|
21415
|
+
|
|
21416
|
+
/**
|
|
21417
|
+
* @export
|
|
21418
|
+
*/
|
|
21419
|
+
export const ListWordPressInstallationsV1OwnershipEnum = {
|
|
21420
|
+
Owned: 'owned',
|
|
21421
|
+
Managed: 'managed',
|
|
21422
|
+
All: 'all'
|
|
21423
|
+
} as const;
|
|
21424
|
+
export type ListWordPressInstallationsV1OwnershipEnum = typeof ListWordPressInstallationsV1OwnershipEnum[keyof typeof ListWordPressInstallationsV1OwnershipEnum];
|
|
21425
|
+
|
|
21426
|
+
|
|
21427
|
+
/**
|
|
21428
|
+
* WordPressLiteSpeedCacheApi - axios parameter creator
|
|
21429
|
+
* @export
|
|
21430
|
+
*/
|
|
21431
|
+
export const WordPressLiteSpeedCacheApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
21432
|
+
return {
|
|
21433
|
+
/**
|
|
21434
|
+
* 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).
|
|
21435
|
+
* @summary Purge LiteSpeed Cache
|
|
21436
|
+
* @param {string} username
|
|
21437
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21438
|
+
* @param {*} [options] Override http request option.
|
|
21439
|
+
* @throws {RequiredError}
|
|
21440
|
+
*/
|
|
21441
|
+
purgeLiteSpeedCacheV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21442
|
+
// verify required parameter 'username' is not null or undefined
|
|
21443
|
+
assertParamExists('purgeLiteSpeedCacheV1', 'username', username)
|
|
21444
|
+
// verify required parameter 'software' is not null or undefined
|
|
21445
|
+
assertParamExists('purgeLiteSpeedCacheV1', 'software', software)
|
|
21446
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge`
|
|
21447
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21448
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21449
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21450
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21451
|
+
let baseOptions;
|
|
21452
|
+
if (configuration) {
|
|
21453
|
+
baseOptions = configuration.baseOptions;
|
|
21454
|
+
}
|
|
21455
|
+
|
|
21456
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21457
|
+
const localVarHeaderParameter = {} as any;
|
|
21458
|
+
const localVarQueryParameter = {} as any;
|
|
21459
|
+
|
|
21460
|
+
// authentication apiToken required
|
|
21461
|
+
// http bearer authentication required
|
|
21462
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21463
|
+
|
|
21464
|
+
|
|
21465
|
+
|
|
21466
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21468
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21469
|
+
|
|
21470
|
+
return {
|
|
21471
|
+
url: toPathString(localVarUrlObj),
|
|
21472
|
+
options: localVarRequestOptions,
|
|
21473
|
+
};
|
|
21474
|
+
},
|
|
21475
|
+
/**
|
|
21476
|
+
* 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).
|
|
21477
|
+
* @summary Show LiteSpeed Cache status
|
|
21478
|
+
* @param {string} username
|
|
21479
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21480
|
+
* @param {*} [options] Override http request option.
|
|
21481
|
+
* @throws {RequiredError}
|
|
21482
|
+
*/
|
|
21483
|
+
showLiteSpeedCacheStatusV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21484
|
+
// verify required parameter 'username' is not null or undefined
|
|
21485
|
+
assertParamExists('showLiteSpeedCacheStatusV1', 'username', username)
|
|
21486
|
+
// verify required parameter 'software' is not null or undefined
|
|
21487
|
+
assertParamExists('showLiteSpeedCacheStatusV1', 'software', software)
|
|
21488
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status`
|
|
21489
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21490
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21493
|
+
let baseOptions;
|
|
21494
|
+
if (configuration) {
|
|
21495
|
+
baseOptions = configuration.baseOptions;
|
|
21496
|
+
}
|
|
21497
|
+
|
|
21498
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21499
|
+
const localVarHeaderParameter = {} as any;
|
|
21500
|
+
const localVarQueryParameter = {} as any;
|
|
21501
|
+
|
|
21502
|
+
// authentication apiToken required
|
|
21503
|
+
// http bearer authentication required
|
|
21504
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21505
|
+
|
|
21506
|
+
|
|
21507
|
+
|
|
21508
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21510
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21511
|
+
|
|
21512
|
+
return {
|
|
21513
|
+
url: toPathString(localVarUrlObj),
|
|
21514
|
+
options: localVarRequestOptions,
|
|
21515
|
+
};
|
|
21516
|
+
},
|
|
21517
|
+
}
|
|
21518
|
+
};
|
|
21519
|
+
|
|
21520
|
+
/**
|
|
21521
|
+
* WordPressLiteSpeedCacheApi - functional programming interface
|
|
21522
|
+
* @export
|
|
21523
|
+
*/
|
|
21524
|
+
export const WordPressLiteSpeedCacheApiFp = function(configuration?: Configuration) {
|
|
21525
|
+
const localVarAxiosParamCreator = WordPressLiteSpeedCacheApiAxiosParamCreator(configuration)
|
|
21526
|
+
return {
|
|
21527
|
+
/**
|
|
21528
|
+
* 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).
|
|
21529
|
+
* @summary Purge LiteSpeed Cache
|
|
21530
|
+
* @param {string} username
|
|
21531
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21532
|
+
* @param {*} [options] Override http request option.
|
|
21533
|
+
* @throws {RequiredError}
|
|
21534
|
+
*/
|
|
21535
|
+
async purgeLiteSpeedCacheV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
21536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.purgeLiteSpeedCacheV1(username, software, options);
|
|
21537
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressLiteSpeedCacheApi.purgeLiteSpeedCacheV1']?.[0]?.url;
|
|
21538
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21539
|
+
},
|
|
21540
|
+
/**
|
|
21541
|
+
* 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).
|
|
21542
|
+
* @summary Show LiteSpeed Cache status
|
|
21543
|
+
* @param {string} username
|
|
21544
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21545
|
+
* @param {*} [options] Override http request option.
|
|
21546
|
+
* @throws {RequiredError}
|
|
21547
|
+
*/
|
|
21548
|
+
async showLiteSpeedCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1LitespeedLitespeedCacheStatusResource>> {
|
|
21549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.showLiteSpeedCacheStatusV1(username, software, options);
|
|
21550
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressLiteSpeedCacheApi.showLiteSpeedCacheStatusV1']?.[0]?.url;
|
|
21551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21552
|
+
},
|
|
21553
|
+
}
|
|
21554
|
+
};
|
|
21555
|
+
|
|
21556
|
+
/**
|
|
21557
|
+
* WordPressLiteSpeedCacheApi - factory interface
|
|
21558
|
+
* @export
|
|
21559
|
+
*/
|
|
21560
|
+
export const WordPressLiteSpeedCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
21561
|
+
const localVarFp = WordPressLiteSpeedCacheApiFp(configuration)
|
|
21562
|
+
return {
|
|
21563
|
+
/**
|
|
21564
|
+
* 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).
|
|
21565
|
+
* @summary Purge LiteSpeed Cache
|
|
21566
|
+
* @param {string} username
|
|
21567
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21568
|
+
* @param {*} [options] Override http request option.
|
|
21569
|
+
* @throws {RequiredError}
|
|
21570
|
+
*/
|
|
21571
|
+
purgeLiteSpeedCacheV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
21572
|
+
return localVarFp.purgeLiteSpeedCacheV1(username, software, options).then((request) => request(axios, basePath));
|
|
21573
|
+
},
|
|
21574
|
+
/**
|
|
21575
|
+
* 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).
|
|
21576
|
+
* @summary Show LiteSpeed Cache status
|
|
21577
|
+
* @param {string} username
|
|
21578
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21579
|
+
* @param {*} [options] Override http request option.
|
|
21580
|
+
* @throws {RequiredError}
|
|
21581
|
+
*/
|
|
21582
|
+
showLiteSpeedCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1LitespeedLitespeedCacheStatusResource> {
|
|
21583
|
+
return localVarFp.showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
21584
|
+
},
|
|
21585
|
+
};
|
|
21586
|
+
};
|
|
21587
|
+
|
|
21588
|
+
/**
|
|
21589
|
+
* WordPressLiteSpeedCacheApi - object-oriented interface
|
|
21590
|
+
* @export
|
|
21591
|
+
* @class WordPressLiteSpeedCacheApi
|
|
21592
|
+
* @extends {BaseAPI}
|
|
21593
|
+
*/
|
|
21594
|
+
export class WordPressLiteSpeedCacheApi extends BaseAPI {
|
|
21595
|
+
/**
|
|
21596
|
+
* 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).
|
|
21597
|
+
* @summary Purge LiteSpeed Cache
|
|
21598
|
+
* @param {string} username
|
|
21599
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21600
|
+
* @param {*} [options] Override http request option.
|
|
21601
|
+
* @throws {RequiredError}
|
|
21602
|
+
* @memberof WordPressLiteSpeedCacheApi
|
|
21603
|
+
*/
|
|
21604
|
+
public purgeLiteSpeedCacheV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21605
|
+
return WordPressLiteSpeedCacheApiFp(this.configuration).purgeLiteSpeedCacheV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21606
|
+
}
|
|
21607
|
+
|
|
21608
|
+
/**
|
|
21609
|
+
* 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).
|
|
21610
|
+
* @summary Show LiteSpeed Cache status
|
|
21611
|
+
* @param {string} username
|
|
21612
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21613
|
+
* @param {*} [options] Override http request option.
|
|
21614
|
+
* @throws {RequiredError}
|
|
21615
|
+
* @memberof WordPressLiteSpeedCacheApi
|
|
21616
|
+
*/
|
|
21617
|
+
public showLiteSpeedCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21618
|
+
return WordPressLiteSpeedCacheApiFp(this.configuration).showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21619
|
+
}
|
|
21620
|
+
}
|
|
21621
|
+
|
|
21622
|
+
|
|
21623
|
+
|
|
21624
|
+
/**
|
|
21625
|
+
* WordPressLoginApi - axios parameter creator
|
|
21626
|
+
* @export
|
|
21627
|
+
*/
|
|
21628
|
+
export const WordPressLoginApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
21629
|
+
return {
|
|
21630
|
+
/**
|
|
21631
|
+
* 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).
|
|
21632
|
+
* @summary Create login links
|
|
21633
|
+
* @param {string} username
|
|
21634
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21635
|
+
* @param {*} [options] Override http request option.
|
|
21636
|
+
* @throws {RequiredError}
|
|
21637
|
+
*/
|
|
21638
|
+
createLoginLinksV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21639
|
+
// verify required parameter 'username' is not null or undefined
|
|
21640
|
+
assertParamExists('createLoginLinksV1', 'username', username)
|
|
21641
|
+
// verify required parameter 'software' is not null or undefined
|
|
21642
|
+
assertParamExists('createLoginLinksV1', 'software', software)
|
|
21643
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/login/links`
|
|
21644
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21645
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21648
|
+
let baseOptions;
|
|
21649
|
+
if (configuration) {
|
|
21650
|
+
baseOptions = configuration.baseOptions;
|
|
21651
|
+
}
|
|
21652
|
+
|
|
21653
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21654
|
+
const localVarHeaderParameter = {} as any;
|
|
21655
|
+
const localVarQueryParameter = {} as any;
|
|
21656
|
+
|
|
21657
|
+
// authentication apiToken required
|
|
21658
|
+
// http bearer authentication required
|
|
21659
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21660
|
+
|
|
21661
|
+
|
|
21662
|
+
|
|
21663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21665
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21666
|
+
|
|
21667
|
+
return {
|
|
21668
|
+
url: toPathString(localVarUrlObj),
|
|
21669
|
+
options: localVarRequestOptions,
|
|
21670
|
+
};
|
|
21671
|
+
},
|
|
21672
|
+
}
|
|
21673
|
+
};
|
|
21674
|
+
|
|
21675
|
+
/**
|
|
21676
|
+
* WordPressLoginApi - functional programming interface
|
|
21677
|
+
* @export
|
|
21678
|
+
*/
|
|
21679
|
+
export const WordPressLoginApiFp = function(configuration?: Configuration) {
|
|
21680
|
+
const localVarAxiosParamCreator = WordPressLoginApiAxiosParamCreator(configuration)
|
|
21681
|
+
return {
|
|
21682
|
+
/**
|
|
21683
|
+
* 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).
|
|
21684
|
+
* @summary Create login links
|
|
21685
|
+
* @param {string} username
|
|
21686
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21687
|
+
* @param {*} [options] Override http request option.
|
|
21688
|
+
* @throws {RequiredError}
|
|
21689
|
+
*/
|
|
21690
|
+
async createLoginLinksV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1LoginLoginLinksResource>> {
|
|
21691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLoginLinksV1(username, software, options);
|
|
21692
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressLoginApi.createLoginLinksV1']?.[0]?.url;
|
|
21693
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21694
|
+
},
|
|
21695
|
+
}
|
|
21696
|
+
};
|
|
21697
|
+
|
|
21698
|
+
/**
|
|
21699
|
+
* WordPressLoginApi - factory interface
|
|
21700
|
+
* @export
|
|
21701
|
+
*/
|
|
21702
|
+
export const WordPressLoginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
21703
|
+
const localVarFp = WordPressLoginApiFp(configuration)
|
|
21704
|
+
return {
|
|
21705
|
+
/**
|
|
21706
|
+
* 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).
|
|
21707
|
+
* @summary Create login links
|
|
21708
|
+
* @param {string} username
|
|
21709
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21710
|
+
* @param {*} [options] Override http request option.
|
|
21711
|
+
* @throws {RequiredError}
|
|
21712
|
+
*/
|
|
21713
|
+
createLoginLinksV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1LoginLoginLinksResource> {
|
|
21714
|
+
return localVarFp.createLoginLinksV1(username, software, options).then((request) => request(axios, basePath));
|
|
21715
|
+
},
|
|
21716
|
+
};
|
|
21717
|
+
};
|
|
21718
|
+
|
|
21719
|
+
/**
|
|
21720
|
+
* WordPressLoginApi - object-oriented interface
|
|
21721
|
+
* @export
|
|
21722
|
+
* @class WordPressLoginApi
|
|
21723
|
+
* @extends {BaseAPI}
|
|
21724
|
+
*/
|
|
21725
|
+
export class WordPressLoginApi extends BaseAPI {
|
|
21726
|
+
/**
|
|
21727
|
+
* 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).
|
|
21728
|
+
* @summary Create login links
|
|
21729
|
+
* @param {string} username
|
|
21730
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21731
|
+
* @param {*} [options] Override http request option.
|
|
21732
|
+
* @throws {RequiredError}
|
|
21733
|
+
* @memberof WordPressLoginApi
|
|
21734
|
+
*/
|
|
21735
|
+
public createLoginLinksV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21736
|
+
return WordPressLoginApiFp(this.configuration).createLoginLinksV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21737
|
+
}
|
|
21738
|
+
}
|
|
21739
|
+
|
|
21740
|
+
|
|
21741
|
+
|
|
21742
|
+
/**
|
|
21743
|
+
* WordPressMaintenanceApi - axios parameter creator
|
|
21744
|
+
* @export
|
|
21745
|
+
*/
|
|
21746
|
+
export const WordPressMaintenanceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
21747
|
+
return {
|
|
21748
|
+
/**
|
|
21749
|
+
* 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).
|
|
21750
|
+
* @summary Show maintenance status
|
|
21751
|
+
* @param {string} username
|
|
21752
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21753
|
+
* @param {*} [options] Override http request option.
|
|
21754
|
+
* @throws {RequiredError}
|
|
21755
|
+
*/
|
|
21756
|
+
showMaintenanceStatusV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21757
|
+
// verify required parameter 'username' is not null or undefined
|
|
21758
|
+
assertParamExists('showMaintenanceStatusV1', 'username', username)
|
|
21759
|
+
// verify required parameter 'software' is not null or undefined
|
|
21760
|
+
assertParamExists('showMaintenanceStatusV1', 'software', software)
|
|
21761
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status`
|
|
21762
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21763
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21765
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21766
|
+
let baseOptions;
|
|
21767
|
+
if (configuration) {
|
|
21768
|
+
baseOptions = configuration.baseOptions;
|
|
21769
|
+
}
|
|
21770
|
+
|
|
21771
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21772
|
+
const localVarHeaderParameter = {} as any;
|
|
21773
|
+
const localVarQueryParameter = {} as any;
|
|
21774
|
+
|
|
21775
|
+
// authentication apiToken required
|
|
21776
|
+
// http bearer authentication required
|
|
21777
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21778
|
+
|
|
21779
|
+
|
|
21780
|
+
|
|
21781
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21782
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21783
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21784
|
+
|
|
21785
|
+
return {
|
|
21786
|
+
url: toPathString(localVarUrlObj),
|
|
21787
|
+
options: localVarRequestOptions,
|
|
21788
|
+
};
|
|
21789
|
+
},
|
|
21790
|
+
/**
|
|
21791
|
+
* 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).
|
|
21792
|
+
* @summary Toggle maintenance mode
|
|
21793
|
+
* @param {string} username
|
|
21794
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21795
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
21796
|
+
* @param {*} [options] Override http request option.
|
|
21797
|
+
* @throws {RequiredError}
|
|
21798
|
+
*/
|
|
21799
|
+
toggleMaintenanceModeV1: async (username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21800
|
+
// verify required parameter 'username' is not null or undefined
|
|
21801
|
+
assertParamExists('toggleMaintenanceModeV1', 'username', username)
|
|
21802
|
+
// verify required parameter 'software' is not null or undefined
|
|
21803
|
+
assertParamExists('toggleMaintenanceModeV1', 'software', software)
|
|
21804
|
+
// verify required parameter 'wordPressV1MaintenanceToggleMaintenanceRequest' is not null or undefined
|
|
21805
|
+
assertParamExists('toggleMaintenanceModeV1', 'wordPressV1MaintenanceToggleMaintenanceRequest', wordPressV1MaintenanceToggleMaintenanceRequest)
|
|
21806
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle`
|
|
21807
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21808
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21810
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21811
|
+
let baseOptions;
|
|
21812
|
+
if (configuration) {
|
|
21813
|
+
baseOptions = configuration.baseOptions;
|
|
21814
|
+
}
|
|
21815
|
+
|
|
21816
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
21817
|
+
const localVarHeaderParameter = {} as any;
|
|
21818
|
+
const localVarQueryParameter = {} as any;
|
|
21819
|
+
|
|
21820
|
+
// authentication apiToken required
|
|
21821
|
+
// http bearer authentication required
|
|
21822
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21823
|
+
|
|
21824
|
+
|
|
21825
|
+
|
|
21826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21827
|
+
|
|
21828
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21829
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21830
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21831
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1MaintenanceToggleMaintenanceRequest, localVarRequestOptions, configuration)
|
|
21832
|
+
|
|
21833
|
+
return {
|
|
21834
|
+
url: toPathString(localVarUrlObj),
|
|
21835
|
+
options: localVarRequestOptions,
|
|
21836
|
+
};
|
|
21837
|
+
},
|
|
21838
|
+
}
|
|
21839
|
+
};
|
|
21840
|
+
|
|
21841
|
+
/**
|
|
21842
|
+
* WordPressMaintenanceApi - functional programming interface
|
|
21843
|
+
* @export
|
|
21844
|
+
*/
|
|
21845
|
+
export const WordPressMaintenanceApiFp = function(configuration?: Configuration) {
|
|
21846
|
+
const localVarAxiosParamCreator = WordPressMaintenanceApiAxiosParamCreator(configuration)
|
|
21847
|
+
return {
|
|
21848
|
+
/**
|
|
21849
|
+
* 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).
|
|
21850
|
+
* @summary Show maintenance status
|
|
21851
|
+
* @param {string} username
|
|
21852
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21853
|
+
* @param {*} [options] Override http request option.
|
|
21854
|
+
* @throws {RequiredError}
|
|
21855
|
+
*/
|
|
21856
|
+
async showMaintenanceStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1MaintenanceMaintenanceStatusResource>> {
|
|
21857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.showMaintenanceStatusV1(username, software, options);
|
|
21858
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressMaintenanceApi.showMaintenanceStatusV1']?.[0]?.url;
|
|
21859
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21860
|
+
},
|
|
21861
|
+
/**
|
|
21862
|
+
* 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).
|
|
21863
|
+
* @summary Toggle maintenance mode
|
|
21864
|
+
* @param {string} username
|
|
21865
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21866
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
21867
|
+
* @param {*} [options] Override http request option.
|
|
21868
|
+
* @throws {RequiredError}
|
|
21869
|
+
*/
|
|
21870
|
+
async toggleMaintenanceModeV1(username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
21871
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options);
|
|
21872
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressMaintenanceApi.toggleMaintenanceModeV1']?.[0]?.url;
|
|
21873
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21874
|
+
},
|
|
21875
|
+
}
|
|
21876
|
+
};
|
|
21877
|
+
|
|
21878
|
+
/**
|
|
21879
|
+
* WordPressMaintenanceApi - factory interface
|
|
21880
|
+
* @export
|
|
21881
|
+
*/
|
|
21882
|
+
export const WordPressMaintenanceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
21883
|
+
const localVarFp = WordPressMaintenanceApiFp(configuration)
|
|
21884
|
+
return {
|
|
21885
|
+
/**
|
|
21886
|
+
* 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).
|
|
21887
|
+
* @summary Show maintenance status
|
|
21888
|
+
* @param {string} username
|
|
21889
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21890
|
+
* @param {*} [options] Override http request option.
|
|
21891
|
+
* @throws {RequiredError}
|
|
21892
|
+
*/
|
|
21893
|
+
showMaintenanceStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1MaintenanceMaintenanceStatusResource> {
|
|
21894
|
+
return localVarFp.showMaintenanceStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
21895
|
+
},
|
|
21896
|
+
/**
|
|
21897
|
+
* 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).
|
|
21898
|
+
* @summary Toggle maintenance mode
|
|
21899
|
+
* @param {string} username
|
|
21900
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21901
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
21902
|
+
* @param {*} [options] Override http request option.
|
|
21903
|
+
* @throws {RequiredError}
|
|
21904
|
+
*/
|
|
21905
|
+
toggleMaintenanceModeV1(username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
21906
|
+
return localVarFp.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(axios, basePath));
|
|
21907
|
+
},
|
|
21908
|
+
};
|
|
21909
|
+
};
|
|
21910
|
+
|
|
21911
|
+
/**
|
|
21912
|
+
* WordPressMaintenanceApi - object-oriented interface
|
|
21913
|
+
* @export
|
|
21914
|
+
* @class WordPressMaintenanceApi
|
|
21915
|
+
* @extends {BaseAPI}
|
|
21916
|
+
*/
|
|
21917
|
+
export class WordPressMaintenanceApi extends BaseAPI {
|
|
21918
|
+
/**
|
|
21919
|
+
* 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).
|
|
21920
|
+
* @summary Show maintenance status
|
|
21921
|
+
* @param {string} username
|
|
21922
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21923
|
+
* @param {*} [options] Override http request option.
|
|
21924
|
+
* @throws {RequiredError}
|
|
21925
|
+
* @memberof WordPressMaintenanceApi
|
|
21926
|
+
*/
|
|
21927
|
+
public showMaintenanceStatusV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
21928
|
+
return WordPressMaintenanceApiFp(this.configuration).showMaintenanceStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
21929
|
+
}
|
|
21930
|
+
|
|
21931
|
+
/**
|
|
21932
|
+
* 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).
|
|
21933
|
+
* @summary Toggle maintenance mode
|
|
21934
|
+
* @param {string} username
|
|
21935
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21936
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
21937
|
+
* @param {*} [options] Override http request option.
|
|
21938
|
+
* @throws {RequiredError}
|
|
21939
|
+
* @memberof WordPressMaintenanceApi
|
|
21940
|
+
*/
|
|
21941
|
+
public toggleMaintenanceModeV1(username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options?: RawAxiosRequestConfig) {
|
|
21942
|
+
return WordPressMaintenanceApiFp(this.configuration).toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21943
|
+
}
|
|
21944
|
+
}
|
|
21945
|
+
|
|
21946
|
+
|
|
21947
|
+
|
|
21948
|
+
/**
|
|
21949
|
+
* WordPressObjectCacheApi - axios parameter creator
|
|
21950
|
+
* @export
|
|
21951
|
+
*/
|
|
21952
|
+
export const WordPressObjectCacheApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
21953
|
+
return {
|
|
21954
|
+
/**
|
|
21955
|
+
* 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).
|
|
21956
|
+
* @summary Show Memcached object cache status
|
|
21957
|
+
* @param {string} username
|
|
21958
|
+
* @param {string} software WordPress installation (software) identifier
|
|
21959
|
+
* @param {*} [options] Override http request option.
|
|
21960
|
+
* @throws {RequiredError}
|
|
21961
|
+
*/
|
|
21962
|
+
showMemcachedObjectCacheStatusV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21963
|
+
// verify required parameter 'username' is not null or undefined
|
|
21964
|
+
assertParamExists('showMemcachedObjectCacheStatusV1', 'username', username)
|
|
21965
|
+
// verify required parameter 'software' is not null or undefined
|
|
21966
|
+
assertParamExists('showMemcachedObjectCacheStatusV1', 'software', software)
|
|
21967
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status`
|
|
21968
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
21969
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
21970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21971
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21972
|
+
let baseOptions;
|
|
21973
|
+
if (configuration) {
|
|
21974
|
+
baseOptions = configuration.baseOptions;
|
|
21975
|
+
}
|
|
21976
|
+
|
|
21977
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21978
|
+
const localVarHeaderParameter = {} as any;
|
|
21979
|
+
const localVarQueryParameter = {} as any;
|
|
21980
|
+
|
|
21981
|
+
// authentication apiToken required
|
|
21982
|
+
// http bearer authentication required
|
|
21983
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21984
|
+
|
|
21985
|
+
|
|
21986
|
+
|
|
21987
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21989
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21990
|
+
|
|
21991
|
+
return {
|
|
21992
|
+
url: toPathString(localVarUrlObj),
|
|
21993
|
+
options: localVarRequestOptions,
|
|
21994
|
+
};
|
|
21995
|
+
},
|
|
21996
|
+
/**
|
|
21997
|
+
* 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).
|
|
21998
|
+
* @summary Toggle Memcached object cache
|
|
21999
|
+
* @param {string} username
|
|
22000
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22001
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
22002
|
+
* @param {*} [options] Override http request option.
|
|
22003
|
+
* @throws {RequiredError}
|
|
22004
|
+
*/
|
|
22005
|
+
toggleMemcachedObjectCacheV1: async (username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22006
|
+
// verify required parameter 'username' is not null or undefined
|
|
22007
|
+
assertParamExists('toggleMemcachedObjectCacheV1', 'username', username)
|
|
22008
|
+
// verify required parameter 'software' is not null or undefined
|
|
22009
|
+
assertParamExists('toggleMemcachedObjectCacheV1', 'software', software)
|
|
22010
|
+
// verify required parameter 'wordPressV1MemcachedToggleMemcachedRequest' is not null or undefined
|
|
22011
|
+
assertParamExists('toggleMemcachedObjectCacheV1', 'wordPressV1MemcachedToggleMemcachedRequest', wordPressV1MemcachedToggleMemcachedRequest)
|
|
22012
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle`
|
|
22013
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
22014
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
22015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22016
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22017
|
+
let baseOptions;
|
|
22018
|
+
if (configuration) {
|
|
22019
|
+
baseOptions = configuration.baseOptions;
|
|
22020
|
+
}
|
|
22021
|
+
|
|
22022
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
22023
|
+
const localVarHeaderParameter = {} as any;
|
|
22024
|
+
const localVarQueryParameter = {} as any;
|
|
22025
|
+
|
|
22026
|
+
// authentication apiToken required
|
|
22027
|
+
// http bearer authentication required
|
|
22028
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
22029
|
+
|
|
22030
|
+
|
|
22031
|
+
|
|
22032
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22033
|
+
|
|
22034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22036
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22037
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1MemcachedToggleMemcachedRequest, localVarRequestOptions, configuration)
|
|
22038
|
+
|
|
22039
|
+
return {
|
|
22040
|
+
url: toPathString(localVarUrlObj),
|
|
22041
|
+
options: localVarRequestOptions,
|
|
22042
|
+
};
|
|
22043
|
+
},
|
|
22044
|
+
}
|
|
22045
|
+
};
|
|
22046
|
+
|
|
22047
|
+
/**
|
|
22048
|
+
* WordPressObjectCacheApi - functional programming interface
|
|
22049
|
+
* @export
|
|
22050
|
+
*/
|
|
22051
|
+
export const WordPressObjectCacheApiFp = function(configuration?: Configuration) {
|
|
22052
|
+
const localVarAxiosParamCreator = WordPressObjectCacheApiAxiosParamCreator(configuration)
|
|
22053
|
+
return {
|
|
22054
|
+
/**
|
|
22055
|
+
* 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).
|
|
22056
|
+
* @summary Show Memcached object cache status
|
|
22057
|
+
* @param {string} username
|
|
22058
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22059
|
+
* @param {*} [options] Override http request option.
|
|
22060
|
+
* @throws {RequiredError}
|
|
22061
|
+
*/
|
|
22062
|
+
async showMemcachedObjectCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1MemcachedMemcachedStatusResource>> {
|
|
22063
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.showMemcachedObjectCacheStatusV1(username, software, options);
|
|
22064
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressObjectCacheApi.showMemcachedObjectCacheStatusV1']?.[0]?.url;
|
|
22065
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22066
|
+
},
|
|
22067
|
+
/**
|
|
22068
|
+
* 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).
|
|
22069
|
+
* @summary Toggle Memcached object cache
|
|
22070
|
+
* @param {string} username
|
|
22071
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22072
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
22073
|
+
* @param {*} [options] Override http request option.
|
|
22074
|
+
* @throws {RequiredError}
|
|
22075
|
+
*/
|
|
22076
|
+
async toggleMemcachedObjectCacheV1(username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
22077
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options);
|
|
22078
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressObjectCacheApi.toggleMemcachedObjectCacheV1']?.[0]?.url;
|
|
22079
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22080
|
+
},
|
|
22081
|
+
}
|
|
22082
|
+
};
|
|
22083
|
+
|
|
22084
|
+
/**
|
|
22085
|
+
* WordPressObjectCacheApi - factory interface
|
|
22086
|
+
* @export
|
|
22087
|
+
*/
|
|
22088
|
+
export const WordPressObjectCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
22089
|
+
const localVarFp = WordPressObjectCacheApiFp(configuration)
|
|
22090
|
+
return {
|
|
22091
|
+
/**
|
|
22092
|
+
* 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).
|
|
22093
|
+
* @summary Show Memcached object cache status
|
|
22094
|
+
* @param {string} username
|
|
22095
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22096
|
+
* @param {*} [options] Override http request option.
|
|
22097
|
+
* @throws {RequiredError}
|
|
22098
|
+
*/
|
|
22099
|
+
showMemcachedObjectCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1MemcachedMemcachedStatusResource> {
|
|
22100
|
+
return localVarFp.showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
22101
|
+
},
|
|
22102
|
+
/**
|
|
22103
|
+
* 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).
|
|
22104
|
+
* @summary Toggle Memcached object cache
|
|
22105
|
+
* @param {string} username
|
|
22106
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22107
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
22108
|
+
* @param {*} [options] Override http request option.
|
|
22109
|
+
* @throws {RequiredError}
|
|
22110
|
+
*/
|
|
22111
|
+
toggleMemcachedObjectCacheV1(username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
22112
|
+
return localVarFp.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(axios, basePath));
|
|
22113
|
+
},
|
|
22114
|
+
};
|
|
22115
|
+
};
|
|
22116
|
+
|
|
22117
|
+
/**
|
|
22118
|
+
* WordPressObjectCacheApi - object-oriented interface
|
|
22119
|
+
* @export
|
|
22120
|
+
* @class WordPressObjectCacheApi
|
|
22121
|
+
* @extends {BaseAPI}
|
|
22122
|
+
*/
|
|
22123
|
+
export class WordPressObjectCacheApi extends BaseAPI {
|
|
22124
|
+
/**
|
|
22125
|
+
* 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).
|
|
22126
|
+
* @summary Show Memcached object cache status
|
|
22127
|
+
* @param {string} username
|
|
22128
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22129
|
+
* @param {*} [options] Override http request option.
|
|
22130
|
+
* @throws {RequiredError}
|
|
22131
|
+
* @memberof WordPressObjectCacheApi
|
|
22132
|
+
*/
|
|
22133
|
+
public showMemcachedObjectCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig) {
|
|
22134
|
+
return WordPressObjectCacheApiFp(this.configuration).showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
22135
|
+
}
|
|
22136
|
+
|
|
22137
|
+
/**
|
|
22138
|
+
* 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).
|
|
22139
|
+
* @summary Toggle Memcached object cache
|
|
22140
|
+
* @param {string} username
|
|
22141
|
+
* @param {string} software WordPress installation (software) identifier
|
|
22142
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
22143
|
+
* @param {*} [options] Override http request option.
|
|
22144
|
+
* @throws {RequiredError}
|
|
22145
|
+
* @memberof WordPressObjectCacheApi
|
|
22146
|
+
*/
|
|
22147
|
+
public toggleMemcachedObjectCacheV1(username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options?: RawAxiosRequestConfig) {
|
|
22148
|
+
return WordPressObjectCacheApiFp(this.configuration).toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(this.axios, this.basePath));
|
|
22149
|
+
}
|
|
22150
|
+
}
|
|
22151
|
+
|
|
20320
22152
|
|
|
20321
22153
|
|
|
20322
22154
|
/**
|