hostinger-api-sdk 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2249 -120
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1339 -73
  7. package/dist/api.js +1710 -104
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1339 -73
  15. package/dist/esm/api.js +1681 -96
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceSalesChannelsApi.md +66 -4
  27. package/docs/EcommerceStoresApi.md +54 -0
  28. package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
  30. package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
  31. package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
  32. package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
  33. package/docs/WordPressAIToolsApi.md +129 -0
  34. package/docs/WordPressInstallationsApi.md +408 -0
  35. package/docs/WordPressLiteSpeedCacheApi.md +121 -0
  36. package/docs/WordPressLoginApi.md +64 -0
  37. package/docs/WordPressMaintenanceApi.md +126 -0
  38. package/docs/WordPressObjectCacheApi.md +126 -0
  39. package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
  40. package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
  41. package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
  42. package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
  43. package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
  44. package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
  45. package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
  46. package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
  47. package/docs/WordPressV1InstallationsVersionResource.md +22 -0
  48. package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
  49. package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
  50. package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
  51. package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
  52. package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
  53. package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
  54. package/index.ts +1 -1
  55. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.2.0
7
+ * API Version: 1.3.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -20,10 +20,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
- exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = void 0;
24
- exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = void 0;
25
- exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = void 0;
26
- exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = void 0;
23
+ exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = void 0;
24
+ exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = void 0;
25
+ exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = void 0;
26
+ exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = void 0;
27
+ exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = void 0;
27
28
  const axios_1 = require("axios");
28
29
  // Some imports not used depending on template conditions
29
30
  // @ts-ignore
@@ -401,11 +402,27 @@ exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
401
402
  Unlocked: 'unlocked',
402
403
  Locked: 'locked'
403
404
  };
405
+ exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
406
+ Llmstxt: 'llmstxt',
407
+ Web2agent: 'web2agent'
408
+ };
404
409
  exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
405
410
  All: 'all',
406
411
  None: 'none',
407
412
  Minor: 'minor'
408
413
  };
414
+ exports.WordPressV1InstallationsUpdateResourceTypeEnum = {
415
+ Major: 'major',
416
+ Minor: 'minor'
417
+ };
418
+ exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = {
419
+ Enabled: 'enabled',
420
+ Disabled: 'disabled'
421
+ };
422
+ exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = {
423
+ Active: 'active',
424
+ Inactive: 'inactive'
425
+ };
409
426
  exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = {
410
427
  Active: 'active',
411
428
  Inactive: 'inactive'
@@ -3525,17 +3542,17 @@ const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
3525
3542
  return {
3526
3543
  /**
3527
3544
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3528
- * @summary Create a custom sales channel
3545
+ * @summary Create custom sales channel
3529
3546
  * @param {string} storeId The ID of the store to create the sales channel for.
3530
3547
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3531
3548
  * @param {*} [options] Override http request option.
3532
3549
  * @throws {RequiredError}
3533
3550
  */
3534
- createACustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
3551
+ createCustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
3535
3552
  // verify required parameter 'storeId' is not null or undefined
3536
- (0, common_1.assertParamExists)('createACustomSalesChannelV1', 'storeId', storeId);
3553
+ (0, common_1.assertParamExists)('createCustomSalesChannelV1', 'storeId', storeId);
3537
3554
  // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
3538
- (0, common_1.assertParamExists)('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
3555
+ (0, common_1.assertParamExists)('createCustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
3539
3556
  const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
3540
3557
  .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3541
3558
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3592,6 +3609,47 @@ const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
3592
3609
  options: localVarRequestOptions,
3593
3610
  };
3594
3611
  }),
3612
+ /**
3613
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3614
+ * @summary Update sales channel
3615
+ * @param {string} storeId The ID of the store that owns the sales channel.
3616
+ * @param {string} salesChannelId The ID of the sales channel to update.
3617
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3618
+ * @param {*} [options] Override http request option.
3619
+ * @throws {RequiredError}
3620
+ */
3621
+ updateSalesChannelV1: (storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1) => __awaiter(this, [storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1], void 0, function* (storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options = {}) {
3622
+ // verify required parameter 'storeId' is not null or undefined
3623
+ (0, common_1.assertParamExists)('updateSalesChannelV1', 'storeId', storeId);
3624
+ // verify required parameter 'salesChannelId' is not null or undefined
3625
+ (0, common_1.assertParamExists)('updateSalesChannelV1', 'salesChannelId', salesChannelId);
3626
+ // verify required parameter 'ecommerceV1SalesChannelUpdateRequest' is not null or undefined
3627
+ (0, common_1.assertParamExists)('updateSalesChannelV1', 'ecommerceV1SalesChannelUpdateRequest', ecommerceV1SalesChannelUpdateRequest);
3628
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
3629
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
3630
+ .replace(`{${"sales_channel_id"}}`, encodeURIComponent(String(salesChannelId)));
3631
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3632
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3633
+ let baseOptions;
3634
+ if (configuration) {
3635
+ baseOptions = configuration.baseOptions;
3636
+ }
3637
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3638
+ const localVarHeaderParameter = {};
3639
+ const localVarQueryParameter = {};
3640
+ // authentication apiToken required
3641
+ // http bearer authentication required
3642
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3643
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3646
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3647
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1SalesChannelUpdateRequest, localVarRequestOptions, configuration);
3648
+ return {
3649
+ url: (0, common_1.toPathString)(localVarUrlObj),
3650
+ options: localVarRequestOptions,
3651
+ };
3652
+ }),
3595
3653
  };
3596
3654
  };
3597
3655
  exports.EcommerceSalesChannelsApiAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator;
@@ -3604,17 +3662,17 @@ const EcommerceSalesChannelsApiFp = function (configuration) {
3604
3662
  return {
3605
3663
  /**
3606
3664
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3607
- * @summary Create a custom sales channel
3665
+ * @summary Create custom sales channel
3608
3666
  * @param {string} storeId The ID of the store to create the sales channel for.
3609
3667
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3610
3668
  * @param {*} [options] Override http request option.
3611
3669
  * @throws {RequiredError}
3612
3670
  */
3613
- createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3671
+ createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3614
3672
  return __awaiter(this, void 0, void 0, function* () {
3615
3673
  var _a, _b;
3616
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
3617
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3674
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
3675
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.createCustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3618
3676
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3619
3677
  });
3620
3678
  },
@@ -3633,6 +3691,23 @@ const EcommerceSalesChannelsApiFp = function (configuration) {
3633
3691
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3634
3692
  });
3635
3693
  },
3694
+ /**
3695
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3696
+ * @summary Update sales channel
3697
+ * @param {string} storeId The ID of the store that owns the sales channel.
3698
+ * @param {string} salesChannelId The ID of the sales channel to update.
3699
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3700
+ * @param {*} [options] Override http request option.
3701
+ * @throws {RequiredError}
3702
+ */
3703
+ updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
3704
+ return __awaiter(this, void 0, void 0, function* () {
3705
+ var _a, _b;
3706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options);
3707
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.updateSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3708
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3709
+ });
3710
+ },
3636
3711
  };
3637
3712
  };
3638
3713
  exports.EcommerceSalesChannelsApiFp = EcommerceSalesChannelsApiFp;
@@ -3645,14 +3720,14 @@ const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axio
3645
3720
  return {
3646
3721
  /**
3647
3722
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3648
- * @summary Create a custom sales channel
3723
+ * @summary Create custom sales channel
3649
3724
  * @param {string} storeId The ID of the store to create the sales channel for.
3650
3725
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3651
3726
  * @param {*} [options] Override http request option.
3652
3727
  * @throws {RequiredError}
3653
3728
  */
3654
- createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3655
- return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
3729
+ createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3730
+ return localVarFp.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
3656
3731
  },
3657
3732
  /**
3658
3733
  * List a store\'s active sales channels with their full metadata.
@@ -3664,6 +3739,18 @@ const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axio
3664
3739
  listSalesChannelsV1(storeId, options) {
3665
3740
  return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
3666
3741
  },
3742
+ /**
3743
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3744
+ * @summary Update sales channel
3745
+ * @param {string} storeId The ID of the store that owns the sales channel.
3746
+ * @param {string} salesChannelId The ID of the sales channel to update.
3747
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3748
+ * @param {*} [options] Override http request option.
3749
+ * @throws {RequiredError}
3750
+ */
3751
+ updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
3752
+ return localVarFp.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(axios, basePath));
3753
+ },
3667
3754
  };
3668
3755
  };
3669
3756
  exports.EcommerceSalesChannelsApiFactory = EcommerceSalesChannelsApiFactory;
@@ -3676,15 +3763,15 @@ exports.EcommerceSalesChannelsApiFactory = EcommerceSalesChannelsApiFactory;
3676
3763
  class EcommerceSalesChannelsApi extends base_1.BaseAPI {
3677
3764
  /**
3678
3765
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3679
- * @summary Create a custom sales channel
3766
+ * @summary Create custom sales channel
3680
3767
  * @param {string} storeId The ID of the store to create the sales channel for.
3681
3768
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3682
3769
  * @param {*} [options] Override http request option.
3683
3770
  * @throws {RequiredError}
3684
3771
  * @memberof EcommerceSalesChannelsApi
3685
3772
  */
3686
- createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3687
- return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
3773
+ createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3774
+ return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
3688
3775
  }
3689
3776
  /**
3690
3777
  * List a store\'s active sales channels with their full metadata.
@@ -3697,6 +3784,19 @@ class EcommerceSalesChannelsApi extends base_1.BaseAPI {
3697
3784
  listSalesChannelsV1(storeId, options) {
3698
3785
  return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
3699
3786
  }
3787
+ /**
3788
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3789
+ * @summary Update sales channel
3790
+ * @param {string} storeId The ID of the store that owns the sales channel.
3791
+ * @param {string} salesChannelId The ID of the sales channel to update.
3792
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3793
+ * @param {*} [options] Override http request option.
3794
+ * @throws {RequiredError}
3795
+ * @memberof EcommerceSalesChannelsApi
3796
+ */
3797
+ updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
3798
+ return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3799
+ }
3700
3800
  }
3701
3801
  exports.EcommerceSalesChannelsApi = EcommerceSalesChannelsApi;
