hostinger-api-sdk 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2249 -120
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1339 -73
  7. package/dist/api.js +1710 -104
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1339 -73
  15. package/dist/esm/api.js +1681 -96
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceSalesChannelsApi.md +66 -4
  27. package/docs/EcommerceStoresApi.md +54 -0
  28. package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
  30. package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
  31. package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
  32. package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
  33. package/docs/WordPressAIToolsApi.md +129 -0
  34. package/docs/WordPressInstallationsApi.md +408 -0
  35. package/docs/WordPressLiteSpeedCacheApi.md +121 -0
  36. package/docs/WordPressLoginApi.md +64 -0
  37. package/docs/WordPressMaintenanceApi.md +126 -0
  38. package/docs/WordPressObjectCacheApi.md +126 -0
  39. package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
  40. package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
  41. package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
  42. package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
  43. package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
  44. package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
  45. package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
  46. package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
  47. package/docs/WordPressV1InstallationsVersionResource.md +22 -0
  48. package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
  49. package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
  50. package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
  51. package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
  52. package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
  53. package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
  54. package/index.ts +1 -1
  55. 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.2.0
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
@@ -1876,6 +1876,19 @@ export const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTy
1876
1876
 
1877
1877
  export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
1878
1878
 
1879
+ /**
1880
+ *
1881
+ * @export
1882
+ * @interface EcommerceV1SalesChannelSalesChannelUpdateResource
1883
+ */
1884
+ export interface EcommerceV1SalesChannelSalesChannelUpdateResource {
1885
+ /**
1886
+ *
1887
+ * @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
1888
+ * @memberof EcommerceV1SalesChannelSalesChannelUpdateResource
1889
+ */
1890
+ 'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
1891
+ }
1879
1892
  /**
1880
1893
  *
1881
1894
  * @export
@@ -1908,6 +1921,25 @@ export const EcommerceV1SalesChannelStoreRequestTypeEnum = {
1908
1921
 
1909
1922
  export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
1910
1923
 
1924
+ /**
1925
+ *
1926
+ * @export
1927
+ * @interface EcommerceV1SalesChannelUpdateRequest
1928
+ */
1929
+ export interface EcommerceV1SalesChannelUpdateRequest {
1930
+ /**
1931
+ * Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
1932
+ * @type {string}
1933
+ * @memberof EcommerceV1SalesChannelUpdateRequest
1934
+ */
1935
+ 'name': string | null;
1936
+ /**
1937
+ * Public address where the custom sales channel lives. Pass null to clear it.
1938
+ * @type {string}
1939
+ * @memberof EcommerceV1SalesChannelUpdateRequest
1940
+ */
1941
+ 'url': string | null;
1942
+ }
1911
1943
  /**
1912
1944
  *
1913
1945
  * @export
@@ -2083,6 +2115,111 @@ export interface EcommerceV1StoreStoreDeleteResource {
2083
2115
  */
2084
2116
  'is_deleted': boolean;
2085
2117
  }
