@newfold/huapi-js 2.1772.0 → 2.1791.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1772.0",
13
+ "version": "2.1791.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import axios from 'axios';
3
3
  import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
4
- import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
4
+ import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
5
5
  declare type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
@@ -7035,6 +7035,37 @@ export declare const useSitePluginUpdate: <TError = AxiosError<unknown, any>, TC
7035
7035
  siteId: string;
7036
7036
  data: SitePluginUpdateBody;
7037
7037
  }, TContext>;
7038
+ /**
7039
+ * Installs and activates a plugin
7040
+ * @summary plugin install
7041
+ */
7042
+ export declare const sitePluginInstall: (siteId: string, sitePluginInstallBody: SitePluginInstallBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginInstall200>>;
7043
+ export declare const getSitePluginInstallMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
7044
+ mutation?: UseMutationOptions<AxiosResponse<SitePluginInstall200, any>, TError, {
7045
+ siteId: string;
7046
+ data: SitePluginInstallBody;
7047
+ }, TContext> | undefined;
7048
+ axios?: AxiosRequestConfig<any> | undefined;
7049
+ } | undefined) => UseMutationOptions<AxiosResponse<SitePluginInstall200, any>, TError, {
7050
+ siteId: string;
7051
+ data: SitePluginInstallBody;
7052
+ }, TContext>;
7053
+ export declare type SitePluginInstallMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginInstall>>>;
7054
+ export declare type SitePluginInstallMutationBody = SitePluginInstallBody;
7055
+ export declare type SitePluginInstallMutationError = AxiosError<unknown>;
7056
+ /**
7057
+ * @summary plugin install
7058
+ */
7059
+ export declare const useSitePluginInstall: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
7060
+ mutation?: UseMutationOptions<AxiosResponse<SitePluginInstall200, any>, TError, {
7061
+ siteId: string;
7062
+ data: SitePluginInstallBody;
7063
+ }, TContext> | undefined;
7064
+ axios?: AxiosRequestConfig<any> | undefined;
7065
+ } | undefined) => UseMutationResult<AxiosResponse<SitePluginInstall200, any>, TError, {
7066
+ siteId: string;
7067
+ data: SitePluginInstallBody;
7068
+ }, TContext>;
7038
7069
  /**
7039
7070
  * Enables / disables plugin auto-updates
7040
7071
  * @deprecated
@@ -7068,6 +7099,37 @@ export declare const useSitePluginsAutoupdate: <TError = AxiosError<unknown, any
7068
7099
  siteId: string;
7069
7100
  data: SitePluginsAutoupdateBody;
7070
7101
  }, TContext>;
7102
+ /**
7103
+ * Installs a WordPress plugin using either plugin slug (preferred) or plugin_url. If both are provided, plugin takes priority.
7104
+ * @summary Install plugin by slug or URL
7105
+ */
7106
+ export declare const sitePluginInstaller: (siteId: string, sitePluginInstallerBody: SitePluginInstallerBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginInstaller200>>;
7107
+ export declare const getSitePluginInstallerMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
7108
+ mutation?: UseMutationOptions<AxiosResponse<SitePluginInstaller200, any>, TError, {
7109
+ siteId: string;
7110
+ data: SitePluginInstallerBody;
7111
+ }, TContext> | undefined;
7112
+ axios?: AxiosRequestConfig<any> | undefined;
7113
+ } | undefined) => UseMutationOptions<AxiosResponse<SitePluginInstaller200, any>, TError, {
7114
+ siteId: string;
7115
+ data: SitePluginInstallerBody;
7116
+ }, TContext>;
7117
+ export declare type SitePluginInstallerMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginInstaller>>>;
7118
+ export declare type SitePluginInstallerMutationBody = SitePluginInstallerBody;
7119
+ export declare type SitePluginInstallerMutationError = AxiosError<unknown>;
7120
+ /**
7121
+ * @summary Install plugin by slug or URL
7122
+ */
7123
+ export declare const useSitePluginInstaller: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
7124
+ mutation?: UseMutationOptions<AxiosResponse<SitePluginInstaller200, any>, TError, {
7125
+ siteId: string;
7126
+ data: SitePluginInstallerBody;
7127
+ }, TContext> | undefined;
7128
+ axios?: AxiosRequestConfig<any> | undefined;
7129
+ } | undefined) => UseMutationResult<AxiosResponse<SitePluginInstaller200, any>, TError, {
7130
+ siteId: string;
7131
+ data: SitePluginInstallerBody;
7132
+ }, TContext>;
7071
7133
  /**
7072
7134
  * Enables / disables a plugin
7073
7135
  * @deprecated
@@ -7977,6 +8039,68 @@ export declare function useSitesVersion<TData = Awaited<ReturnType<typeof sitesV
7977
8039
  }): UseQueryResult<TData, TError> & {
7978
8040
  queryKey: QueryKey;
7979
8041
  };
8042
+ /**
8043
+ * Generates site content based on prompt value passed
8044
+ * @summary Generate site content based on prompt
8045
+ */
8046
+ export declare const siteWpGenerate: (siteId: string, siteWpGenerateBody: SiteWpGenerateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteWpGenerate200>>;
8047
+ export declare const getSiteWpGenerateMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
8048
+ mutation?: UseMutationOptions<AxiosResponse<SiteWpGenerate200, any>, TError, {
8049
+ siteId: string;
8050
+ data: SiteWpGenerateBody;
8051
+ }, TContext> | undefined;
8052
+ axios?: AxiosRequestConfig<any> | undefined;
8053
+ } | undefined) => UseMutationOptions<AxiosResponse<SiteWpGenerate200, any>, TError, {
8054
+ siteId: string;
8055
+ data: SiteWpGenerateBody;
8056
+ }, TContext>;
8057
+ export declare type SiteWpGenerateMutationResult = NonNullable<Awaited<ReturnType<typeof siteWpGenerate>>>;
8058
+ export declare type SiteWpGenerateMutationBody = SiteWpGenerateBody;
8059
+ export declare type SiteWpGenerateMutationError = AxiosError<unknown>;
8060
+ /**
8061
+ * @summary Generate site content based on prompt
8062
+ */
8063
+ export declare const useSiteWpGenerate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
8064
+ mutation?: UseMutationOptions<AxiosResponse<SiteWpGenerate200, any>, TError, {
8065
+ siteId: string;
8066
+ data: SiteWpGenerateBody;
8067
+ }, TContext> | undefined;
8068
+ axios?: AxiosRequestConfig<any> | undefined;
8069
+ } | undefined) => UseMutationResult<AxiosResponse<SiteWpGenerate200, any>, TError, {
8070
+ siteId: string;
8071
+ data: SiteWpGenerateBody;
8072
+ }, TContext>;
8073
+ /**
8074
+ * Installs and activates a theme
8075
+ * @summary theme install
8076
+ */
8077
+ export declare const siteThemeInstall: (siteId: string, siteThemeInstallBody: SiteThemeInstallBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteThemeInstall200>>;
8078
+ export declare const getSiteThemeInstallMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
8079
+ mutation?: UseMutationOptions<AxiosResponse<SiteThemeInstall200, any>, TError, {
8080
+ siteId: string;
8081
+ data: SiteThemeInstallBody;
8082
+ }, TContext> | undefined;
8083
+ axios?: AxiosRequestConfig<any> | undefined;
8084
+ } | undefined) => UseMutationOptions<AxiosResponse<SiteThemeInstall200, any>, TError, {
8085
+ siteId: string;
8086
+ data: SiteThemeInstallBody;
8087
+ }, TContext>;
8088
+ export declare type SiteThemeInstallMutationResult = NonNullable<Awaited<ReturnType<typeof siteThemeInstall>>>;
8089
+ export declare type SiteThemeInstallMutationBody = SiteThemeInstallBody;
8090
+ export declare type SiteThemeInstallMutationError = AxiosError<unknown>;
8091
+ /**
8092
+ * @summary theme install
8093
+ */
8094
+ export declare const useSiteThemeInstall: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
8095
+ mutation?: UseMutationOptions<AxiosResponse<SiteThemeInstall200, any>, TError, {
8096
+ siteId: string;
8097
+ data: SiteThemeInstallBody;
8098
+ }, TContext> | undefined;
8099
+ axios?: AxiosRequestConfig<any> | undefined;
8100
+ } | undefined) => UseMutationResult<AxiosResponse<SiteThemeInstall200, any>, TError, {
8101
+ siteId: string;
8102
+ data: SiteThemeInstallBody;
8103
+ }, TContext>;
7980
8104
  /**
7981
8105
  * Creates wpsolution license addon for site_id
7982
8106
  * @summary configure wpsolution license for site_id
package/src/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * Hosting UAPI
5
5
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
6
- * OpenAPI spec version: 1.1772.0
6
+ * OpenAPI spec version: 1.1791.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -5426,6 +5426,28 @@ export const useSitePluginUpdate = (options) => {
5426
5426
  const mutationOptions = getSitePluginUpdateMutationOptions(options);
5427
5427
  return useMutation(mutationOptions);
5428
5428
  };
5429
+ /**
5430
+ * Installs and activates a plugin
5431
+ * @summary plugin install
5432
+ */
5433
+ export const sitePluginInstall = (siteId, sitePluginInstallBody, options) => {
5434
+ return axios.post(`/v1/sites/${siteId}/plugins`, sitePluginInstallBody, options);
5435
+ };
5436
+ export const getSitePluginInstallMutationOptions = (options) => {
5437
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
5438
+ const mutationFn = (props) => {
5439
+ const { siteId, data } = props !== null && props !== void 0 ? props : {};
5440
+ return sitePluginInstall(siteId, data, axiosOptions);
5441
+ };
5442
+ return Object.assign({ mutationFn }, mutationOptions);
5443
+ };
5444
+ /**
5445
+ * @summary plugin install
5446
+ */
5447
+ export const useSitePluginInstall = (options) => {
5448
+ const mutationOptions = getSitePluginInstallMutationOptions(options);
5449
+ return useMutation(mutationOptions);
5450
+ };
5429
5451
  /**
5430
5452
  * Enables / disables plugin auto-updates
5431
5453
  * @deprecated
@@ -5450,6 +5472,28 @@ export const useSitePluginsAutoupdate = (options) => {
5450
5472
  const mutationOptions = getSitePluginsAutoupdateMutationOptions(options);
5451
5473
  return useMutation(mutationOptions);
5452
5474
  };
5475
+ /**
5476
+ * Installs a WordPress plugin using either plugin slug (preferred) or plugin_url. If both are provided, plugin takes priority.
5477
+ * @summary Install plugin by slug or URL
5478
+ */
5479
+ export const sitePluginInstaller = (siteId, sitePluginInstallerBody, options) => {
5480
+ return axios.post(`/v1/sites/${siteId}/plugins/installer`, sitePluginInstallerBody, options);
5481
+ };
5482
+ export const getSitePluginInstallerMutationOptions = (options) => {
5483
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
5484
+ const mutationFn = (props) => {
5485
+ const { siteId, data } = props !== null && props !== void 0 ? props : {};
5486
+ return sitePluginInstaller(siteId, data, axiosOptions);
5487
+ };
5488
+ return Object.assign({ mutationFn }, mutationOptions);
5489
+ };
5490
+ /**
5491
+ * @summary Install plugin by slug or URL
5492
+ */
5493
+ export const useSitePluginInstaller = (options) => {
5494
+ const mutationOptions = getSitePluginInstallerMutationOptions(options);
5495
+ return useMutation(mutationOptions);
5496
+ };
5453
5497
  /**
5454
5498
  * Enables / disables a plugin
5455
5499
  * @deprecated
@@ -6159,6 +6203,50 @@ export function useSitesVersion(siteId, options) {
6159
6203
  query.queryKey = queryOptions.queryKey;
6160
6204
  return query;
6161
6205
  }
6206
+ /**
6207
+ * Generates site content based on prompt value passed
6208
+ * @summary Generate site content based on prompt
6209
+ */
6210
+ export const siteWpGenerate = (siteId, siteWpGenerateBody, options) => {
6211
+ return axios.post(`/v1/sites/${siteId}/wp/generate`, siteWpGenerateBody, options);
6212
+ };
6213
+ export const getSiteWpGenerateMutationOptions = (options) => {
6214
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
6215
+ const mutationFn = (props) => {
6216
+ const { siteId, data } = props !== null && props !== void 0 ? props : {};
6217
+ return siteWpGenerate(siteId, data, axiosOptions);
6218
+ };
6219
+ return Object.assign({ mutationFn }, mutationOptions);
6220
+ };
6221
+ /**
6222
+ * @summary Generate site content based on prompt
6223
+ */
6224
+ export const useSiteWpGenerate = (options) => {
6225
+ const mutationOptions = getSiteWpGenerateMutationOptions(options);
6226
+ return useMutation(mutationOptions);
6227
+ };
6228
+ /**
6229
+ * Installs and activates a theme
6230
+ * @summary theme install
6231
+ */
6232
+ export const siteThemeInstall = (siteId, siteThemeInstallBody, options) => {
6233
+ return axios.post(`/v1/sites/${siteId}/wp/themes`, siteThemeInstallBody, options);
6234
+ };
6235
+ export const getSiteThemeInstallMutationOptions = (options) => {
6236
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
6237
+ const mutationFn = (props) => {
6238
+ const { siteId, data } = props !== null && props !== void 0 ? props : {};
6239
+ return siteThemeInstall(siteId, data, axiosOptions);
6240
+ };
6241
+ return Object.assign({ mutationFn }, mutationOptions);
6242
+ };
6243
+ /**
6244
+ * @summary theme install
6245
+ */
6246
+ export const useSiteThemeInstall = (options) => {
6247
+ const mutationOptions = getSiteThemeInstallMutationOptions(options);
6248
+ return useMutation(mutationOptions);
6249
+ };
6162
6250
  /**
6163
6251
  * Creates wpsolution license addon for site_id
6164
6252
  * @summary configure wpsolution license for site_id
@@ -1,5 +1,5 @@
1
1
  import { http } from 'msw';
2
- import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
2
+ import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
3
3
  export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
4
4
  export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
5
5
  export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
@@ -222,7 +222,9 @@ export declare const getSitesPerformanceRedisPurgeResponseMock: (overrideRespons
222
222
  export declare const getCreatePhpInfoResponseMock: (overrideResponse?: Partial<CreatePhpInfo200>) => CreatePhpInfo200;
223
223
  export declare const getSitePluginsResponseMock: (overrideResponse?: Partial<SitePlugins200>) => SitePlugins200;
224
224
  export declare const getSitePluginUpdateResponseMock: (overrideResponse?: Partial<SitePluginUpdate200>) => SitePluginUpdate200;
225
+ export declare const getSitePluginInstallResponseMock: (overrideResponse?: Partial<SitePluginInstall200>) => SitePluginInstall200;
225
226
  export declare const getSitePluginsAutoupdateResponseMock: (overrideResponse?: Partial<SitePluginsAutoupdate200>) => SitePluginsAutoupdate200;
227
+ export declare const getSitePluginInstallerResponseMock: (overrideResponse?: Partial<SitePluginInstaller200>) => SitePluginInstaller200;
226
228
  export declare const getSitePluginsToggleResponseMock: (overrideResponse?: Partial<SitePluginsToggle200>) => SitePluginsToggle200;
227
229
  export declare const getSitePluginsUpdateResponseMock: (overrideResponse?: Partial<SitePluginsUpdate200>) => SitePluginsUpdate200;
228
230
  export declare const getSiteQualityMetricsResponseMock: (overrideResponse?: Partial<SiteQualityMetrics200>) => SiteQualityMetrics200;
@@ -252,6 +254,8 @@ export declare const getStagingSitePromoteResponseMock: (overrideResponse?: Part
252
254
  export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<SiteStatus200>) => SiteStatus200;
253
255
  export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
254
256
  export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
257
+ export declare const getSiteWpGenerateResponseMock: (overrideResponse?: Partial<SiteWpGenerate200>) => SiteWpGenerate200;
258
+ export declare const getSiteThemeInstallResponseMock: (overrideResponse?: Partial<SiteThemeInstall200>) => SiteThemeInstall200;
255
259
  export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
256
260
  export declare const getUserHostingResponseMock: (overrideResponse?: Partial<UserHosting200>) => UserHosting200;
257
261
  export declare const getUserHostingOverviewResponseMock: (overrideResponse?: Partial<UserHostingOverview200>) => UserHostingOverview200;
@@ -510,7 +514,9 @@ export declare const getSitesPerformanceRedisPurgeMockHandler: (overrideResponse
510
514
  export declare const getCreatePhpInfoMockHandler: (overrideResponse?: CreatePhpInfo200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CreatePhpInfo200> | CreatePhpInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
511
515
  export declare const getSitePluginsMockHandler: (overrideResponse?: SitePlugins200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitePlugins200> | SitePlugins200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
512
516
  export declare const getSitePluginUpdateMockHandler: (overrideResponse?: SitePluginUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<SitePluginUpdate200> | SitePluginUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
517
+ export declare const getSitePluginInstallMockHandler: (overrideResponse?: SitePluginInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginInstall200> | SitePluginInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
513
518
  export declare const getSitePluginsAutoupdateMockHandler: (overrideResponse?: SitePluginsAutoupdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginsAutoupdate200> | SitePluginsAutoupdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
519
+ export declare const getSitePluginInstallerMockHandler: (overrideResponse?: SitePluginInstaller200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginInstaller200> | SitePluginInstaller200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
514
520
  export declare const getSitePluginsToggleMockHandler: (overrideResponse?: SitePluginsToggle200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginsToggle200> | SitePluginsToggle200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
515
521
  export declare const getSitePluginsUpdateMockHandler: (overrideResponse?: SitePluginsUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginsUpdate200> | SitePluginsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
516
522
  export declare const getSiteQualityMetricsMockHandler: (overrideResponse?: SiteQualityMetrics200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteQualityMetrics200> | SiteQualityMetrics200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
@@ -540,6 +546,8 @@ export declare const getStagingSitePromoteMockHandler: (overrideResponse?: Stagi
540
546
  export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteStatus200> | SiteStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
541
547
  export declare const getSiteUsersMockHandler: (overrideResponse?: SiteUsers200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteUsers200> | SiteUsers200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
542
548
  export declare const getSitesVersionMockHandler: (overrideResponse?: SitesVersion200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesVersion200> | SitesVersion200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
549
+ export declare const getSiteWpGenerateMockHandler: (overrideResponse?: SiteWpGenerate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteWpGenerate200> | SiteWpGenerate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
550
+ export declare const getSiteThemeInstallMockHandler: (overrideResponse?: SiteThemeInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteThemeInstall200> | SiteThemeInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
543
551
  export declare const getSiteAddonWpsolutionMockHandler: (overrideResponse?: SiteAddonWpsolution200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonWpsolution200> | SiteAddonWpsolution200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
544
552
  export declare const getUserHostingMockHandler: (overrideResponse?: UserHosting200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHosting200> | UserHosting200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
545
553
  export declare const getUserHostingOverviewMockHandler: (overrideResponse?: UserHostingOverview200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHostingOverview200> | UserHostingOverview200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
package/src/index.msw.js CHANGED
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
4
4
  * Do not edit manually.
5
5
  * Hosting UAPI
6
6
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
7
- * OpenAPI spec version: 1.1772.0
7
+ * OpenAPI spec version: 1.1791.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -255,7 +255,9 @@ export const getSitesPerformanceRedisPurgeResponseMock = (overrideResponse = {})
255
255
  export const getCreatePhpInfoResponseMock = (overrideResponse = {}) => (Object.assign({ html: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
256
256
  export const getSitePluginsResponseMock = (overrideResponse = {}) => (Object.assign({ auto_update: faker.datatype.boolean(), plugins: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.word.sample(), status: faker.word.sample(), title: faker.word.sample(), update: faker.datatype.boolean(), version: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), subtype: faker.word.sample() }, overrideResponse));
257
257
  export const getSitePluginUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.word.sample(), status: faker.word.sample() }, overrideResponse));
258
+ export const getSitePluginInstallResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
258
259
  export const getSitePluginsAutoupdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
260
+ export const getSitePluginInstallerResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.word.sample(), status: faker.word.sample(), success: faker.datatype.boolean() }, overrideResponse));
259
261
  export const getSitePluginsToggleResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
260
262
  export const getSitePluginsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
261
263
  export const getSiteQualityMetricsResponseMock = (overrideResponse = {}) => (Object.assign({ aspect_details: { performance: faker.helpers.arrayElement([{ 'cumulative-layout-shift': faker.helpers.arrayElement([{}, undefined]), 'first-contentful-paint': faker.helpers.arrayElement([{}, undefined]), 'largest-contentful-paint': faker.helpers.arrayElement([{}, undefined]), 'speed-index': faker.helpers.arrayElement([{}, undefined]), 'total-blocking-time': faker.helpers.arrayElement([{}, undefined]) }, undefined]) }, aspect_scores: { performance: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, audits: faker.helpers.arrayElement([{}, undefined]), loading_experience: faker.helpers.arrayElement([{}, undefined]), origin_loading_experience: faker.helpers.arrayElement([{}, undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
@@ -285,6 +287,10 @@ export const getStagingSitePromoteResponseMock = (overrideResponse = {}) => (Obj
285
287
  export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assign({ cloudflare_ready: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), pending_url: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
286
288
  export const getSiteUsersResponseMock = (overrideResponse = {}) => (Object.assign({ users: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ display_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.number.int({ min: undefined, max: undefined }), meta: faker.helpers.arrayElement([{ maestro_web_pro: faker.helpers.arrayElement([faker.word.sample(), undefined]), maestro_wpp_identifier: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), post_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), role: faker.word.sample(), user_email: faker.word.sample(), user_id: faker.number.int({ min: undefined, max: undefined }), user_login: faker.word.sample(), user_nicename: faker.word.sample() })) }, overrideResponse));
287
289
  export const getSitesVersionResponseMock = (overrideResponse = {}) => (Object.assign({ current: faker.helpers.arrayElement([faker.word.sample(), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), update: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
290
+ export const getSiteWpGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ results: faker.helpers.arrayElement([{
291
+ [faker.string.alphanumeric(5)]: faker.word.sample()
292
+ }, undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
293
+ export const getSiteThemeInstallResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
288
294
  export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
289
295
  export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), application: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
290
296
  export const getUserHostingOverviewResponseMock = (overrideResponse = {}) => (Object.assign({ has_unlimited_sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), hosting_accounts: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
@@ -2561,6 +2567,16 @@ export const getSitePluginUpdateMockHandler = (overrideResponse) => {
2561
2567
  });
2562
2568
  }));
2563
2569
  };
2570
+ export const getSitePluginInstallMockHandler = (overrideResponse) => {
2571
+ return http.post('*/v1/sites/:siteId/plugins', (info) => __awaiter(void 0, void 0, void 0, function* () {
2572
+ yield delay(0);
2573
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2574
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2575
+ : getSitePluginInstallResponseMock()), { status: 200,
2576
+ headers: { 'Content-Type': 'application/json' }
2577
+ });
2578
+ }));
2579
+ };
2564
2580
  export const getSitePluginsAutoupdateMockHandler = (overrideResponse) => {
2565
2581
  return http.post('*/v1/sites/:siteId/plugins/autoupdate', (info) => __awaiter(void 0, void 0, void 0, function* () {
2566
2582
  yield delay(0);
@@ -2571,6 +2587,16 @@ export const getSitePluginsAutoupdateMockHandler = (overrideResponse) => {
2571
2587
  });
2572
2588
  }));