3702
3802
  /**
@@ -3884,6 +3984,38 @@ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3884
3984
  options: localVarRequestOptions,
3885
3985
  };
3886
3986
  }),
3987
+ /**
3988
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
3989
+ * @summary Get store metadata
3990
+ * @param {string} storeId The ID of the store to read metadata for.
3991
+ * @param {*} [options] Override http request option.
3992
+ * @throws {RequiredError}
3993
+ */
3994
+ getStoreMetadataV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
3995
+ // verify required parameter 'storeId' is not null or undefined
3996
+ (0, common_1.assertParamExists)('getStoreMetadataV1', 'storeId', storeId);
3997
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/metadata`
3998
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3999
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4000
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4001
+ let baseOptions;
4002
+ if (configuration) {
4003
+ baseOptions = configuration.baseOptions;
4004
+ }
4005
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4006
+ const localVarHeaderParameter = {};
4007
+ const localVarQueryParameter = {};
4008
+ // authentication apiToken required
4009
+ // http bearer authentication required
4010
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4011
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4013
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4014
+ return {
4015
+ url: (0, common_1.toPathString)(localVarUrlObj),
4016
+ options: localVarRequestOptions,
4017
+ };
4018
+ }),
3887
4019
  /**
3888
4020
  * Retrieve the stores associated with your account.
3889
4021
  * @summary Get stores
@@ -3956,6 +4088,21 @@ const EcommerceStoresApiFp = function (configuration) {
3956
4088
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3957
4089
  });
3958
4090
  },
4091
+ /**
4092
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
4093
+ * @summary Get store metadata
4094
+ * @param {string} storeId The ID of the store to read metadata for.
4095
+ * @param {*} [options] Override http request option.
4096
+ * @throws {RequiredError}
4097
+ */
4098
+ getStoreMetadataV1(storeId, options) {
4099
+ return __awaiter(this, void 0, void 0, function* () {
4100
+ var _a, _b;
4101
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoreMetadataV1(storeId, options);
4102
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.getStoreMetadataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4103
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4104
+ });
4105
+ },
3959
4106
  /**
3960
4107
  * Retrieve the stores associated with your account.
3961
4108
  * @summary Get stores
@@ -4001,6 +4148,16 @@ const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
4001
4148
  deleteStoreV1(storeId, options) {
4002
4149
  return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
4003
4150
  },
4151
+ /**
4152
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
4153
+ * @summary Get store metadata
4154
+ * @param {string} storeId The ID of the store to read metadata for.
4155
+ * @param {*} [options] Override http request option.
4156
+ * @throws {RequiredError}
4157
+ */
4158
+ getStoreMetadataV1(storeId, options) {
4159
+ return localVarFp.getStoreMetadataV1(storeId, options).then((request) => request(axios, basePath));
4160
+ },
4004
4161
  /**
4005
4162
  * Retrieve the stores associated with your account.
4006
4163
  * @summary Get stores
@@ -4043,6 +4200,17 @@ class EcommerceStoresApi extends base_1.BaseAPI {
4043
4200
  deleteStoreV1(storeId, options) {
4044
4201
  return (0, exports.EcommerceStoresApiFp)(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
4045
4202
  }
4203
+ /**
4204
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
4205
+ * @summary Get store metadata
4206
+ * @param {string} storeId The ID of the store to read metadata for.
4207
+ * @param {*} [options] Override http request option.
4208
+ * @throws {RequiredError}
4209
+ * @memberof EcommerceStoresApi
4210
+ */
4211
+ getStoreMetadataV1(storeId, options) {
4212
+ return (0, exports.EcommerceStoresApiFp)(this.configuration).getStoreMetadataV1(storeId, options).then((request) => request(this.axios, this.basePath));
4213
+ }
4046
4214
  /**
4047
4215
  * Retrieve the stores associated with your account.
4048
4216
  * @summary Get stores
@@ -13202,33 +13370,37 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
13202
13370
  }
13203
13371
  exports.VPSVirtualMachineApi = VPSVirtualMachineApi;
13204
13372
  /**
13205
- * WordPressInstallationsApi - axios parameter creator
13373
+ * WordPressAIToolsApi - axios parameter creator
13206
13374
  * @export
13207
13375
  */
13208
- const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
13376
+ const WordPressAIToolsApiAxiosParamCreator = function (configuration) {
13209
13377
  return {
13210
13378
  /**
13211
- * 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.
13212
- * @summary Install WordPress
13379
+ * 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).
13380
+ * @summary Set AI option status
13213
13381
  * @param {string} username
13214
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
13382
+ * @param {string} software WordPress installation (software) identifier
13383
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
13215
13384
  * @param {*} [options] Override http request option.
13216
13385
  * @throws {RequiredError}
13217
13386
  */
13218
- installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
13387
+ setAIOptionStatusV1: (username_1, software_1, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest_1, ...args_1], void 0, function* (username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options = {}) {
13219
13388
  // verify required parameter 'username' is not null or undefined
13220
- (0, common_1.assertParamExists)('installWordPressV1', 'username', username);
13221
- // verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
13222
- (0, common_1.assertParamExists)('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
13223
- const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
13224
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13389
+ (0, common_1.assertParamExists)('setAIOptionStatusV1', 'username', username);
13390
+ // verify required parameter 'software' is not null or undefined
13391
+ (0, common_1.assertParamExists)('setAIOptionStatusV1', 'software', software);
13392
+ // verify required parameter 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest' is not null or undefined
13393
+ (0, common_1.assertParamExists)('setAIOptionStatusV1', 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest', wordPressV1HostingerPluginsUpdateAiOptionStatusRequest);
13394
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
13395
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13396
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13225
13397
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13226
13398
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13227
13399
  let baseOptions;
13228
13400
  if (configuration) {
13229
13401
  baseOptions = configuration.baseOptions;
13230
13402
  }
13231
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13403
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
13232
13404
  const localVarHeaderParameter = {};
13233
13405
  const localVarQueryParameter = {};
13234
13406
  // authentication apiToken required
@@ -13238,23 +13410,29 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
13238
13410
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13239
13411
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13240
13412
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13241
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
13413
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, localVarRequestOptions, configuration);
13242
13414
  return {
13243
13415
  url: (0, common_1.toPathString)(localVarUrlObj),
13244
13416
  options: localVarRequestOptions,
13245
13417
  };
13246
13418
  }),
13247
13419
  /**
13248
- * 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.
13249
- * @summary List WordPress installations
13250
- * @param {string | null} [username] Filter by specific username
13251
- * @param {string | null} [domain] Filter by domain name (exact match)
13252
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
13420
+ * 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).
13421
+ * @summary Show AI option status
13422
+ * @param {string} username
13423
+ * @param {string} software WordPress installation (software) identifier
13424
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
13253
13425
  * @param {*} [options] Override http request option.
13254
13426
  * @throws {RequiredError}
13255
13427
  */
13256
- listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
13257
- const localVarPath = `/api/hosting/v1/wordpress/installations`;
13428
+ showAIOptionStatusV1: (username_1, software_1, option_1, ...args_1) => __awaiter(this, [username_1, software_1, option_1, ...args_1], void 0, function* (username, software, option, options = {}) {
13429
+ // verify required parameter 'username' is not null or undefined
13430
+ (0, common_1.assertParamExists)('showAIOptionStatusV1', 'username', username);
13431
+ // verify required parameter 'software' is not null or undefined
13432
+ (0, common_1.assertParamExists)('showAIOptionStatusV1', 'software', software);
13433
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
13434
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13435
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13258
13436
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13259
13437
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13260
13438
  let baseOptions;
@@ -13267,14 +13445,8 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
13267
13445
  // authentication apiToken required
13268
13446
  // http bearer authentication required
13269
13447
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13270
- if (username !== undefined) {
13271
- localVarQueryParameter['username'] = username;
13272
- }
13273
- if (domain !== undefined) {
13274
- localVarQueryParameter['domain'] = domain;
13275
- }
13276
- if (ownership !== undefined) {
13277
- localVarQueryParameter['ownership'] = ownership;
13448
+ if (option !== undefined) {
13449
+ localVarQueryParameter['option'] = option;
13278
13450
  }
13279
13451
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13280
13452
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13286,125 +13458,1559 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
13286
13458
  }),
13287
13459
  };
13288
13460
  };
13289
- exports.WordPressInstallationsApiAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator;
13461
+ exports.WordPressAIToolsApiAxiosParamCreator = WordPressAIToolsApiAxiosParamCreator;
13290
13462
  /**
13291
- * WordPressInstallationsApi - functional programming interface
13463
+ * WordPressAIToolsApi - functional programming interface
13292
13464
  * @export
13293
13465
  */
13294
- const WordPressInstallationsApiFp = function (configuration) {
13295
- const localVarAxiosParamCreator = (0, exports.WordPressInstallationsApiAxiosParamCreator)(configuration);
13466
+ const WordPressAIToolsApiFp = function (configuration) {
13467
+ const localVarAxiosParamCreator = (0, exports.WordPressAIToolsApiAxiosParamCreator)(configuration);
13296
13468
  return {
13297
13469
  /**
13298
- * 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.
13299
- * @summary Install WordPress
13470
+ * 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).
13471
+ * @summary Set AI option status
13300
13472
  * @param {string} username
13301
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
13473
+ * @param {string} software WordPress installation (software) identifier
13474
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
13302
13475
  * @param {*} [options] Override http request option.
13303
13476
  * @throws {RequiredError}
13304
13477
  */
13305
- installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
13478
+ setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
13306
13479
  return __awaiter(this, void 0, void 0, function* () {
13307
13480
  var _a, _b;
13308
- const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
13309
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options);
13482
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressAIToolsApi.setAIOptionStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13310
13483
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13311
13484
  });
13312
13485
  },
13313
13486
  /**
13314
- * 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.
13315
- * @summary List WordPress installations
13316
- * @param {string | null} [username] Filter by specific username
13317
- * @param {string | null} [domain] Filter by domain name (exact match)
13318
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
13487
+ * 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).
13488
+ * @summary Show AI option status
13489
+ * @param {string} username
13490
+ * @param {string} software WordPress installation (software) identifier
13491
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
13319
13492
  * @param {*} [options] Override http request option.
13320
13493
  * @throws {RequiredError}
13321
13494
  */
13322
- listWordPressInstallationsV1(username, domain, ownership, options) {
13495
+ showAIOptionStatusV1(username, software, option, options) {
13323
13496
  return __awaiter(this, void 0, void 0, function* () {
13324
13497
  var _a, _b;
13325
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
13326
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13498
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.showAIOptionStatusV1(username, software, option, options);
13499
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressAIToolsApi.showAIOptionStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13327
13500
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13328
13501
  });
13329
13502
  },
13330
13503
  };
13331
13504
  };
13332
- exports.WordPressInstallationsApiFp = WordPressInstallationsApiFp;
13505
+ exports.WordPressAIToolsApiFp = WordPressAIToolsApiFp;
13333
13506
  /**
13334
- * WordPressInstallationsApi - factory interface
13507
+ * WordPressAIToolsApi - factory interface
13335
13508
  * @export
13336
13509
  */
13337
- const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
13338
- const localVarFp = (0, exports.WordPressInstallationsApiFp)(configuration);
13510
+ const WordPressAIToolsApiFactory = function (configuration, basePath, axios) {
13511
+ const localVarFp = (0, exports.WordPressAIToolsApiFp)(configuration);
13339
13512
  return {
13340
13513
  /**
13341
- * 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.
13342
- * @summary Install WordPress
13514
+ * 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).
13515
+ * @summary Set AI option status
13343
13516
  * @param {string} username
13344
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
13517
+ * @param {string} software WordPress installation (software) identifier
13518
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
13345
13519
  * @param {*} [options] Override http request option.
13346
13520
  * @throws {RequiredError}
13347
13521
  */
13348
- installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
13349
- return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
13522
+ setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
13523
+ return localVarFp.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(axios, basePath));
13350
13524
  },
13351
13525
  /**
13352
- * 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.
13353
- * @summary List WordPress installations
13354
- * @param {string | null} [username] Filter by specific username
13355
- * @param {string | null} [domain] Filter by domain name (exact match)
13356
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
13526
+ * 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).
13527
+ * @summary Show AI option status
13528
+ * @param {string} username
13529
+ * @param {string} software WordPress installation (software) identifier
13530
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
13357
13531
  * @param {*} [options] Override http request option.
13358
13532
  * @throws {RequiredError}
13359
13533
  */
13360
- listWordPressInstallationsV1(username, domain, ownership, options) {
13361
- return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
13534
+ showAIOptionStatusV1(username, software, option, options) {
13535
+ return localVarFp.showAIOptionStatusV1(username, software, option, options).then((request) => request(axios, basePath));
13362
13536
  },
13363
13537
  };
13364
13538
  };
13365
- exports.WordPressInstallationsApiFactory = WordPressInstallationsApiFactory;
13539
+ exports.WordPressAIToolsApiFactory = WordPressAIToolsApiFactory;
13366
13540
  /**
13367
- * WordPressInstallationsApi - object-oriented interface
13541
+ * WordPressAIToolsApi - object-oriented interface
13368
13542
  * @export
13369
- * @class WordPressInstallationsApi
13543
+ * @class WordPressAIToolsApi
13370
13544
  * @extends {BaseAPI}
13371
13545
  */
13372
- class WordPressInstallationsApi extends base_1.BaseAPI {
13546
+ class WordPressAIToolsApi extends base_1.BaseAPI {
13373
13547
  /**
13374
- * 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.
13375
- * @summary Install WordPress
13548
+ * 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).
13549
+ * @summary Set AI option status
13376
13550
  * @param {string} username
13377
- * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
13551
+ * @param {string} software WordPress installation (software) identifier
13552
+ * @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
13378
13553
  * @param {*} [options] Override http request option.
13379
13554
  * @throws {RequiredError}
13380
- * @memberof WordPressInstallationsApi
13555
+ * @memberof WordPressAIToolsApi
13381
13556
  */
13382
- installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
13383
- return (0, exports.WordPressInstallationsApiFp)(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
13557
+ setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
13558
+ return (0, exports.WordPressAIToolsApiFp)(this.configuration).setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(this.axios, this.basePath));
13384
13559
  }
13385
13560
  /**
13386
- * 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.
13387
- * @summary List WordPress installations
13388
- * @param {string | null} [username] Filter by specific username
13389
- * @param {string | null} [domain] Filter by domain name (exact match)
13390
- * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
13561
+ * 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).
13562
+ * @summary Show AI option status
13563
+ * @param {string} username
13564
+ * @param {string} software WordPress installation (software) identifier
13565
+ * @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
13391
13566
  * @param {*} [options] Override http request option.
13392
13567
  * @throws {RequiredError}
13393
- * @memberof WordPressInstallationsApi
13568
+ * @memberof WordPressAIToolsApi
13394
13569
  */
13395
- listWordPressInstallationsV1(username, domain, ownership, options) {
13396
- return (0, exports.WordPressInstallationsApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
13570
+ showAIOptionStatusV1(username, software, option, options) {
13571
+ return (0, exports.WordPressAIToolsApiFp)(this.configuration).showAIOptionStatusV1(username, software, option, options).then((request) => request(this.axios, this.basePath));
13397
13572
  }
13398
13573
  }
13399
- exports.WordPressInstallationsApi = WordPressInstallationsApi;
13574
+ exports.WordPressAIToolsApi = WordPressAIToolsApi;
13400
13575
  /**
13401
13576
  * @export
13402
13577
  */
13403
- exports.ListWordPressInstallationsV1OwnershipEnum = {
13404
- Owned: 'owned',
13405
- Managed: 'managed',
13406
- All: 'all'
13578
+ exports.ShowAIOptionStatusV1OptionEnum = {
13579
+ Llmstxt: 'llmstxt',
13580
+ Web2agent: 'web2agent'
13407
13581
  };
13582
+ /**
13583
+ * WordPressInstallationsApi - axios parameter creator
13584
+ * @export
13585
+ */
13586
+ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
13587
+ return {
13588
+ /**
13589
+ * 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).
13590
+ * @summary Check if WordPress installations are valid
13591
+ * @param {string} username
13592
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
13593
+ * @param {*} [options] Override http request option.
13594
+ * @throws {RequiredError}
13595
+ */
13596
+ checkIfWordPressInstallationsAreValidV1: (username_1, wordPressV1InstallationsCheckIsValidRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsCheckIsValidRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsCheckIsValidRequest, options = {}) {
13597
+ // verify required parameter 'username' is not null or undefined
13598
+ (0, common_1.assertParamExists)('checkIfWordPressInstallationsAreValidV1', 'username', username);
13599
+ // verify required parameter 'wordPressV1InstallationsCheckIsValidRequest' is not null or undefined
13600
+ (0, common_1.assertParamExists)('checkIfWordPressInstallationsAreValidV1', 'wordPressV1InstallationsCheckIsValidRequest', wordPressV1InstallationsCheckIsValidRequest);
13601
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid`
13602
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13604
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13605
+ let baseOptions;
13606
+ if (configuration) {
13607
+ baseOptions = configuration.baseOptions;
13608
+ }
13609
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13610
+ const localVarHeaderParameter = {};
13611
+ const localVarQueryParameter = {};
13612
+ // authentication apiToken required
13613
+ // http bearer authentication required
13614
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13615
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13616
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13618
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13619
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsCheckIsValidRequest, localVarRequestOptions, configuration);
13620
+ return {
13621
+ url: (0, common_1.toPathString)(localVarUrlObj),
13622
+ options: localVarRequestOptions,
13623
+ };
13624
+ }),
13625
+ /**
13626
+ * 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).
13627
+ * @summary Delete WordPress installation
13628
+ * @param {string} username
13629
+ * @param {string} software WordPress installation (software) identifier
13630
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
13631
+ * @param {*} [options] Override http request option.
13632
+ * @throws {RequiredError}
13633
+ */
13634
+ deleteWordPressInstallationV1: (username_1, software_1, wordPressV1InstallationsDeleteInstallationRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1InstallationsDeleteInstallationRequest_1, ...args_1], void 0, function* (username, software, wordPressV1InstallationsDeleteInstallationRequest, options = {}) {
13635
+ // verify required parameter 'username' is not null or undefined
13636
+ (0, common_1.assertParamExists)('deleteWordPressInstallationV1', 'username', username);
13637
+ // verify required parameter 'software' is not null or undefined
13638
+ (0, common_1.assertParamExists)('deleteWordPressInstallationV1', 'software', software);
13639
+ // verify required parameter 'wordPressV1InstallationsDeleteInstallationRequest' is not null or undefined
13640
+ (0, common_1.assertParamExists)('deleteWordPressInstallationV1', 'wordPressV1InstallationsDeleteInstallationRequest', wordPressV1InstallationsDeleteInstallationRequest);
13641
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}`
13642
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13643
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13644
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13645
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13646
+ let baseOptions;
13647
+ if (configuration) {
13648
+ baseOptions = configuration.baseOptions;
13649
+ }
13650
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13651
+ const localVarHeaderParameter = {};
13652
+ const localVarQueryParameter = {};
13653
+ // authentication apiToken required
13654
+ // http bearer authentication required
13655
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13656
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13657
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13658
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13659
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13660
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsDeleteInstallationRequest, localVarRequestOptions, configuration);
13661
+ return {
13662
+ url: (0, common_1.toPathString)(localVarUrlObj),
13663
+ options: localVarRequestOptions,
13664
+ };
13665
+ }),
13666
+ /**
13667
+ * 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.
13668
+ * @summary Detect WordPress installations
13669
+ * @param {string} username
13670
+ * @param {*} [options] Override http request option.
13671
+ * @throws {RequiredError}
13672
+ */
13673
+ detectWordPressInstallationsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
13674
+ // verify required parameter 'username' is not null or undefined
13675
+ (0, common_1.assertParamExists)('detectWordPressInstallationsV1', 'username', username);
13676
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/detect`
13677
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13679
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13680
+ let baseOptions;
13681
+ if (configuration) {
13682
+ baseOptions = configuration.baseOptions;
13683
+ }
13684
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13685
+ const localVarHeaderParameter = {};
13686
+ const localVarQueryParameter = {};
13687
+ // authentication apiToken required
13688
+ // http bearer authentication required
13689
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13690
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13692
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13693
+ return {
13694
+ url: (0, common_1.toPathString)(localVarUrlObj),
13695
+ options: localVarRequestOptions,
13696
+ };
13697
+ }),
13698
+ /**
13699
+ * 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).
13700
+ * @summary Get installation JWT token
13701
+ * @param {string} username
13702
+ * @param {string} software WordPress installation (software) identifier
13703
+ * @param {*} [options] Override http request option.
13704
+ * @throws {RequiredError}
13705
+ */
13706
+ getInstallationJWTTokenV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
13707
+ // verify required parameter 'username' is not null or undefined
13708
+ (0, common_1.assertParamExists)('getInstallationJWTTokenV1', 'username', username);
13709
+ // verify required parameter 'software' is not null or undefined
13710
+ (0, common_1.assertParamExists)('getInstallationJWTTokenV1', 'software', software);
13711
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token`
13712
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13713
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13715
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13716
+ let baseOptions;
13717
+ if (configuration) {
13718
+ baseOptions = configuration.baseOptions;
13719
+ }
13720
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13721
+ const localVarHeaderParameter = {};
13722
+ const localVarQueryParameter = {};
13723
+ // authentication apiToken required
13724
+ // http bearer authentication required
13725
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13726
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13727
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13728
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13729
+ return {
13730
+ url: (0, common_1.toPathString)(localVarUrlObj),
13731
+ options: localVarRequestOptions,
13732
+ };
13733
+ }),
13734
+ /**
13735
+ * 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.
13736
+ * @summary Install WordPress
13737
+ * @param {string} username
13738
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
13739
+ * @param {*} [options] Override http request option.
13740
+ * @throws {RequiredError}
13741
+ */
13742
+ installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
13743
+ // verify required parameter 'username' is not null or undefined
13744
+ (0, common_1.assertParamExists)('installWordPressV1', 'username', username);
13745
+ // verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
13746
+ (0, common_1.assertParamExists)('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
13747
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
13748
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13749
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13750
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13751
+ let baseOptions;
13752
+ if (configuration) {
13753
+ baseOptions = configuration.baseOptions;
13754
+ }
13755
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13756
+ const localVarHeaderParameter = {};
13757
+ const localVarQueryParameter = {};
13758
+ // authentication apiToken required
13759
+ // http bearer authentication required
13760
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13761
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13762
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13763
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13764
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13765
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
13766
+ return {
13767
+ url: (0, common_1.toPathString)(localVarUrlObj),
13768
+ options: localVarRequestOptions,
13769
+ };
13770
+ }),
13771
+ /**
13772
+ * 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).
13773
+ * @summary List available WordPress core updates
13774
+ * @param {string} username
13775
+ * @param {string} software WordPress installation (software) identifier
13776
+ * @param {*} [options] Override http request option.
13777
+ * @throws {RequiredError}
13778
+ */
13779
+ listAvailableWordPressCoreUpdatesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
13780
+ // verify required parameter 'username' is not null or undefined
13781
+ (0, common_1.assertParamExists)('listAvailableWordPressCoreUpdatesV1', 'username', username);
13782
+ // verify required parameter 'software' is not null or undefined
13783
+ (0, common_1.assertParamExists)('listAvailableWordPressCoreUpdatesV1', 'software', software);
13784
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/updates`
13785
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13786
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13787
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13788
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13789
+ let baseOptions;
13790
+ if (configuration) {
13791
+ baseOptions = configuration.baseOptions;
13792
+ }
13793
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13794
+ const localVarHeaderParameter = {};
13795
+ const localVarQueryParameter = {};
13796
+ // authentication apiToken required
13797
+ // http bearer authentication required
13798
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13799
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13801
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13802
+ return {
13803
+ url: (0, common_1.toPathString)(localVarUrlObj),
13804
+ options: localVarRequestOptions,
13805
+ };
13806
+ }),
13807
+ /**
13808
+ * 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.
13809
+ * @summary List WordPress installations
13810
+ * @param {string | null} [username] Filter by specific username
13811
+ * @param {string | null} [domain] Filter by domain name (exact match)
13812
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
13813
+ * @param {*} [options] Override http request option.
13814
+ * @throws {RequiredError}
13815
+ */
13816
+ listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
13817
+ const localVarPath = `/api/hosting/v1/wordpress/installations`;
13818
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13819
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13820
+ let baseOptions;
13821
+ if (configuration) {
13822
+ baseOptions = configuration.baseOptions;
13823
+ }
13824
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13825
+ const localVarHeaderParameter = {};
13826
+ const localVarQueryParameter = {};
13827
+ // authentication apiToken required
13828
+ // http bearer authentication required
13829
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13830
+ if (username !== undefined) {
13831
+ localVarQueryParameter['username'] = username;
13832
+ }
13833
+ if (domain !== undefined) {
13834
+ localVarQueryParameter['domain'] = domain;
13835
+ }
13836
+ if (ownership !== undefined) {
13837
+ localVarQueryParameter['ownership'] = ownership;
13838
+ }
13839
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13841
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13842
+ return {
13843
+ url: (0, common_1.toPathString)(localVarUrlObj),
13844
+ options: localVarRequestOptions,
13845
+ };
13846
+ }),
13847
+ /**
13848
+ * 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).
13849
+ * @summary Show WordPress core version
13850
+ * @param {string} username
13851
+ * @param {string} software WordPress installation (software) identifier
13852
+ * @param {*} [options] Override http request option.
13853
+ * @throws {RequiredError}
13854
+ */
13855
+ showWordPressCoreVersionV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
13856
+ // verify required parameter 'username' is not null or undefined
13857
+ (0, common_1.assertParamExists)('showWordPressCoreVersionV1', 'username', username);
13858
+ // verify required parameter 'software' is not null or undefined
13859
+ (0, common_1.assertParamExists)('showWordPressCoreVersionV1', 'software', software);
13860
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/version`
13861
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13862
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13863
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13864
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13865
+ let baseOptions;
13866
+ if (configuration) {
13867
+ baseOptions = configuration.baseOptions;
13868
+ }
13869
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13870
+ const localVarHeaderParameter = {};
13871
+ const localVarQueryParameter = {};
13872
+ // authentication apiToken required
13873
+ // http bearer authentication required
13874
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13875
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13877
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13878
+ return {
13879
+ url: (0, common_1.toPathString)(localVarUrlObj),
13880
+ options: localVarRequestOptions,
13881
+ };
13882
+ }),
13883
+ /**
13884
+ * 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.
13885
+ * @summary Update WordPress core
13886
+ * @param {string} username
13887
+ * @param {string} software WordPress installation (software) identifier
13888
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
13889
+ * @param {*} [options] Override http request option.
13890
+ * @throws {RequiredError}
13891
+ */
13892
+ updateWordPressCoreV1: (username_1, software_1, wordPressV1InstallationsUpdateInstallationRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1InstallationsUpdateInstallationRequest_1, ...args_1], void 0, function* (username, software, wordPressV1InstallationsUpdateInstallationRequest, options = {}) {
13893
+ // verify required parameter 'username' is not null or undefined
13894
+ (0, common_1.assertParamExists)('updateWordPressCoreV1', 'username', username);
13895
+ // verify required parameter 'software' is not null or undefined
13896
+ (0, common_1.assertParamExists)('updateWordPressCoreV1', 'software', software);
13897
+ // verify required parameter 'wordPressV1InstallationsUpdateInstallationRequest' is not null or undefined
13898
+ (0, common_1.assertParamExists)('updateWordPressCoreV1', 'wordPressV1InstallationsUpdateInstallationRequest', wordPressV1InstallationsUpdateInstallationRequest);
13899
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/update`
13900
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13901
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
13902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13903
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13904
+ let baseOptions;
13905
+ if (configuration) {
13906
+ baseOptions = configuration.baseOptions;
13907
+ }
13908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13909
+ const localVarHeaderParameter = {};
13910
+ const localVarQueryParameter = {};
13911
+ // authentication apiToken required
13912
+ // http bearer authentication required
13913
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13914
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13915
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13917
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13918
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsUpdateInstallationRequest, localVarRequestOptions, configuration);
13919
+ return {
13920
+ url: (0, common_1.toPathString)(localVarUrlObj),
13921
+ options: localVarRequestOptions,
13922
+ };
13923
+ }),
13924
+ };
13925
+ };
13926
+ exports.WordPressInstallationsApiAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator;
13927
+ /**
13928
+ * WordPressInstallationsApi - functional programming interface
13929
+ * @export
13930
+ */
13931
+ const WordPressInstallationsApiFp = function (configuration) {
13932
+ const localVarAxiosParamCreator = (0, exports.WordPressInstallationsApiAxiosParamCreator)(configuration);
13933
+ return {
13934
+ /**
13935
+ * 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).
13936
+ * @summary Check if WordPress installations are valid
13937
+ * @param {string} username
13938
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
13939
+ * @param {*} [options] Override http request option.
13940
+ * @throws {RequiredError}
13941
+ */
13942
+ checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
13943
+ return __awaiter(this, void 0, void 0, function* () {
13944
+ var _a, _b;
13945
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options);
13946
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.checkIfWordPressInstallationsAreValidV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13947
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13948
+ });
13949
+ },
13950
+ /**
13951
+ * 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).
13952
+ * @summary Delete WordPress installation
13953
+ * @param {string} username
13954
+ * @param {string} software WordPress installation (software) identifier
13955
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
13956
+ * @param {*} [options] Override http request option.
13957
+ * @throws {RequiredError}
13958
+ */
13959
+ deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
13960
+ return __awaiter(this, void 0, void 0, function* () {
13961
+ var _a, _b;
13962
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options);
13963
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.deleteWordPressInstallationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13964
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13965
+ });
13966
+ },
13967
+ /**
13968
+ * 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.
13969
+ * @summary Detect WordPress installations
13970
+ * @param {string} username
13971
+ * @param {*} [options] Override http request option.
13972
+ * @throws {RequiredError}
13973
+ */
13974
+ detectWordPressInstallationsV1(username, options) {
13975
+ return __awaiter(this, void 0, void 0, function* () {
13976
+ var _a, _b;
13977
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.detectWordPressInstallationsV1(username, options);
13978
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.detectWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13979
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13980
+ });
13981
+ },
13982
+ /**
13983
+ * 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).
13984
+ * @summary Get installation JWT token
13985
+ * @param {string} username
13986
+ * @param {string} software WordPress installation (software) identifier
13987
+ * @param {*} [options] Override http request option.
13988
+ * @throws {RequiredError}
13989
+ */
13990
+ getInstallationJWTTokenV1(username, software, options) {
13991
+ return __awaiter(this, void 0, void 0, function* () {
13992
+ var _a, _b;
13993
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallationJWTTokenV1(username, software, options);
13994
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.getInstallationJWTTokenV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13995
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13996
+ });
13997
+ },
13998
+ /**
13999
+ * 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.
14000
+ * @summary Install WordPress
14001
+ * @param {string} username
14002
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
14003
+ * @param {*} [options] Override http request option.
14004
+ * @throws {RequiredError}
14005
+ */
14006
+ installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
14007
+ return __awaiter(this, void 0, void 0, function* () {
14008
+ var _a, _b;
14009
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
14010
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14011
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14012
+ });
14013
+ },
14014
+ /**
14015
+ * 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).
14016
+ * @summary List available WordPress core updates
14017
+ * @param {string} username
14018
+ * @param {string} software WordPress installation (software) identifier
14019
+ * @param {*} [options] Override http request option.
14020
+ * @throws {RequiredError}
14021
+ */
14022
+ listAvailableWordPressCoreUpdatesV1(username, software, options) {
14023
+ return __awaiter(this, void 0, void 0, function* () {
14024
+ var _a, _b;
14025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressCoreUpdatesV1(username, software, options);
14026
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.listAvailableWordPressCoreUpdatesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14027
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14028
+ });
14029
+ },
14030
+ /**
14031
+ * 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.
14032
+ * @summary List WordPress installations
14033
+ * @param {string | null} [username] Filter by specific username
14034
+ * @param {string | null} [domain] Filter by domain name (exact match)
14035
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
14036
+ * @param {*} [options] Override http request option.
14037
+ * @throws {RequiredError}
14038
+ */
14039
+ listWordPressInstallationsV1(username, domain, ownership, options) {
14040
+ return __awaiter(this, void 0, void 0, function* () {
14041
+ var _a, _b;
14042
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
14043
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14044
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14045
+ });
14046
+ },
14047
+ /**
14048
+ * 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).
14049
+ * @summary Show WordPress core version
14050
+ * @param {string} username
14051
+ * @param {string} software WordPress installation (software) identifier
14052
+ * @param {*} [options] Override http request option.
14053
+ * @throws {RequiredError}
14054
+ */
14055
+ showWordPressCoreVersionV1(username, software, options) {
14056
+ return __awaiter(this, void 0, void 0, function* () {
14057
+ var _a, _b;
14058
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.showWordPressCoreVersionV1(username, software, options);
14059
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.showWordPressCoreVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14060
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14061
+ });
14062
+ },
14063
+ /**
14064
+ * 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.
14065
+ * @summary Update WordPress core
14066
+ * @param {string} username
14067
+ * @param {string} software WordPress installation (software) identifier
14068
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
14069
+ * @param {*} [options] Override http request option.
14070
+ * @throws {RequiredError}
14071
+ */
14072
+ updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
14073
+ return __awaiter(this, void 0, void 0, function* () {
14074
+ var _a, _b;
14075
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options);
14076
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.updateWordPressCoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14077
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14078
+ });
14079
+ },
14080
+ };
14081
+ };
14082
+ exports.WordPressInstallationsApiFp = WordPressInstallationsApiFp;
14083
+ /**
14084
+ * WordPressInstallationsApi - factory interface
14085
+ * @export
14086
+ */
14087
+ const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
14088
+ const localVarFp = (0, exports.WordPressInstallationsApiFp)(configuration);
14089
+ return {
14090
+ /**
14091
+ * 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).
14092
+ * @summary Check if WordPress installations are valid
14093
+ * @param {string} username
14094
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
14095
+ * @param {*} [options] Override http request option.
14096
+ * @throws {RequiredError}
14097
+ */
14098
+ checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
14099
+ return localVarFp.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(axios, basePath));
14100
+ },
14101
+ /**
14102
+ * 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).
14103
+ * @summary Delete WordPress installation
14104
+ * @param {string} username
14105
+ * @param {string} software WordPress installation (software) identifier
14106
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
14107
+ * @param {*} [options] Override http request option.
14108
+ * @throws {RequiredError}
14109
+ */
14110
+ deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
14111
+ return localVarFp.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(axios, basePath));
14112
+ },
14113
+ /**
14114
+ * 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.
14115
+ * @summary Detect WordPress installations
14116
+ * @param {string} username
14117
+ * @param {*} [options] Override http request option.
14118
+ * @throws {RequiredError}
14119
+ */
14120
+ detectWordPressInstallationsV1(username, options) {
14121
+ return localVarFp.detectWordPressInstallationsV1(username, options).then((request) => request(axios, basePath));
14122
+ },
14123
+ /**
14124
+ * 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).
14125
+ * @summary Get installation JWT token
14126
+ * @param {string} username
14127
+ * @param {string} software WordPress installation (software) identifier
14128
+ * @param {*} [options] Override http request option.
14129
+ * @throws {RequiredError}
14130
+ */
14131
+ getInstallationJWTTokenV1(username, software, options) {
14132
+ return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
14133
+ },
14134
+ /**
14135
+ * 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.
14136
+ * @summary Install WordPress
14137
+ * @param {string} username
14138
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
14139
+ * @param {*} [options] Override http request option.
14140
+ * @throws {RequiredError}
14141
+ */
14142
+ installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
14143
+ return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
14144
+ },
14145
+ /**
14146
+ * 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).
14147
+ * @summary List available WordPress core updates
14148
+ * @param {string} username
14149
+ * @param {string} software WordPress installation (software) identifier
14150
+ * @param {*} [options] Override http request option.
14151
+ * @throws {RequiredError}
14152
+ */
14153
+ listAvailableWordPressCoreUpdatesV1(username, software, options) {
14154
+ return localVarFp.listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(axios, basePath));
14155
+ },
14156
+ /**
14157
+ * 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.
14158
+ * @summary List WordPress installations
14159
+ * @param {string | null} [username] Filter by specific username
14160
+ * @param {string | null} [domain] Filter by domain name (exact match)
14161
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
14162
+ * @param {*} [options] Override http request option.
14163
+ * @throws {RequiredError}
14164
+ */
14165
+ listWordPressInstallationsV1(username, domain, ownership, options) {
14166
+ return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
14167
+ },
14168
+ /**
14169
+ * 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).
14170
+ * @summary Show WordPress core version
14171
+ * @param {string} username
14172
+ * @param {string} software WordPress installation (software) identifier
14173
+ * @param {*} [options] Override http request option.
14174
+ * @throws {RequiredError}
14175
+ */
14176
+ showWordPressCoreVersionV1(username, software, options) {
14177
+ return localVarFp.showWordPressCoreVersionV1(username, software, options).then((request) => request(axios, basePath));
14178
+ },
14179
+ /**
14180
+ * 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.
14181
+ * @summary Update WordPress core
14182
+ * @param {string} username
14183
+ * @param {string} software WordPress installation (software) identifier
14184
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
14185
+ * @param {*} [options] Override http request option.
14186
+ * @throws {RequiredError}
14187
+ */
14188
+ updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
14189
+ return localVarFp.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(axios, basePath));
14190
+ },
14191
+ };
14192
+ };
14193
+ exports.WordPressInstallationsApiFactory = WordPressInstallationsApiFactory;
14194
+ /**
14195
+ * WordPressInstallationsApi - object-oriented interface
14196
+ * @export
14197
+ * @class WordPressInstallationsApi
14198
+ * @extends {BaseAPI}
14199
+ */
14200
+ class WordPressInstallationsApi extends base_1.BaseAPI {
14201
+ /**
14202
+ * 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).
14203
+ * @summary Check if WordPress installations are valid
14204
+ * @param {string} username
14205
+ * @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
14206
+ * @param {*} [options] Override http request option.
14207
+ * @throws {RequiredError}
14208
+ * @memberof WordPressInstallationsApi
14209
+ */
14210
+ checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
14211
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(this.axios, this.basePath));
14212
+ }
14213
+ /**
14214
+ * 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).
14215
+ * @summary Delete WordPress installation
14216
+ * @param {string} username
14217
+ * @param {string} software WordPress installation (software) identifier
14218
+ * @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
14219
+ * @param {*} [options] Override http request option.
14220
+ * @throws {RequiredError}
14221
+ * @memberof WordPressInstallationsApi
14222
+ */
14223
+ deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
14224
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(this.axios, this.basePath));
14225
+ }
14226
+ /**
14227
+ * 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.
14228
+ * @summary Detect WordPress installations
14229
+ * @param {string} username
14230
+ * @param {*} [options] Override http request option.
14231
+ * @throws {RequiredError}
14232
+ * @memberof WordPressInstallationsApi
14233
+ */
14234
+ detectWordPressInstallationsV1(username, options) {
14235
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).detectWordPressInstallationsV1(username, options).then((request) => request(this.axios, this.basePath));
14236
+ }
14237
+ /**
14238
+ * 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).
14239
+ * @summary Get installation JWT token
14240
+ * @param {string} username
14241
+ * @param {string} software WordPress installation (software) identifier
14242
+ * @param {*} [options] Override http request option.
14243
+ * @throws {RequiredError}
14244
+ * @memberof WordPressInstallationsApi
14245
+ */
14246
+ getInstallationJWTTokenV1(username, software, options) {
14247
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
14248
+ }
14249
+ /**
14250
+ * 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.
14251
+ * @summary Install WordPress
14252
+ * @param {string} username
14253
+ * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
14254
+ * @param {*} [options] Override http request option.
14255
+ * @throws {RequiredError}
14256
+ * @memberof WordPressInstallationsApi
14257
+ */
14258
+ installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
14259
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
14260
+ }
14261
+ /**
14262
+ * 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).
14263
+ * @summary List available WordPress core updates
14264
+ * @param {string} username
14265
+ * @param {string} software WordPress installation (software) identifier
14266
+ * @param {*} [options] Override http request option.
14267
+ * @throws {RequiredError}
14268
+ * @memberof WordPressInstallationsApi
14269
+ */
14270
+ listAvailableWordPressCoreUpdatesV1(username, software, options) {
14271
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(this.axios, this.basePath));
14272
+ }
14273
+ /**
14274
+ * 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.
14275
+ * @summary List WordPress installations
14276
+ * @param {string | null} [username] Filter by specific username
14277
+ * @param {string | null} [domain] Filter by domain name (exact match)
14278
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
14279
+ * @param {*} [options] Override http request option.
14280
+ * @throws {RequiredError}
14281
+ * @memberof WordPressInstallationsApi
14282
+ */
14283
+ listWordPressInstallationsV1(username, domain, ownership, options) {
14284
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
14285
+ }
14286
+ /**
14287
+ * 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).
14288
+ * @summary Show WordPress core version
14289
+ * @param {string} username
14290
+ * @param {string} software WordPress installation (software) identifier
14291
+ * @param {*} [options] Override http request option.
14292
+ * @throws {RequiredError}
14293
+ * @memberof WordPressInstallationsApi
14294
+ */
14295
+ showWordPressCoreVersionV1(username, software, options) {
14296
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).showWordPressCoreVersionV1(username, software, options).then((request) => request(this.axios, this.basePath));
14297
+ }
14298
+ /**
14299
+ * 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.
14300
+ * @summary Update WordPress core
14301
+ * @param {string} username
14302
+ * @param {string} software WordPress installation (software) identifier
14303
+ * @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
14304
+ * @param {*} [options] Override http request option.
14305
+ * @throws {RequiredError}
14306
+ * @memberof WordPressInstallationsApi
14307
+ */
14308
+ updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
14309
+ return (0, exports.WordPressInstallationsApiFp)(this.configuration).updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(this.axios, this.basePath));
14310
+ }
14311
+ }
14312
+ exports.WordPressInstallationsApi = WordPressInstallationsApi;
14313
+ /**
14314
+ * @export
14315
+ */
14316
+ exports.ListWordPressInstallationsV1OwnershipEnum = {
14317
+ Owned: 'owned',
14318
+ Managed: 'managed',
14319
+ All: 'all'
14320
+ };
14321
+ /**
14322
+ * WordPressLiteSpeedCacheApi - axios parameter creator
14323
+ * @export
14324
+ */
14325
+ const WordPressLiteSpeedCacheApiAxiosParamCreator = function (configuration) {
14326
+ return {
14327
+ /**
14328
+ * 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).
14329
+ * @summary Purge LiteSpeed Cache
14330
+ * @param {string} username
14331
+ * @param {string} software WordPress installation (software) identifier
14332
+ * @param {*} [options] Override http request option.
14333
+ * @throws {RequiredError}
14334
+ */
14335
+ purgeLiteSpeedCacheV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
14336
+ // verify required parameter 'username' is not null or undefined
14337
+ (0, common_1.assertParamExists)('purgeLiteSpeedCacheV1', 'username', username);
14338
+ // verify required parameter 'software' is not null or undefined
14339
+ (0, common_1.assertParamExists)('purgeLiteSpeedCacheV1', 'software', software);
14340
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge`
14341
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14342
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14343
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14344
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14345
+ let baseOptions;
14346
+ if (configuration) {
14347
+ baseOptions = configuration.baseOptions;
14348
+ }
14349
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14350
+ const localVarHeaderParameter = {};
14351
+ const localVarQueryParameter = {};
14352
+ // authentication apiToken required
14353
+ // http bearer authentication required
14354
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14355
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14357
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14358
+ return {
14359
+ url: (0, common_1.toPathString)(localVarUrlObj),
14360
+ options: localVarRequestOptions,
14361
+ };
14362
+ }),
14363
+ /**
14364
+ * 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).
14365
+ * @summary Show LiteSpeed Cache status
14366
+ * @param {string} username
14367
+ * @param {string} software WordPress installation (software) identifier
14368
+ * @param {*} [options] Override http request option.
14369
+ * @throws {RequiredError}
14370
+ */
14371
+ showLiteSpeedCacheStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
14372
+ // verify required parameter 'username' is not null or undefined
14373
+ (0, common_1.assertParamExists)('showLiteSpeedCacheStatusV1', 'username', username);
14374
+ // verify required parameter 'software' is not null or undefined
14375
+ (0, common_1.assertParamExists)('showLiteSpeedCacheStatusV1', 'software', software);
14376
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status`
14377
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14378
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14379
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14380
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14381
+ let baseOptions;
14382
+ if (configuration) {
14383
+ baseOptions = configuration.baseOptions;
14384
+ }
14385
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14386
+ const localVarHeaderParameter = {};
14387
+ const localVarQueryParameter = {};
14388
+ // authentication apiToken required
14389
+ // http bearer authentication required
14390
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14391
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14392
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14393
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14394
+ return {
14395
+ url: (0, common_1.toPathString)(localVarUrlObj),
14396
+ options: localVarRequestOptions,
14397
+ };
14398
+ }),
14399
+ };
14400
+ };
14401
+ exports.WordPressLiteSpeedCacheApiAxiosParamCreator = WordPressLiteSpeedCacheApiAxiosParamCreator;
14402
+ /**
14403
+ * WordPressLiteSpeedCacheApi - functional programming interface
14404
+ * @export
14405
+ */
14406
+ const WordPressLiteSpeedCacheApiFp = function (configuration) {
14407
+ const localVarAxiosParamCreator = (0, exports.WordPressLiteSpeedCacheApiAxiosParamCreator)(configuration);
14408
+ return {
14409
+ /**
14410
+ * 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).
14411
+ * @summary Purge LiteSpeed Cache
14412
+ * @param {string} username
14413
+ * @param {string} software WordPress installation (software) identifier
14414
+ * @param {*} [options] Override http request option.
14415
+ * @throws {RequiredError}
14416
+ */
14417
+ purgeLiteSpeedCacheV1(username, software, options) {
14418
+ return __awaiter(this, void 0, void 0, function* () {
14419
+ var _a, _b;
14420
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeLiteSpeedCacheV1(username, software, options);
14421
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressLiteSpeedCacheApi.purgeLiteSpeedCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14422
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14423
+ });
14424
+ },
14425
+ /**
14426
+ * 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).
14427
+ * @summary Show LiteSpeed Cache status
14428
+ * @param {string} username
14429
+ * @param {string} software WordPress installation (software) identifier
14430
+ * @param {*} [options] Override http request option.
14431
+ * @throws {RequiredError}
14432
+ */
14433
+ showLiteSpeedCacheStatusV1(username, software, options) {
14434
+ return __awaiter(this, void 0, void 0, function* () {
14435
+ var _a, _b;
14436
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.showLiteSpeedCacheStatusV1(username, software, options);
14437
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressLiteSpeedCacheApi.showLiteSpeedCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14438
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14439
+ });
14440
+ },
14441
+ };
14442
+ };
14443
+ exports.WordPressLiteSpeedCacheApiFp = WordPressLiteSpeedCacheApiFp;
14444
+ /**
14445
+ * WordPressLiteSpeedCacheApi - factory interface
14446
+ * @export
14447
+ */
14448
+ const WordPressLiteSpeedCacheApiFactory = function (configuration, basePath, axios) {
14449
+ const localVarFp = (0, exports.WordPressLiteSpeedCacheApiFp)(configuration);
14450
+ return {
14451
+ /**
14452
+ * 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).
14453
+ * @summary Purge LiteSpeed Cache
14454
+ * @param {string} username
14455
+ * @param {string} software WordPress installation (software) identifier
14456
+ * @param {*} [options] Override http request option.
14457
+ * @throws {RequiredError}
14458
+ */
14459
+ purgeLiteSpeedCacheV1(username, software, options) {
14460
+ return localVarFp.purgeLiteSpeedCacheV1(username, software, options).then((request) => request(axios, basePath));
14461
+ },
14462
+ /**
14463
+ * 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).
14464
+ * @summary Show LiteSpeed Cache status
14465
+ * @param {string} username
14466
+ * @param {string} software WordPress installation (software) identifier
14467
+ * @param {*} [options] Override http request option.
14468
+ * @throws {RequiredError}
14469
+ */
14470
+ showLiteSpeedCacheStatusV1(username, software, options) {
14471
+ return localVarFp.showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
14472
+ },
14473
+ };
14474
+ };
14475
+ exports.WordPressLiteSpeedCacheApiFactory = WordPressLiteSpeedCacheApiFactory;
14476
+ /**
14477
+ * WordPressLiteSpeedCacheApi - object-oriented interface
14478
+ * @export
14479
+ * @class WordPressLiteSpeedCacheApi
14480
+ * @extends {BaseAPI}
14481
+ */
14482
+ class WordPressLiteSpeedCacheApi extends base_1.BaseAPI {
14483
+ /**
14484
+ * 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).
14485
+ * @summary Purge LiteSpeed Cache
14486
+ * @param {string} username
14487
+ * @param {string} software WordPress installation (software) identifier
14488
+ * @param {*} [options] Override http request option.
14489
+ * @throws {RequiredError}
14490
+ * @memberof WordPressLiteSpeedCacheApi
14491
+ */
14492
+ purgeLiteSpeedCacheV1(username, software, options) {
14493
+ return (0, exports.WordPressLiteSpeedCacheApiFp)(this.configuration).purgeLiteSpeedCacheV1(username, software, options).then((request) => request(this.axios, this.basePath));
14494
+ }
14495
+ /**
14496
+ * 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).
14497
+ * @summary Show LiteSpeed Cache status
14498
+ * @param {string} username
14499
+ * @param {string} software WordPress installation (software) identifier
14500
+ * @param {*} [options] Override http request option.
14501
+ * @throws {RequiredError}
14502
+ * @memberof WordPressLiteSpeedCacheApi
14503
+ */
14504
+ showLiteSpeedCacheStatusV1(username, software, options) {
14505
+ return (0, exports.WordPressLiteSpeedCacheApiFp)(this.configuration).showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
14506
+ }
14507
+ }
14508
+ exports.WordPressLiteSpeedCacheApi = WordPressLiteSpeedCacheApi;
14509
+ /**
14510
+ * WordPressLoginApi - axios parameter creator
14511
+ * @export
14512
+ */
14513
+ const WordPressLoginApiAxiosParamCreator = function (configuration) {
14514
+ return {
14515
+ /**
14516
+ * 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).
14517
+ * @summary Create login links
14518
+ * @param {string} username
14519
+ * @param {string} software WordPress installation (software) identifier
14520
+ * @param {*} [options] Override http request option.
14521
+ * @throws {RequiredError}
14522
+ */
14523
+ createLoginLinksV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
14524
+ // verify required parameter 'username' is not null or undefined
14525
+ (0, common_1.assertParamExists)('createLoginLinksV1', 'username', username);
14526
+ // verify required parameter 'software' is not null or undefined
14527
+ (0, common_1.assertParamExists)('createLoginLinksV1', 'software', software);
14528
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/login/links`
14529
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14530
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14532
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14533
+ let baseOptions;
14534
+ if (configuration) {
14535
+ baseOptions = configuration.baseOptions;
14536
+ }
14537
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14538
+ const localVarHeaderParameter = {};
14539
+ const localVarQueryParameter = {};
14540
+ // authentication apiToken required
14541
+ // http bearer authentication required
14542
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14543
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14545
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14546
+ return {
14547
+ url: (0, common_1.toPathString)(localVarUrlObj),
14548
+ options: localVarRequestOptions,
14549
+ };
14550
+ }),
14551
+ };
14552
+ };
14553
+ exports.WordPressLoginApiAxiosParamCreator = WordPressLoginApiAxiosParamCreator;
14554
+ /**
14555
+ * WordPressLoginApi - functional programming interface
14556
+ * @export
14557
+ */
14558
+ const WordPressLoginApiFp = function (configuration) {
14559
+ const localVarAxiosParamCreator = (0, exports.WordPressLoginApiAxiosParamCreator)(configuration);
14560
+ return {
14561
+ /**
14562
+ * 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).
14563
+ * @summary Create login links
14564
+ * @param {string} username
14565
+ * @param {string} software WordPress installation (software) identifier
14566
+ * @param {*} [options] Override http request option.
14567
+ * @throws {RequiredError}
14568
+ */
14569
+ createLoginLinksV1(username, software, options) {
14570
+ return __awaiter(this, void 0, void 0, function* () {
14571
+ var _a, _b;
14572
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createLoginLinksV1(username, software, options);
14573
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressLoginApi.createLoginLinksV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14574
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14575
+ });
14576
+ },
14577
+ };
14578
+ };
14579
+ exports.WordPressLoginApiFp = WordPressLoginApiFp;
14580
+ /**
14581
+ * WordPressLoginApi - factory interface
14582
+ * @export
14583
+ */
14584
+ const WordPressLoginApiFactory = function (configuration, basePath, axios) {
14585
+ const localVarFp = (0, exports.WordPressLoginApiFp)(configuration);
14586
+ return {
14587
+ /**
14588
+ * 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).
14589
+ * @summary Create login links
14590
+ * @param {string} username
14591
+ * @param {string} software WordPress installation (software) identifier
14592
+ * @param {*} [options] Override http request option.
14593
+ * @throws {RequiredError}
14594
+ */
14595
+ createLoginLinksV1(username, software, options) {
14596
+ return localVarFp.createLoginLinksV1(username, software, options).then((request) => request(axios, basePath));
14597
+ },
14598
+ };
14599
+ };
14600
+ exports.WordPressLoginApiFactory = WordPressLoginApiFactory;
14601
+ /**
14602
+ * WordPressLoginApi - object-oriented interface
14603
+ * @export
14604
+ * @class WordPressLoginApi
14605
+ * @extends {BaseAPI}
14606
+ */
14607
+ class WordPressLoginApi extends base_1.BaseAPI {
14608
+ /**
14609
+ * 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).
14610
+ * @summary Create login links
14611
+ * @param {string} username
14612
+ * @param {string} software WordPress installation (software) identifier
14613
+ * @param {*} [options] Override http request option.
14614
+ * @throws {RequiredError}
14615
+ * @memberof WordPressLoginApi
14616
+ */
14617
+ createLoginLinksV1(username, software, options) {
14618
+ return (0, exports.WordPressLoginApiFp)(this.configuration).createLoginLinksV1(username, software, options).then((request) => request(this.axios, this.basePath));
14619
+ }
14620
+ }
14621
+ exports.WordPressLoginApi = WordPressLoginApi;
14622
+ /**
14623
+ * WordPressMaintenanceApi - axios parameter creator
14624
+ * @export
14625
+ */
14626
+ const WordPressMaintenanceApiAxiosParamCreator = function (configuration) {
14627
+ return {
14628
+ /**
14629
+ * 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).
14630
+ * @summary Show maintenance status
14631
+ * @param {string} username
14632
+ * @param {string} software WordPress installation (software) identifier
14633
+ * @param {*} [options] Override http request option.
14634
+ * @throws {RequiredError}
14635
+ */
14636
+ showMaintenanceStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
14637
+ // verify required parameter 'username' is not null or undefined
14638
+ (0, common_1.assertParamExists)('showMaintenanceStatusV1', 'username', username);
14639
+ // verify required parameter 'software' is not null or undefined
14640
+ (0, common_1.assertParamExists)('showMaintenanceStatusV1', 'software', software);
14641
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status`
14642
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14643
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14644
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14645
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14646
+ let baseOptions;
14647
+ if (configuration) {
14648
+ baseOptions = configuration.baseOptions;
14649
+ }
14650
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14651
+ const localVarHeaderParameter = {};
14652
+ const localVarQueryParameter = {};
14653
+ // authentication apiToken required
14654
+ // http bearer authentication required
14655
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14656
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14657
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14658
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14659
+ return {
14660
+ url: (0, common_1.toPathString)(localVarUrlObj),
14661
+ options: localVarRequestOptions,
14662
+ };
14663
+ }),
14664
+ /**
14665
+ * 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).
14666
+ * @summary Toggle maintenance mode
14667
+ * @param {string} username
14668
+ * @param {string} software WordPress installation (software) identifier
14669
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
14670
+ * @param {*} [options] Override http request option.
14671
+ * @throws {RequiredError}
14672
+ */
14673
+ toggleMaintenanceModeV1: (username_1, software_1, wordPressV1MaintenanceToggleMaintenanceRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1MaintenanceToggleMaintenanceRequest_1, ...args_1], void 0, function* (username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options = {}) {
14674
+ // verify required parameter 'username' is not null or undefined
14675
+ (0, common_1.assertParamExists)('toggleMaintenanceModeV1', 'username', username);
14676
+ // verify required parameter 'software' is not null or undefined
14677
+ (0, common_1.assertParamExists)('toggleMaintenanceModeV1', 'software', software);
14678
+ // verify required parameter 'wordPressV1MaintenanceToggleMaintenanceRequest' is not null or undefined
14679
+ (0, common_1.assertParamExists)('toggleMaintenanceModeV1', 'wordPressV1MaintenanceToggleMaintenanceRequest', wordPressV1MaintenanceToggleMaintenanceRequest);
14680
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle`
14681
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14682
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14684
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14685
+ let baseOptions;
14686
+ if (configuration) {
14687
+ baseOptions = configuration.baseOptions;
14688
+ }
14689
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
14690
+ const localVarHeaderParameter = {};
14691
+ const localVarQueryParameter = {};
14692
+ // authentication apiToken required
14693
+ // http bearer authentication required
14694
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14695
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14696
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14697
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14698
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14699
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1MaintenanceToggleMaintenanceRequest, localVarRequestOptions, configuration);
14700
+ return {
14701
+ url: (0, common_1.toPathString)(localVarUrlObj),
14702
+ options: localVarRequestOptions,
14703
+ };
14704
+ }),
14705
+ };
14706
+ };
14707
+ exports.WordPressMaintenanceApiAxiosParamCreator = WordPressMaintenanceApiAxiosParamCreator;
14708
+ /**
14709
+ * WordPressMaintenanceApi - functional programming interface
14710
+ * @export
14711
+ */
14712
+ const WordPressMaintenanceApiFp = function (configuration) {
14713
+ const localVarAxiosParamCreator = (0, exports.WordPressMaintenanceApiAxiosParamCreator)(configuration);
14714
+ return {
14715
+ /**
14716
+ * 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).
14717
+ * @summary Show maintenance status
14718
+ * @param {string} username
14719
+ * @param {string} software WordPress installation (software) identifier
14720
+ * @param {*} [options] Override http request option.
14721
+ * @throws {RequiredError}
14722
+ */
14723
+ showMaintenanceStatusV1(username, software, options) {
14724
+ return __awaiter(this, void 0, void 0, function* () {
14725
+ var _a, _b;
14726
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.showMaintenanceStatusV1(username, software, options);
14727
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressMaintenanceApi.showMaintenanceStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14728
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14729
+ });
14730
+ },
14731
+ /**
14732
+ * 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).
14733
+ * @summary Toggle maintenance mode
14734
+ * @param {string} username
14735
+ * @param {string} software WordPress installation (software) identifier
14736
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
14737
+ * @param {*} [options] Override http request option.
14738
+ * @throws {RequiredError}
14739
+ */
14740
+ toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
14741
+ return __awaiter(this, void 0, void 0, function* () {
14742
+ var _a, _b;
14743
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options);
14744
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressMaintenanceApi.toggleMaintenanceModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14745
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14746
+ });
14747
+ },
14748
+ };
14749
+ };
14750
+ exports.WordPressMaintenanceApiFp = WordPressMaintenanceApiFp;
14751
+ /**
14752
+ * WordPressMaintenanceApi - factory interface
14753
+ * @export
14754
+ */
14755
+ const WordPressMaintenanceApiFactory = function (configuration, basePath, axios) {
14756
+ const localVarFp = (0, exports.WordPressMaintenanceApiFp)(configuration);
14757
+ return {
14758
+ /**
14759
+ * 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).
14760
+ * @summary Show maintenance status
14761
+ * @param {string} username
14762
+ * @param {string} software WordPress installation (software) identifier
14763
+ * @param {*} [options] Override http request option.
14764
+ * @throws {RequiredError}
14765
+ */
14766
+ showMaintenanceStatusV1(username, software, options) {
14767
+ return localVarFp.showMaintenanceStatusV1(username, software, options).then((request) => request(axios, basePath));
14768
+ },
14769
+ /**
14770
+ * 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).
14771
+ * @summary Toggle maintenance mode
14772
+ * @param {string} username
14773
+ * @param {string} software WordPress installation (software) identifier
14774
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
14775
+ * @param {*} [options] Override http request option.
14776
+ * @throws {RequiredError}
14777
+ */
14778
+ toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
14779
+ return localVarFp.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(axios, basePath));
14780
+ },
14781
+ };
14782
+ };
14783
+ exports.WordPressMaintenanceApiFactory = WordPressMaintenanceApiFactory;
14784
+ /**
14785
+ * WordPressMaintenanceApi - object-oriented interface
14786
+ * @export
14787
+ * @class WordPressMaintenanceApi
14788
+ * @extends {BaseAPI}
14789
+ */
14790
+ class WordPressMaintenanceApi extends base_1.BaseAPI {
14791
+ /**
14792
+ * 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).
14793
+ * @summary Show maintenance status
14794
+ * @param {string} username
14795
+ * @param {string} software WordPress installation (software) identifier
14796
+ * @param {*} [options] Override http request option.
14797
+ * @throws {RequiredError}
14798
+ * @memberof WordPressMaintenanceApi
14799
+ */
14800
+ showMaintenanceStatusV1(username, software, options) {
14801
+ return (0, exports.WordPressMaintenanceApiFp)(this.configuration).showMaintenanceStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
14802
+ }
14803
+ /**
14804
+ * 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).
14805
+ * @summary Toggle maintenance mode
14806
+ * @param {string} username
14807
+ * @param {string} software WordPress installation (software) identifier
14808
+ * @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
14809
+ * @param {*} [options] Override http request option.
14810
+ * @throws {RequiredError}
14811
+ * @memberof WordPressMaintenanceApi
14812
+ */
14813
+ toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
14814
+ return (0, exports.WordPressMaintenanceApiFp)(this.configuration).toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(this.axios, this.basePath));
14815
+ }
14816
+ }
14817
+ exports.WordPressMaintenanceApi = WordPressMaintenanceApi;
14818
+ /**
14819
+ * WordPressObjectCacheApi - axios parameter creator
14820
+ * @export
14821
+ */
14822
+ const WordPressObjectCacheApiAxiosParamCreator = function (configuration) {
14823
+ return {
14824
+ /**
14825
+ * 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).
14826
+ * @summary Show Memcached object cache status
14827
+ * @param {string} username
14828
+ * @param {string} software WordPress installation (software) identifier
14829
+ * @param {*} [options] Override http request option.
14830
+ * @throws {RequiredError}
14831
+ */
14832
+ showMemcachedObjectCacheStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
14833
+ // verify required parameter 'username' is not null or undefined
14834
+ (0, common_1.assertParamExists)('showMemcachedObjectCacheStatusV1', 'username', username);
14835
+ // verify required parameter 'software' is not null or undefined
14836
+ (0, common_1.assertParamExists)('showMemcachedObjectCacheStatusV1', 'software', software);
14837
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status`
14838
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14839
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14840
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14841
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14842
+ let baseOptions;
14843
+ if (configuration) {
14844
+ baseOptions = configuration.baseOptions;
14845
+ }
14846
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14847
+ const localVarHeaderParameter = {};
14848
+ const localVarQueryParameter = {};
14849
+ // authentication apiToken required
14850
+ // http bearer authentication required
14851
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14852
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14853
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14854
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14855
+ return {
14856
+ url: (0, common_1.toPathString)(localVarUrlObj),
14857
+ options: localVarRequestOptions,
14858
+ };
14859
+ }),
14860
+ /**
14861
+ * 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).
14862
+ * @summary Toggle Memcached object cache
14863
+ * @param {string} username
14864
+ * @param {string} software WordPress installation (software) identifier
14865
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
14866
+ * @param {*} [options] Override http request option.
14867
+ * @throws {RequiredError}
14868
+ */
14869
+ toggleMemcachedObjectCacheV1: (username_1, software_1, wordPressV1MemcachedToggleMemcachedRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1MemcachedToggleMemcachedRequest_1, ...args_1], void 0, function* (username, software, wordPressV1MemcachedToggleMemcachedRequest, options = {}) {
14870
+ // verify required parameter 'username' is not null or undefined
14871
+ (0, common_1.assertParamExists)('toggleMemcachedObjectCacheV1', 'username', username);
14872
+ // verify required parameter 'software' is not null or undefined
14873
+ (0, common_1.assertParamExists)('toggleMemcachedObjectCacheV1', 'software', software);
14874
+ // verify required parameter 'wordPressV1MemcachedToggleMemcachedRequest' is not null or undefined
14875
+ (0, common_1.assertParamExists)('toggleMemcachedObjectCacheV1', 'wordPressV1MemcachedToggleMemcachedRequest', wordPressV1MemcachedToggleMemcachedRequest);
14876
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle`
14877
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
14878
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
14879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14880
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14881
+ let baseOptions;
14882
+ if (configuration) {
14883
+ baseOptions = configuration.baseOptions;
14884
+ }
14885
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
14886
+ const localVarHeaderParameter = {};
14887
+ const localVarQueryParameter = {};
14888
+ // authentication apiToken required
14889
+ // http bearer authentication required
14890
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
14891
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14892
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14893
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14894
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14895
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1MemcachedToggleMemcachedRequest, localVarRequestOptions, configuration);
14896
+ return {
14897
+ url: (0, common_1.toPathString)(localVarUrlObj),
14898
+ options: localVarRequestOptions,
14899
+ };
14900
+ }),
14901
+ };
14902
+ };
14903
+ exports.WordPressObjectCacheApiAxiosParamCreator = WordPressObjectCacheApiAxiosParamCreator;
14904
+ /**
14905
+ * WordPressObjectCacheApi - functional programming interface
14906
+ * @export
14907
+ */
14908
+ const WordPressObjectCacheApiFp = function (configuration) {
14909
+ const localVarAxiosParamCreator = (0, exports.WordPressObjectCacheApiAxiosParamCreator)(configuration);
14910
+ return {
14911
+ /**
14912
+ * 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).
14913
+ * @summary Show Memcached object cache status
14914
+ * @param {string} username
14915
+ * @param {string} software WordPress installation (software) identifier
14916
+ * @param {*} [options] Override http request option.
14917
+ * @throws {RequiredError}
14918
+ */
14919
+ showMemcachedObjectCacheStatusV1(username, software, options) {
14920
+ return __awaiter(this, void 0, void 0, function* () {
14921
+ var _a, _b;
14922
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.showMemcachedObjectCacheStatusV1(username, software, options);
14923
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressObjectCacheApi.showMemcachedObjectCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14924
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14925
+ });
14926
+ },
14927
+ /**
14928
+ * 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).
14929
+ * @summary Toggle Memcached object cache
14930
+ * @param {string} username
14931
+ * @param {string} software WordPress installation (software) identifier
14932
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
14933
+ * @param {*} [options] Override http request option.
14934
+ * @throws {RequiredError}
14935
+ */
14936
+ toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
14937
+ return __awaiter(this, void 0, void 0, function* () {
14938
+ var _a, _b;
14939
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options);
14940
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressObjectCacheApi.toggleMemcachedObjectCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14941
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14942
+ });
14943
+ },
14944
+ };
14945
+ };
14946
+ exports.WordPressObjectCacheApiFp = WordPressObjectCacheApiFp;
14947
+ /**
14948
+ * WordPressObjectCacheApi - factory interface
14949
+ * @export
14950
+ */
14951
+ const WordPressObjectCacheApiFactory = function (configuration, basePath, axios) {
14952
+ const localVarFp = (0, exports.WordPressObjectCacheApiFp)(configuration);
14953
+ return {
14954
+ /**
14955
+ * 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).
14956
+ * @summary Show Memcached object cache status
14957
+ * @param {string} username
14958
+ * @param {string} software WordPress installation (software) identifier
14959
+ * @param {*} [options] Override http request option.
14960
+ * @throws {RequiredError}
14961
+ */
14962
+ showMemcachedObjectCacheStatusV1(username, software, options) {
14963
+ return localVarFp.showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
14964
+ },
14965
+ /**
14966
+ * 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).
14967
+ * @summary Toggle Memcached object cache
14968
+ * @param {string} username
14969
+ * @param {string} software WordPress installation (software) identifier
14970
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
14971
+ * @param {*} [options] Override http request option.
14972
+ * @throws {RequiredError}
14973
+ */
14974
+ toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
14975
+ return localVarFp.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(axios, basePath));
14976
+ },
14977
+ };
14978
+ };
14979
+ exports.WordPressObjectCacheApiFactory = WordPressObjectCacheApiFactory;
14980
+ /**
14981
+ * WordPressObjectCacheApi - object-oriented interface
14982
+ * @export
14983
+ * @class WordPressObjectCacheApi
14984
+ * @extends {BaseAPI}
14985
+ */
14986
+ class WordPressObjectCacheApi extends base_1.BaseAPI {
14987
+ /**
14988
+ * 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).
14989
+ * @summary Show Memcached object cache status
14990
+ * @param {string} username
14991
+ * @param {string} software WordPress installation (software) identifier
14992
+ * @param {*} [options] Override http request option.
14993
+ * @throws {RequiredError}
14994
+ * @memberof WordPressObjectCacheApi
14995
+ */
14996
+ showMemcachedObjectCacheStatusV1(username, software, options) {
14997
+ return (0, exports.WordPressObjectCacheApiFp)(this.configuration).showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
14998
+ }
14999
+ /**
15000
+ * 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).
15001
+ * @summary Toggle Memcached object cache
15002
+ * @param {string} username
15003
+ * @param {string} software WordPress installation (software) identifier
15004
+ * @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
15005
+ * @param {*} [options] Override http request option.
15006
+ * @throws {RequiredError}
15007
+ * @memberof WordPressObjectCacheApi
15008
+ */
15009
+ toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
15010
+ return (0, exports.WordPressObjectCacheApiFp)(this.configuration).toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(this.axios, this.basePath));
15011
+ }
15012
+ }
15013
+ exports.WordPressObjectCacheApi = WordPressObjectCacheApi;
13408
15014
  /**
13409
15015
  * WordPressPluginsApi - axios parameter creator
13410
15016
  * @export