2118
+ /**
2119
+ *
2120
+ * @export
2121
+ * @interface EcommerceV1StoreStoreMetadataResource
2122
+ */
2123
+ export interface EcommerceV1StoreStoreMetadataResource {
2124
+ /**
2125
+ *
2126
+ * @type {EcommerceV1StoreStoreMetadataResourceMetadata}
2127
+ * @memberof EcommerceV1StoreStoreMetadataResource
2128
+ */
2129
+ 'metadata': EcommerceV1StoreStoreMetadataResourceMetadata;
2130
+ }
2131
+ /**
2132
+ *
2133
+ * @export
2134
+ * @interface EcommerceV1StoreStoreMetadataResourceMetadata
2135
+ */
2136
+ export interface EcommerceV1StoreStoreMetadataResourceMetadata {
2137
+ /**
2138
+ * Whether the store has at least one payment method connected.
2139
+ * @type {boolean}
2140
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2141
+ */
2142
+ 'has_payment_methods': boolean;
2143
+ /**
2144
+ * Whether the store has at least one shipping option configured.
2145
+ * @type {boolean}
2146
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2147
+ */
2148
+ 'has_shipping': boolean;
2149
+ /**
2150
+ * The default currency code of the store.
2151
+ * @type {string}
2152
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2153
+ */
2154
+ 'default_currency_code': string;
2155
+ /**
2156
+ *
2157
+ * @type {EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency}
2158
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2159
+ */
2160
+ 'default_currency': EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency | null;
2161
+ }
2162
+ /**
2163
+ * The store\'s default currency, or null when unset.
2164
+ * @export
2165
+ * @interface EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2166
+ */
2167
+ export interface EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency {
2168
+ /**
2169
+ *
2170
+ * @type {string}
2171
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2172
+ */
2173
+ 'code': string;
2174
+ /**
2175
+ *
2176
+ * @type {string}
2177
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2178
+ */
2179
+ 'symbol': string;
2180
+ /**
2181
+ *
2182
+ * @type {string}
2183
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2184
+ */
2185
+ 'symbol_native': string;
2186
+ /**
2187
+ *
2188
+ * @type {string}
2189
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2190
+ */
2191
+ 'name': string;
2192
+ /**
2193
+ *
2194
+ * @type {string}
2195
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2196
+ */
2197
+ 'name_plural': string;
2198
+ /**
2199
+ *
2200
+ * @type {number}
2201
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2202
+ */
2203
+ 'decimal_digits': number;
2204
+ /**
2205
+ *
2206
+ * @type {number}
2207
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2208
+ */
2209
+ 'rounding': number;
2210
+ /**
2211
+ *
2212
+ * @type {string}
2213
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2214
+ */
2215
+ 'template': string | null;
2216
+ /**
2217
+ *
2218
+ * @type {number}
2219
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2220
+ */
2221
+ 'min_amount': number | null;
2222
+ }
2086
2223
  /**
2087
2224
  *
2088
2225
  * @export
@@ -5537,6 +5674,109 @@ export interface WordPressV1CommonVulnerabilityResource {
5537
5674
  */
5538
5675
  'direct_url': string;
5539
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
+ }
5540
5780
  /**
5541
5781
  *
5542
5782
  * @export
@@ -5651,6 +5891,108 @@ export interface WordPressV1InstallationsInstallWordPressRequestDatabase {
5651
5891
  */
5652
5892
  'password': string | null;
5653
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
+ }
5654
5996
  /**
5655
5997
  *
5656
5998
  * @export
@@ -5733,48 +6075,160 @@ export interface WordPressV1InstallationsWordPressInstallationResource {
5733
6075
  /**
5734
6076
  *
5735
6077
  * @export
5736
- * @interface WordPressV1PluginsActivatePluginRequest
6078
+ * @interface WordPressV1LitespeedLitespeedCacheStatusResource
5737
6079
  */
