hostinger-api-sdk 1.2.1 → 1.4.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 (60) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2842 -568
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1547 -277
  7. package/dist/api.js +2420 -545
  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 +1547 -277
  15. package/dist/esm/api.js +4581 -2731
  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/HostingCacheApi.md +295 -0
  27. package/docs/VPSActionsApi.md +2 -2
  28. package/docs/VPSBackupsApi.md +2 -2
  29. package/docs/VPSFirewallApi.md +2 -2
  30. package/docs/VPSPostInstallScriptsApi.md +2 -2
  31. package/docs/VPSPublicKeysApi.md +2 -2
  32. package/docs/{VPSGetActionsV1200Response.md → VPSV1ActionListResponse.md} +3 -3
  33. package/docs/{VPSGetBackupsV1200Response.md → VPSV1BackupListResponse.md} +3 -3
  34. package/docs/{VPSGetFirewallListV1200Response.md → VPSV1FirewallListResponse.md} +3 -3
  35. package/docs/{VPSGetPostInstallScriptsV1200Response.md → VPSV1PostInstallScriptListResponse.md} +3 -3
  36. package/docs/{VPSGetPublicKeysV1200Response.md → VPSV1PublicKeyListResponse.md} +3 -3
  37. package/docs/VPSVirtualMachineApi.md +2 -2
  38. package/docs/WordPressAIToolsApi.md +129 -0
  39. package/docs/WordPressInstallationsApi.md +408 -0
  40. package/docs/WordPressLiteSpeedCacheApi.md +121 -0
  41. package/docs/WordPressLoginApi.md +64 -0
  42. package/docs/WordPressMaintenanceApi.md +126 -0
  43. package/docs/WordPressObjectCacheApi.md +126 -0
  44. package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
  45. package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
  46. package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
  47. package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
  48. package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
  49. package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
  50. package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
  51. package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
  52. package/docs/WordPressV1InstallationsVersionResource.md +22 -0
  53. package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
  54. package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
  55. package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
  56. package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
  57. package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
  58. package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
  59. package/index.ts +1 -1
  60. 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.1
6
+ * API Version: 1.4.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
@@ -4203,101 +4203,6 @@ export interface ReachV1ProfilesProfileResourceProfilesInner {
4203
4203
  */
4204
4204
  'updated_at': string;
4205
4205
  }
4206
- /**
4207
- *
4208
- * @export
4209
- * @interface VPSGetActionsV1200Response
4210
- */
4211
- export interface VPSGetActionsV1200Response {
4212
- /**
4213
- * Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
4214
- * @type {Array<VPSV1ActionActionResource>}
4215
- * @memberof VPSGetActionsV1200Response
4216
- */
4217
- 'data': Array<VPSV1ActionActionResource>;
4218
- /**
4219
- *
4220
- * @type {CommonSchemaPaginationMetaSchema}
4221
- * @memberof VPSGetActionsV1200Response
4222
- */
4223
- 'meta': CommonSchemaPaginationMetaSchema;
4224
- }
4225
- /**
4226
- *
4227
- * @export
4228
- * @interface VPSGetBackupsV1200Response
4229
- */
4230
- export interface VPSGetBackupsV1200Response {
4231
- /**
4232
- * Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
4233
- * @type {Array<VPSV1BackupBackupResource>}
4234
- * @memberof VPSGetBackupsV1200Response
4235
- */
4236
- 'data': Array<VPSV1BackupBackupResource>;
4237
- /**
4238
- *
4239
- * @type {CommonSchemaPaginationMetaSchema}
4240
- * @memberof VPSGetBackupsV1200Response
4241
- */
4242
- 'meta': CommonSchemaPaginationMetaSchema;
4243
- }
4244
- /**
4245
- *
4246
- * @export
4247
- * @interface VPSGetFirewallListV1200Response
4248
- */
4249
- export interface VPSGetFirewallListV1200Response {
4250
- /**
4251
- * Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
4252
- * @type {Array<VPSV1FirewallFirewallResource>}
4253
- * @memberof VPSGetFirewallListV1200Response
4254
- */
4255
- 'data': Array<VPSV1FirewallFirewallResource>;
4256
- /**
4257
- *
4258
- * @type {CommonSchemaPaginationMetaSchema}
4259
- * @memberof VPSGetFirewallListV1200Response
4260
- */
4261
- 'meta': CommonSchemaPaginationMetaSchema;
4262
- }
4263
- /**
4264
- *
4265
- * @export
4266
- * @interface VPSGetPostInstallScriptsV1200Response
4267
- */
4268
- export interface VPSGetPostInstallScriptsV1200Response {
4269
- /**
4270
- * Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
4271
- * @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
4272
- * @memberof VPSGetPostInstallScriptsV1200Response
4273
- */
4274
- 'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
4275
- /**
4276
- *
4277
- * @type {CommonSchemaPaginationMetaSchema}
4278
- * @memberof VPSGetPostInstallScriptsV1200Response
4279
- */
4280
- 'meta': CommonSchemaPaginationMetaSchema;
4281
- }
4282
- /**
4283
- *
4284
- * @export
4285
- * @interface VPSGetPublicKeysV1200Response
4286
- */
4287
- export interface VPSGetPublicKeysV1200Response {
4288
- /**
4289
- * Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
4290
- * @type {Array<VPSV1PublicKeyPublicKeyResource>}
4291
- * @memberof VPSGetPublicKeysV1200Response
4292
- */
4293
- 'data': Array<VPSV1PublicKeyPublicKeyResource>;
4294
- /**
4295
- *
4296
- * @type {CommonSchemaPaginationMetaSchema}
4297
- * @memberof VPSGetPublicKeysV1200Response
4298
- */
4299
- 'meta': CommonSchemaPaginationMetaSchema;
4300
- }
4301
4206
  /**
4302
4207
  *
4303
4208
  * @export
@@ -4346,6 +4251,25 @@ export const VPSV1ActionActionResourceStateEnum = {
4346
4251
 
4347
4252
  export type VPSV1ActionActionResourceStateEnum = typeof VPSV1ActionActionResourceStateEnum[keyof typeof VPSV1ActionActionResourceStateEnum];
4348
4253
 
4254
+ /**
4255
+ *
4256
+ * @export
4257
+ * @interface VPSV1ActionListResponse
4258
+ */
4259
+ export interface VPSV1ActionListResponse {
4260
+ /**
4261
+ * Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
4262
+ * @type {Array<VPSV1ActionActionResource>}
4263
+ * @memberof VPSV1ActionListResponse
4264
+ */
4265
+ 'data': Array<VPSV1ActionActionResource>;
4266
+ /**
4267
+ *
4268
+ * @type {CommonSchemaPaginationMetaSchema}
4269
+ * @memberof VPSV1ActionListResponse
4270
+ */
4271
+ 'meta': CommonSchemaPaginationMetaSchema;
4272
+ }
4349
4273
  /**
4350
4274
  *
4351
4275
  * @export
@@ -4383,6 +4307,25 @@ export interface VPSV1BackupBackupResource {
4383
4307
  */
4384
4308
  'created_at': string;
4385
4309
  }
4310
+ /**
4311
+ *
4312
+ * @export
4313
+ * @interface VPSV1BackupListResponse
4314
+ */
4315
+ export interface VPSV1BackupListResponse {
4316
+ /**
4317
+ * Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
4318
+ * @type {Array<VPSV1BackupBackupResource>}
4319
+ * @memberof VPSV1BackupListResponse
4320
+ */
4321
+ 'data': Array<VPSV1BackupBackupResource>;
4322
+ /**
4323
+ *
4324
+ * @type {CommonSchemaPaginationMetaSchema}
4325
+ * @memberof VPSV1BackupListResponse
4326
+ */
4327
+ 'meta': CommonSchemaPaginationMetaSchema;
4328
+ }
4386
4329
  /**
4387
4330
  *
4388
4331
  * @export
@@ -4838,6 +4781,25 @@ export const VPSV1FirewallFirewallRuleResourceProtocolEnum = {
4838
4781
 
4839
4782
  export type VPSV1FirewallFirewallRuleResourceProtocolEnum = typeof VPSV1FirewallFirewallRuleResourceProtocolEnum[keyof typeof VPSV1FirewallFirewallRuleResourceProtocolEnum];
4840
4783
 
4784
+ /**
4785
+ *
4786
+ * @export
4787
+ * @interface VPSV1FirewallListResponse
4788
+ */
4789
+ export interface VPSV1FirewallListResponse {
4790
+ /**
4791
+ * Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
4792
+ * @type {Array<VPSV1FirewallFirewallResource>}
4793
+ * @memberof VPSV1FirewallListResponse
4794
+ */
4795
+ 'data': Array<VPSV1FirewallFirewallResource>;
4796
+ /**
4797
+ *
4798
+ * @type {CommonSchemaPaginationMetaSchema}
4799
+ * @memberof VPSV1FirewallListResponse
4800
+ */
4801
+ 'meta': CommonSchemaPaginationMetaSchema;
4802
+ }
4841
4803
  /**
4842
4804
  *
4843
4805
  * @export
@@ -5037,6 +4999,25 @@ export interface VPSV1MetricsMetricsResource {
5037
4999
  */
5038
5000
  'usage': object;
5039
5001
  }
5002
+ /**
5003
+ *
5004
+ * @export
5005
+ * @interface VPSV1PostInstallScriptListResponse
5006
+ */
5007
+ export interface VPSV1PostInstallScriptListResponse {
5008
+ /**
5009
+ * Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
5010
+ * @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
5011
+ * @memberof VPSV1PostInstallScriptListResponse
5012
+ */
5013
+ 'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
5014
+ /**
5015
+ *
5016
+ * @type {CommonSchemaPaginationMetaSchema}
5017
+ * @memberof VPSV1PostInstallScriptListResponse
5018
+ */
5019
+ 'meta': CommonSchemaPaginationMetaSchema;
5020
+ }
5040
5021
  /**
5041
5022
  *
5042
5023
  * @export
@@ -5106,6 +5087,25 @@ export interface VPSV1PublicKeyAttachRequest {
5106
5087
  */
5107
5088
  'ids': Array<number>;
5108
5089
  }
5090
+ /**
5091
+ *
5092
+ * @export
5093
+ * @interface VPSV1PublicKeyListResponse
5094
+ */
5095
+ export interface VPSV1PublicKeyListResponse {
5096
+ /**
5097
+ * Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
5098
+ * @type {Array<VPSV1PublicKeyPublicKeyResource>}
5099
+ * @memberof VPSV1PublicKeyListResponse
5100
+ */
5101
+ 'data': Array<VPSV1PublicKeyPublicKeyResource>;
5102
+ /**
5103
+ *
5104
+ * @type {CommonSchemaPaginationMetaSchema}
5105
+ * @memberof VPSV1PublicKeyListResponse
5106
+ */
5107
+ 'meta': CommonSchemaPaginationMetaSchema;
5108
+ }
5109
5109
  /**
5110
5110
  *
5111
5111
  * @export
@@ -5674,6 +5674,109 @@ export interface WordPressV1CommonVulnerabilityResource {
5674
5674
  */
5675
5675
  'direct_url': string;
5676
5676
  }
5677
+ /**
5678
+ *
5679
+ * @export
5680
+ * @interface WordPressV1HostingerPluginsAiOptionStatusResource
5681
+ */
5682
+ export interface WordPressV1HostingerPluginsAiOptionStatusResource {
5683
+ /**
5684
+ * Whether the llms.txt AI option is enabled. Present when the option is requested or when no specific option filter is provided.
5685
+ * @type {boolean}
5686
+ * @memberof WordPressV1HostingerPluginsAiOptionStatusResource
5687
+ */
5688
+ 'is_llmstxt_enabled': boolean | null;
5689
+ /**
5690
+ * Whether the Web2Agent AI option is enabled. Present when the option is requested or when no specific option filter is provided.
5691
+ * @type {boolean}
5692
+ * @memberof WordPressV1HostingerPluginsAiOptionStatusResource
5693
+ */
5694
+ 'is_web2agent_enabled': boolean | null;
5695
+ }
5696
+ /**
5697
+ *
5698
+ * @export
5699
+ * @interface WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
5700
+ */
5701
+ export interface WordPressV1HostingerPluginsUpdateAiOptionStatusRequest {
5702
+ /**
5703
+ * AI option name
5704
+ * @type {string}
5705
+ * @memberof WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
5706
+ */
5707
+ 'option': WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum;
5708
+ /**
5709
+ * Enable (true) or disable (false) the AI option.
5710
+ * @type {boolean}
5711
+ * @memberof WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
5712
+ */
5713
+ 'enable': boolean;
5714
+ }
5715
+
5716
+ export const WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
5717
+ Llmstxt: 'llmstxt',
5718
+ Web2agent: 'web2agent'
5719
+ } as const;
5720
+
5721
+ export type WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = typeof WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum[keyof typeof WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum];
5722
+
5723
+ /**
5724
+ *
5725
+ * @export
5726
+ * @interface WordPressV1InstallationsCheckIsValidRequest
5727
+ */
5728
+ export interface WordPressV1InstallationsCheckIsValidRequest {
5729
+ /**
5730
+ * WordPress installation (software) identifiers to validate.
5731
+ * @type {Array<string>}
5732
+ * @memberof WordPressV1InstallationsCheckIsValidRequest
5733
+ */
5734
+ 'software_ids': Array<string>;
5735
+ /**
5736
+ * Force fresh validation without cache. Preferable for troubleshooting purposes.
5737
+ * @type {boolean}
5738
+ * @memberof WordPressV1InstallationsCheckIsValidRequest
5739
+ */
5740
+ 'force': boolean;
5741
+ }
5742
+ /**
5743
+ *
5744
+ * @export
5745
+ * @interface WordPressV1InstallationsCheckIsValidResultResource
5746
+ */
5747
+ export interface WordPressV1InstallationsCheckIsValidResultResource {
5748
+ /**
5749
+ * WordPress installation (software) identifier
5750
+ * @type {string}
5751
+ * @memberof WordPressV1InstallationsCheckIsValidResultResource
5752
+ */
5753
+ 'software_id': string;
5754
+ /**
5755
+ * Whether the WordPress installation is valid and working correctly
5756
+ * @type {boolean}
5757
+ * @memberof WordPressV1InstallationsCheckIsValidResultResource
5758
+ */
5759
+ 'is_valid': boolean;
5760
+ }
5761
+ /**
5762
+ *
5763
+ * @export
5764
+ * @interface WordPressV1InstallationsDeleteInstallationRequest
5765
+ */
5766
+ export interface WordPressV1InstallationsDeleteInstallationRequest {
5767
+ /**
5768
+ * Delete installation files from disk.
5769
+ * @type {boolean}
5770
+ * @memberof WordPressV1InstallationsDeleteInstallationRequest
5771
+ */
5772
+ 'delete_files': boolean;
5773
+ /**
5774
+ * Delete the installation database.
5775
+ * @type {boolean}
5776
+ * @memberof WordPressV1InstallationsDeleteInstallationRequest
5777
+ */
5778
+ 'delete_database': boolean;
5779
+ }
5677
5780
  /**
5678
5781
  *
5679
5782
  * @export
@@ -5791,63 +5894,165 @@ export interface WordPressV1InstallationsInstallWordPressRequestDatabase {
5791
5894
  /**
5792
5895
  *
5793
5896
  * @export
5794
- * @interface WordPressV1InstallationsWordPressInstallationResource
5897
+ * @interface WordPressV1InstallationsJwtTokenResource
5795
5898
  */