2573
2589
  };
2590
+ export const getSitePluginInstallerMockHandler = (overrideResponse) => {
2591
+ return http.post('*/v1/sites/:siteId/plugins/installer', (info) => __awaiter(void 0, void 0, void 0, function* () {
2592
+ yield delay(0);
2593
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2594
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2595
+ : getSitePluginInstallerResponseMock()), { status: 200,
2596
+ headers: { 'Content-Type': 'application/json' }
2597
+ });
2598
+ }));
2599
+ };
2574
2600
  export const getSitePluginsToggleMockHandler = (overrideResponse) => {
2575
2601
  return http.post('*/v1/sites/:siteId/plugins/toggle', (info) => __awaiter(void 0, void 0, void 0, function* () {
2576
2602
  yield delay(0);
@@ -2861,6 +2887,26 @@ export const getSitesVersionMockHandler = (overrideResponse) => {
2861
2887
  });
2862
2888
  }));
2863
2889
  };
2890
+ export const getSiteWpGenerateMockHandler = (overrideResponse) => {
2891
+ return http.post('*/v1/sites/:siteId/wp/generate', (info) => __awaiter(void 0, void 0, void 0, function* () {
2892
+ yield delay(0);
2893
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2894
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2895
+ : getSiteWpGenerateResponseMock()), { status: 200,
2896
+ headers: { 'Content-Type': 'application/json' }
2897
+ });
2898
+ }));
2899
+ };
2900
+ export const getSiteThemeInstallMockHandler = (overrideResponse) => {
2901
+ return http.post('*/v1/sites/:siteId/wp/themes', (info) => __awaiter(void 0, void 0, void 0, function* () {
2902
+ yield delay(0);
2903
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2904
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2905
+ : getSiteThemeInstallResponseMock()), { status: 200,
2906
+ headers: { 'Content-Type': 'application/json' }
2907
+ });
2908
+ }));
2909
+ };
2864
2910
  export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