5738
- export interface WordPressV1PluginsActivatePluginRequest {
6080
+ export interface WordPressV1LitespeedLitespeedCacheStatusResource {
5739
6081
  /**
5740
- * Slug of the installed plugin to activate.
5741
- * @type {string}
5742
- * @memberof WordPressV1PluginsActivatePluginRequest
6082
+ * Whether the LiteSpeed Cache plugin is installed on the WordPress installation
6083
+ * @type {boolean}
6084
+ * @memberof WordPressV1LitespeedLitespeedCacheStatusResource
5743
6085
  */
5744
- 'plugin': string;
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;
5745
6093
  }
5746
6094
  /**
5747
6095
  *
5748
6096
  * @export
5749
- * @interface WordPressV1PluginsAvailablePluginResource
6097
+ * @interface WordPressV1LoginLoginLinksResource
5750
6098
  */
5751
- export interface WordPressV1PluginsAvailablePluginResource {
6099
+ export interface WordPressV1LoginLoginLinksResource {
5752
6100
  /**
5753
- * Plugin slug used when installing the plugin
6101
+ * Primary auto-login URL for the WordPress installation
5754
6102
  * @type {string}
5755
- * @memberof WordPressV1PluginsAvailablePluginResource
6103
+ * @memberof WordPressV1LoginLoginLinksResource
5756
6104
  */
5757
- 'slug': string;
6105
+ 'login': string | null;
5758
6106
  /**
5759
- * Human readable plugin name
6107
+ * Fallback auto-login URL using the temporary Hostinger domain
5760
6108
  * @type {string}
5761
- * @memberof WordPressV1PluginsAvailablePluginResource
6109
+ * @memberof WordPressV1LoginLoginLinksResource
5762
6110
  */
5763
- 'title': string;
6111
+ 'fallback': string | null;
5764
6112
  /**
5765
- * Short plugin description
6113
+ * Default WordPress admin URL used when auto-login is unavailable
5766
6114
  * @type {string}
5767
- * @memberof WordPressV1PluginsAvailablePluginResource
6115
+ * @memberof WordPressV1LoginLoginLinksResource
5768
6116
  */
5769
- 'description': string;
6117
+ 'default': string | null;
6118
+ }
6119
+ /**
6120
+ *
6121
+ * @export
6122
+ * @interface WordPressV1MaintenanceMaintenanceStatusResource
6123
+ */
6124
+ export interface WordPressV1MaintenanceMaintenanceStatusResource {
5770
6125
  /**
5771
- * Translation slug for the onboarding description
6126
+ * Current maintenance mode status for the WordPress installation
5772
6127
  * @type {string}
5773
- * @memberof WordPressV1PluginsAvailablePluginResource
6128
+ * @memberof WordPressV1MaintenanceMaintenanceStatusResource
5774
6129
  */
5775
- 'onboarding_description_slug': string | null;
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 {
5776
6146
  /**
5777
- * Translation slug for the recommended description
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
+ }
6187
+ /**
6188
+ *
6189
+ * @export
6190
+ * @interface WordPressV1PluginsActivatePluginRequest
6191
+ */
6192
+ export interface WordPressV1PluginsActivatePluginRequest {
6193
+ /**
6194
+ * Slug of the installed plugin to activate.
6195
+ * @type {string}
6196
+ * @memberof WordPressV1PluginsActivatePluginRequest
6197
+ */
6198
+ 'plugin': string;
6199
+ }
6200
+ /**
6201
+ *
6202
+ * @export
6203
+ * @interface WordPressV1PluginsAvailablePluginResource
6204
+ */
6205
+ export interface WordPressV1PluginsAvailablePluginResource {
6206
+ /**
6207
+ * Plugin slug used when installing the plugin
6208
+ * @type {string}
6209
+ * @memberof WordPressV1PluginsAvailablePluginResource
6210
+ */
6211
+ 'slug': string;
6212
+ /**
6213
+ * Human readable plugin name
6214
+ * @type {string}
6215
+ * @memberof WordPressV1PluginsAvailablePluginResource
6216
+ */
6217
+ 'title': string;
6218
+ /**
6219
+ * Short plugin description
6220
+ * @type {string}
6221
+ * @memberof WordPressV1PluginsAvailablePluginResource
6222
+ */
6223
+ 'description': string;
6224
+ /**
6225
+ * Translation slug for the onboarding description
6226
+ * @type {string}
6227
+ * @memberof WordPressV1PluginsAvailablePluginResource
6228
+ */
6229
+ 'onboarding_description_slug': string | null;
6230
+ /**
6231
+ * Translation slug for the recommended description
5778
6232
  * @type {string}
5779
6233
  * @memberof WordPressV1PluginsAvailablePluginResource
5780
6234
  */
@@ -9559,17 +10013,17 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
9559
10013
  return {
9560
10014
  /**
9561
10015
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9562
- * @summary Create a custom sales channel
10016
+ * @summary Create custom sales channel
9563
10017
  * @param {string} storeId The ID of the store to create the sales channel for.
9564
10018
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9565
10019
  * @param {*} [options] Override http request option.
9566
10020
  * @throws {RequiredError}
9567
10021
  */
9568
- createACustomSalesChannelV1: async (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10022
+ createCustomSalesChannelV1: async (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9569
10023
  // verify required parameter 'storeId' is not null or undefined
9570
- assertParamExists('createACustomSalesChannelV1', 'storeId', storeId)
10024
+ assertParamExists('createCustomSalesChannelV1', 'storeId', storeId)
9571
10025
  // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
9572
- assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest)
10026
+ assertParamExists('createCustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest)
9573
10027
  const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
9574
10028
  .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9575
10029
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -9634,6 +10088,54 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
9634
10088
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9635
10089
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9636
10090
 
10091
+ return {
10092
+ url: toPathString(localVarUrlObj),
10093
+ options: localVarRequestOptions,
10094
+ };
10095
+ },
10096
+ /**
10097
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
10098
+ * @summary Update sales channel
10099
+ * @param {string} storeId The ID of the store that owns the sales channel.
10100
+ * @param {string} salesChannelId The ID of the sales channel to update.
10101
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
10102
+ * @param {*} [options] Override http request option.
10103
+ * @throws {RequiredError}
10104
+ */
10105
+ updateSalesChannelV1: async (storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10106
+ // verify required parameter 'storeId' is not null or undefined
10107
+ assertParamExists('updateSalesChannelV1', 'storeId', storeId)
10108
+ // verify required parameter 'salesChannelId' is not null or undefined
10109
+ assertParamExists('updateSalesChannelV1', 'salesChannelId', salesChannelId)
10110
+ // verify required parameter 'ecommerceV1SalesChannelUpdateRequest' is not null or undefined
10111
+ assertParamExists('updateSalesChannelV1', 'ecommerceV1SalesChannelUpdateRequest', ecommerceV1SalesChannelUpdateRequest)
10112
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
10113
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
10114
+ .replace(`{${"sales_channel_id"}}`, encodeURIComponent(String(salesChannelId)));
10115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10117
+ let baseOptions;
10118
+ if (configuration) {
10119
+ baseOptions = configuration.baseOptions;
10120
+ }
10121
+
10122
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10123
+ const localVarHeaderParameter = {} as any;
10124
+ const localVarQueryParameter = {} as any;
10125
+
10126
+ // authentication apiToken required
10127
+ // http bearer authentication required
10128
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10129
+
10130
+
10131
+
10132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10133
+
10134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10137
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelUpdateRequest, localVarRequestOptions, configuration)
10138
+
9637
10139
  return {
9638
10140
  url: toPathString(localVarUrlObj),
9639
10141
  options: localVarRequestOptions,
@@ -9651,15 +10153,15 @@ export const EcommerceSalesChannelsApiFp = function(configuration?: Configuratio
9651
10153
  return {
9652
10154
  /**
9653
10155
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9654
- * @summary Create a custom sales channel
10156
+ * @summary Create custom sales channel
9655
10157
  * @param {string} storeId The ID of the store to create the sales channel for.
9656
10158
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9657
10159
  * @param {*} [options] Override http request option.
9658
10160
  * @throws {RequiredError}
9659
10161
  */
9660
- async createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>> {
9661
- const localVarAxiosArgs = await localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
9662
- const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']?.[0]?.url;
10162
+ async createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>> {
10163
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
10164
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.createCustomSalesChannelV1']?.[0]?.url;
9663
10165
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9664
10166
  },
9665
10167
  /**
@@ -9674,6 +10176,20 @@ export const EcommerceSalesChannelsApiFp = function(configuration?: Configuratio
9674
10176
  const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']?.[0]?.url;
9675
10177
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9676
10178
  },
10179
+ /**
10180
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
10181
+ * @summary Update sales channel
10182
+ * @param {string} storeId The ID of the store that owns the sales channel.
10183
+ * @param {string} salesChannelId The ID of the sales channel to update.
10184
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
10185
+ * @param {*} [options] Override http request option.
10186
+ * @throws {RequiredError}
10187
+ */
10188
+ async updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelUpdateResource>> {
10189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options);
10190
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.updateSalesChannelV1']?.[0]?.url;
10191
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10192
+ },
9677
10193
  }
9678
10194
  };
9679
10195
 
@@ -9686,14 +10202,14 @@ export const EcommerceSalesChannelsApiFactory = function (configuration?: Config
9686
10202
  return {
9687
10203
  /**
9688
10204
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9689
- * @summary Create a custom sales channel
10205
+ * @summary Create custom sales channel
9690
10206
  * @param {string} storeId The ID of the store to create the sales channel for.
9691
10207
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9692
10208
  * @param {*} [options] Override http request option.
9693
10209
  * @throws {RequiredError}
9694
10210
  */
9695
- createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource> {
9696
- return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
10211
+ createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource> {
10212
+ return localVarFp.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
9697
10213
  },
9698
10214
  /**
9699
10215
  * List a store\'s active sales channels with their full metadata.
@@ -9705,6 +10221,18 @@ export const EcommerceSalesChannelsApiFactory = function (configuration?: Config
9705
10221
  listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource> {
9706
10222
  return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
9707
10223
  },
10224
+ /**
10225
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
10226
+ * @summary Update sales channel
10227
+ * @param {string} storeId The ID of the store that owns the sales channel.
10228
+ * @param {string} salesChannelId The ID of the sales channel to update.
10229
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
10230
+ * @param {*} [options] Override http request option.
10231
+ * @throws {RequiredError}
10232
+ */
10233
+ updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelUpdateResource> {
10234
+ return localVarFp.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(axios, basePath));
10235
+ },
9708
10236
  };
9709
10237
  };
9710
10238
 
@@ -9717,15 +10245,15 @@ export const EcommerceSalesChannelsApiFactory = function (configuration?: Config
9717
10245
  export class EcommerceSalesChannelsApi extends BaseAPI {
9718
10246
  /**
9719
10247
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9720
- * @summary Create a custom sales channel
10248
+ * @summary Create custom sales channel
9721
10249
  * @param {string} storeId The ID of the store to create the sales channel for.
9722
10250
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9723
10251
  * @param {*} [options] Override http request option.
9724
10252
  * @throws {RequiredError}
9725
10253
  * @memberof EcommerceSalesChannelsApi
9726
10254
  */
9727
- public createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) {
9728
- return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
10255
+ public createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) {
10256
+ return EcommerceSalesChannelsApiFp(this.configuration).createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
9729
10257
  }
9730
10258
 
9731
10259
  /**
@@ -9739,6 +10267,20 @@ export class EcommerceSalesChannelsApi extends BaseAPI {
9739
10267
  public listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig) {
9740
10268
  return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
9741
10269
  }
10270
+
10271
+ /**
10272
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
10273
+ * @summary Update sales channel
10274
+ * @param {string} storeId The ID of the store that owns the sales channel.
10275
+ * @param {string} salesChannelId The ID of the sales channel to update.
10276
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
10277
+ * @param {*} [options] Override http request option.
10278
+ * @throws {RequiredError}
10279
+ * @memberof EcommerceSalesChannelsApi
10280
+ */
10281
+ public updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig) {
10282
+ return EcommerceSalesChannelsApiFp(this.configuration).updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
10283
+ }
9742
10284
  }
9743
10285
 
9744
10286
 
@@ -9938,6 +10480,44 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
9938
10480
 
9939
10481
 
9940
10482
 
10483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10485
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10486
+
10487
+ return {
10488
+ url: toPathString(localVarUrlObj),
10489
+ options: localVarRequestOptions,
10490
+ };
10491
+ },
10492
+ /**
10493
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
10494
+ * @summary Get store metadata
10495
+ * @param {string} storeId The ID of the store to read metadata for.
10496
+ * @param {*} [options] Override http request option.
10497
+ * @throws {RequiredError}
10498
+ */
10499
+ getStoreMetadataV1: async (storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10500
+ // verify required parameter 'storeId' is not null or undefined
10501
+ assertParamExists('getStoreMetadataV1', 'storeId', storeId)
10502
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/metadata`
10503
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
10504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10506
+ let baseOptions;
10507
+ if (configuration) {
10508
+ baseOptions = configuration.baseOptions;
10509
+ }
10510
+
10511
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10512
+ const localVarHeaderParameter = {} as any;
10513
+ const localVarQueryParameter = {} as any;
10514
+
10515
+ // authentication apiToken required
10516
+ // http bearer authentication required
10517
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10518
+
10519
+
10520
+
9941
10521
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9942
10522
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9943
10523
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10020,6 +10600,18 @@ export const EcommerceStoresApiFp = function(configuration?: Configuration) {
10020
10600
  const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.deleteStoreV1']?.[0]?.url;
10021
10601
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10022
10602
  },
10603
+ /**
10604
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
10605
+ * @summary Get store metadata
10606
+ * @param {string} storeId The ID of the store to read metadata for.
10607
+ * @param {*} [options] Override http request option.
10608
+ * @throws {RequiredError}
10609
+ */
10610
+ async getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreMetadataResource>> {
10611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStoreMetadataV1(storeId, options);
10612
+ const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.getStoreMetadataV1']?.[0]?.url;
10613
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10614
+ },
10023
10615
  /**
10024
10616
  * Retrieve the stores associated with your account.
10025
10617
  * @summary Get stores
@@ -10062,6 +10654,16 @@ export const EcommerceStoresApiFactory = function (configuration?: Configuration
10062
10654
  deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreDeleteResource> {
10063
10655
  return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
10064
10656
  },
10657
+ /**
10658
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
10659
+ * @summary Get store metadata
10660
+ * @param {string} storeId The ID of the store to read metadata for.
10661
+ * @param {*} [options] Override http request option.
10662
+ * @throws {RequiredError}
10663
+ */
10664
+ getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreMetadataResource> {
10665
+ return localVarFp.getStoreMetadataV1(storeId, options).then((request) => request(axios, basePath));
10666
+ },
10065
10667
  /**
10066
10668
  * Retrieve the stores associated with your account.
10067
10669
  * @summary Get stores
@@ -10106,6 +10708,18 @@ export class EcommerceStoresApi extends BaseAPI {
10106
10708
  return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
10107
10709
  }
10108
10710
 
10711
+ /**
10712
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
10713
+ * @summary Get store metadata
10714
+ * @param {string} storeId The ID of the store to read metadata for.
10715
+ * @param {*} [options] Override http request option.
10716
+ * @throws {RequiredError}
10717
+ * @memberof EcommerceStoresApi
10718
+ */
10719
+ public getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig) {
10720
+ return EcommerceStoresApiFp(this.configuration).getStoreMetadataV1(storeId, options).then((request) => request(this.axios, this.basePath));
10721
+ }
10722
+
10109
10723
  /**
10110
10724
  * Retrieve the stores associated with your account.
10111
10725
  * @summary Get stores
@@ -19805,26 +20419,30 @@ export class VPSVirtualMachineApi extends BaseAPI {
19805
20419
 
19806
20420
 
19807
20421
  /**
19808
- * WordPressInstallationsApi - axios parameter creator
20422
+ * WordPressAIToolsApi - axios parameter creator
19809
20423
  * @export
19810
20424
  */
19811
- export const WordPressInstallationsApiAxiosParamCreator = function (configuration?: Configuration) {
20425
+ export const WordPressAIToolsApiAxiosParamCreator = function (configuration?: Configuration) {
19812
20426
  return {
19813
20427
  /**
19814
- * 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.
19815
- * @summary Install WordPress
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
19816
20430
  * @param {string} username
19817
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
20431
+ * @param {string} software WordPress installation (software) identifier
20432
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
19818
20433
  * @param {*} [options] Override http request option.
19819
20434
  * @throws {RequiredError}
19820
20435
  */
19821
- installWordPressV1: async (username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20436
+ setAIOptionStatusV1: async (username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19822
20437
  // verify required parameter 'username' is not null or undefined
19823
- assertParamExists('installWordPressV1', 'username', username)
19824
- // verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
19825
- assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest)
19826
- const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
19827
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
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)));
19828
20446
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19829
20447
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19830
20448
  let baseOptions;
@@ -19832,7 +20450,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
19832
20450
  baseOptions = configuration.baseOptions;
19833
20451
  }
19834
20452
 
19835
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20453
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
19836
20454
  const localVarHeaderParameter = {} as any;
19837
20455
  const localVarQueryParameter = {} as any;
19838
20456
 
@@ -19847,7 +20465,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
19847
20465
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19848
20466
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19849
20467
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19850
- localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration)
20468
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, localVarRequestOptions, configuration)
19851
20469
 
19852
20470
  return {
19853
20471
  url: toPathString(localVarUrlObj),
@@ -19855,16 +20473,22 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
19855
20473
  };
19856
20474
  },
19857
20475
  /**
19858
- * 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.
19859
- * @summary List WordPress installations
19860
- * @param {string | null} [username] Filter by specific username
19861
- * @param {string | null} [domain] Filter by domain name (exact match)
19862
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
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.
19863
20481
  * @param {*} [options] Override http request option.
19864
20482
  * @throws {RequiredError}
19865
20483
  */
19866
- listWordPressInstallationsV1: async (username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19867
- const localVarPath = `/api/hosting/v1/wordpress/installations`;
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)));
19868
20492
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19869
20493
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19870
20494
  let baseOptions;
@@ -19880,16 +20504,8 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
19880
20504
  // http bearer authentication required
19881
20505
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
19882
20506
 
19883
- if (username !== undefined) {
19884
- localVarQueryParameter['username'] = username;
19885
- }
19886
-
19887
- if (domain !== undefined) {
19888
- localVarQueryParameter['domain'] = domain;
19889
- }
19890
-
19891
- if (ownership !== undefined) {
19892
- localVarQueryParameter['ownership'] = ownership;
20507
+ if (option !== undefined) {
20508
+ localVarQueryParameter['option'] = option;
19893
20509
  }
19894
20510
 
19895
20511
 
@@ -19907,119 +20523,1632 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
19907
20523
  };
19908
20524
 
19909
20525
  /**
19910
- * WordPressInstallationsApi - functional programming interface
20526
+ * WordPressAIToolsApi - functional programming interface
19911
20527
  * @export
19912
20528
  */
19913
- export const WordPressInstallationsApiFp = function(configuration?: Configuration) {
19914
- const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration)
20529
+ export const WordPressAIToolsApiFp = function(configuration?: Configuration) {
20530
+ const localVarAxiosParamCreator = WordPressAIToolsApiAxiosParamCreator(configuration)
19915
20531
  return {
19916
20532
  /**
19917
- * 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.
19918
- * @summary Install WordPress
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
19919
20535
  * @param {string} username
19920
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
20536
+ * @param {string} software WordPress installation (software) identifier
20537
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
19921
20538
  * @param {*} [options] Override http request option.
19922
20539
  * @throws {RequiredError}
19923
20540
  */
19924
- async installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
19925
- const localVarAxiosArgs = await localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
19926
- const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.installWordPressV1']?.[0]?.url;
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;
19927
20544
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19928
20545
  },
19929
20546
  /**
19930
- * 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.
19931
- * @summary List WordPress installations
19932
- * @param {string | null} [username] Filter by specific username
19933
- * @param {string | null} [domain] Filter by domain name (exact match)
19934
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
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.
19935
20552
  * @param {*} [options] Override http request option.
19936
20553
  * @throws {RequiredError}
19937
20554
  */
19938
- async listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>>> {
19939
- const localVarAxiosArgs = await localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
19940
- const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']?.[0]?.url;
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;
19941
20558
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19942
20559
  },
19943
20560
  }
19944
20561
  };
19945
20562
 
19946
20563
  /**
19947
- * WordPressInstallationsApi - factory interface
20564
+ * WordPressAIToolsApi - factory interface
19948
20565
  * @export
19949
20566
  */
19950
- export const WordPressInstallationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19951
- const localVarFp = WordPressInstallationsApiFp(configuration)
20567
+ export const WordPressAIToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20568
+ const localVarFp = WordPressAIToolsApiFp(configuration)
19952
20569
  return {
19953
20570
  /**
19954
- * 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.
19955
- * @summary Install WordPress
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
19956
20573
  * @param {string} username
19957
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
20574
+ * @param {string} software WordPress installation (software) identifier
20575
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
19958
20576
  * @param {*} [options] Override http request option.
19959
20577
  * @throws {RequiredError}
19960
20578
  */
19961
- installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
19962
- return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
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));
19963
20581
  },
19964
20582
  /**
19965
- * 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.
19966
- * @summary List WordPress installations
19967
- * @param {string | null} [username] Filter by specific username
19968
- * @param {string | null} [domain] Filter by domain name (exact match)
19969
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
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.
19970
20588
  * @param {*} [options] Override http request option.
19971
20589
  * @throws {RequiredError}
19972
20590
  */
19973
- listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>> {
19974
- return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
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));
19975
20593
  },
19976
20594
  };
19977
20595
  };
19978
20596
 
19979
20597
  /**
19980
- * WordPressInstallationsApi - object-oriented interface
20598
+ * WordPressAIToolsApi - object-oriented interface
19981
20599
  * @export
19982
- * @class WordPressInstallationsApi
20600
+ * @class WordPressAIToolsApi
19983
20601
  * @extends {BaseAPI}
19984
20602
  */
19985
- export class WordPressInstallationsApi extends BaseAPI {
20603
+ export class WordPressAIToolsApi extends BaseAPI {
19986
20604
  /**
19987
- * 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.
19988
- * @summary Install WordPress
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
19989
20607
  * @param {string} username
19990
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
20608
+ * @param {string} software WordPress installation (software) identifier
20609
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
19991
20610
  * @param {*} [options] Override http request option.
19992
20611
  * @throws {RequiredError}
19993
- * @memberof WordPressInstallationsApi
20612
+ * @memberof WordPressAIToolsApi
19994
20613
  */
19995
- public installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig) {
19996
- return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
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));
19997
20616
  }
19998
20617
 
19999
20618
  /**
20000
- * 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.
20001
- * @summary List WordPress installations
20002
- * @param {string | null} [username] Filter by specific username
20003
- * @param {string | null} [domain] Filter by domain name (exact match)
20004
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
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.
20005
20624
  * @param {*} [options] Override http request option.
20006
20625
  * @throws {RequiredError}
20007
- * @memberof WordPressInstallationsApi
20626
+ * @memberof WordPressAIToolsApi
20008
20627
  */
20009
- public listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig) {
20010
- return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
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));
20011
20630
  }
20012
20631
  }
20013
20632
 
20014
20633
  /**
20015
20634
  * @export
20016
20635
  */
20017
- export const ListWordPressInstallationsV1OwnershipEnum = {
20018
- Owned: 'owned',
20019
- Managed: 'managed',
20020
- All: 'all'
20636
+ export const ShowAIOptionStatusV1OptionEnum = {
20637
+ Llmstxt: 'llmstxt',
20638
+ Web2agent: 'web2agent'
20021
20639
  } as const;
20022
- export type ListWordPressInstallationsV1OwnershipEnum = typeof ListWordPressInstallationsV1OwnershipEnum[keyof typeof ListWordPressInstallationsV1OwnershipEnum];
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 \&quot;owned\&quot;. Use \&quot;all\&quot; 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 \&quot;owned\&quot;. Use \&quot;all\&quot; 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 \&quot;owned\&quot;. Use \&quot;all\&quot; 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 \&quot;owned\&quot;. Use \&quot;all\&quot; 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
+
20023
22152
 
20024
22153
 
20025
22154
  /**