5796
- export interface WordPressV1InstallationsWordPressInstallationResource {
5899
+ export interface WordPressV1InstallationsJwtTokenResource {
5797
5900
  /**
5798
- * WordPress installation (software) id
5901
+ * Signed JWT used to authenticate requests against the WordPress installation
5799
5902
  * @type {string}
5800
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5903
+ * @memberof WordPressV1InstallationsJwtTokenResource
5801
5904
  */
5802
- 'id': string;
5905
+ 'token': string;
5803
5906
  /**
5804
- * Hosting account username
5805
- * @type {string}
5806
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5907
+ * Token lifetime in seconds from the moment it was issued
5908
+ * @type {number}
5909
+ * @memberof WordPressV1InstallationsJwtTokenResource
5807
5910
  */
5808
- 'username': string;
5911
+ 'expires_in': number;
5809
5912
  /**
5810
- * Domain the installation belongs to
5913
+ * Date-time at which the token expires, or null when not provided
5811
5914
  * @type {string}
5812
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5915
+ * @memberof WordPressV1InstallationsJwtTokenResource
5813
5916
  */
5814
- 'domain': string;
5917
+ 'expires_at': string | null;
5815
5918
  /**
5816
- * WordPress site title
5919
+ * MCP (Model Context Protocol) endpoint URL for the WordPress installation, or null when not provided
5817
5920
  * @type {string}
5818
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5921
+ * @memberof WordPressV1InstallationsJwtTokenResource
5819
5922
  */
5820
- 'site_title': string;
5923
+ 'mcp_url': string | null;
5924
+ }
5925
+ /**
5926
+ *
5927
+ * @export
5928
+ * @interface WordPressV1InstallationsUpdateInstallationRequest
5929
+ */
5930
+ export interface WordPressV1InstallationsUpdateInstallationRequest {
5821
5931
  /**
5822
- * WordPress site URL
5823
- * @type {string}
5824
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5932
+ * Update the minor version only.
5933
+ * @type {boolean}
5934
+ * @memberof WordPressV1InstallationsUpdateInstallationRequest
5825
5935
  */
5826
- 'url': string;
5936
+ 'minor': boolean;
5827
5937
  /**
5828
- * Installation directory
5938
+ * Update to a specific WordPress core version.
5829
5939
  * @type {string}
5830
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5940
+ * @memberof WordPressV1InstallationsUpdateInstallationRequest
5831
5941
  */
5832
- 'directory': string;
5942
+ 'version': string | null;
5943
+ }
5944
+ /**
5945
+ *
5946
+ * @export
5947
+ * @interface WordPressV1InstallationsUpdateResource
5948
+ */
5949
+ export interface WordPressV1InstallationsUpdateResource {
5833
5950
  /**
5834
- * WordPress locale
5951
+ * Available WordPress core version
5835
5952
  * @type {string}
5836
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5953
+ * @memberof WordPressV1InstallationsUpdateResource
5837
5954
  */
5838
- 'language': string;
5955
+ 'version': string;
5839
5956
  /**
5840
- * WordPress admin username
5957
+ * Update type
5841
5958
  * @type {string}
5842
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5959
+ * @memberof WordPressV1InstallationsUpdateResource
5843
5960
  */
5844
- 'login': string;
5961
+ 'type': WordPressV1InstallationsUpdateResourceTypeEnum;
5845
5962
  /**
5846
- * WordPress admin email
5963
+ * Download URL for the update package
5847
5964
  * @type {string}
5848
- * @memberof WordPressV1InstallationsWordPressInstallationResource
5965
+ * @memberof WordPressV1InstallationsUpdateResource
5849
5966
  */
5850
- 'email': string;
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
+ }
5996
+ /**
5997
+ *
5998
+ * @export
5999
+ * @interface WordPressV1InstallationsWordPressInstallationResource
6000
+ */
6001
+ export interface WordPressV1InstallationsWordPressInstallationResource {
6002
+ /**
6003
+ * WordPress installation (software) id
6004
+ * @type {string}
6005
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6006
+ */
6007
+ 'id': string;
6008
+ /**
6009
+ * Hosting account username
6010
+ * @type {string}
6011
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6012
+ */
6013
+ 'username': string;
6014
+ /**
6015
+ * Domain the installation belongs to
6016
+ * @type {string}
6017
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6018
+ */
6019
+ 'domain': string;
6020
+ /**
6021
+ * WordPress site title
6022
+ * @type {string}
6023
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6024
+ */
6025
+ 'site_title': string;
6026
+ /**
6027
+ * WordPress site URL
6028
+ * @type {string}
6029
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6030
+ */
6031
+ 'url': string;
6032
+ /**
6033
+ * Installation directory
6034
+ * @type {string}
6035
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6036
+ */
6037
+ 'directory': string;
6038
+ /**
6039
+ * WordPress locale
6040
+ * @type {string}
6041
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6042
+ */
6043
+ 'language': string;
6044
+ /**
6045
+ * WordPress admin username
6046
+ * @type {string}
6047
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6048
+ */
6049
+ 'login': string;
6050
+ /**
6051
+ * WordPress admin email
6052
+ * @type {string}
6053
+ * @memberof WordPressV1InstallationsWordPressInstallationResource
6054
+ */
6055
+ 'email': string;
5851
6056
  /**
5852
6057
  * Whether the installation is considered valid
5853
6058
  * @type {boolean}
@@ -5867,6 +6072,118 @@ export interface WordPressV1InstallationsWordPressInstallationResource {
5867
6072
  */
5868
6073
  'created_at': string;
5869
6074
  }
6075
+ /**
6076
+ *
6077
+ * @export
6078
+ * @interface WordPressV1LitespeedLitespeedCacheStatusResource
6079
+ */
6080
+ export interface WordPressV1LitespeedLitespeedCacheStatusResource {
6081
+ /**
6082
+ * Whether the LiteSpeed Cache plugin is installed on the WordPress installation
6083
+ * @type {boolean}
6084
+ * @memberof WordPressV1LitespeedLitespeedCacheStatusResource
6085
+ */
6086
+ 'is_installed': boolean;
6087
+ /**
6088
+ * Whether the LiteSpeed Cache plugin is active on the WordPress installation
6089
+ * @type {boolean}
6090
+ * @memberof WordPressV1LitespeedLitespeedCacheStatusResource
6091
+ */
6092
+ 'is_active': boolean;
6093
+ }
6094
+ /**
6095
+ *
6096
+ * @export
6097
+ * @interface WordPressV1LoginLoginLinksResource
6098
+ */
6099
+ export interface WordPressV1LoginLoginLinksResource {
6100
+ /**
6101
+ * Primary auto-login URL for the WordPress installation
6102
+ * @type {string}
6103
+ * @memberof WordPressV1LoginLoginLinksResource
6104
+ */
6105
+ 'login': string | null;
6106
+ /**
6107
+ * Fallback auto-login URL using the temporary Hostinger domain
6108
+ * @type {string}
6109
+ * @memberof WordPressV1LoginLoginLinksResource
6110
+ */
6111
+ 'fallback': string | null;
6112
+ /**
6113
+ * Default WordPress admin URL used when auto-login is unavailable
6114
+ * @type {string}
6115
+ * @memberof WordPressV1LoginLoginLinksResource
6116
+ */
6117
+ 'default': string | null;
6118
+ }
6119
+ /**
6120
+ *
6121
+ * @export
6122
+ * @interface WordPressV1MaintenanceMaintenanceStatusResource
6123
+ */
6124
+ export interface WordPressV1MaintenanceMaintenanceStatusResource {
6125
+ /**
6126
+ * Current maintenance mode status for the WordPress installation
6127
+ * @type {string}
6128
+ * @memberof WordPressV1MaintenanceMaintenanceStatusResource
6129
+ */
6130
+ 'status': WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum;
6131
+ }
6132
+
6133
+ export const WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = {
6134
+ Enabled: 'enabled',
6135
+ Disabled: 'disabled'
6136
+ } as const;
6137
+
6138
+ export type WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = typeof WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum[keyof typeof WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum];
6139
+
6140
+ /**
6141
+ *
6142
+ * @export
6143
+ * @interface WordPressV1MaintenanceToggleMaintenanceRequest
6144
+ */
6145
+ export interface WordPressV1MaintenanceToggleMaintenanceRequest {
6146
+ /**
6147
+ * Enable (true) or disable (false) maintenance mode for the WordPress installation.
6148
+ * @type {boolean}
6149
+ * @memberof WordPressV1MaintenanceToggleMaintenanceRequest
6150
+ */
6151
+ 'enabled': boolean;
6152
+ }
6153
+ /**
6154
+ *
6155
+ * @export
6156
+ * @interface WordPressV1MemcachedMemcachedStatusResource
6157
+ */
6158
+ export interface WordPressV1MemcachedMemcachedStatusResource {
6159
+ /**
6160
+ * Current Memcached object cache status for the WordPress installation
6161
+ * @type {string}
6162
+ * @memberof WordPressV1MemcachedMemcachedStatusResource
6163
+ */
6164
+ 'status': WordPressV1MemcachedMemcachedStatusResourceStatusEnum;
6165
+ }
6166
+
6167
+ export const WordPressV1MemcachedMemcachedStatusResourceStatusEnum = {
6168
+ Active: 'active',
6169
+ Inactive: 'inactive'
6170
+ } as const;
6171
+
6172
+ export type WordPressV1MemcachedMemcachedStatusResourceStatusEnum = typeof WordPressV1MemcachedMemcachedStatusResourceStatusEnum[keyof typeof WordPressV1MemcachedMemcachedStatusResourceStatusEnum];
6173
+
6174
+ /**
6175
+ *
6176
+ * @export
6177
+ * @interface WordPressV1MemcachedToggleMemcachedRequest
6178
+ */
6179
+ export interface WordPressV1MemcachedToggleMemcachedRequest {
6180
+ /**
6181
+ * Activate (true) or deactivate (false) the Memcached object cache for the WordPress installation.
6182
+ * @type {boolean}
6183
+ * @memberof WordPressV1MemcachedToggleMemcachedRequest
6184
+ */
6185
+ 'enabled': boolean;
6186
+ }
5870
6187
  /**
5871
6188
  *
5872
6189
  * @export
@@ -10604,26 +10921,28 @@ export class HorizonsWebsitesApi extends BaseAPI {
10604
10921
 
10605
10922
 
10606
10923
  /**
10607
- * HostingCronJobsApi - axios parameter creator
10924
+ * HostingCacheApi - axios parameter creator
10608
10925
  * @export
10609
10926
  */
10610
- export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Configuration) {
10927
+ export const HostingCacheApiAxiosParamCreator = function (configuration?: Configuration) {
10611
10928
  return {
10612
10929
  /**
10613
- * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
10614
- * @summary Create account cron job
10930
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
10931
+ * @summary Clear website cache
10615
10932
  * @param {string} username
10616
- * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
10933
+ * @param {string} domain Domain name
10934
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
10617
10935
  * @param {*} [options] Override http request option.
10618
10936
  * @throws {RequiredError}
10619
10937
  */
10620
- createAccountCronJobV1: async (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10938
+ clearWebsiteCacheV1: async (username: string, domain: string, directory?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10621
10939
  // verify required parameter 'username' is not null or undefined
10622
- assertParamExists('createAccountCronJobV1', 'username', username)
10623
- // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
10624
- assertParamExists('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest)
10625
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
10626
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10940
+ assertParamExists('clearWebsiteCacheV1', 'username', username)
10941
+ // verify required parameter 'domain' is not null or undefined
10942
+ assertParamExists('clearWebsiteCacheV1', 'domain', domain)
10943
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear`
10944
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10945
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10627
10946
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10628
10947
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10629
10948
  let baseOptions;
@@ -10631,7 +10950,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10631
10950
  baseOptions = configuration.baseOptions;
10632
10951
  }
10633
10952
 
10634
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10953
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
10635
10954
  const localVarHeaderParameter = {} as any;
10636
10955
  const localVarQueryParameter = {} as any;
10637
10956
 
@@ -10639,14 +10958,57 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10639
10958
  // http bearer authentication required
10640
10959
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
10641
10960
 
10961
+ if (directory !== undefined) {
10962
+ localVarQueryParameter['directory'] = directory;
10963
+ }
10964
+
10642
10965
 
10643
10966
 
10644
- localVarHeaderParameter['Content-Type'] = 'application/json';
10967
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10968
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10969
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10970
+
10971
+ return {
10972
+ url: toPathString(localVarUrlObj),
10973
+ options: localVarRequestOptions,
10974
+ };
10975
+ },
10976
+ /**
10977
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
10978
+ * @summary Disable cacheless mode
10979
+ * @param {string} username
10980
+ * @param {string} domain Domain name
10981
+ * @param {*} [options] Override http request option.
10982
+ * @throws {RequiredError}
10983
+ */
10984
+ disableCachelessModeV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10985
+ // verify required parameter 'username' is not null or undefined
10986
+ assertParamExists('disableCachelessModeV1', 'username', username)
10987
+ // verify required parameter 'domain' is not null or undefined
10988
+ assertParamExists('disableCachelessModeV1', 'domain', domain)
10989
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable`
10990
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10991
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10992
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10993
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10994
+ let baseOptions;
10995
+ if (configuration) {
10996
+ baseOptions = configuration.baseOptions;
10997
+ }
10998
+
10999
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11000
+ const localVarHeaderParameter = {} as any;
11001
+ const localVarQueryParameter = {} as any;
11002
+
11003
+ // authentication apiToken required
11004
+ // http bearer authentication required
11005
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10645
11006
 
11007
+
11008
+
10646
11009
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10647
11010
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10648
11011
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10649
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration)
10650
11012
 
10651
11013
  return {
10652
11014
  url: toPathString(localVarUrlObj),
@@ -10654,21 +11016,21 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10654
11016
  };
10655
11017
  },
10656
11018
  /**
10657
- * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10658
- * @summary Delete account cron job
11019
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11020
+ * @summary Disable website cache
10659
11021
  * @param {string} username
10660
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11022
+ * @param {string} domain Domain name
10661
11023
  * @param {*} [options] Override http request option.
10662
11024
  * @throws {RequiredError}
10663
11025
  */
10664
- deleteAccountCronJobV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11026
+ disableWebsiteCacheV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10665
11027
  // verify required parameter 'username' is not null or undefined
10666
- assertParamExists('deleteAccountCronJobV1', 'username', username)
10667
- // verify required parameter 'uid' is not null or undefined
10668
- assertParamExists('deleteAccountCronJobV1', 'uid', uid)
10669
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
11028
+ assertParamExists('disableWebsiteCacheV1', 'username', username)
11029
+ // verify required parameter 'domain' is not null or undefined
11030
+ assertParamExists('disableWebsiteCacheV1', 'domain', domain)
11031
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable`
10670
11032
  .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10671
- .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11033
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10672
11034
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10673
11035
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10674
11036
  let baseOptions;
@@ -10676,7 +11038,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10676
11038
  baseOptions = configuration.baseOptions;
10677
11039
  }
10678
11040
 
10679
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11041
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10680
11042
  const localVarHeaderParameter = {} as any;
10681
11043
  const localVarQueryParameter = {} as any;
10682
11044
 
@@ -10696,21 +11058,21 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10696
11058
  };
10697
11059
  },
10698
11060
  /**
10699
- * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10700
- * @summary Get cron job output
11061
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11062
+ * @summary Enable cacheless mode
10701
11063
  * @param {string} username
10702
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11064
+ * @param {string} domain Domain name
10703
11065
  * @param {*} [options] Override http request option.
10704
11066
  * @throws {RequiredError}
10705
11067
  */
10706
- getCronJobOutputV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11068
+ enableCachelessModeV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10707
11069
  // verify required parameter 'username' is not null or undefined
10708
- assertParamExists('getCronJobOutputV1', 'username', username)
10709
- // verify required parameter 'uid' is not null or undefined
10710
- assertParamExists('getCronJobOutputV1', 'uid', uid)
10711
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
11070
+ assertParamExists('enableCachelessModeV1', 'username', username)
11071
+ // verify required parameter 'domain' is not null or undefined
11072
+ assertParamExists('enableCachelessModeV1', 'domain', domain)
11073
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable`
10712
11074
  .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10713
- .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11075
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10714
11076
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10715
11077
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10716
11078
  let baseOptions;
@@ -10718,7 +11080,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10718
11080
  baseOptions = configuration.baseOptions;
10719
11081
  }
10720
11082
 
10721
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11083
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10722
11084
  const localVarHeaderParameter = {} as any;
10723
11085
  const localVarQueryParameter = {} as any;
10724
11086
 
@@ -10738,17 +11100,21 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10738
11100
  };
10739
11101
  },
10740
11102
  /**
10741
- * Returns the list of cron jobs configured for the specified account, including their schedule and command.
10742
- * @summary List account cron jobs
11103
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11104
+ * @summary Enable website cache
10743
11105
  * @param {string} username
11106
+ * @param {string} domain Domain name
10744
11107
  * @param {*} [options] Override http request option.
10745
11108
  * @throws {RequiredError}
10746
11109
  */
10747
- listAccountCronJobsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11110
+ enableWebsiteCacheV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10748
11111
  // verify required parameter 'username' is not null or undefined
10749
- assertParamExists('listAccountCronJobsV1', 'username', username)
10750
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
10751
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11112
+ assertParamExists('enableWebsiteCacheV1', 'username', username)
11113
+ // verify required parameter 'domain' is not null or undefined
11114
+ assertParamExists('enableWebsiteCacheV1', 'domain', domain)
11115
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable`
11116
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11117
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10752
11118
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10753
11119
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10754
11120
  let baseOptions;
@@ -10756,7 +11122,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10756
11122
  baseOptions = configuration.baseOptions;
10757
11123
  }
10758
11124
 
10759
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11125
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10760
11126
  const localVarHeaderParameter = {} as any;
10761
11127
  const localVarQueryParameter = {} as any;
10762
11128
 
@@ -10779,205 +11145,244 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10779
11145
  };
10780
11146
 
10781
11147
  /**
10782
- * HostingCronJobsApi - functional programming interface
11148
+ * HostingCacheApi - functional programming interface
10783
11149
  * @export
10784
11150
  */
10785
- export const HostingCronJobsApiFp = function(configuration?: Configuration) {
10786
- const localVarAxiosParamCreator = HostingCronJobsApiAxiosParamCreator(configuration)
11151
+ export const HostingCacheApiFp = function(configuration?: Configuration) {
11152
+ const localVarAxiosParamCreator = HostingCacheApiAxiosParamCreator(configuration)
10787
11153
  return {
10788
11154
  /**
10789
- * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
10790
- * @summary Create account cron job
11155
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
11156
+ * @summary Clear website cache
10791
11157
  * @param {string} username
10792
- * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11158
+ * @param {string} domain Domain name
11159
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
10793
11160
  * @param {*} [options] Override http request option.
10794
11161
  * @throws {RequiredError}
10795
11162
  */
10796
- async createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>> {
10797
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
10798
- const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.createAccountCronJobV1']?.[0]?.url;
11163
+ async clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11164
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clearWebsiteCacheV1(username, domain, directory, options);
11165
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.clearWebsiteCacheV1']?.[0]?.url;
10799
11166
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10800
11167
  },
10801
11168
  /**
10802
- * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10803
- * @summary Delete account cron job
11169
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
11170
+ * @summary Disable cacheless mode
10804
11171
  * @param {string} username
10805
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11172
+ * @param {string} domain Domain name
10806
11173
  * @param {*} [options] Override http request option.
10807
11174
  * @throws {RequiredError}
10808
11175
  */
10809
- async deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
10810
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
10811
- const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']?.[0]?.url;
11176
+ async disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableCachelessModeV1(username, domain, options);
11178
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.disableCachelessModeV1']?.[0]?.url;
10812
11179
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10813
11180
  },
10814
11181
  /**
10815
- * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10816
- * @summary Get cron job output
11182
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11183
+ * @summary Disable website cache
10817
11184
  * @param {string} username
10818
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11185
+ * @param {string} domain Domain name
10819
11186
  * @param {*} [options] Override http request option.
10820
11187
  * @throws {RequiredError}
10821
11188
  */
10822
- async getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobOutputResource>> {
10823
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
10824
- const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.getCronJobOutputV1']?.[0]?.url;
11189
+ async disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableWebsiteCacheV1(username, domain, options);
11191
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.disableWebsiteCacheV1']?.[0]?.url;
10825
11192
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10826
11193
  },
10827
11194
  /**
10828
- * Returns the list of cron jobs configured for the specified account, including their schedule and command.
10829
- * @summary List account cron jobs
11195
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11196
+ * @summary Enable cacheless mode
11197
+ * @param {string} username
11198
+ * @param {string} domain Domain name
11199
+ * @param {*} [options] Override http request option.
11200
+ * @throws {RequiredError}
11201
+ */
11202
+ async enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableCachelessModeV1(username, domain, options);
11204
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.enableCachelessModeV1']?.[0]?.url;
11205
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11206
+ },
11207
+ /**
11208
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11209
+ * @summary Enable website cache
10830
11210
  * @param {string} username
11211
+ * @param {string} domain Domain name
10831
11212
  * @param {*} [options] Override http request option.
10832
11213
  * @throws {RequiredError}
10833
11214
  */
10834
- async listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1CronJobsCronJobResource>>> {
10835
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
10836
- const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']?.[0]?.url;
11215
+ async enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11216
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableWebsiteCacheV1(username, domain, options);
11217
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.enableWebsiteCacheV1']?.[0]?.url;
10837
11218
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10838
11219
  },
10839
11220
  }
10840
11221
  };
10841
11222
 
10842
11223
  /**
10843
- * HostingCronJobsApi - factory interface
11224
+ * HostingCacheApi - factory interface
10844
11225
  * @export
10845
11226
  */
10846
- export const HostingCronJobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10847
- const localVarFp = HostingCronJobsApiFp(configuration)
11227
+ export const HostingCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11228
+ const localVarFp = HostingCacheApiFp(configuration)
10848
11229
  return {
10849
11230
  /**
10850
- * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
10851
- * @summary Create account cron job
11231
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
11232
+ * @summary Clear website cache
10852
11233
  * @param {string} username
10853
- * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11234
+ * @param {string} domain Domain name
11235
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
10854
11236
  * @param {*} [options] Override http request option.
10855
11237
  * @throws {RequiredError}
10856
11238
  */
10857
- createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobResource> {
10858
- return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
11239
+ clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11240
+ return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
10859
11241
  },
10860
11242
  /**
10861
- * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10862
- * @summary Delete account cron job
11243
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
11244
+ * @summary Disable cacheless mode
10863
11245
  * @param {string} username
10864
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11246
+ * @param {string} domain Domain name
10865
11247
  * @param {*} [options] Override http request option.
10866
11248
  * @throws {RequiredError}
10867
11249
  */
10868
- deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
10869
- return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
11250
+ disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11251
+ return localVarFp.disableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
10870
11252
  },
10871
11253
  /**
10872
- * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10873
- * @summary Get cron job output
11254
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11255
+ * @summary Disable website cache
10874
11256
  * @param {string} username
10875
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11257
+ * @param {string} domain Domain name
10876
11258
  * @param {*} [options] Override http request option.
10877
11259
  * @throws {RequiredError}
10878
11260
  */
10879
- getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobOutputResource> {
10880
- return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
11261
+ disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11262
+ return localVarFp.disableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
10881
11263
  },
10882
11264
  /**
10883
- * Returns the list of cron jobs configured for the specified account, including their schedule and command.
10884
- * @summary List account cron jobs
11265
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11266
+ * @summary Enable cacheless mode
10885
11267
  * @param {string} username
11268
+ * @param {string} domain Domain name
10886
11269
  * @param {*} [options] Override http request option.
10887
11270
  * @throws {RequiredError}
10888
11271
  */
10889
- listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1CronJobsCronJobResource>> {
10890
- return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
11272
+ enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11273
+ return localVarFp.enableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
11274
+ },
11275
+ /**
11276
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11277
+ * @summary Enable website cache
11278
+ * @param {string} username
11279
+ * @param {string} domain Domain name
11280
+ * @param {*} [options] Override http request option.
11281
+ * @throws {RequiredError}
11282
+ */
11283
+ enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11284
+ return localVarFp.enableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
10891
11285
  },
10892
11286
  };
10893
11287
  };
10894
11288
 
10895
11289
  /**
10896
- * HostingCronJobsApi - object-oriented interface
11290
+ * HostingCacheApi - object-oriented interface
10897
11291
  * @export
10898
- * @class HostingCronJobsApi
11292
+ * @class HostingCacheApi
10899
11293
  * @extends {BaseAPI}
10900
11294
  */
10901
- export class HostingCronJobsApi extends BaseAPI {
11295
+ export class HostingCacheApi extends BaseAPI {
10902
11296
  /**
10903
- * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
10904
- * @summary Create account cron job
11297
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
11298
+ * @summary Clear website cache
10905
11299
  * @param {string} username
10906
- * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11300
+ * @param {string} domain Domain name
11301
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
10907
11302
  * @param {*} [options] Override http request option.
10908
11303
  * @throws {RequiredError}
10909
- * @memberof HostingCronJobsApi
11304
+ * @memberof HostingCacheApi
10910
11305
  */
10911
- public createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig) {
10912
- return HostingCronJobsApiFp(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
11306
+ public clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig) {
11307
+ return HostingCacheApiFp(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
10913
11308
  }
10914
11309
 
10915
11310
  /**
10916
- * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10917
- * @summary Delete account cron job
11311
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
11312
+ * @summary Disable cacheless mode
10918
11313
  * @param {string} username
10919
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11314
+ * @param {string} domain Domain name
10920
11315
  * @param {*} [options] Override http request option.
10921
11316
  * @throws {RequiredError}
10922
- * @memberof HostingCronJobsApi
11317
+ * @memberof HostingCacheApi
10923
11318
  */
10924
- public deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
10925
- return HostingCronJobsApiFp(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
11319
+ public disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11320
+ return HostingCacheApiFp(this.configuration).disableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
10926
11321
  }
10927
11322
 
10928
11323
  /**
10929
- * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10930
- * @summary Get cron job output
11324
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11325
+ * @summary Disable website cache
10931
11326
  * @param {string} username
10932
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11327
+ * @param {string} domain Domain name
10933
11328
  * @param {*} [options] Override http request option.
10934
11329
  * @throws {RequiredError}
10935
- * @memberof HostingCronJobsApi
11330
+ * @memberof HostingCacheApi
10936
11331
  */
10937
- public getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
10938
- return HostingCronJobsApiFp(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
11332
+ public disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11333
+ return HostingCacheApiFp(this.configuration).disableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
10939
11334
  }
10940
11335
 
10941
11336
  /**
10942
- * Returns the list of cron jobs configured for the specified account, including their schedule and command.
10943
- * @summary List account cron jobs
11337
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11338
+ * @summary Enable cacheless mode
10944
11339
  * @param {string} username
11340
+ * @param {string} domain Domain name
10945
11341
  * @param {*} [options] Override http request option.
10946
11342
  * @throws {RequiredError}
10947
- * @memberof HostingCronJobsApi
11343
+ * @memberof HostingCacheApi
10948
11344
  */
10949
- public listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig) {
10950
- return HostingCronJobsApiFp(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
11345
+ public enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11346
+ return HostingCacheApiFp(this.configuration).enableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
11347
+ }
11348
+
11349
+ /**
11350
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11351
+ * @summary Enable website cache
11352
+ * @param {string} username
11353
+ * @param {string} domain Domain name
11354
+ * @param {*} [options] Override http request option.
11355
+ * @throws {RequiredError}
11356
+ * @memberof HostingCacheApi
11357
+ */
11358
+ public enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11359
+ return HostingCacheApiFp(this.configuration).enableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
10951
11360
  }
10952
11361
  }
10953
11362
 
10954
11363
 
10955
11364
 
10956
11365
  /**
10957
- * HostingDatabasesApi - axios parameter creator
11366
+ * HostingCronJobsApi - axios parameter creator
10958
11367
  * @export
10959
11368
  */
10960
- export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Configuration) {
11369
+ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Configuration) {
10961
11370
  return {
10962
11371
  /**
10963
- * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
10964
- * @summary Change database password
11372
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11373
+ * @summary Create account cron job
10965
11374
  * @param {string} username
10966
- * @param {string} name Full database name as returned by the list databases endpoint.
10967
- * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
11375
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
10968
11376
  * @param {*} [options] Override http request option.
10969
11377
  * @throws {RequiredError}
10970
11378
  */
10971
- changeDatabasePasswordV1: async (username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11379
+ createAccountCronJobV1: async (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10972
11380
  // verify required parameter 'username' is not null or undefined
10973
- assertParamExists('changeDatabasePasswordV1', 'username', username)
10974
- // verify required parameter 'name' is not null or undefined
10975
- assertParamExists('changeDatabasePasswordV1', 'name', name)
10976
- // verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
10977
- assertParamExists('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest)
10978
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
10979
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10980
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11381
+ assertParamExists('createAccountCronJobV1', 'username', username)
11382
+ // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
11383
+ assertParamExists('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest)
11384
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
11385
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10981
11386
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10982
11387
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10983
11388
  let baseOptions;
@@ -10985,7 +11390,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
10985
11390
  baseOptions = configuration.baseOptions;
10986
11391
  }
10987
11392
 
10988
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11393
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10989
11394
  const localVarHeaderParameter = {} as any;
10990
11395
  const localVarQueryParameter = {} as any;
10991
11396
 
@@ -11000,7 +11405,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11000
11405
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11001
11406
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11002
11407
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11003
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration)
11408
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration)
11004
11409
 
11005
11410
  return {
11006
11411
  url: toPathString(localVarUrlObj),
@@ -11008,24 +11413,21 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11008
11413
  };
11009
11414
  },
11010
11415
  /**
11011
- * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
11012
- * @summary Create account database remote connection
11416
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11417
+ * @summary Delete account cron job
11013
11418
  * @param {string} username
11014
- * @param {string} name Full database name as returned by the list databases endpoint.
11015
- * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
11419
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11016
11420
  * @param {*} [options] Override http request option.
11017
11421
  * @throws {RequiredError}
11018
11422
  */
11019
- createAccountDatabaseRemoteConnectionV1: async (username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11423
+ deleteAccountCronJobV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11020
11424
  // verify required parameter 'username' is not null or undefined
11021
- assertParamExists('createAccountDatabaseRemoteConnectionV1', 'username', username)
11022
- // verify required parameter 'name' is not null or undefined
11023
- assertParamExists('createAccountDatabaseRemoteConnectionV1', 'name', name)
11024
- // verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
11025
- assertParamExists('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
11026
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
11425
+ assertParamExists('deleteAccountCronJobV1', 'username', username)
11426
+ // verify required parameter 'uid' is not null or undefined
11427
+ assertParamExists('deleteAccountCronJobV1', 'uid', uid)
11428
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
11027
11429
  .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11028
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11430
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11029
11431
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11030
11432
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11031
11433
  let baseOptions;
@@ -11033,7 +11435,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11033
11435
  baseOptions = configuration.baseOptions;
11034
11436
  }
11035
11437
 
11036
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11438
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11037
11439
  const localVarHeaderParameter = {} as any;
11038
11440
  const localVarQueryParameter = {} as any;
11039
11441
 
@@ -11043,12 +11445,9 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11043
11445
 
11044
11446
 
11045
11447
 
11046
- localVarHeaderParameter['Content-Type'] = 'application/json';
11047
-
11048
11448
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11049
11449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11050
11450
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11051
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration)
11052
11451
 
11053
11452
  return {
11054
11453
  url: toPathString(localVarUrlObj),
@@ -11056,20 +11455,21 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11056
11455
  };
11057
11456
  },
11058
11457
  /**
11059
- * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
11060
- * @summary Create account database
11458
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11459
+ * @summary Get cron job output
11061
11460
  * @param {string} username
11062
- * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
11461
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11063
11462
  * @param {*} [options] Override http request option.
11064
11463
  * @throws {RequiredError}
11065
11464
  */
11066
- createAccountDatabaseV1: async (username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11465
+ getCronJobOutputV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11067
11466
  // verify required parameter 'username' is not null or undefined
11068
- assertParamExists('createAccountDatabaseV1', 'username', username)
11069
- // verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
11070
- assertParamExists('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest)
11071
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
11072
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11467
+ assertParamExists('getCronJobOutputV1', 'username', username)
11468
+ // verify required parameter 'uid' is not null or undefined
11469
+ assertParamExists('getCronJobOutputV1', 'uid', uid)
11470
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
11471
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11472
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11073
11473
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11074
11474
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11075
11475
  let baseOptions;
@@ -11077,7 +11477,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11077
11477
  baseOptions = configuration.baseOptions;
11078
11478
  }
11079
11479
 
11080
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11480
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11081
11481
  const localVarHeaderParameter = {} as any;
11082
11482
  const localVarQueryParameter = {} as any;
11083
11483
 
@@ -11087,12 +11487,9 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11087
11487
 
11088
11488
 
11089
11489
 
11090
- localVarHeaderParameter['Content-Type'] = 'application/json';
11091
-
11092
11490
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11093
11491
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11094
11492
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11095
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration)
11096
11493
 
11097
11494
  return {
11098
11495
  url: toPathString(localVarUrlObj),
@@ -11100,24 +11497,17 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11100
11497
  };
11101
11498
  },
11102
11499
  /**
11103
- * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
11104
- * @summary Delete account database remote connection
11500
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
11501
+ * @summary List account cron jobs
11105
11502
  * @param {string} username
11106
- * @param {string} name Full database name as returned by the list databases endpoint.
11107
- * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint.
11108
11503
  * @param {*} [options] Override http request option.
11109
11504
  * @throws {RequiredError}
11110
11505
  */
11111
- deleteAccountDatabaseRemoteConnectionV1: async (username: string, name: string, ip: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11506
+ listAccountCronJobsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11112
11507
  // verify required parameter 'username' is not null or undefined
11113
- assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'username', username)
11114
- // verify required parameter 'name' is not null or undefined
11115
- assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'name', name)
11116
- // verify required parameter 'ip' is not null or undefined
11117
- assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip)
11118
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
11119
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11120
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11508
+ assertParamExists('listAccountCronJobsV1', 'username', username)
11509
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
11510
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11121
11511
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11122
11512
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11123
11513
  let baseOptions;
@@ -11125,7 +11515,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11125
11515
  baseOptions = configuration.baseOptions;
11126
11516
  }
11127
11517
 
11128
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11518
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11129
11519
  const localVarHeaderParameter = {} as any;
11130
11520
  const localVarQueryParameter = {} as any;
11131
11521
 
@@ -11133,10 +11523,6 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11133
11523
  // http bearer authentication required
11134
11524
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11135
11525
 
11136
- if (ip !== undefined) {
11137
- localVarQueryParameter['ip'] = ip;
11138
- }
11139
-
11140
11526
 
11141
11527
 
11142
11528
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -11148,62 +11534,207 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11148
11534
  options: localVarRequestOptions,
11149
11535
  };
11150
11536
  },
11537
+ }
11538
+ };
11539
+
11540
+ /**
11541
+ * HostingCronJobsApi - functional programming interface
11542
+ * @export
11543
+ */
11544
+ export const HostingCronJobsApiFp = function(configuration?: Configuration) {
11545
+ const localVarAxiosParamCreator = HostingCronJobsApiAxiosParamCreator(configuration)
11546
+ return {
11151
11547
  /**
11152
- * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
11153
- * @summary Delete account database
11548
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11549
+ * @summary Create account cron job
11154
11550
  * @param {string} username
11155
- * @param {string} name Full database name as returned by the list databases endpoint.
11551
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11156
11552
  * @param {*} [options] Override http request option.
11157
11553
  * @throws {RequiredError}
11158
11554
  */
11159
- deleteAccountDatabaseV1: async (username: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11160
- // verify required parameter 'username' is not null or undefined
11161
- assertParamExists('deleteAccountDatabaseV1', 'username', username)
11162
- // verify required parameter 'name' is not null or undefined
11163
- assertParamExists('deleteAccountDatabaseV1', 'name', name)
11164
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
11165
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11166
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11167
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11168
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11169
- let baseOptions;
11170
- if (configuration) {
11171
- baseOptions = configuration.baseOptions;
11172
- }
11173
-
11174
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11175
- const localVarHeaderParameter = {} as any;
11176
- const localVarQueryParameter = {} as any;
11177
-
11178
- // authentication apiToken required
11179
- // http bearer authentication required
11180
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11181
-
11182
-
11183
-
11184
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11185
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11186
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11187
-
11188
- return {
11189
- url: toPathString(localVarUrlObj),
11190
- options: localVarRequestOptions,
11191
- };
11555
+ async createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>> {
11556
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
11557
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.createAccountCronJobV1']?.[0]?.url;
11558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11192
11559
  },
11193
11560
  /**
11194
- * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
11195
- * @summary Get phpMyAdmin link
11561
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11562
+ * @summary Delete account cron job
11563
+ * @param {string} username
11564
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11565
+ * @param {*} [options] Override http request option.
11566
+ * @throws {RequiredError}
11567
+ */
11568
+ async deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
11570
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']?.[0]?.url;
11571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11572
+ },
11573
+ /**
11574
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11575
+ * @summary Get cron job output
11576
+ * @param {string} username
11577
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11578
+ * @param {*} [options] Override http request option.
11579
+ * @throws {RequiredError}
11580
+ */
11581
+ async getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobOutputResource>> {
11582
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
11583
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.getCronJobOutputV1']?.[0]?.url;
11584
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11585
+ },
11586
+ /**
11587
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
11588
+ * @summary List account cron jobs
11589
+ * @param {string} username
11590
+ * @param {*} [options] Override http request option.
11591
+ * @throws {RequiredError}
11592
+ */
11593
+ async listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1CronJobsCronJobResource>>> {
11594
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
11595
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']?.[0]?.url;
11596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11597
+ },
11598
+ }
11599
+ };
11600
+
11601
+ /**
11602
+ * HostingCronJobsApi - factory interface
11603
+ * @export
11604
+ */
11605
+ export const HostingCronJobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11606
+ const localVarFp = HostingCronJobsApiFp(configuration)
11607
+ return {
11608
+ /**
11609
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11610
+ * @summary Create account cron job
11611
+ * @param {string} username
11612
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11613
+ * @param {*} [options] Override http request option.
11614
+ * @throws {RequiredError}
11615
+ */
11616
+ createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobResource> {
11617
+ return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
11618
+ },
11619
+ /**
11620
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11621
+ * @summary Delete account cron job
11622
+ * @param {string} username
11623
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11624
+ * @param {*} [options] Override http request option.
11625
+ * @throws {RequiredError}
11626
+ */
11627
+ deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11628
+ return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
11629
+ },
11630
+ /**
11631
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11632
+ * @summary Get cron job output
11633
+ * @param {string} username
11634
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11635
+ * @param {*} [options] Override http request option.
11636
+ * @throws {RequiredError}
11637
+ */
11638
+ getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobOutputResource> {
11639
+ return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
11640
+ },
11641
+ /**
11642
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
11643
+ * @summary List account cron jobs
11644
+ * @param {string} username
11645
+ * @param {*} [options] Override http request option.
11646
+ * @throws {RequiredError}
11647
+ */
11648
+ listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1CronJobsCronJobResource>> {
11649
+ return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
11650
+ },
11651
+ };
11652
+ };
11653
+
11654
+ /**
11655
+ * HostingCronJobsApi - object-oriented interface
11656
+ * @export
11657
+ * @class HostingCronJobsApi
11658
+ * @extends {BaseAPI}
11659
+ */
11660
+ export class HostingCronJobsApi extends BaseAPI {
11661
+ /**
11662
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11663
+ * @summary Create account cron job
11664
+ * @param {string} username
11665
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11666
+ * @param {*} [options] Override http request option.
11667
+ * @throws {RequiredError}
11668
+ * @memberof HostingCronJobsApi
11669
+ */
11670
+ public createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig) {
11671
+ return HostingCronJobsApiFp(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
11672
+ }
11673
+
11674
+ /**
11675
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11676
+ * @summary Delete account cron job
11677
+ * @param {string} username
11678
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11679
+ * @param {*} [options] Override http request option.
11680
+ * @throws {RequiredError}
11681
+ * @memberof HostingCronJobsApi
11682
+ */
11683
+ public deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
11684
+ return HostingCronJobsApiFp(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
11685
+ }
11686
+
11687
+ /**
11688
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11689
+ * @summary Get cron job output
11690
+ * @param {string} username
11691
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11692
+ * @param {*} [options] Override http request option.
11693
+ * @throws {RequiredError}
11694
+ * @memberof HostingCronJobsApi
11695
+ */
11696
+ public getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
11697
+ return HostingCronJobsApiFp(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
11698
+ }
11699
+
11700
+ /**
11701
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
11702
+ * @summary List account cron jobs
11703
+ * @param {string} username
11704
+ * @param {*} [options] Override http request option.
11705
+ * @throws {RequiredError}
11706
+ * @memberof HostingCronJobsApi
11707
+ */
11708
+ public listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig) {
11709
+ return HostingCronJobsApiFp(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
11710
+ }
11711
+ }
11712
+
11713
+
11714
+
11715
+ /**
11716
+ * HostingDatabasesApi - axios parameter creator
11717
+ * @export
11718
+ */
11719
+ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Configuration) {
11720
+ return {
11721
+ /**
11722
+ * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
11723
+ * @summary Change database password
11196
11724
  * @param {string} username
11197
11725
  * @param {string} name Full database name as returned by the list databases endpoint.
11726
+ * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
11198
11727
  * @param {*} [options] Override http request option.
11199
11728
  * @throws {RequiredError}
11200
11729
  */
11201
- getPhpMyAdminLinkV1: async (username: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11730
+ changeDatabasePasswordV1: async (username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11202
11731
  // verify required parameter 'username' is not null or undefined
11203
- assertParamExists('getPhpMyAdminLinkV1', 'username', username)
11732
+ assertParamExists('changeDatabasePasswordV1', 'username', username)
11204
11733
  // verify required parameter 'name' is not null or undefined
11205
- assertParamExists('getPhpMyAdminLinkV1', 'name', name)
11206
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
11734
+ assertParamExists('changeDatabasePasswordV1', 'name', name)
11735
+ // verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
11736
+ assertParamExists('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest)
11737
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
11207
11738
  .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11208
11739
  .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11209
11740
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -11213,7 +11744,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11213
11744
  baseOptions = configuration.baseOptions;
11214
11745
  }
11215
11746
 
11216
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11747
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11217
11748
  const localVarHeaderParameter = {} as any;
11218
11749
  const localVarQueryParameter = {} as any;
11219
11750
 
@@ -11223,9 +11754,12 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11223
11754
 
11224
11755
 
11225
11756
 
11757
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11758
+
11226
11759
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11227
11760
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11228
11761
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11762
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration)
11229
11763
 
11230
11764
  return {
11231
11765
  url: toPathString(localVarUrlObj),
@@ -11233,18 +11767,24 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11233
11767
  };
11234
11768
  },
11235
11769
  /**
11236
- * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
11237
- * @summary List account database remote connections
11770
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
11771
+ * @summary Create account database remote connection
11238
11772
  * @param {string} username
11239
- * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
11773
+ * @param {string} name Full database name as returned by the list databases endpoint.
11774
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
11240
11775
  * @param {*} [options] Override http request option.
11241
11776
  * @throws {RequiredError}
11242
11777
  */
11243
- listAccountDatabaseRemoteConnectionsV1: async (username: string, domain?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11778
+ createAccountDatabaseRemoteConnectionV1: async (username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11244
11779
  // verify required parameter 'username' is not null or undefined
11245
- assertParamExists('listAccountDatabaseRemoteConnectionsV1', 'username', username)
11246
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
11247
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11780
+ assertParamExists('createAccountDatabaseRemoteConnectionV1', 'username', username)
11781
+ // verify required parameter 'name' is not null or undefined
11782
+ assertParamExists('createAccountDatabaseRemoteConnectionV1', 'name', name)
11783
+ // verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
11784
+ assertParamExists('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
11785
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
11786
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11787
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11248
11788
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11249
11789
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11250
11790
  let baseOptions;
@@ -11252,7 +11792,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11252
11792
  baseOptions = configuration.baseOptions;
11253
11793
  }
11254
11794
 
11255
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11795
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11256
11796
  const localVarHeaderParameter = {} as any;
11257
11797
  const localVarQueryParameter = {} as any;
11258
11798
 
@@ -11260,15 +11800,14 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11260
11800
  // http bearer authentication required
11261
11801
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11262
11802
 
11263
- if (domain !== undefined) {
11264
- localVarQueryParameter['domain'] = domain;
11265
- }
11266
-
11267
11803
 
11268
11804
 
11805
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11806
+
11269
11807
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11270
11808
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11271
11809
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11810
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration)
11272
11811
 
11273
11812
  return {
11274
11813
  url: toPathString(localVarUrlObj),
@@ -11276,20 +11815,18 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11276
11815
  };
11277
11816
  },
11278
11817
  /**
11279
- * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
11280
- * @summary List account databases
11818
+ * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
11819
+ * @summary Create account database
11281
11820
  * @param {string} username
11282
- * @param {number} [page] Page number
11283
- * @param {number} [perPage] Number of items per page
11284
- * @param {string | null} [domain] Filter by domain name (exact match)
11285
- * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
11286
- * @param {string | null} [search] Search databases by name, user, or creation date.
11821
+ * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
11287
11822
  * @param {*} [options] Override http request option.
11288
11823
  * @throws {RequiredError}
11289
11824
  */
11290
- listAccountDatabasesV1: async (username: string, page?: number, perPage?: number, domain?: string | null, isAssigned?: boolean | null, search?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11825
+ createAccountDatabaseV1: async (username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11291
11826
  // verify required parameter 'username' is not null or undefined
11292
- assertParamExists('listAccountDatabasesV1', 'username', username)
11827
+ assertParamExists('createAccountDatabaseV1', 'username', username)
11828
+ // verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
11829
+ assertParamExists('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest)
11293
11830
  const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
11294
11831
  .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11295
11832
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -11299,7 +11836,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11299
11836
  baseOptions = configuration.baseOptions;
11300
11837
  }
11301
11838
 
11302
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11839
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11303
11840
  const localVarHeaderParameter = {} as any;
11304
11841
  const localVarQueryParameter = {} as any;
11305
11842
 
@@ -11307,31 +11844,14 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11307
11844
  // http bearer authentication required
11308
11845
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11309
11846
 
11310
- if (page !== undefined) {
11311
- localVarQueryParameter['page'] = page;
11312
- }
11313
-
11314
- if (perPage !== undefined) {
11315
- localVarQueryParameter['per_page'] = perPage;
11316
- }
11317
-
11318
- if (domain !== undefined) {
11319
- localVarQueryParameter['domain'] = domain;
11320
- }
11321
-
11322
- if (isAssigned !== undefined) {
11323
- localVarQueryParameter['is_assigned'] = isAssigned;
11324
- }
11325
-
11326
- if (search !== undefined) {
11327
- localVarQueryParameter['search'] = search;
11328
- }
11329
-
11330
11847
 
11331
11848
 
11849
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11850
+
11332
11851
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11333
11852
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11334
11853
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11854
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration)
11335
11855
 
11336
11856
  return {
11337
11857
  url: toPathString(localVarUrlObj),
@@ -11339,8 +11859,247 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
11339
11859
  };
11340
11860
  },
11341
11861
  /**
11342
- * Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
11343
- * @summary Repair database
11862
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
11863
+ * @summary Delete account database remote connection
11864
+ * @param {string} username
11865
+ * @param {string} name Full database name as returned by the list databases endpoint.
11866
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint.
11867
+ * @param {*} [options] Override http request option.
11868
+ * @throws {RequiredError}
11869
+ */
11870
+ deleteAccountDatabaseRemoteConnectionV1: async (username: string, name: string, ip: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11871
+ // verify required parameter 'username' is not null or undefined
11872
+ assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'username', username)
11873
+ // verify required parameter 'name' is not null or undefined
11874
+ assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'name', name)
11875
+ // verify required parameter 'ip' is not null or undefined
11876
+ assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip)
11877
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
11878
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11879
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11882
+ let baseOptions;
11883
+ if (configuration) {
11884
+ baseOptions = configuration.baseOptions;
11885
+ }
11886
+
11887
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11888
+ const localVarHeaderParameter = {} as any;
11889
+ const localVarQueryParameter = {} as any;
11890
+
11891
+ // authentication apiToken required
11892
+ // http bearer authentication required
11893
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11894
+
11895
+ if (ip !== undefined) {
11896
+ localVarQueryParameter['ip'] = ip;
11897
+ }
11898
+
11899
+
11900
+
11901
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11902
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11903
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11904
+
11905
+ return {
11906
+ url: toPathString(localVarUrlObj),
11907
+ options: localVarRequestOptions,
11908
+ };
11909
+ },
11910
+ /**
11911
+ * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
11912
+ * @summary Delete account database
11913
+ * @param {string} username
11914
+ * @param {string} name Full database name as returned by the list databases endpoint.
11915
+ * @param {*} [options] Override http request option.
11916
+ * @throws {RequiredError}
11917
+ */
11918
+ deleteAccountDatabaseV1: async (username: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11919
+ // verify required parameter 'username' is not null or undefined
11920
+ assertParamExists('deleteAccountDatabaseV1', 'username', username)
11921
+ // verify required parameter 'name' is not null or undefined
11922
+ assertParamExists('deleteAccountDatabaseV1', 'name', name)
11923
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
11924
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11925
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11926
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11927
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11928
+ let baseOptions;
11929
+ if (configuration) {
11930
+ baseOptions = configuration.baseOptions;
11931
+ }
11932
+
11933
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11934
+ const localVarHeaderParameter = {} as any;
11935
+ const localVarQueryParameter = {} as any;
11936
+
11937
+ // authentication apiToken required
11938
+ // http bearer authentication required
11939
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11940
+
11941
+
11942
+
11943
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11945
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11946
+
11947
+ return {
11948
+ url: toPathString(localVarUrlObj),
11949
+ options: localVarRequestOptions,
11950
+ };
11951
+ },
11952
+ /**
11953
+ * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
11954
+ * @summary Get phpMyAdmin link
11955
+ * @param {string} username
11956
+ * @param {string} name Full database name as returned by the list databases endpoint.
11957
+ * @param {*} [options] Override http request option.
11958
+ * @throws {RequiredError}
11959
+ */
11960
+ getPhpMyAdminLinkV1: async (username: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11961
+ // verify required parameter 'username' is not null or undefined
11962
+ assertParamExists('getPhpMyAdminLinkV1', 'username', username)
11963
+ // verify required parameter 'name' is not null or undefined
11964
+ assertParamExists('getPhpMyAdminLinkV1', 'name', name)
11965
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
11966
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11967
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
11968
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11969
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11970
+ let baseOptions;
11971
+ if (configuration) {
11972
+ baseOptions = configuration.baseOptions;
11973
+ }
11974
+
11975
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11976
+ const localVarHeaderParameter = {} as any;
11977
+ const localVarQueryParameter = {} as any;
11978
+
11979
+ // authentication apiToken required
11980
+ // http bearer authentication required
11981
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11982
+
11983
+
11984
+
11985
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11986
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11987
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11988
+
11989
+ return {
11990
+ url: toPathString(localVarUrlObj),
11991
+ options: localVarRequestOptions,
11992
+ };
11993
+ },
11994
+ /**
11995
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
11996
+ * @summary List account database remote connections
11997
+ * @param {string} username
11998
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
11999
+ * @param {*} [options] Override http request option.
12000
+ * @throws {RequiredError}
12001
+ */
12002
+ listAccountDatabaseRemoteConnectionsV1: async (username: string, domain?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12003
+ // verify required parameter 'username' is not null or undefined
12004
+ assertParamExists('listAccountDatabaseRemoteConnectionsV1', 'username', username)
12005
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
12006
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
12007
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12008
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12009
+ let baseOptions;
12010
+ if (configuration) {
12011
+ baseOptions = configuration.baseOptions;
12012
+ }
12013
+
12014
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12015
+ const localVarHeaderParameter = {} as any;
12016
+ const localVarQueryParameter = {} as any;
12017
+
12018
+ // authentication apiToken required
12019
+ // http bearer authentication required
12020
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12021
+
12022
+ if (domain !== undefined) {
12023
+ localVarQueryParameter['domain'] = domain;
12024
+ }
12025
+
12026
+
12027
+
12028
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12029
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12030
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12031
+
12032
+ return {
12033
+ url: toPathString(localVarUrlObj),
12034
+ options: localVarRequestOptions,
12035
+ };
12036
+ },
12037
+ /**
12038
+ * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
12039
+ * @summary List account databases
12040
+ * @param {string} username
12041
+ * @param {number} [page] Page number
12042
+ * @param {number} [perPage] Number of items per page
12043
+ * @param {string | null} [domain] Filter by domain name (exact match)
12044
+ * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
12045
+ * @param {string | null} [search] Search databases by name, user, or creation date.
12046
+ * @param {*} [options] Override http request option.
12047
+ * @throws {RequiredError}
12048
+ */
12049
+ listAccountDatabasesV1: async (username: string, page?: number, perPage?: number, domain?: string | null, isAssigned?: boolean | null, search?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12050
+ // verify required parameter 'username' is not null or undefined
12051
+ assertParamExists('listAccountDatabasesV1', 'username', username)
12052
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
12053
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
12054
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12055
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12056
+ let baseOptions;
12057
+ if (configuration) {
12058
+ baseOptions = configuration.baseOptions;
12059
+ }
12060
+
12061
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12062
+ const localVarHeaderParameter = {} as any;
12063
+ const localVarQueryParameter = {} as any;
12064
+
12065
+ // authentication apiToken required
12066
+ // http bearer authentication required
12067
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12068
+
12069
+ if (page !== undefined) {
12070
+ localVarQueryParameter['page'] = page;
12071
+ }
12072
+
12073
+ if (perPage !== undefined) {
12074
+ localVarQueryParameter['per_page'] = perPage;
12075
+ }
12076
+
12077
+ if (domain !== undefined) {
12078
+ localVarQueryParameter['domain'] = domain;
12079
+ }
12080
+
12081
+ if (isAssigned !== undefined) {
12082
+ localVarQueryParameter['is_assigned'] = isAssigned;
12083
+ }
12084
+
12085
+ if (search !== undefined) {
12086
+ localVarQueryParameter['search'] = search;
12087
+ }
12088
+
12089
+
12090
+
12091
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12092
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12093
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12094
+
12095
+ return {
12096
+ url: toPathString(localVarUrlObj),
12097
+ options: localVarRequestOptions,
12098
+ };
12099
+ },
12100
+ /**
12101
+ * Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
12102
+ * @summary Repair database
11344
12103
  * @param {string} username
11345
12104
  * @param {string} name Full database name as returned by the list databases endpoint.
11346
12105
  * @param {*} [options] Override http request option.
@@ -14978,7 +15737,7 @@ export const VPSActionsApiFp = function(configuration?: Configuration) {
14978
15737
  * @param {*} [options] Override http request option.
14979
15738
  * @throws {RequiredError}
14980
15739
  */
14981
- async getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetActionsV1200Response>> {
15740
+ async getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionListResponse>> {
14982
15741
  const localVarAxiosArgs = await localVarAxiosParamCreator.getActionsV1(virtualMachineId, page, options);
14983
15742
  const localVarOperationServerBasePath = operationServerMap['VPSActionsApi.getActionsV1']?.[0]?.url;
14984
15743
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15012,7 +15771,7 @@ export const VPSActionsApiFactory = function (configuration?: Configuration, bas
15012
15771
  * @param {*} [options] Override http request option.
15013
15772
  * @throws {RequiredError}
15014
15773
  */
15015
- getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetActionsV1200Response> {
15774
+ getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionListResponse> {
15016
15775
  return localVarFp.getActionsV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
15017
15776
  },
15018
15777
  };
@@ -15163,7 +15922,7 @@ export const VPSBackupsApiFp = function(configuration?: Configuration) {
15163
15922
  * @param {*} [options] Override http request option.
15164
15923
  * @throws {RequiredError}
15165
15924
  */
15166
- async getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetBackupsV1200Response>> {
15925
+ async getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1BackupListResponse>> {
15167
15926
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupsV1(virtualMachineId, page, options);
15168
15927
  const localVarOperationServerBasePath = operationServerMap['VPSBackupsApi.getBackupsV1']?.[0]?.url;
15169
15928
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15199,7 +15958,7 @@ export const VPSBackupsApiFactory = function (configuration?: Configuration, bas
15199
15958
  * @param {*} [options] Override http request option.
15200
15959
  * @throws {RequiredError}
15201
15960
  */
15202
- getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetBackupsV1200Response> {
15961
+ getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1BackupListResponse> {
15203
15962
  return localVarFp.getBackupsV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
15204
15963
  },
15205
15964
  /**
@@ -16706,7 +17465,7 @@ export const VPSFirewallApiFp = function(configuration?: Configuration) {
16706
17465
  * @param {*} [options] Override http request option.
16707
17466
  * @throws {RequiredError}
16708
17467
  */
16709
- async getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetFirewallListV1200Response>> {
17468
+ async getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>> {
16710
17469
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFirewallListV1(page, options);
16711
17470
  const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.getFirewallListV1']?.[0]?.url;
16712
17471
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16829,7 +17588,7 @@ export const VPSFirewallApiFactory = function (configuration?: Configuration, ba
16829
17588
  * @param {*} [options] Override http request option.
16830
17589
  * @throws {RequiredError}
16831
17590
  */
16832
- getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetFirewallListV1200Response> {
17591
+ getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse> {
16833
17592
  return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
16834
17593
  },
16835
17594
  /**
@@ -17890,7 +18649,7 @@ export const VPSPostInstallScriptsApiFp = function(configuration?: Configuration
17890
18649
  * @param {*} [options] Override http request option.
17891
18650
  * @throws {RequiredError}
17892
18651
  */
17893
- async getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPostInstallScriptsV1200Response>> {
18652
+ async getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PostInstallScriptListResponse>> {
17894
18653
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPostInstallScriptsV1(page, options);
17895
18654
  const localVarOperationServerBasePath = operationServerMap['VPSPostInstallScriptsApi.getPostInstallScriptsV1']?.[0]?.url;
17896
18655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17955,7 +18714,7 @@ export const VPSPostInstallScriptsApiFactory = function (configuration?: Configu
17955
18714
  * @param {*} [options] Override http request option.
17956
18715
  * @throws {RequiredError}
17957
18716
  */
17958
- getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPostInstallScriptsV1200Response> {
18717
+ getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PostInstallScriptListResponse> {
17959
18718
  return localVarFp.getPostInstallScriptsV1(page, options).then((request) => request(axios, basePath));
17960
18719
  },
17961
18720
  /**
@@ -18264,7 +19023,7 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
18264
19023
  * @param {*} [options] Override http request option.
18265
19024
  * @throws {RequiredError}
18266
19025
  */
18267
- async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPublicKeysV1200Response>> {
19026
+ async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
18268
19027
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeysV1(page, options);
18269
19028
  const localVarOperationServerBasePath = operationServerMap['VPSPublicKeysApi.getPublicKeysV1']?.[0]?.url;
18270
19029
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18317,7 +19076,7 @@ export const VPSPublicKeysApiFactory = function (configuration?: Configuration,
18317
19076
  * @param {*} [options] Override http request option.
18318
19077
  * @throws {RequiredError}
18319
19078
  */
18320
- getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPublicKeysV1200Response> {
19079
+ getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
18321
19080
  return localVarFp.getPublicKeysV1(page, options).then((request) => request(axios, basePath));
18322
19081
  },
18323
19082
  };
@@ -19552,7 +20311,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
19552
20311
  * @param {*} [options] Override http request option.
19553
20312
  * @throws {RequiredError}
19554
20313
  */
19555
- async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPublicKeysV1200Response>> {
20314
+ async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
19556
20315
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAttachedPublicKeysV1(virtualMachineId, page, options);
19557
20316
  const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.getAttachedPublicKeysV1']?.[0]?.url;
19558
20317
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19750,7 +20509,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
19750
20509
  * @param {*} [options] Override http request option.
19751
20510
  * @throws {RequiredError}
19752
20511
  */
19753
- getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPublicKeysV1200Response> {
20512
+ getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
19754
20513
  return localVarFp.getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
19755
20514
  },
19756
20515
  /**
@@ -20009,119 +20768,1647 @@ export class VPSVirtualMachineApi extends BaseAPI {
20009
20768
  return VPSVirtualMachineApiFp(this.configuration).restartVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
20010
20769
  }
20011
20770
 
20012
- /**
20013
- * Set hostname for a specified virtual machine. Changing hostname does not update PTR record automatically. If you want your virtual machine to be reachable by a hostname, you need to point your domain A/AAAA records to virtual machine IP as well. Use this endpoint to configure custom hostnames for VPS instances.
20014
- * @summary Set hostname
20015
- * @param {number} virtualMachineId Virtual Machine ID
20016
- * @param {VPSV1VirtualMachineHostnameUpdateRequest} vPSV1VirtualMachineHostnameUpdateRequest
20017
- * @param {*} [options] Override http request option.
20018
- * @throws {RequiredError}
20019
- * @memberof VPSVirtualMachineApi
20020
- */
20021
- public setHostnameV1(virtualMachineId: number, vPSV1VirtualMachineHostnameUpdateRequest: VPSV1VirtualMachineHostnameUpdateRequest, options?: RawAxiosRequestConfig) {
20022
- return VPSVirtualMachineApiFp(this.configuration).setHostnameV1(virtualMachineId, vPSV1VirtualMachineHostnameUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20023
- }
20771
+ /**
20772
+ * Set hostname for a specified virtual machine. Changing hostname does not update PTR record automatically. If you want your virtual machine to be reachable by a hostname, you need to point your domain A/AAAA records to virtual machine IP as well. Use this endpoint to configure custom hostnames for VPS instances.
20773
+ * @summary Set hostname
20774
+ * @param {number} virtualMachineId Virtual Machine ID
20775
+ * @param {VPSV1VirtualMachineHostnameUpdateRequest} vPSV1VirtualMachineHostnameUpdateRequest
20776
+ * @param {*} [options] Override http request option.
20777
+ * @throws {RequiredError}
20778
+ * @memberof VPSVirtualMachineApi
20779
+ */
20780
+ public setHostnameV1(virtualMachineId: number, vPSV1VirtualMachineHostnameUpdateRequest: VPSV1VirtualMachineHostnameUpdateRequest, options?: RawAxiosRequestConfig) {
20781
+ return VPSVirtualMachineApiFp(this.configuration).setHostnameV1(virtualMachineId, vPSV1VirtualMachineHostnameUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20782
+ }
20783
+
20784
+ /**
20785
+ * Set nameservers for a specified virtual machine. Be aware, that improper nameserver configuration can lead to the virtual machine being unable to resolve domain names. Use this endpoint to configure custom DNS resolvers for VPS instances.
20786
+ * @summary Set nameservers
20787
+ * @param {number} virtualMachineId Virtual Machine ID
20788
+ * @param {VPSV1VirtualMachineNameserversUpdateRequest} vPSV1VirtualMachineNameserversUpdateRequest
20789
+ * @param {*} [options] Override http request option.
20790
+ * @throws {RequiredError}
20791
+ * @memberof VPSVirtualMachineApi
20792
+ */
20793
+ public setNameserversV1(virtualMachineId: number, vPSV1VirtualMachineNameserversUpdateRequest: VPSV1VirtualMachineNameserversUpdateRequest, options?: RawAxiosRequestConfig) {
20794
+ return VPSVirtualMachineApiFp(this.configuration).setNameserversV1(virtualMachineId, vPSV1VirtualMachineNameserversUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20795
+ }
20796
+
20797
+ /**
20798
+ * Set panel password for a specified virtual machine. If virtual machine does not use panel OS, the request will still be processed without any effect. Requirements for password are same as in the [recreate virtual machine endpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate). Use this endpoint to configure control panel access credentials for VPS instances.
20799
+ * @summary Set panel password
20800
+ * @param {number} virtualMachineId Virtual Machine ID
20801
+ * @param {VPSV1VirtualMachinePanelPasswordUpdateRequest} vPSV1VirtualMachinePanelPasswordUpdateRequest
20802
+ * @param {*} [options] Override http request option.
20803
+ * @throws {RequiredError}
20804
+ * @memberof VPSVirtualMachineApi
20805
+ */
20806
+ public setPanelPasswordV1(virtualMachineId: number, vPSV1VirtualMachinePanelPasswordUpdateRequest: VPSV1VirtualMachinePanelPasswordUpdateRequest, options?: RawAxiosRequestConfig) {
20807
+ return VPSVirtualMachineApiFp(this.configuration).setPanelPasswordV1(virtualMachineId, vPSV1VirtualMachinePanelPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20808
+ }
20809
+
20810
+ /**
20811
+ * Set root password for a specified virtual machine. Requirements for password are same as in the [recreate virtual machine endpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate). Use this endpoint to update administrator credentials for VPS instances.
20812
+ * @summary Set root password
20813
+ * @param {number} virtualMachineId Virtual Machine ID
20814
+ * @param {VPSV1VirtualMachineRootPasswordUpdateRequest} vPSV1VirtualMachineRootPasswordUpdateRequest
20815
+ * @param {*} [options] Override http request option.
20816
+ * @throws {RequiredError}
20817
+ * @memberof VPSVirtualMachineApi
20818
+ */
20819
+ public setRootPasswordV1(virtualMachineId: number, vPSV1VirtualMachineRootPasswordUpdateRequest: VPSV1VirtualMachineRootPasswordUpdateRequest, options?: RawAxiosRequestConfig) {
20820
+ return VPSVirtualMachineApiFp(this.configuration).setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20821
+ }
20822
+
20823
+ /**
20824
+ * Setup newly purchased virtual machine with `initial` state. Use this endpoint to configure and initialize purchased VPS instances.
20825
+ * @summary Setup purchased virtual machine
20826
+ * @param {number} virtualMachineId Virtual Machine ID
20827
+ * @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
20828
+ * @param {*} [options] Override http request option.
20829
+ * @throws {RequiredError}
20830
+ * @memberof VPSVirtualMachineApi
20831
+ */
20832
+ public setupPurchasedVirtualMachineV1(virtualMachineId: number, vPSV1VirtualMachineSetupRequest: VPSV1VirtualMachineSetupRequest, options?: RawAxiosRequestConfig) {
20833
+ return VPSVirtualMachineApiFp(this.configuration).setupPurchasedVirtualMachineV1(virtualMachineId, vPSV1VirtualMachineSetupRequest, options).then((request) => request(this.axios, this.basePath));
20834
+ }
20835
+
20836
+ /**
20837
+ * Start a specified virtual machine. If the virtual machine is already running, the request will still be processed without any effect. Use this endpoint to power on stopped VPS instances.
20838
+ * @summary Start virtual machine
20839
+ * @param {number} virtualMachineId Virtual Machine ID
20840
+ * @param {*} [options] Override http request option.
20841
+ * @throws {RequiredError}
20842
+ * @memberof VPSVirtualMachineApi
20843
+ */
20844
+ public startVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig) {
20845
+ return VPSVirtualMachineApiFp(this.configuration).startVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
20846
+ }
20847
+
20848
+ /**
20849
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20850
+ * @summary Stop virtual machine
20851
+ * @param {number} virtualMachineId Virtual Machine ID
20852
+ * @param {*} [options] Override http request option.
20853
+ * @throws {RequiredError}
20854
+ * @memberof VPSVirtualMachineApi
20855
+ */
20856
+ public stopVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig) {
20857
+ return VPSVirtualMachineApiFp(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
20858
+ }
20859
+ }
20860
+
20861
+
20862
+
20863
+ /**
20864
+ * WordPressAIToolsApi - axios parameter creator
20865
+ * @export
20866
+ */
20867
+ export const WordPressAIToolsApiAxiosParamCreator = function (configuration?: Configuration) {
20868
+ return {
20869
+ /**
20870
+ * 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).
20871
+ * @summary Set AI option status
20872
+ * @param {string} username
20873
+ * @param {string} software WordPress installation (software) identifier
20874
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
20875
+ * @param {*} [options] Override http request option.
20876
+ * @throws {RequiredError}
20877
+ */
20878
+ setAIOptionStatusV1: async (username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20879
+ // verify required parameter 'username' is not null or undefined
20880
+ assertParamExists('setAIOptionStatusV1', 'username', username)
20881
+ // verify required parameter 'software' is not null or undefined
20882
+ assertParamExists('setAIOptionStatusV1', 'software', software)
20883
+ // verify required parameter 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest' is not null or undefined
20884
+ assertParamExists('setAIOptionStatusV1', 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest', wordPressV1HostingerPluginsUpdateAiOptionStatusRequest)
20885
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
20886
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
20887
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
20888
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20889
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20890
+ let baseOptions;
20891
+ if (configuration) {
20892
+ baseOptions = configuration.baseOptions;
20893
+ }
20894
+
20895
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
20896
+ const localVarHeaderParameter = {} as any;
20897
+ const localVarQueryParameter = {} as any;
20898
+
20899
+ // authentication apiToken required
20900
+ // http bearer authentication required
20901
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20902
+
20903
+
20904
+
20905
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20906
+
20907
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20908
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20909
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20910
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, localVarRequestOptions, configuration)
20911
+
20912
+ return {
20913
+ url: toPathString(localVarUrlObj),
20914
+ options: localVarRequestOptions,
20915
+ };
20916
+ },
20917
+ /**
20918
+ * 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).
20919
+ * @summary Show AI option status
20920
+ * @param {string} username
20921
+ * @param {string} software WordPress installation (software) identifier
20922
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
20923
+ * @param {*} [options] Override http request option.
20924
+ * @throws {RequiredError}
20925
+ */
20926
+ showAIOptionStatusV1: async (username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20927
+ // verify required parameter 'username' is not null or undefined
20928
+ assertParamExists('showAIOptionStatusV1', 'username', username)
20929
+ // verify required parameter 'software' is not null or undefined
20930
+ assertParamExists('showAIOptionStatusV1', 'software', software)
20931
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
20932
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
20933
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
20934
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20935
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20936
+ let baseOptions;
20937
+ if (configuration) {
20938
+ baseOptions = configuration.baseOptions;
20939
+ }
20940
+
20941
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20942
+ const localVarHeaderParameter = {} as any;
20943
+ const localVarQueryParameter = {} as any;
20944
+
20945
+ // authentication apiToken required
20946
+ // http bearer authentication required
20947
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20948
+
20949
+ if (option !== undefined) {
20950
+ localVarQueryParameter['option'] = option;
20951
+ }
20952
+
20953
+
20954
+
20955
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20956
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20957
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20958
+
20959
+ return {
20960
+ url: toPathString(localVarUrlObj),
20961
+ options: localVarRequestOptions,
20962
+ };
20963
+ },
20964
+ }
20965
+ };
20966
+
20967
+ /**
20968
+ * WordPressAIToolsApi - functional programming interface
20969
+ * @export
20970
+ */
20971
+ export const WordPressAIToolsApiFp = function(configuration?: Configuration) {
20972
+ const localVarAxiosParamCreator = WordPressAIToolsApiAxiosParamCreator(configuration)
20973
+ return {
20974
+ /**
20975
+ * 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).
20976
+ * @summary Set AI option status
20977
+ * @param {string} username
20978
+ * @param {string} software WordPress installation (software) identifier
20979
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
20980
+ * @param {*} [options] Override http request option.
20981
+ * @throws {RequiredError}
20982
+ */
20983
+ async setAIOptionStatusV1(username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
20984
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options);
20985
+ const localVarOperationServerBasePath = operationServerMap['WordPressAIToolsApi.setAIOptionStatusV1']?.[0]?.url;
20986
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20987
+ },
20988
+ /**
20989
+ * 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).
20990
+ * @summary Show AI option status
20991
+ * @param {string} username
20992
+ * @param {string} software WordPress installation (software) identifier
20993
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
20994
+ * @param {*} [options] Override http request option.
20995
+ * @throws {RequiredError}
20996
+ */
20997
+ async showAIOptionStatusV1(username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1HostingerPluginsAiOptionStatusResource>> {
20998
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showAIOptionStatusV1(username, software, option, options);
20999
+ const localVarOperationServerBasePath = operationServerMap['WordPressAIToolsApi.showAIOptionStatusV1']?.[0]?.url;
21000
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21001
+ },
21002
+ }
21003
+ };
21004
+
21005
+ /**
21006
+ * WordPressAIToolsApi - factory interface
21007
+ * @export
21008
+ */
21009
+ export const WordPressAIToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21010
+ const localVarFp = WordPressAIToolsApiFp(configuration)
21011
+ return {
21012
+ /**
21013
+ * 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).
21014
+ * @summary Set AI option status
21015
+ * @param {string} username
21016
+ * @param {string} software WordPress installation (software) identifier
21017
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
21018
+ * @param {*} [options] Override http request option.
21019
+ * @throws {RequiredError}
21020
+ */
21021
+ setAIOptionStatusV1(username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
21022
+ return localVarFp.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(axios, basePath));
21023
+ },
21024
+ /**
21025
+ * 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).
21026
+ * @summary Show AI option status
21027
+ * @param {string} username
21028
+ * @param {string} software WordPress installation (software) identifier
21029
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
21030
+ * @param {*} [options] Override http request option.
21031
+ * @throws {RequiredError}
21032
+ */
21033
+ showAIOptionStatusV1(username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1HostingerPluginsAiOptionStatusResource> {
21034
+ return localVarFp.showAIOptionStatusV1(username, software, option, options).then((request) => request(axios, basePath));
21035
+ },
21036
+ };
21037
+ };
21038
+
21039
+ /**
21040
+ * WordPressAIToolsApi - object-oriented interface
21041
+ * @export
21042
+ * @class WordPressAIToolsApi
21043
+ * @extends {BaseAPI}
21044
+ */
21045
+ export class WordPressAIToolsApi extends BaseAPI {
21046
+ /**
21047
+ * 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).
21048
+ * @summary Set AI option status
21049
+ * @param {string} username
21050
+ * @param {string} software WordPress installation (software) identifier
21051
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
21052
+ * @param {*} [options] Override http request option.
21053
+ * @throws {RequiredError}
21054
+ * @memberof WordPressAIToolsApi
21055
+ */
21056
+ public setAIOptionStatusV1(username: string, software: string, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options?: RawAxiosRequestConfig) {
21057
+ return WordPressAIToolsApiFp(this.configuration).setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(this.axios, this.basePath));
21058
+ }
21059
+
21060
+ /**
21061
+ * 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).
21062
+ * @summary Show AI option status
21063
+ * @param {string} username
21064
+ * @param {string} software WordPress installation (software) identifier
21065
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
21066
+ * @param {*} [options] Override http request option.
21067
+ * @throws {RequiredError}
21068
+ * @memberof WordPressAIToolsApi
21069
+ */
21070
+ public showAIOptionStatusV1(username: string, software: string, option?: ShowAIOptionStatusV1OptionEnum, options?: RawAxiosRequestConfig) {
21071
+ return WordPressAIToolsApiFp(this.configuration).showAIOptionStatusV1(username, software, option, options).then((request) => request(this.axios, this.basePath));
21072
+ }
21073
+ }
21074
+
21075
+ /**
21076
+ * @export
21077
+ */
21078
+ export const ShowAIOptionStatusV1OptionEnum = {
21079
+ Llmstxt: 'llmstxt',
21080
+ Web2agent: 'web2agent'
21081
+ } as const;
21082
+ export type ShowAIOptionStatusV1OptionEnum = typeof ShowAIOptionStatusV1OptionEnum[keyof typeof ShowAIOptionStatusV1OptionEnum];
21083
+
21084
+
21085
+ /**
21086
+ * WordPressInstallationsApi - axios parameter creator
21087
+ * @export
21088
+ */
21089
+ export const WordPressInstallationsApiAxiosParamCreator = function (configuration?: Configuration) {
21090
+ return {
21091
+ /**
21092
+ * 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).
21093
+ * @summary Check if WordPress installations are valid
21094
+ * @param {string} username
21095
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
21096
+ * @param {*} [options] Override http request option.
21097
+ * @throws {RequiredError}
21098
+ */
21099
+ checkIfWordPressInstallationsAreValidV1: async (username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21100
+ // verify required parameter 'username' is not null or undefined
21101
+ assertParamExists('checkIfWordPressInstallationsAreValidV1', 'username', username)
21102
+ // verify required parameter 'wordPressV1InstallationsCheckIsValidRequest' is not null or undefined
21103
+ assertParamExists('checkIfWordPressInstallationsAreValidV1', 'wordPressV1InstallationsCheckIsValidRequest', wordPressV1InstallationsCheckIsValidRequest)
21104
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid`
21105
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
21106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21108
+ let baseOptions;
21109
+ if (configuration) {
21110
+ baseOptions = configuration.baseOptions;
21111
+ }
21112
+
21113
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21114
+ const localVarHeaderParameter = {} as any;
21115
+ const localVarQueryParameter = {} as any;
21116
+
21117
+ // authentication apiToken required
21118
+ // http bearer authentication required
21119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21120
+
21121
+
21122
+
21123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21124
+
21125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21128
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsCheckIsValidRequest, localVarRequestOptions, configuration)
21129
+
21130
+ return {
21131
+ url: toPathString(localVarUrlObj),
21132
+ options: localVarRequestOptions,
21133
+ };
21134
+ },
21135
+ /**
21136
+ * 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).
21137
+ * @summary Delete WordPress installation
21138
+ * @param {string} username
21139
+ * @param {string} software WordPress installation (software) identifier
21140
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
21141
+ * @param {*} [options] Override http request option.
21142
+ * @throws {RequiredError}
21143
+ */
21144
+ deleteWordPressInstallationV1: async (username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21145
+ // verify required parameter 'username' is not null or undefined
21146
+ assertParamExists('deleteWordPressInstallationV1', 'username', username)
21147
+ // verify required parameter 'software' is not null or undefined
21148
+ assertParamExists('deleteWordPressInstallationV1', 'software', software)
21149
+ // verify required parameter 'wordPressV1InstallationsDeleteInstallationRequest' is not null or undefined
21150
+ assertParamExists('deleteWordPressInstallationV1', 'wordPressV1InstallationsDeleteInstallationRequest', wordPressV1InstallationsDeleteInstallationRequest)
21151
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}`
21152
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21153
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21156
+ let baseOptions;
21157
+ if (configuration) {
21158
+ baseOptions = configuration.baseOptions;
21159
+ }
21160
+
21161
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
21162
+ const localVarHeaderParameter = {} as any;
21163
+ const localVarQueryParameter = {} as any;
21164
+
21165
+ // authentication apiToken required
21166
+ // http bearer authentication required
21167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21168
+
21169
+
21170
+
21171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21172
+
21173
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21175
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21176
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsDeleteInstallationRequest, localVarRequestOptions, configuration)
21177
+
21178
+ return {
21179
+ url: toPathString(localVarUrlObj),
21180
+ options: localVarRequestOptions,
21181
+ };
21182
+ },
21183
+ /**
21184
+ * 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.
21185
+ * @summary Detect WordPress installations
21186
+ * @param {string} username
21187
+ * @param {*} [options] Override http request option.
21188
+ * @throws {RequiredError}
21189
+ */
21190
+ detectWordPressInstallationsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21191
+ // verify required parameter 'username' is not null or undefined
21192
+ assertParamExists('detectWordPressInstallationsV1', 'username', username)
21193
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/detect`
21194
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
21195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21196
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21197
+ let baseOptions;
21198
+ if (configuration) {
21199
+ baseOptions = configuration.baseOptions;
21200
+ }
21201
+
21202
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21203
+ const localVarHeaderParameter = {} as any;
21204
+ const localVarQueryParameter = {} as any;
21205
+
21206
+ // authentication apiToken required
21207
+ // http bearer authentication required
21208
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21209
+
21210
+
21211
+
21212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21215
+
21216
+ return {
21217
+ url: toPathString(localVarUrlObj),
21218
+ options: localVarRequestOptions,
21219
+ };
21220
+ },
21221
+ /**
21222
+ * 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).
21223
+ * @summary Get installation JWT token
21224
+ * @param {string} username
21225
+ * @param {string} software WordPress installation (software) identifier
21226
+ * @param {*} [options] Override http request option.
21227
+ * @throws {RequiredError}
21228
+ */
21229
+ getInstallationJWTTokenV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21230
+ // verify required parameter 'username' is not null or undefined
21231
+ assertParamExists('getInstallationJWTTokenV1', 'username', username)
21232
+ // verify required parameter 'software' is not null or undefined
21233
+ assertParamExists('getInstallationJWTTokenV1', 'software', software)
21234
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token`
21235
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21236
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21238
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21239
+ let baseOptions;
21240
+ if (configuration) {
21241
+ baseOptions = configuration.baseOptions;
21242
+ }
21243
+
21244
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21245
+ const localVarHeaderParameter = {} as any;
21246
+ const localVarQueryParameter = {} as any;
21247
+
21248
+ // authentication apiToken required
21249
+ // http bearer authentication required
21250
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21251
+
21252
+
21253
+
21254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21257
+
21258
+ return {
21259
+ url: toPathString(localVarUrlObj),
21260
+ options: localVarRequestOptions,
21261
+ };
21262
+ },
21263
+ /**
21264
+ * 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.
21265
+ * @summary Install WordPress
21266
+ * @param {string} username
21267
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
21268
+ * @param {*} [options] Override http request option.
21269
+ * @throws {RequiredError}
21270
+ */
21271
+ installWordPressV1: async (username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21272
+ // verify required parameter 'username' is not null or undefined
21273
+ assertParamExists('installWordPressV1', 'username', username)
21274
+ // verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
21275
+ assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest)
21276
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
21277
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
21278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21280
+ let baseOptions;
21281
+ if (configuration) {
21282
+ baseOptions = configuration.baseOptions;
21283
+ }
21284
+
21285
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21286
+ const localVarHeaderParameter = {} as any;
21287
+ const localVarQueryParameter = {} as any;
21288
+
21289
+ // authentication apiToken required
21290
+ // http bearer authentication required
21291
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21292
+
21293
+
21294
+
21295
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21296
+
21297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21299
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21300
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration)
21301
+
21302
+ return {
21303
+ url: toPathString(localVarUrlObj),
21304
+ options: localVarRequestOptions,
21305
+ };
21306
+ },
21307
+ /**
21308
+ * 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).
21309
+ * @summary List available WordPress core updates
21310
+ * @param {string} username
21311
+ * @param {string} software WordPress installation (software) identifier
21312
+ * @param {*} [options] Override http request option.
21313
+ * @throws {RequiredError}
21314
+ */
21315
+ listAvailableWordPressCoreUpdatesV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21316
+ // verify required parameter 'username' is not null or undefined
21317
+ assertParamExists('listAvailableWordPressCoreUpdatesV1', 'username', username)
21318
+ // verify required parameter 'software' is not null or undefined
21319
+ assertParamExists('listAvailableWordPressCoreUpdatesV1', 'software', software)
21320
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/updates`
21321
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21322
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21325
+ let baseOptions;
21326
+ if (configuration) {
21327
+ baseOptions = configuration.baseOptions;
21328
+ }
21329
+
21330
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21331
+ const localVarHeaderParameter = {} as any;
21332
+ const localVarQueryParameter = {} as any;
21333
+
21334
+ // authentication apiToken required
21335
+ // http bearer authentication required
21336
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21337
+
21338
+
21339
+
21340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21342
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21343
+
21344
+ return {
21345
+ url: toPathString(localVarUrlObj),
21346
+ options: localVarRequestOptions,
21347
+ };
21348
+ },
21349
+ /**
21350
+ * 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.
21351
+ * @summary List WordPress installations
21352
+ * @param {string | null} [username] Filter by specific username
21353
+ * @param {string | null} [domain] Filter by domain name (exact match)
21354
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
21355
+ * @param {*} [options] Override http request option.
21356
+ * @throws {RequiredError}
21357
+ */
21358
+ listWordPressInstallationsV1: async (username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21359
+ const localVarPath = `/api/hosting/v1/wordpress/installations`;
21360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21362
+ let baseOptions;
21363
+ if (configuration) {
21364
+ baseOptions = configuration.baseOptions;
21365
+ }
21366
+
21367
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21368
+ const localVarHeaderParameter = {} as any;
21369
+ const localVarQueryParameter = {} as any;
21370
+
21371
+ // authentication apiToken required
21372
+ // http bearer authentication required
21373
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21374
+
21375
+ if (username !== undefined) {
21376
+ localVarQueryParameter['username'] = username;
21377
+ }
21378
+
21379
+ if (domain !== undefined) {
21380
+ localVarQueryParameter['domain'] = domain;
21381
+ }
21382
+
21383
+ if (ownership !== undefined) {
21384
+ localVarQueryParameter['ownership'] = ownership;
21385
+ }
21386
+
21387
+
21388
+
21389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21391
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21392
+
21393
+ return {
21394
+ url: toPathString(localVarUrlObj),
21395
+ options: localVarRequestOptions,
21396
+ };
21397
+ },
21398
+ /**
21399
+ * 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).
21400
+ * @summary Show WordPress core version
21401
+ * @param {string} username
21402
+ * @param {string} software WordPress installation (software) identifier
21403
+ * @param {*} [options] Override http request option.
21404
+ * @throws {RequiredError}
21405
+ */
21406
+ showWordPressCoreVersionV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21407
+ // verify required parameter 'username' is not null or undefined
21408
+ assertParamExists('showWordPressCoreVersionV1', 'username', username)
21409
+ // verify required parameter 'software' is not null or undefined
21410
+ assertParamExists('showWordPressCoreVersionV1', 'software', software)
21411
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/version`
21412
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21413
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21414
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21415
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21416
+ let baseOptions;
21417
+ if (configuration) {
21418
+ baseOptions = configuration.baseOptions;
21419
+ }
21420
+
21421
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21422
+ const localVarHeaderParameter = {} as any;
21423
+ const localVarQueryParameter = {} as any;
21424
+
21425
+ // authentication apiToken required
21426
+ // http bearer authentication required
21427
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21428
+
21429
+
21430
+
21431
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21432
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21433
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21434
+
21435
+ return {
21436
+ url: toPathString(localVarUrlObj),
21437
+ options: localVarRequestOptions,
21438
+ };
21439
+ },
21440
+ /**
21441
+ * 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.
21442
+ * @summary Update WordPress core
21443
+ * @param {string} username
21444
+ * @param {string} software WordPress installation (software) identifier
21445
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
21446
+ * @param {*} [options] Override http request option.
21447
+ * @throws {RequiredError}
21448
+ */
21449
+ updateWordPressCoreV1: async (username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21450
+ // verify required parameter 'username' is not null or undefined
21451
+ assertParamExists('updateWordPressCoreV1', 'username', username)
21452
+ // verify required parameter 'software' is not null or undefined
21453
+ assertParamExists('updateWordPressCoreV1', 'software', software)
21454
+ // verify required parameter 'wordPressV1InstallationsUpdateInstallationRequest' is not null or undefined
21455
+ assertParamExists('updateWordPressCoreV1', 'wordPressV1InstallationsUpdateInstallationRequest', wordPressV1InstallationsUpdateInstallationRequest)
21456
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/update`
21457
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21458
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21459
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21460
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21461
+ let baseOptions;
21462
+ if (configuration) {
21463
+ baseOptions = configuration.baseOptions;
21464
+ }
21465
+
21466
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21467
+ const localVarHeaderParameter = {} as any;
21468
+ const localVarQueryParameter = {} as any;
21469
+
21470
+ // authentication apiToken required
21471
+ // http bearer authentication required
21472
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21473
+
21474
+
21475
+
21476
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21477
+
21478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21480
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21481
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsUpdateInstallationRequest, localVarRequestOptions, configuration)
21482
+
21483
+ return {
21484
+ url: toPathString(localVarUrlObj),
21485
+ options: localVarRequestOptions,
21486
+ };
21487
+ },
21488
+ }
21489
+ };
21490
+
21491
+ /**
21492
+ * WordPressInstallationsApi - functional programming interface
21493
+ * @export
21494
+ */
21495
+ export const WordPressInstallationsApiFp = function(configuration?: Configuration) {
21496
+ const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration)
21497
+ return {
21498
+ /**
21499
+ * 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).
21500
+ * @summary Check if WordPress installations are valid
21501
+ * @param {string} username
21502
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
21503
+ * @param {*} [options] Override http request option.
21504
+ * @throws {RequiredError}
21505
+ */
21506
+ async checkIfWordPressInstallationsAreValidV1(username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsCheckIsValidResultResource>>> {
21507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options);
21508
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.checkIfWordPressInstallationsAreValidV1']?.[0]?.url;
21509
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21510
+ },
21511
+ /**
21512
+ * 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).
21513
+ * @summary Delete WordPress installation
21514
+ * @param {string} username
21515
+ * @param {string} software WordPress installation (software) identifier
21516
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
21517
+ * @param {*} [options] Override http request option.
21518
+ * @throws {RequiredError}
21519
+ */
21520
+ async deleteWordPressInstallationV1(username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
21521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options);
21522
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.deleteWordPressInstallationV1']?.[0]?.url;
21523
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21524
+ },
21525
+ /**
21526
+ * 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.
21527
+ * @summary Detect WordPress installations
21528
+ * @param {string} username
21529
+ * @param {*} [options] Override http request option.
21530
+ * @throws {RequiredError}
21531
+ */
21532
+ async detectWordPressInstallationsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
21533
+ const localVarAxiosArgs = await localVarAxiosParamCreator.detectWordPressInstallationsV1(username, options);
21534
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.detectWordPressInstallationsV1']?.[0]?.url;
21535
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21536
+ },
21537
+ /**
21538
+ * 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).
21539
+ * @summary Get installation JWT token
21540
+ * @param {string} username
21541
+ * @param {string} software WordPress installation (software) identifier
21542
+ * @param {*} [options] Override http request option.
21543
+ * @throws {RequiredError}
21544
+ */
21545
+ async getInstallationJWTTokenV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1InstallationsJwtTokenResource>> {
21546
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInstallationJWTTokenV1(username, software, options);
21547
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.getInstallationJWTTokenV1']?.[0]?.url;
21548
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21549
+ },
21550
+ /**
21551
+ * 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.
21552
+ * @summary Install WordPress
21553
+ * @param {string} username
21554
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
21555
+ * @param {*} [options] Override http request option.
21556
+ * @throws {RequiredError}
21557
+ */
21558
+ async installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
21559
+ const localVarAxiosArgs = await localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
21560
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.installWordPressV1']?.[0]?.url;
21561
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21562
+ },
21563
+ /**
21564
+ * 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).
21565
+ * @summary List available WordPress core updates
21566
+ * @param {string} username
21567
+ * @param {string} software WordPress installation (software) identifier
21568
+ * @param {*} [options] Override http request option.
21569
+ * @throws {RequiredError}
21570
+ */
21571
+ async listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsUpdateResource>>> {
21572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableWordPressCoreUpdatesV1(username, software, options);
21573
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.listAvailableWordPressCoreUpdatesV1']?.[0]?.url;
21574
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21575
+ },
21576
+ /**
21577
+ * 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.
21578
+ * @summary List WordPress installations
21579
+ * @param {string | null} [username] Filter by specific username
21580
+ * @param {string | null} [domain] Filter by domain name (exact match)
21581
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
21582
+ * @param {*} [options] Override http request option.
21583
+ * @throws {RequiredError}
21584
+ */
21585
+ async listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>>> {
21586
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
21587
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']?.[0]?.url;
21588
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21589
+ },
21590
+ /**
21591
+ * 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).
21592
+ * @summary Show WordPress core version
21593
+ * @param {string} username
21594
+ * @param {string} software WordPress installation (software) identifier
21595
+ * @param {*} [options] Override http request option.
21596
+ * @throws {RequiredError}
21597
+ */
21598
+ async showWordPressCoreVersionV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1InstallationsVersionResource>> {
21599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showWordPressCoreVersionV1(username, software, options);
21600
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.showWordPressCoreVersionV1']?.[0]?.url;
21601
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21602
+ },
21603
+ /**
21604
+ * 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.
21605
+ * @summary Update WordPress core
21606
+ * @param {string} username
21607
+ * @param {string} software WordPress installation (software) identifier
21608
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
21609
+ * @param {*} [options] Override http request option.
21610
+ * @throws {RequiredError}
21611
+ */
21612
+ async updateWordPressCoreV1(username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
21613
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options);
21614
+ const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.updateWordPressCoreV1']?.[0]?.url;
21615
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21616
+ },
21617
+ }
21618
+ };
21619
+
21620
+ /**
21621
+ * WordPressInstallationsApi - factory interface
21622
+ * @export
21623
+ */
21624
+ export const WordPressInstallationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21625
+ const localVarFp = WordPressInstallationsApiFp(configuration)
21626
+ return {
21627
+ /**
21628
+ * 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).
21629
+ * @summary Check if WordPress installations are valid
21630
+ * @param {string} username
21631
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
21632
+ * @param {*} [options] Override http request option.
21633
+ * @throws {RequiredError}
21634
+ */
21635
+ checkIfWordPressInstallationsAreValidV1(username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsCheckIsValidResultResource>> {
21636
+ return localVarFp.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(axios, basePath));
21637
+ },
21638
+ /**
21639
+ * 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).
21640
+ * @summary Delete WordPress installation
21641
+ * @param {string} username
21642
+ * @param {string} software WordPress installation (software) identifier
21643
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
21644
+ * @param {*} [options] Override http request option.
21645
+ * @throws {RequiredError}
21646
+ */
21647
+ deleteWordPressInstallationV1(username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
21648
+ return localVarFp.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(axios, basePath));
21649
+ },
21650
+ /**
21651
+ * 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.
21652
+ * @summary Detect WordPress installations
21653
+ * @param {string} username
21654
+ * @param {*} [options] Override http request option.
21655
+ * @throws {RequiredError}
21656
+ */
21657
+ detectWordPressInstallationsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
21658
+ return localVarFp.detectWordPressInstallationsV1(username, options).then((request) => request(axios, basePath));
21659
+ },
21660
+ /**
21661
+ * 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).
21662
+ * @summary Get installation JWT token
21663
+ * @param {string} username
21664
+ * @param {string} software WordPress installation (software) identifier
21665
+ * @param {*} [options] Override http request option.
21666
+ * @throws {RequiredError}
21667
+ */
21668
+ getInstallationJWTTokenV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1InstallationsJwtTokenResource> {
21669
+ return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
21670
+ },
21671
+ /**
21672
+ * 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.
21673
+ * @summary Install WordPress
21674
+ * @param {string} username
21675
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
21676
+ * @param {*} [options] Override http request option.
21677
+ * @throws {RequiredError}
21678
+ */
21679
+ installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
21680
+ return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
21681
+ },
21682
+ /**
21683
+ * 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).
21684
+ * @summary List available WordPress core updates
21685
+ * @param {string} username
21686
+ * @param {string} software WordPress installation (software) identifier
21687
+ * @param {*} [options] Override http request option.
21688
+ * @throws {RequiredError}
21689
+ */
21690
+ listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsUpdateResource>> {
21691
+ return localVarFp.listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(axios, basePath));
21692
+ },
21693
+ /**
21694
+ * 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.
21695
+ * @summary List WordPress installations
21696
+ * @param {string | null} [username] Filter by specific username
21697
+ * @param {string | null} [domain] Filter by domain name (exact match)
21698
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
21699
+ * @param {*} [options] Override http request option.
21700
+ * @throws {RequiredError}
21701
+ */
21702
+ listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>> {
21703
+ return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
21704
+ },
21705
+ /**
21706
+ * 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).
21707
+ * @summary Show WordPress core version
21708
+ * @param {string} username
21709
+ * @param {string} software WordPress installation (software) identifier
21710
+ * @param {*} [options] Override http request option.
21711
+ * @throws {RequiredError}
21712
+ */
21713
+ showWordPressCoreVersionV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1InstallationsVersionResource> {
21714
+ return localVarFp.showWordPressCoreVersionV1(username, software, options).then((request) => request(axios, basePath));
21715
+ },
21716
+ /**
21717
+ * 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.
21718
+ * @summary Update WordPress core
21719
+ * @param {string} username
21720
+ * @param {string} software WordPress installation (software) identifier
21721
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
21722
+ * @param {*} [options] Override http request option.
21723
+ * @throws {RequiredError}
21724
+ */
21725
+ updateWordPressCoreV1(username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
21726
+ return localVarFp.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(axios, basePath));
21727
+ },
21728
+ };
21729
+ };
21730
+
21731
+ /**
21732
+ * WordPressInstallationsApi - object-oriented interface
21733
+ * @export
21734
+ * @class WordPressInstallationsApi
21735
+ * @extends {BaseAPI}
21736
+ */
21737
+ export class WordPressInstallationsApi extends BaseAPI {
21738
+ /**
21739
+ * 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).
21740
+ * @summary Check if WordPress installations are valid
21741
+ * @param {string} username
21742
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
21743
+ * @param {*} [options] Override http request option.
21744
+ * @throws {RequiredError}
21745
+ * @memberof WordPressInstallationsApi
21746
+ */
21747
+ public checkIfWordPressInstallationsAreValidV1(username: string, wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest, options?: RawAxiosRequestConfig) {
21748
+ return WordPressInstallationsApiFp(this.configuration).checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(this.axios, this.basePath));
21749
+ }
21750
+
21751
+ /**
21752
+ * 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).
21753
+ * @summary Delete WordPress installation
21754
+ * @param {string} username
21755
+ * @param {string} software WordPress installation (software) identifier
21756
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
21757
+ * @param {*} [options] Override http request option.
21758
+ * @throws {RequiredError}
21759
+ * @memberof WordPressInstallationsApi
21760
+ */
21761
+ public deleteWordPressInstallationV1(username: string, software: string, wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest, options?: RawAxiosRequestConfig) {
21762
+ return WordPressInstallationsApiFp(this.configuration).deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(this.axios, this.basePath));
21763
+ }
21764
+
21765
+ /**
21766
+ * 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.
21767
+ * @summary Detect WordPress installations
21768
+ * @param {string} username
21769
+ * @param {*} [options] Override http request option.
21770
+ * @throws {RequiredError}
21771
+ * @memberof WordPressInstallationsApi
21772
+ */
21773
+ public detectWordPressInstallationsV1(username: string, options?: RawAxiosRequestConfig) {
21774
+ return WordPressInstallationsApiFp(this.configuration).detectWordPressInstallationsV1(username, options).then((request) => request(this.axios, this.basePath));
21775
+ }
21776
+
21777
+ /**
21778
+ * 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).
21779
+ * @summary Get installation JWT token
21780
+ * @param {string} username
21781
+ * @param {string} software WordPress installation (software) identifier
21782
+ * @param {*} [options] Override http request option.
21783
+ * @throws {RequiredError}
21784
+ * @memberof WordPressInstallationsApi
21785
+ */
21786
+ public getInstallationJWTTokenV1(username: string, software: string, options?: RawAxiosRequestConfig) {
21787
+ return WordPressInstallationsApiFp(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
21788
+ }
21789
+
21790
+ /**
21791
+ * 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.
21792
+ * @summary Install WordPress
21793
+ * @param {string} username
21794
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
21795
+ * @param {*} [options] Override http request option.
21796
+ * @throws {RequiredError}
21797
+ * @memberof WordPressInstallationsApi
21798
+ */
21799
+ public installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig) {
21800
+ return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
21801
+ }
21802
+
21803
+ /**
21804
+ * 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).
21805
+ * @summary List available WordPress core updates
21806
+ * @param {string} username
21807
+ * @param {string} software WordPress installation (software) identifier
21808
+ * @param {*} [options] Override http request option.
21809
+ * @throws {RequiredError}
21810
+ * @memberof WordPressInstallationsApi
21811
+ */
21812
+ public listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig) {
21813
+ return WordPressInstallationsApiFp(this.configuration).listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(this.axios, this.basePath));
21814
+ }
21815
+
21816
+ /**
21817
+ * 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.
21818
+ * @summary List WordPress installations
21819
+ * @param {string | null} [username] Filter by specific username
21820
+ * @param {string | null} [domain] Filter by domain name (exact match)
21821
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
21822
+ * @param {*} [options] Override http request option.
21823
+ * @throws {RequiredError}
21824
+ * @memberof WordPressInstallationsApi
21825
+ */
21826
+ public listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig) {
21827
+ return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
21828
+ }
21829
+
21830
+ /**
21831
+ * 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).
21832
+ * @summary Show WordPress core version
21833
+ * @param {string} username
21834
+ * @param {string} software WordPress installation (software) identifier
21835
+ * @param {*} [options] Override http request option.
21836
+ * @throws {RequiredError}
21837
+ * @memberof WordPressInstallationsApi
21838
+ */
21839
+ public showWordPressCoreVersionV1(username: string, software: string, options?: RawAxiosRequestConfig) {
21840
+ return WordPressInstallationsApiFp(this.configuration).showWordPressCoreVersionV1(username, software, options).then((request) => request(this.axios, this.basePath));
21841
+ }
21842
+
21843
+ /**
21844
+ * 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.
21845
+ * @summary Update WordPress core
21846
+ * @param {string} username
21847
+ * @param {string} software WordPress installation (software) identifier
21848
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
21849
+ * @param {*} [options] Override http request option.
21850
+ * @throws {RequiredError}
21851
+ * @memberof WordPressInstallationsApi
21852
+ */
21853
+ public updateWordPressCoreV1(username: string, software: string, wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest, options?: RawAxiosRequestConfig) {
21854
+ return WordPressInstallationsApiFp(this.configuration).updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(this.axios, this.basePath));
21855
+ }
21856
+ }
21857
+
21858
+ /**
21859
+ * @export
21860
+ */
21861
+ export const ListWordPressInstallationsV1OwnershipEnum = {
21862
+ Owned: 'owned',
21863
+ Managed: 'managed',
21864
+ All: 'all'
21865
+ } as const;
21866
+ export type ListWordPressInstallationsV1OwnershipEnum = typeof ListWordPressInstallationsV1OwnershipEnum[keyof typeof ListWordPressInstallationsV1OwnershipEnum];
21867
+
21868
+
21869
+ /**
21870
+ * WordPressLiteSpeedCacheApi - axios parameter creator
21871
+ * @export
21872
+ */
21873
+ export const WordPressLiteSpeedCacheApiAxiosParamCreator = function (configuration?: Configuration) {
21874
+ return {
21875
+ /**
21876
+ * 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).
21877
+ * @summary Purge LiteSpeed Cache
21878
+ * @param {string} username
21879
+ * @param {string} software WordPress installation (software) identifier
21880
+ * @param {*} [options] Override http request option.
21881
+ * @throws {RequiredError}
21882
+ */
21883
+ purgeLiteSpeedCacheV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21884
+ // verify required parameter 'username' is not null or undefined
21885
+ assertParamExists('purgeLiteSpeedCacheV1', 'username', username)
21886
+ // verify required parameter 'software' is not null or undefined
21887
+ assertParamExists('purgeLiteSpeedCacheV1', 'software', software)
21888
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge`
21889
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21890
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21891
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21892
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21893
+ let baseOptions;
21894
+ if (configuration) {
21895
+ baseOptions = configuration.baseOptions;
21896
+ }
21897
+
21898
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21899
+ const localVarHeaderParameter = {} as any;
21900
+ const localVarQueryParameter = {} as any;
21901
+
21902
+ // authentication apiToken required
21903
+ // http bearer authentication required
21904
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21905
+
21906
+
21907
+
21908
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21909
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21910
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21911
+
21912
+ return {
21913
+ url: toPathString(localVarUrlObj),
21914
+ options: localVarRequestOptions,
21915
+ };
21916
+ },
21917
+ /**
21918
+ * 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).
21919
+ * @summary Show LiteSpeed Cache status
21920
+ * @param {string} username
21921
+ * @param {string} software WordPress installation (software) identifier
21922
+ * @param {*} [options] Override http request option.
21923
+ * @throws {RequiredError}
21924
+ */
21925
+ showLiteSpeedCacheStatusV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21926
+ // verify required parameter 'username' is not null or undefined
21927
+ assertParamExists('showLiteSpeedCacheStatusV1', 'username', username)
21928
+ // verify required parameter 'software' is not null or undefined
21929
+ assertParamExists('showLiteSpeedCacheStatusV1', 'software', software)
21930
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status`
21931
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
21932
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
21933
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21934
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21935
+ let baseOptions;
21936
+ if (configuration) {
21937
+ baseOptions = configuration.baseOptions;
21938
+ }
21939
+
21940
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21941
+ const localVarHeaderParameter = {} as any;
21942
+ const localVarQueryParameter = {} as any;
21943
+
21944
+ // authentication apiToken required
21945
+ // http bearer authentication required
21946
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21947
+
21948
+
21949
+
21950
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21951
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21952
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21953
+
21954
+ return {
21955
+ url: toPathString(localVarUrlObj),
21956
+ options: localVarRequestOptions,
21957
+ };
21958
+ },
21959
+ }
21960
+ };
21961
+
21962
+ /**
21963
+ * WordPressLiteSpeedCacheApi - functional programming interface
21964
+ * @export
21965
+ */
21966
+ export const WordPressLiteSpeedCacheApiFp = function(configuration?: Configuration) {
21967
+ const localVarAxiosParamCreator = WordPressLiteSpeedCacheApiAxiosParamCreator(configuration)
21968
+ return {
21969
+ /**
21970
+ * 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).
21971
+ * @summary Purge LiteSpeed Cache
21972
+ * @param {string} username
21973
+ * @param {string} software WordPress installation (software) identifier
21974
+ * @param {*} [options] Override http request option.
21975
+ * @throws {RequiredError}
21976
+ */
21977
+ async purgeLiteSpeedCacheV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
21978
+ const localVarAxiosArgs = await localVarAxiosParamCreator.purgeLiteSpeedCacheV1(username, software, options);
21979
+ const localVarOperationServerBasePath = operationServerMap['WordPressLiteSpeedCacheApi.purgeLiteSpeedCacheV1']?.[0]?.url;
21980
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21981
+ },
21982
+ /**
21983
+ * 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).
21984
+ * @summary Show LiteSpeed Cache status
21985
+ * @param {string} username
21986
+ * @param {string} software WordPress installation (software) identifier
21987
+ * @param {*} [options] Override http request option.
21988
+ * @throws {RequiredError}
21989
+ */
21990
+ async showLiteSpeedCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1LitespeedLitespeedCacheStatusResource>> {
21991
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showLiteSpeedCacheStatusV1(username, software, options);
21992
+ const localVarOperationServerBasePath = operationServerMap['WordPressLiteSpeedCacheApi.showLiteSpeedCacheStatusV1']?.[0]?.url;
21993
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21994
+ },
21995
+ }
21996
+ };
21997
+
21998
+ /**
21999
+ * WordPressLiteSpeedCacheApi - factory interface
22000
+ * @export
22001
+ */
22002
+ export const WordPressLiteSpeedCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22003
+ const localVarFp = WordPressLiteSpeedCacheApiFp(configuration)
22004
+ return {
22005
+ /**
22006
+ * 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).
22007
+ * @summary Purge LiteSpeed Cache
22008
+ * @param {string} username
22009
+ * @param {string} software WordPress installation (software) identifier
22010
+ * @param {*} [options] Override http request option.
22011
+ * @throws {RequiredError}
22012
+ */
22013
+ purgeLiteSpeedCacheV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
22014
+ return localVarFp.purgeLiteSpeedCacheV1(username, software, options).then((request) => request(axios, basePath));
22015
+ },
22016
+ /**
22017
+ * 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).
22018
+ * @summary Show LiteSpeed Cache status
22019
+ * @param {string} username
22020
+ * @param {string} software WordPress installation (software) identifier
22021
+ * @param {*} [options] Override http request option.
22022
+ * @throws {RequiredError}
22023
+ */
22024
+ showLiteSpeedCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1LitespeedLitespeedCacheStatusResource> {
22025
+ return localVarFp.showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
22026
+ },
22027
+ };
22028
+ };
22029
+
22030
+ /**
22031
+ * WordPressLiteSpeedCacheApi - object-oriented interface
22032
+ * @export
22033
+ * @class WordPressLiteSpeedCacheApi
22034
+ * @extends {BaseAPI}
22035
+ */
22036
+ export class WordPressLiteSpeedCacheApi extends BaseAPI {
22037
+ /**
22038
+ * 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).
22039
+ * @summary Purge LiteSpeed Cache
22040
+ * @param {string} username
22041
+ * @param {string} software WordPress installation (software) identifier
22042
+ * @param {*} [options] Override http request option.
22043
+ * @throws {RequiredError}
22044
+ * @memberof WordPressLiteSpeedCacheApi
22045
+ */
22046
+ public purgeLiteSpeedCacheV1(username: string, software: string, options?: RawAxiosRequestConfig) {
22047
+ return WordPressLiteSpeedCacheApiFp(this.configuration).purgeLiteSpeedCacheV1(username, software, options).then((request) => request(this.axios, this.basePath));
22048
+ }
22049
+
22050
+ /**
22051
+ * 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).
22052
+ * @summary Show LiteSpeed Cache status
22053
+ * @param {string} username
22054
+ * @param {string} software WordPress installation (software) identifier
22055
+ * @param {*} [options] Override http request option.
22056
+ * @throws {RequiredError}
22057
+ * @memberof WordPressLiteSpeedCacheApi
22058
+ */
22059
+ public showLiteSpeedCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig) {
22060
+ return WordPressLiteSpeedCacheApiFp(this.configuration).showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
22061
+ }
22062
+ }
22063
+
22064
+
22065
+
22066
+ /**
22067
+ * WordPressLoginApi - axios parameter creator
22068
+ * @export
22069
+ */
22070
+ export const WordPressLoginApiAxiosParamCreator = function (configuration?: Configuration) {
22071
+ return {
22072
+ /**
22073
+ * 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).
22074
+ * @summary Create login links
22075
+ * @param {string} username
22076
+ * @param {string} software WordPress installation (software) identifier
22077
+ * @param {*} [options] Override http request option.
22078
+ * @throws {RequiredError}
22079
+ */
22080
+ createLoginLinksV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22081
+ // verify required parameter 'username' is not null or undefined
22082
+ assertParamExists('createLoginLinksV1', 'username', username)
22083
+ // verify required parameter 'software' is not null or undefined
22084
+ assertParamExists('createLoginLinksV1', 'software', software)
22085
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/login/links`
22086
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22087
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
22088
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22089
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22090
+ let baseOptions;
22091
+ if (configuration) {
22092
+ baseOptions = configuration.baseOptions;
22093
+ }
22094
+
22095
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22096
+ const localVarHeaderParameter = {} as any;
22097
+ const localVarQueryParameter = {} as any;
22098
+
22099
+ // authentication apiToken required
22100
+ // http bearer authentication required
22101
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22102
+
22103
+
22104
+
22105
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22107
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22108
+
22109
+ return {
22110
+ url: toPathString(localVarUrlObj),
22111
+ options: localVarRequestOptions,
22112
+ };
22113
+ },
22114
+ }
22115
+ };
22116
+
22117
+ /**
22118
+ * WordPressLoginApi - functional programming interface
22119
+ * @export
22120
+ */
22121
+ export const WordPressLoginApiFp = function(configuration?: Configuration) {
22122
+ const localVarAxiosParamCreator = WordPressLoginApiAxiosParamCreator(configuration)
22123
+ return {
22124
+ /**
22125
+ * 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).
22126
+ * @summary Create login links
22127
+ * @param {string} username
22128
+ * @param {string} software WordPress installation (software) identifier
22129
+ * @param {*} [options] Override http request option.
22130
+ * @throws {RequiredError}
22131
+ */
22132
+ async createLoginLinksV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1LoginLoginLinksResource>> {
22133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createLoginLinksV1(username, software, options);
22134
+ const localVarOperationServerBasePath = operationServerMap['WordPressLoginApi.createLoginLinksV1']?.[0]?.url;
22135
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22136
+ },
22137
+ }
22138
+ };
22139
+
22140
+ /**
22141
+ * WordPressLoginApi - factory interface
22142
+ * @export
22143
+ */
22144
+ export const WordPressLoginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22145
+ const localVarFp = WordPressLoginApiFp(configuration)
22146
+ return {
22147
+ /**
22148
+ * 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).
22149
+ * @summary Create login links
22150
+ * @param {string} username
22151
+ * @param {string} software WordPress installation (software) identifier
22152
+ * @param {*} [options] Override http request option.
22153
+ * @throws {RequiredError}
22154
+ */
22155
+ createLoginLinksV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1LoginLoginLinksResource> {
22156
+ return localVarFp.createLoginLinksV1(username, software, options).then((request) => request(axios, basePath));
22157
+ },
22158
+ };
22159
+ };
22160
+
22161
+ /**
22162
+ * WordPressLoginApi - object-oriented interface
22163
+ * @export
22164
+ * @class WordPressLoginApi
22165
+ * @extends {BaseAPI}
22166
+ */
22167
+ export class WordPressLoginApi extends BaseAPI {
22168
+ /**
22169
+ * 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).
22170
+ * @summary Create login links
22171
+ * @param {string} username
22172
+ * @param {string} software WordPress installation (software) identifier
22173
+ * @param {*} [options] Override http request option.
22174
+ * @throws {RequiredError}
22175
+ * @memberof WordPressLoginApi
22176
+ */
22177
+ public createLoginLinksV1(username: string, software: string, options?: RawAxiosRequestConfig) {
22178
+ return WordPressLoginApiFp(this.configuration).createLoginLinksV1(username, software, options).then((request) => request(this.axios, this.basePath));
22179
+ }
22180
+ }
22181
+
22182
+
22183
+
22184
+ /**
22185
+ * WordPressMaintenanceApi - axios parameter creator
22186
+ * @export
22187
+ */
22188
+ export const WordPressMaintenanceApiAxiosParamCreator = function (configuration?: Configuration) {
22189
+ return {
22190
+ /**
22191
+ * 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).
22192
+ * @summary Show maintenance status
22193
+ * @param {string} username
22194
+ * @param {string} software WordPress installation (software) identifier
22195
+ * @param {*} [options] Override http request option.
22196
+ * @throws {RequiredError}
22197
+ */
22198
+ showMaintenanceStatusV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22199
+ // verify required parameter 'username' is not null or undefined
22200
+ assertParamExists('showMaintenanceStatusV1', 'username', username)
22201
+ // verify required parameter 'software' is not null or undefined
22202
+ assertParamExists('showMaintenanceStatusV1', 'software', software)
22203
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status`
22204
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22205
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
22206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22208
+ let baseOptions;
22209
+ if (configuration) {
22210
+ baseOptions = configuration.baseOptions;
22211
+ }
22212
+
22213
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22214
+ const localVarHeaderParameter = {} as any;
22215
+ const localVarQueryParameter = {} as any;
22216
+
22217
+ // authentication apiToken required
22218
+ // http bearer authentication required
22219
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22220
+
22221
+
22222
+
22223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22225
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22226
+
22227
+ return {
22228
+ url: toPathString(localVarUrlObj),
22229
+ options: localVarRequestOptions,
22230
+ };
22231
+ },
22232
+ /**
22233
+ * 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).
22234
+ * @summary Toggle maintenance mode
22235
+ * @param {string} username
22236
+ * @param {string} software WordPress installation (software) identifier
22237
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
22238
+ * @param {*} [options] Override http request option.
22239
+ * @throws {RequiredError}
22240
+ */
22241
+ toggleMaintenanceModeV1: async (username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22242
+ // verify required parameter 'username' is not null or undefined
22243
+ assertParamExists('toggleMaintenanceModeV1', 'username', username)
22244
+ // verify required parameter 'software' is not null or undefined
22245
+ assertParamExists('toggleMaintenanceModeV1', 'software', software)
22246
+ // verify required parameter 'wordPressV1MaintenanceToggleMaintenanceRequest' is not null or undefined
22247
+ assertParamExists('toggleMaintenanceModeV1', 'wordPressV1MaintenanceToggleMaintenanceRequest', wordPressV1MaintenanceToggleMaintenanceRequest)
22248
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle`
22249
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22250
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
22251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22253
+ let baseOptions;
22254
+ if (configuration) {
22255
+ baseOptions = configuration.baseOptions;
22256
+ }
22257
+
22258
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
22259
+ const localVarHeaderParameter = {} as any;
22260
+ const localVarQueryParameter = {} as any;
20024
22261
 
20025
- /**
20026
- * Set nameservers for a specified virtual machine. Be aware, that improper nameserver configuration can lead to the virtual machine being unable to resolve domain names. Use this endpoint to configure custom DNS resolvers for VPS instances.
20027
- * @summary Set nameservers
20028
- * @param {number} virtualMachineId Virtual Machine ID
20029
- * @param {VPSV1VirtualMachineNameserversUpdateRequest} vPSV1VirtualMachineNameserversUpdateRequest
20030
- * @param {*} [options] Override http request option.
20031
- * @throws {RequiredError}
20032
- * @memberof VPSVirtualMachineApi
20033
- */
20034
- public setNameserversV1(virtualMachineId: number, vPSV1VirtualMachineNameserversUpdateRequest: VPSV1VirtualMachineNameserversUpdateRequest, options?: RawAxiosRequestConfig) {
20035
- return VPSVirtualMachineApiFp(this.configuration).setNameserversV1(virtualMachineId, vPSV1VirtualMachineNameserversUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20036
- }
22262
+ // authentication apiToken required
22263
+ // http bearer authentication required
22264
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20037
22265
 
20038
- /**
20039
- * Set panel password for a specified virtual machine. If virtual machine does not use panel OS, the request will still be processed without any effect. Requirements for password are same as in the [recreate virtual machine endpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate). Use this endpoint to configure control panel access credentials for VPS instances.
20040
- * @summary Set panel password
20041
- * @param {number} virtualMachineId Virtual Machine ID
20042
- * @param {VPSV1VirtualMachinePanelPasswordUpdateRequest} vPSV1VirtualMachinePanelPasswordUpdateRequest
20043
- * @param {*} [options] Override http request option.
20044
- * @throws {RequiredError}
20045
- * @memberof VPSVirtualMachineApi
20046
- */
20047
- public setPanelPasswordV1(virtualMachineId: number, vPSV1VirtualMachinePanelPasswordUpdateRequest: VPSV1VirtualMachinePanelPasswordUpdateRequest, options?: RawAxiosRequestConfig) {
20048
- return VPSVirtualMachineApiFp(this.configuration).setPanelPasswordV1(virtualMachineId, vPSV1VirtualMachinePanelPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
20049
- }
20050
22266
 
20051
- /**
20052
- * Set root password for a specified virtual machine. Requirements for password are same as in the [recreate virtual machine endpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate). Use this endpoint to update administrator credentials for VPS instances.
20053
- * @summary Set root password
20054
- * @param {number} virtualMachineId Virtual Machine ID
20055
- * @param {VPSV1VirtualMachineRootPasswordUpdateRequest} vPSV1VirtualMachineRootPasswordUpdateRequest
20056
- * @param {*} [options] Override http request option.
20057
- * @throws {RequiredError}
20058
- * @memberof VPSVirtualMachineApi
20059
- */
20060
- public setRootPasswordV1(virtualMachineId: number, vPSV1VirtualMachineRootPasswordUpdateRequest: VPSV1VirtualMachineRootPasswordUpdateRequest, options?: RawAxiosRequestConfig) {
20061
- return VPSVirtualMachineApiFp(this.configuration).setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
22267
+
22268
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22269
+
22270
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22271
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22272
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22273
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1MaintenanceToggleMaintenanceRequest, localVarRequestOptions, configuration)
22274
+
22275
+ return {
22276
+ url: toPathString(localVarUrlObj),
22277
+ options: localVarRequestOptions,
22278
+ };
22279
+ },
20062
22280
  }
22281
+ };
20063
22282
 
20064
- /**
20065
- * Setup newly purchased virtual machine with `initial` state. Use this endpoint to configure and initialize purchased VPS instances.
20066
- * @summary Setup purchased virtual machine
20067
- * @param {number} virtualMachineId Virtual Machine ID
20068
- * @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
20069
- * @param {*} [options] Override http request option.
20070
- * @throws {RequiredError}
20071
- * @memberof VPSVirtualMachineApi
20072
- */
20073
- public setupPurchasedVirtualMachineV1(virtualMachineId: number, vPSV1VirtualMachineSetupRequest: VPSV1VirtualMachineSetupRequest, options?: RawAxiosRequestConfig) {
20074
- return VPSVirtualMachineApiFp(this.configuration).setupPurchasedVirtualMachineV1(virtualMachineId, vPSV1VirtualMachineSetupRequest, options).then((request) => request(this.axios, this.basePath));
22283
+ /**
22284
+ * WordPressMaintenanceApi - functional programming interface
22285
+ * @export
22286
+ */
22287
+ export const WordPressMaintenanceApiFp = function(configuration?: Configuration) {
22288
+ const localVarAxiosParamCreator = WordPressMaintenanceApiAxiosParamCreator(configuration)
22289
+ return {
22290
+ /**
22291
+ * 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).
22292
+ * @summary Show maintenance status
22293
+ * @param {string} username
22294
+ * @param {string} software WordPress installation (software) identifier
22295
+ * @param {*} [options] Override http request option.
22296
+ * @throws {RequiredError}
22297
+ */
22298
+ async showMaintenanceStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1MaintenanceMaintenanceStatusResource>> {
22299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showMaintenanceStatusV1(username, software, options);
22300
+ const localVarOperationServerBasePath = operationServerMap['WordPressMaintenanceApi.showMaintenanceStatusV1']?.[0]?.url;
22301
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22302
+ },
22303
+ /**
22304
+ * 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).
22305
+ * @summary Toggle maintenance mode
22306
+ * @param {string} username
22307
+ * @param {string} software WordPress installation (software) identifier
22308
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
22309
+ * @param {*} [options] Override http request option.
22310
+ * @throws {RequiredError}
22311
+ */
22312
+ async toggleMaintenanceModeV1(username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
22313
+ const localVarAxiosArgs = await localVarAxiosParamCreator.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options);
22314
+ const localVarOperationServerBasePath = operationServerMap['WordPressMaintenanceApi.toggleMaintenanceModeV1']?.[0]?.url;
22315
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22316
+ },
20075
22317
  }
22318
+ };
22319
+
22320
+ /**
22321
+ * WordPressMaintenanceApi - factory interface
22322
+ * @export
22323
+ */
22324
+ export const WordPressMaintenanceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22325
+ const localVarFp = WordPressMaintenanceApiFp(configuration)
22326
+ return {
22327
+ /**
22328
+ * 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).
22329
+ * @summary Show maintenance status
22330
+ * @param {string} username
22331
+ * @param {string} software WordPress installation (software) identifier
22332
+ * @param {*} [options] Override http request option.
22333
+ * @throws {RequiredError}
22334
+ */
22335
+ showMaintenanceStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1MaintenanceMaintenanceStatusResource> {
22336
+ return localVarFp.showMaintenanceStatusV1(username, software, options).then((request) => request(axios, basePath));
22337
+ },
22338
+ /**
22339
+ * 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).
22340
+ * @summary Toggle maintenance mode
22341
+ * @param {string} username
22342
+ * @param {string} software WordPress installation (software) identifier
22343
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
22344
+ * @param {*} [options] Override http request option.
22345
+ * @throws {RequiredError}
22346
+ */
22347
+ toggleMaintenanceModeV1(username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
22348
+ return localVarFp.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(axios, basePath));
22349
+ },
22350
+ };
22351
+ };
20076
22352
 
22353
+ /**
22354
+ * WordPressMaintenanceApi - object-oriented interface
22355
+ * @export
22356
+ * @class WordPressMaintenanceApi
22357
+ * @extends {BaseAPI}
22358
+ */
22359
+ export class WordPressMaintenanceApi extends BaseAPI {
20077
22360
  /**
20078
- * Start a specified virtual machine. If the virtual machine is already running, the request will still be processed without any effect. Use this endpoint to power on stopped VPS instances.
20079
- * @summary Start virtual machine
20080
- * @param {number} virtualMachineId Virtual Machine ID
22361
+ * 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).
22362
+ * @summary Show maintenance status
22363
+ * @param {string} username
22364
+ * @param {string} software WordPress installation (software) identifier
20081
22365
  * @param {*} [options] Override http request option.
20082
22366
  * @throws {RequiredError}
20083
- * @memberof VPSVirtualMachineApi
22367
+ * @memberof WordPressMaintenanceApi
20084
22368
  */
20085
- public startVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig) {
20086
- return VPSVirtualMachineApiFp(this.configuration).startVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
22369
+ public showMaintenanceStatusV1(username: string, software: string, options?: RawAxiosRequestConfig) {
22370
+ return WordPressMaintenanceApiFp(this.configuration).showMaintenanceStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
20087
22371
  }
20088
22372
 
20089
22373
  /**
20090
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20091
- * @summary Stop virtual machine
20092
- * @param {number} virtualMachineId Virtual Machine ID
22374
+ * 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).
22375
+ * @summary Toggle maintenance mode
22376
+ * @param {string} username
22377
+ * @param {string} software WordPress installation (software) identifier
22378
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
20093
22379
  * @param {*} [options] Override http request option.
20094
22380
  * @throws {RequiredError}
20095
- * @memberof VPSVirtualMachineApi
22381
+ * @memberof WordPressMaintenanceApi
20096
22382
  */
20097
- public stopVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig) {
20098
- return VPSVirtualMachineApiFp(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
22383
+ public toggleMaintenanceModeV1(username: string, software: string, wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest, options?: RawAxiosRequestConfig) {
22384
+ return WordPressMaintenanceApiFp(this.configuration).toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(this.axios, this.basePath));
20099
22385
  }
20100
22386
  }
20101
22387
 
20102
22388
 
20103
22389
 
20104
22390
  /**
20105
- * WordPressInstallationsApi - axios parameter creator
22391
+ * WordPressObjectCacheApi - axios parameter creator
20106
22392
  * @export
20107
22393
  */
20108
- export const WordPressInstallationsApiAxiosParamCreator = function (configuration?: Configuration) {
22394
+ export const WordPressObjectCacheApiAxiosParamCreator = function (configuration?: Configuration) {
20109
22395
  return {
20110
22396
  /**
20111
- * 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.
20112
- * @summary Install WordPress
22397
+ * 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).
22398
+ * @summary Show Memcached object cache status
20113
22399
  * @param {string} username
20114
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
22400
+ * @param {string} software WordPress installation (software) identifier
20115
22401
  * @param {*} [options] Override http request option.
20116
22402
  * @throws {RequiredError}
20117
22403
  */
20118
- installWordPressV1: async (username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22404
+ showMemcachedObjectCacheStatusV1: async (username: string, software: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20119
22405
  // verify required parameter 'username' is not null or undefined
20120
- assertParamExists('installWordPressV1', 'username', username)
20121
- // verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
20122
- assertParamExists('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest)
20123
- const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
20124
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
22406
+ assertParamExists('showMemcachedObjectCacheStatusV1', 'username', username)
22407
+ // verify required parameter 'software' is not null or undefined
22408
+ assertParamExists('showMemcachedObjectCacheStatusV1', 'software', software)
22409
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status`
22410
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22411
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
20125
22412
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20126
22413
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20127
22414
  let baseOptions;
@@ -20129,7 +22416,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
20129
22416
  baseOptions = configuration.baseOptions;
20130
22417
  }
20131
22418
 
20132
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22419
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20133
22420
  const localVarHeaderParameter = {} as any;
20134
22421
  const localVarQueryParameter = {} as any;
20135
22422
 
@@ -20139,12 +22426,9 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
20139
22426
 
20140
22427
 
20141
22428
 
20142
- localVarHeaderParameter['Content-Type'] = 'application/json';
20143
-
20144
22429
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20145
22430
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20146
22431
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20147
- localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration)
20148
22432
 