2865
2911
  return http.post('*/v1/sites/:siteId/wpsolution', (info) => __awaiter(void 0, void 0, void 0, function* () {
2866
2912
  yield delay(0);
@@ -3426,7 +3472,9 @@ export const getHostingUAPIMock = () => [
3426
3472
  getCreatePhpInfoMockHandler(),
3427
3473
  getSitePluginsMockHandler(),
3428
3474
  getSitePluginUpdateMockHandler(),
3475
+ getSitePluginInstallMockHandler(),
3429
3476
  getSitePluginsAutoupdateMockHandler(),
3477
+ getSitePluginInstallerMockHandler(),
3430
3478
  getSitePluginsToggleMockHandler(),
3431
3479
  getSitePluginsUpdateMockHandler(),
3432
3480
  getSiteQualityMetricsMockHandler(),
@@ -3456,6 +3504,8 @@ export const getHostingUAPIMock = () => [
3456
3504
  getSiteStatusMockHandler(),
3457
3505
  getSiteUsersMockHandler(),
3458
3506
  getSitesVersionMockHandler(),
3507
+ getSiteWpGenerateMockHandler(),
3508
+ getSiteThemeInstallMockHandler(),
3459
3509
  getSiteAddonWpsolutionMockHandler(),
3460
3510
  getUserHostingMockHandler(),
3461
3511
  getUserHostingOverviewMockHandler(),
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * Hosting UAPI
5
5
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
6
- * OpenAPI spec version: 1.1772.0
6
+ * OpenAPI spec version: 1.1791.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -686,30 +686,6 @@ export declare type HostingSitesV2200UsedSitesDetails = {
686
686
  /** Count of staging sites on specified hosting account */
687
687
  staging_sites?: number;
688
688
  };
689
- export declare type HostingSitesV2200 = {
690
- /**
691
- * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
692
- * @nullable
693
- */
694
- available_sites?: number | null;
695
- items?: HostingSitesV2200ItemsItem[];
696
- /** page size */
697
- limit?: number;
698
- /**
699
- * Maximum number of sites the customer can have. Null means 'unlimited'.
700
- * @nullable
701
- */
702
- max_sites?: number | null;
703
- /** current page number */
704
- page?: number;
705
- /** total number of pages */
706
- pages?: number;
707
- /** total number of sites returned */
708
- total?: number;
709
- /** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
710
- used_sites?: number;
711
- used_sites_details?: HostingSitesV2200UsedSitesDetails;
712
- };
713
689
  /**
714
690
  * @nullable
715
691
  */
@@ -872,6 +848,30 @@ export declare type HostingSitesV2200ItemsItem = {
872
848
  */
873
849
  version_ptr?: string | null;
874
850
  };
851
+ export declare type HostingSitesV2200 = {
852
+ /**
853
+ * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
854
+ * @nullable
855
+ */
856
+ available_sites?: number | null;
857
+ items?: HostingSitesV2200ItemsItem[];
858
+ /** page size */
859
+ limit?: number;
860
+ /**
861
+ * Maximum number of sites the customer can have. Null means 'unlimited'.
862
+ * @nullable
863
+ */
864
+ max_sites?: number | null;
865
+ /** current page number */
866
+ page?: number;
867
+ /** total number of pages */
868
+ pages?: number;
869
+ /** total number of sites returned */
870
+ total?: number;
871
+ /** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
872
+ used_sites?: number;
873
+ used_sites_details?: HostingSitesV2200UsedSitesDetails;
874
+ };
875
875
  export declare type HostingSitesV2Params = {
876
876
  limit?: number;
877
877
  page?: number;
@@ -923,12 +923,6 @@ export declare type HostingDomainsUnassignV2Body = {
923
923
  /** The site id to be unassigned */
924
924
  site_id: number;
925
925
  };
926
- export declare type HostingDomainsV2200 = {
927
- domains: HostingDomainsV2200DomainsItem[];
928
- limit?: number;
929
- page?: number;
930
- total?: number;
931
- };
932
926
  /**
933
927
  * Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
934
928
  * @nullable
@@ -1065,6 +1059,12 @@ export declare type HostingDomainsV2200DomainsItem = {
1065
1059
  */
1066
1060
  used_entri?: number | null;
1067
1061
  };
1062
+ export declare type HostingDomainsV2200 = {
1063
+ domains: HostingDomainsV2200DomainsItem[];
1064
+ limit?: number;
1065
+ page?: number;
1066
+ total?: number;
1067
+ };
1068
1068
  export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
1069
1069
  export declare const HostingDomainsV2TypesItem: {
1070
1070
  readonly addon: "addon";
@@ -1234,6 +1234,10 @@ export declare type UserHostingOverviewParams = {
1234
1234
  */
1235
1235
  limit?: number;
1236
1236
  };
1237
+ export declare type UserHosting200 = {
1238
+ /** Information for the paginated hosting accounts */
1239
+ rows?: UserHosting200RowsItem[];
1240
+ };
1237
1241
  /**
1238
1242
  * Usage statistics for staging sites
1239
1243
  * @nullable
@@ -1429,10 +1433,6 @@ export declare type UserHosting200RowsItem = {
1429
1433
  */
1430
1434
  used_stage?: UserHosting200RowsItemUsedStage;
1431
1435
  };
1432
- export declare type UserHosting200 = {
1433
- /** Information for the paginated hosting accounts */
1434
- rows?: UserHosting200RowsItem[];
1435
- };
1436
1436
  /**
1437
1437
  * Region information for the account
1438
1438
  * @nullable
@@ -1644,6 +1644,28 @@ export declare type SiteAddonWpsolutionBody = {
1644
1644
  /** wpsolution addon subtype */
1645
1645
  subtype: SiteAddonWpsolutionBodySubtype;
1646
1646
  };
1647
+ export declare type SiteThemeInstall200 = {
1648
+ id?: string;
1649
+ status?: string;
1650
+ success?: boolean;
1651
+ };
1652
+ export declare type SiteThemeInstallBody = {
1653
+ /** Whether to activate the theme after installation */
1654
+ activate?: boolean;
1655
+ /** The theme id (slug) */
1656
+ theme: string;
1657
+ };
1658
+ export declare type SiteWpGenerate200Results = {
1659
+ [key: string]: string;
1660
+ };
1661
+ export declare type SiteWpGenerate200 = {
1662
+ results?: SiteWpGenerate200Results;
1663
+ success?: boolean;
1664
+ };
1665
+ export declare type SiteWpGenerateBody = {
1666
+ /** The value for nfd_origin_prompt option */
1667
+ value?: string;
1668
+ };
1647
1669
  export declare type SitesVersion200 = {
1648
1670
  current?: string;
1649
1671
  latest?: string;
@@ -2061,12 +2083,41 @@ export declare type SitePluginsToggleBody = {
2061
2083
  /** The plugin id */
2062
2084
  id: string;
2063
2085
  };
2086
+ export declare type SitePluginInstaller200 = {
2087
+ id: string;
2088
+ status: string;
2089
+ success: boolean;
2090
+ };
2091
+ export declare type SitePluginInstallerBody = (unknown & {
2092
+ activate?: boolean;
2093
+ /** Plugin slug. If both plugin and plugin_url are provided, plugin is used. */
2094
+ plugin?: string;
2095
+ /** Direct URL to plugin package. Used only if plugin slug is not provided. */
2096
+ plugin_url?: string;
2097
+ }) | (unknown & {
2098
+ activate?: boolean;
2099
+ /** Plugin slug. If both plugin and plugin_url are provided, plugin is used. */
2100
+ plugin?: string;
2101
+ /** Direct URL to plugin package. Used only if plugin slug is not provided. */
2102
+ plugin_url?: string;
2103
+ });
2064
2104
  export declare type SitePluginsAutoupdate200 = {
2065
2105
  success: boolean;
2066
2106
  };
2067
2107
  export declare type SitePluginsAutoupdateBody = {
2068
2108
  enable: boolean;
2069
2109
  };
2110
+ export declare type SitePluginInstall200 = {
2111
+ id?: string;
2112
+ status?: string;
2113
+ success?: boolean;
2114
+ };
2115
+ export declare type SitePluginInstallBody = {
2116
+ /** Whether to activate the plugin after installation */
2117
+ activate?: boolean;
2118
+ /** The plugin id (slug) */
2119
+ plugin: string;
2120
+ };
2070
2121
  export declare type SitePluginUpdate200 = {
2071
2122
  id: string;
2072
2123
  status: string;