20149
22433
  return {
20150
22434
  url: toPathString(localVarUrlObj),
@@ -20152,16 +22436,24 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
20152
22436
  };
20153
22437
  },
20154
22438
  /**
20155
- * 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.
20156
- * @summary List WordPress installations
20157
- * @param {string | null} [username] Filter by specific username
20158
- * @param {string | null} [domain] Filter by domain name (exact match)
20159
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
22439
+ * 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).
22440
+ * @summary Toggle Memcached object cache
22441
+ * @param {string} username
22442
+ * @param {string} software WordPress installation (software) identifier
22443
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
20160
22444
  * @param {*} [options] Override http request option.
20161
22445
  * @throws {RequiredError}
20162
22446
  */
20163
- listWordPressInstallationsV1: async (username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20164
- const localVarPath = `/api/hosting/v1/wordpress/installations`;
22447
+ toggleMemcachedObjectCacheV1: async (username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22448
+ // verify required parameter 'username' is not null or undefined
22449
+ assertParamExists('toggleMemcachedObjectCacheV1', 'username', username)
22450
+ // verify required parameter 'software' is not null or undefined
22451
+ assertParamExists('toggleMemcachedObjectCacheV1', 'software', software)
22452
+ // verify required parameter 'wordPressV1MemcachedToggleMemcachedRequest' is not null or undefined
22453
+ assertParamExists('toggleMemcachedObjectCacheV1', 'wordPressV1MemcachedToggleMemcachedRequest', wordPressV1MemcachedToggleMemcachedRequest)
22454
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle`
22455
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22456
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
20165
22457
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20166
22458
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20167
22459
  let baseOptions;
@@ -20169,7 +22461,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
20169
22461
  baseOptions = configuration.baseOptions;
20170
22462
  }
20171
22463
 
20172
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22464
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
20173
22465
  const localVarHeaderParameter = {} as any;
20174
22466
  const localVarQueryParameter = {} as any;
20175
22467
 
@@ -20177,23 +22469,14 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
20177
22469
  // http bearer authentication required
20178
22470
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
20179
22471
 
20180
- if (username !== undefined) {
20181
- localVarQueryParameter['username'] = username;
20182
- }
20183
-
20184
- if (domain !== undefined) {
20185
- localVarQueryParameter['domain'] = domain;
20186
- }
20187
-
20188
- if (ownership !== undefined) {
20189
- localVarQueryParameter['ownership'] = ownership;
20190
- }
20191
-
20192
22472
 
20193
22473
 
22474
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22475
+
20194
22476
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20195
22477
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20196
22478
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22479
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1MemcachedToggleMemcachedRequest, localVarRequestOptions, configuration)
20197
22480
 
20198
22481
  return {
20199
22482
  url: toPathString(localVarUrlObj),
@@ -20204,119 +22487,110 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
20204
22487
  };
20205
22488
 
20206
22489
  /**
20207
- * WordPressInstallationsApi - functional programming interface
22490
+ * WordPressObjectCacheApi - functional programming interface
20208
22491
  * @export
20209
22492
  */
20210
- export const WordPressInstallationsApiFp = function(configuration?: Configuration) {
20211
- const localVarAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator(configuration)
22493
+ export const WordPressObjectCacheApiFp = function(configuration?: Configuration) {
22494
+ const localVarAxiosParamCreator = WordPressObjectCacheApiAxiosParamCreator(configuration)
20212
22495
  return {
20213
22496
  /**
20214
- * 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.
20215
- * @summary Install WordPress
22497
+ * 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).
22498
+ * @summary Show Memcached object cache status
20216
22499
  * @param {string} username
20217
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
22500
+ * @param {string} software WordPress installation (software) identifier
20218
22501
  * @param {*} [options] Override http request option.
20219
22502
  * @throws {RequiredError}
20220
22503
  */
20221
- async installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
20222
- const localVarAxiosArgs = await localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
20223
- const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.installWordPressV1']?.[0]?.url;
22504
+ async showMemcachedObjectCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1MemcachedMemcachedStatusResource>> {
22505
+ const localVarAxiosArgs = await localVarAxiosParamCreator.showMemcachedObjectCacheStatusV1(username, software, options);
22506
+ const localVarOperationServerBasePath = operationServerMap['WordPressObjectCacheApi.showMemcachedObjectCacheStatusV1']?.[0]?.url;
20224
22507
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20225
22508
  },
20226
22509
  /**
20227
- * 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.
20228
- * @summary List WordPress installations
20229
- * @param {string | null} [username] Filter by specific username
20230
- * @param {string | null} [domain] Filter by domain name (exact match)
20231
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
22510
+ * 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).
22511
+ * @summary Toggle Memcached object cache
22512
+ * @param {string} username
22513
+ * @param {string} software WordPress installation (software) identifier
22514
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
20232
22515
  * @param {*} [options] Override http request option.
20233
22516
  * @throws {RequiredError}
20234
22517
  */
20235
- async listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>>> {
20236
- const localVarAxiosArgs = await localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
20237
- const localVarOperationServerBasePath = operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']?.[0]?.url;
22518
+ async toggleMemcachedObjectCacheV1(username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
22519
+ const localVarAxiosArgs = await localVarAxiosParamCreator.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options);
22520
+ const localVarOperationServerBasePath = operationServerMap['WordPressObjectCacheApi.toggleMemcachedObjectCacheV1']?.[0]?.url;
20238
22521
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20239
22522
  },
20240
22523
  }
20241
22524
  };
20242
22525
 
20243
22526
  /**
20244
- * WordPressInstallationsApi - factory interface
22527
+ * WordPressObjectCacheApi - factory interface
20245
22528
  * @export
20246
22529
  */
20247
- export const WordPressInstallationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20248
- const localVarFp = WordPressInstallationsApiFp(configuration)
22530
+ export const WordPressObjectCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22531
+ const localVarFp = WordPressObjectCacheApiFp(configuration)
20249
22532
  return {
20250
22533
  /**
20251
- * 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.
20252
- * @summary Install WordPress
22534
+ * 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).
22535
+ * @summary Show Memcached object cache status
20253
22536
  * @param {string} username
20254
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
22537
+ * @param {string} software WordPress installation (software) identifier
20255
22538
  * @param {*} [options] Override http request option.
20256
22539
  * @throws {RequiredError}
20257
22540
  */
20258
- installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
20259
- return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
22541
+ showMemcachedObjectCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1MemcachedMemcachedStatusResource> {
22542
+ return localVarFp.showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
20260
22543
  },
20261
22544
  /**
20262
- * 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.
20263
- * @summary List WordPress installations
20264
- * @param {string | null} [username] Filter by specific username
20265
- * @param {string | null} [domain] Filter by domain name (exact match)
20266
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
22545
+ * 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).
22546
+ * @summary Toggle Memcached object cache
22547
+ * @param {string} username
22548
+ * @param {string} software WordPress installation (software) identifier
22549
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
20267
22550
  * @param {*} [options] Override http request option.
20268
22551
  * @throws {RequiredError}
20269
22552
  */
20270
- listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsWordPressInstallationResource>> {
20271
- return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
22553
+ toggleMemcachedObjectCacheV1(username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
22554
+ return localVarFp.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(axios, basePath));
20272
22555
  },
20273
22556
  };
20274
22557
  };
20275
22558
 
20276
22559
  /**
20277
- * WordPressInstallationsApi - object-oriented interface
22560
+ * WordPressObjectCacheApi - object-oriented interface
20278
22561
  * @export
20279
- * @class WordPressInstallationsApi
22562
+ * @class WordPressObjectCacheApi
20280
22563
  * @extends {BaseAPI}
20281
22564
  */
20282
- export class WordPressInstallationsApi extends BaseAPI {
22565
+ export class WordPressObjectCacheApi extends BaseAPI {
20283
22566
  /**
20284
- * 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.
20285
- * @summary Install WordPress
22567
+ * 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).
22568
+ * @summary Show Memcached object cache status
20286
22569
  * @param {string} username
20287
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
22570
+ * @param {string} software WordPress installation (software) identifier
20288
22571
  * @param {*} [options] Override http request option.
20289
22572
  * @throws {RequiredError}
20290
- * @memberof WordPressInstallationsApi
22573
+ * @memberof WordPressObjectCacheApi
20291
22574
  */
20292
- public installWordPressV1(username: string, wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest, options?: RawAxiosRequestConfig) {
20293
- return WordPressInstallationsApiFp(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
22575
+ public showMemcachedObjectCacheStatusV1(username: string, software: string, options?: RawAxiosRequestConfig) {
22576
+ return WordPressObjectCacheApiFp(this.configuration).showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
20294
22577
  }
20295
22578
 
20296
22579
  /**
20297
- * 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.
20298
- * @summary List WordPress installations
20299
- * @param {string | null} [username] Filter by specific username
20300
- * @param {string | null} [domain] Filter by domain name (exact match)
20301
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
22580
+ * 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).
22581
+ * @summary Toggle Memcached object cache
22582
+ * @param {string} username
22583
+ * @param {string} software WordPress installation (software) identifier
22584
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
20302
22585
  * @param {*} [options] Override http request option.
20303
22586
  * @throws {RequiredError}
20304
- * @memberof WordPressInstallationsApi
22587
+ * @memberof WordPressObjectCacheApi
20305
22588
  */
20306
- public listWordPressInstallationsV1(username?: string | null, domain?: string | null, ownership?: ListWordPressInstallationsV1OwnershipEnum, options?: RawAxiosRequestConfig) {
20307
- return WordPressInstallationsApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
22589
+ public toggleMemcachedObjectCacheV1(username: string, software: string, wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest, options?: RawAxiosRequestConfig) {
22590
+ return WordPressObjectCacheApiFp(this.configuration).toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(this.axios, this.basePath));
20308
22591
  }
20309
22592
  }
20310
22593
 
20311
- /**
20312
- * @export
20313
- */
20314
- export const ListWordPressInstallationsV1OwnershipEnum = {
20315
- Owned: 'owned',
20316
- Managed: 'managed',
20317
- All: 'all'
20318
- } as const;
20319
- export type ListWordPressInstallationsV1OwnershipEnum = typeof ListWordPressInstallationsV1OwnershipEnum[keyof typeof ListWordPressInstallationsV1OwnershipEnum];
20320
22594
 
20321
22595
 
20322
22596
  /**