@newfold/huapi-js 2.1572.0 → 2.1594.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.1572.0",
13
+ "version": "2.1594.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, 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, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, 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, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, 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, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, 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, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, 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, WebzaiSso200, WeeblySso200 } from './index.schemas';
4
+ import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, 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, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, 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, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, 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, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, 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, 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, UserHostings200, UserHostingsParams, 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
  /**
@@ -37,7 +37,8 @@ export declare function useAccountEventList<TData = Awaited<ReturnType<typeof ac
37
37
  queryKey: QueryKey;
38
38
  };
39
39
  /**
40
- * Returns a list of feature information such as addon, features, sites, du, fs, db
40
+ * DEPRECATED - Returns a list of feature information such as addon, features, sites, du, fs, db
41
+ * @deprecated
41
42
  * @summary Return the array of product_inst_ids for the supplied account_ids
42
43
  */
43
44
  export declare const accountFeatures: (params?: AccountFeaturesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AccountFeatures200>>;
@@ -7327,6 +7328,38 @@ export declare const useSitesSettingsPhpVersionUpdate: <TError = AxiosError<unkn
7327
7328
  siteId: number;
7328
7329
  data: SitesSettingsPhpVersionUpdateBody;
7329
7330
  }, TContext>;
7331
+ /**
7332
+ * Returns a list of nested site docpaths and URLs that inherit the PHP version from the given site's docpath.
7333
+ * @summary Get PHP version inheritance for a site
7334
+ */
7335
+ export declare const sitesSettingsPhpVersionInheritance: (siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsPhpVersionInheritance200>>;
7336
+ export declare const getSitesSettingsPhpVersionInheritanceQueryKey: (siteId: string, params?: SitesSettingsPhpVersionInheritanceParams) => readonly [`/v1/sites/${string}/settings/php-version/inheritance`, ...SitesSettingsPhpVersionInheritanceParams[]];
7337
+ export declare const getSitesSettingsPhpVersionInheritanceQueryOptions: <TData = AxiosResponse<SitesSettingsPhpVersionInheritance200, any>, TError = AxiosError<unknown, any>>(siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: {
7338
+ query?: Partial<UseQueryOptions<AxiosResponse<SitesSettingsPhpVersionInheritance200, any>, TError, TData, QueryKey>> | undefined;
7339
+ axios?: AxiosRequestConfig<any> | undefined;
7340
+ } | undefined) => UseQueryOptions<AxiosResponse<SitesSettingsPhpVersionInheritance200, any>, TError, TData, QueryKey> & {
7341
+ queryKey: QueryKey;
7342
+ };
7343
+ export declare type SitesSettingsPhpVersionInheritanceQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>>;
7344
+ export declare type SitesSettingsPhpVersionInheritanceQueryError = AxiosError<unknown>;
7345
+ export declare function useSitesSettingsPhpVersionInheritance<TData = Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError = AxiosError<unknown>>(siteId: string, params: undefined | SitesSettingsPhpVersionInheritanceParams, options: {
7346
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>, 'initialData'>;
7347
+ axios?: AxiosRequestConfig;
7348
+ }): DefinedUseQueryResult<TData, TError> & {
7349
+ queryKey: QueryKey;
7350
+ };
7351
+ export declare function useSitesSettingsPhpVersionInheritance<TData = Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError = AxiosError<unknown>>(siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: {
7352
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>, 'initialData'>;
7353
+ axios?: AxiosRequestConfig;
7354
+ }): UseQueryResult<TData, TError> & {
7355
+ queryKey: QueryKey;
7356
+ };
7357
+ export declare function useSitesSettingsPhpVersionInheritance<TData = Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError = AxiosError<unknown>>(siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: {
7358
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>>;
7359
+ axios?: AxiosRequestConfig;
7360
+ }): UseQueryResult<TData, TError> & {
7361
+ queryKey: QueryKey;
7362
+ };
7330
7363
  /**
7331
7364
  * Gets the list of PHP versions available/installed
7332
7365
  * @summary settings php versions list
@@ -7707,6 +7740,38 @@ export declare const useSiteAddonWpsolution: <TError = AxiosError<SiteAddonWpsol
7707
7740
  siteId: number;
7708
7741
  data: SiteAddonWpsolutionBody;
7709
7742
  }, TContext>;
7743
+ /**
7744
+ * Returns a list of feature information such as addon, features, sites, du, fs, db
7745
+ * @summary Return the array of product_inst_ids for the supplied account_ids
7746
+ */
7747
+ export declare const userHostings: (params?: UserHostingsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserHostings200>>;
7748
+ export declare const getUserHostingsQueryKey: (params?: UserHostingsParams) => readonly ["/v1/user/hostings", ...UserHostingsParams[]];
7749
+ export declare const getUserHostingsQueryOptions: <TData = AxiosResponse<UserHostings200, any>, TError = AxiosError<unknown, any>>(params?: UserHostingsParams, options?: {
7750
+ query?: Partial<UseQueryOptions<AxiosResponse<UserHostings200, any>, TError, TData, QueryKey>> | undefined;
7751
+ axios?: AxiosRequestConfig<any> | undefined;
7752
+ } | undefined) => UseQueryOptions<AxiosResponse<UserHostings200, any>, TError, TData, QueryKey> & {
7753
+ queryKey: QueryKey;
7754
+ };
7755
+ export declare type UserHostingsQueryResult = NonNullable<Awaited<ReturnType<typeof userHostings>>>;
7756
+ export declare type UserHostingsQueryError = AxiosError<unknown>;
7757
+ export declare function useUserHostings<TData = Awaited<ReturnType<typeof userHostings>>, TError = AxiosError<unknown>>(params: undefined | UserHostingsParams, options: {
7758
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>, 'initialData'>;
7759
+ axios?: AxiosRequestConfig;
7760
+ }): DefinedUseQueryResult<TData, TError> & {
7761
+ queryKey: QueryKey;
7762
+ };
7763
+ export declare function useUserHostings<TData = Awaited<ReturnType<typeof userHostings>>, TError = AxiosError<unknown>>(params?: UserHostingsParams, options?: {
7764
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>, 'initialData'>;
7765
+ axios?: AxiosRequestConfig;
7766
+ }): UseQueryResult<TData, TError> & {
7767
+ queryKey: QueryKey;
7768
+ };
7769
+ export declare function useUserHostings<TData = Awaited<ReturnType<typeof userHostings>>, TError = AxiosError<unknown>>(params?: UserHostingsParams, options?: {
7770
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>>;
7771
+ axios?: AxiosRequestConfig;
7772
+ }): UseQueryResult<TData, TError> & {
7773
+ queryKey: QueryKey;
7774
+ };
7710
7775
  /**
7711
7776
  * Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
7712
7777
  * @summary sso
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.1572.0
6
+ * OpenAPI spec version: 1.1594.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -34,7 +34,8 @@ export function useAccountEventList(params, options) {
34
34
  return query;
35
35
  }
36
36
  /**
37
- * Returns a list of feature information such as addon, features, sites, du, fs, db
37
+ * DEPRECATED - Returns a list of feature information such as addon, features, sites, du, fs, db
38
+ * @deprecated
38
39
  * @summary Return the array of product_inst_ids for the supplied account_ids
39
40
  */
40
41
  export const accountFeatures = (params, options) => {
@@ -51,6 +52,7 @@ export const getAccountFeaturesQueryOptions = (params, options) => {
51
52
  return Object.assign({ queryKey, queryFn }, queryOptions);
52
53
  };
53
54
  /**
55
+ * @deprecated
54
56
  * @summary Return the array of product_inst_ids for the supplied account_ids
55
57
  */
56
58
  export function useAccountFeatures(params, options) {
@@ -5646,6 +5648,32 @@ export const useSitesSettingsPhpVersionUpdate = (options) => {
5646
5648
  const mutationOptions = getSitesSettingsPhpVersionUpdateMutationOptions(options);
5647
5649
  return useMutation(mutationOptions);
5648
5650
  };
5651
+ /**
5652
+ * Returns a list of nested site docpaths and URLs that inherit the PHP version from the given site's docpath.
5653
+ * @summary Get PHP version inheritance for a site
5654
+ */
5655
+ export const sitesSettingsPhpVersionInheritance = (siteId, params, options) => {
5656
+ return axios.get(`/v1/sites/${siteId}/settings/php-version/inheritance`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
5657
+ };
5658
+ export const getSitesSettingsPhpVersionInheritanceQueryKey = (siteId, params) => {
5659
+ return [`/v1/sites/${siteId}/settings/php-version/inheritance`, ...(params ? [params] : [])];
5660
+ };
5661
+ export const getSitesSettingsPhpVersionInheritanceQueryOptions = (siteId, params, options) => {
5662
+ var _a;
5663
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
5664
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesSettingsPhpVersionInheritanceQueryKey(siteId, params);
5665
+ const queryFn = ({ signal }) => sitesSettingsPhpVersionInheritance(siteId, params, Object.assign({ signal }, axiosOptions));
5666
+ return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
5667
+ };
5668
+ /**
5669
+ * @summary Get PHP version inheritance for a site
5670
+ */
5671
+ export function useSitesSettingsPhpVersionInheritance(siteId, params, options) {
5672
+ const queryOptions = getSitesSettingsPhpVersionInheritanceQueryOptions(siteId, params, options);
5673
+ const query = useQuery(queryOptions);
5674
+ query.queryKey = queryOptions.queryKey;
5675
+ return query;
5676
+ }
5649
5677
  /**
5650
5678
  * Gets the list of PHP versions available/installed
5651
5679
  * @summary settings php versions list
@@ -5941,6 +5969,32 @@ export const useSiteAddonWpsolution = (options) => {
5941
5969
  const mutationOptions = getSiteAddonWpsolutionMutationOptions(options);
5942
5970
  return useMutation(mutationOptions);
5943
5971
  };
5972
+ /**
5973
+ * Returns a list of feature information such as addon, features, sites, du, fs, db
5974
+ * @summary Return the array of product_inst_ids for the supplied account_ids
5975
+ */
5976
+ export const userHostings = (params, options) => {
5977
+ return axios.get(`/v1/user/hostings`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
5978
+ };
5979
+ export const getUserHostingsQueryKey = (params) => {
5980
+ return [`/v1/user/hostings`, ...(params ? [params] : [])];
5981
+ };
5982
+ export const getUserHostingsQueryOptions = (params, options) => {
5983
+ var _a;
5984
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
5985
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserHostingsQueryKey(params);
5986
+ const queryFn = ({ signal }) => userHostings(params, Object.assign({ signal }, axiosOptions));
5987
+ return Object.assign({ queryKey, queryFn }, queryOptions);
5988
+ };
5989
+ /**
5990
+ * @summary Return the array of product_inst_ids for the supplied account_ids
5991
+ */
5992
+ export function useUserHostings(params, options) {
5993
+ const queryOptions = getUserHostingsQueryOptions(params, options);
5994
+ const query = useQuery(queryOptions);
5995
+ query.queryKey = queryOptions.queryKey;
5996
+ return query;
5997
+ }
5944
5998
  /**
5945
5999
  * Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
5946
6000
  * @summary sso
@@ -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, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, 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, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, 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, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, 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, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
2
+ import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, 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, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, 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, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, 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, 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, UserHostings200, 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;
@@ -231,6 +231,7 @@ export declare const getSitesSettingsComingSoonToggleResponseMock: (overrideResp
231
231
  export declare const getSitesSettingsDebugResponseMock: (overrideResponse?: Partial<SitesSettingsDebug200>) => SitesSettingsDebug200;
232
232
  export declare const getSitesSettingsDebugToggleResponseMock: (overrideResponse?: Partial<SitesSettingsDebugToggle200>) => SitesSettingsDebugToggle200;
233
233
  export declare const getSitesSettingsPhpVersionUpdateResponseMock: (overrideResponse?: Partial<SitesSettingsPhpVersionUpdate200>) => SitesSettingsPhpVersionUpdate200;
234
+ export declare const getSitesSettingsPhpVersionInheritanceResponseMock: (overrideResponse?: Partial<SitesSettingsPhpVersionInheritance200>) => SitesSettingsPhpVersionInheritance200;
234
235
  export declare const getSitesSettingsPhpVersionsResponseMock: (overrideResponse?: Partial<SitesSettingsPhpVersions200>) => SitesSettingsPhpVersions200;
235
236
  export declare const getSitesSshUserListResponseMock: (overrideResponse?: Partial<SitesSshUserList200>) => SitesSshUserList200;
236
237
  export declare const getSitesSshUserCreateResponseMock: (overrideResponse?: Partial<SitesSshUserCreate200>) => SitesSshUserCreate200;
@@ -243,6 +244,7 @@ export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<Site
243
244
  export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
244
245
  export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
245
246
  export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
247
+ export declare const getUserHostingsResponseMock: (overrideResponse?: Partial<UserHostings200>) => UserHostings200;
246
248
  export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
247
249
  export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
248
250
  export declare const getBackupDownloadV2ResponseMock: (overrideResponse?: Partial<BackupDownloadV2200>) => BackupDownloadV2200;
@@ -505,6 +507,7 @@ export declare const getSitesSettingsComingSoonToggleMockHandler: (overrideRespo
505
507
  export declare const getSitesSettingsDebugMockHandler: (overrideResponse?: SitesSettingsDebug200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSettingsDebug200> | SitesSettingsDebug200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
506
508
  export declare const getSitesSettingsDebugToggleMockHandler: (overrideResponse?: SitesSettingsDebugToggle200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesSettingsDebugToggle200> | SitesSettingsDebugToggle200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
507
509
  export declare const getSitesSettingsPhpVersionUpdateMockHandler: (overrideResponse?: SitesSettingsPhpVersionUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesSettingsPhpVersionUpdate200> | SitesSettingsPhpVersionUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
510
+ export declare const getSitesSettingsPhpVersionInheritanceMockHandler: (overrideResponse?: SitesSettingsPhpVersionInheritance200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSettingsPhpVersionInheritance200> | SitesSettingsPhpVersionInheritance200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
508
511
  export declare const getSitesSettingsPhpVersionsMockHandler: (overrideResponse?: SitesSettingsPhpVersions200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSettingsPhpVersions200> | SitesSettingsPhpVersions200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
509
512
  export declare const getSitesSshUserListMockHandler: (overrideResponse?: SitesSshUserList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSshUserList200> | SitesSshUserList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
510
513
  export declare const getSitesSshUserCreateMockHandler: (overrideResponse?: SitesSshUserCreate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesSshUserCreate200> | SitesSshUserCreate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
@@ -517,6 +520,7 @@ export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200
517
520
  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;
518
521
  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;
519
522
  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;
523
+ export declare const getUserHostingsMockHandler: (overrideResponse?: UserHostings200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHostings200> | UserHostings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
520
524
  export declare const getAddonsSitelockSsoV2MockHandler: (overrideResponse?: AddonsSitelockSsoV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSitelockSsoV2200> | AddonsSitelockSsoV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
521
525
  export declare const getBackupCreateV2MockHandler: (overrideResponse?: BackupCreateV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateV2200> | BackupCreateV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
522
526
  export declare const getBackupDownloadV2MockHandler: (overrideResponse?: BackupDownloadV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupDownloadV2200> | BackupDownloadV2200) | 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.1572.0
7
+ * OpenAPI spec version: 1.1594.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -71,7 +71,7 @@ export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}
71
71
  export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
72
72
  export const getHostingAdvancedSsoWhmResponseMock = (overrideResponse = {}) => (Object.assign({ ssl_setup: faker.helpers.arrayElement([{ dns_updated: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), dns_zone_with_us: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), required: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), server_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
73
73
  export const getHostingAdvancedSystemConsoleResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
74
- export const getHostingCapabilitiesResponseMock = (overrideResponse = {}) => (Object.assign({ advanced_hosting: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), cbs_backups: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), cpanel: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_sitelock_migrated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), reset_password: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), server_controls: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), whm: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
74
+ export const getHostingCapabilitiesResponseMock = (overrideResponse = {}) => (Object.assign({ advanced_hosting: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), cpanel: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_sitelock_migrated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), reset_password: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), server_controls: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), whm: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
75
75
  export const getListCronsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ command: faker.helpers.arrayElement([faker.word.sample(), undefined]), day: faker.helpers.arrayElement([faker.word.sample(), undefined]), email: faker.helpers.arrayElement([faker.word.sample(), undefined]), hour: faker.helpers.arrayElement([faker.word.sample(), undefined]), key: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), line: faker.helpers.arrayElement([faker.word.sample(), undefined]), minute: faker.helpers.arrayElement([faker.word.sample(), undefined]), month: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), weekday: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
76
76
  export const getAddCronResponseMock = (overrideResponse = {}) => (Object.assign({ key: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
77
77
  export const getUpdateCronResponseMock = (overrideResponse = {}) => (Object.assign({ key: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
@@ -264,6 +264,7 @@ export const getSitesSettingsComingSoonToggleResponseMock = (overrideResponse =
264
264
  export const getSitesSettingsDebugResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
265
265
  export const getSitesSettingsDebugToggleResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
266
266
  export const getSitesSettingsPhpVersionUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
267
+ export const getSitesSettingsPhpVersionInheritanceResponseMock = (overrideResponse = {}) => (Object.assign({ inherited: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docpath: faker.word.sample(), docroot: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), ok: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), php_inherited: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), php_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.word.sample(), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), success: faker.number.int({ min: undefined, max: undefined }) }, overrideResponse));
267
268
  export const getSitesSettingsPhpVersionsResponseMock = (overrideResponse = {}) => (Object.assign({ default: faker.helpers.arrayElement([faker.word.sample(), undefined]), deprecated: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), versions: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, overrideResponse));
268
269
  export const getSitesSshUserListResponseMock = (overrideResponse = {}) => (Object.assign({ users: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, overrideResponse));
269
270
  export const getSitesSshUserCreateResponseMock = (overrideResponse = {}) => (Object.assign({ private_key: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), public_key: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), public_key_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
@@ -276,10 +277,11 @@ export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assi
276
277
  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));
277
278
  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));
278
279
  export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
280
+ export const getUserHostingsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.word.sample(), undefined]), 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]), 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]), 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]), 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_type: 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]), 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([{ 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]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: 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_usage: 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]), 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]) })), undefined]), total_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
279
281
  export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
280
282
  export const getBackupCreateV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
281
283
  export const getBackupDownloadV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
282
- export const getBackupListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backups: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_creation_time: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), schedule_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
284
+ export const getBackupListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backups: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_creation_time: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), dc_location: faker.helpers.arrayElement([faker.word.sample(), undefined]), schedule_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), timezone: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
283
285
  export const getBackupRestoreV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
284
286
  export const getBackupStatusV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backup_download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
285
287
  export const getDbListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), sitename: faker.helpers.arrayElement([faker.word.sample(), undefined]), sizemib: faker.helpers.arrayElement([faker.word.sample(), undefined]), usercount: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), userlist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) })), undefined]) }, overrideResponse));
@@ -2635,6 +2637,16 @@ export const getSitesSettingsPhpVersionUpdateMockHandler = (overrideResponse) =>
2635
2637
  });
2636
2638
  }));
2637
2639
  };
2640
+ export const getSitesSettingsPhpVersionInheritanceMockHandler = (overrideResponse) => {
2641
+ return http.get('*/v1/sites/:siteId/settings/php-version/inheritance', (info) => __awaiter(void 0, void 0, void 0, function* () {
2642
+ yield delay(0);
2643
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2644
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2645
+ : getSitesSettingsPhpVersionInheritanceResponseMock()), { status: 200,
2646
+ headers: { 'Content-Type': 'application/json' }
2647
+ });
2648
+ }));
2649
+ };
2638
2650
  export const getSitesSettingsPhpVersionsMockHandler = (overrideResponse) => {
2639
2651
  return http.get('*/v1/sites/:siteId/settings/php-versions', (info) => __awaiter(void 0, void 0, void 0, function* () {
2640
2652
  yield delay(0);
@@ -2755,6 +2767,16 @@ export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
2755
2767
  });
2756
2768
  }));
2757
2769
  };
2770
+ export const getUserHostingsMockHandler = (overrideResponse) => {
2771
+ return http.get('*/v1/user/hostings', (info) => __awaiter(void 0, void 0, void 0, function* () {
2772
+ yield delay(0);
2773
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2774
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2775
+ : getUserHostingsResponseMock()), { status: 200,
2776
+ headers: { 'Content-Type': 'application/json' }
2777
+ });
2778
+ }));
2779
+ };
2758
2780
  export const getAddonsSitelockSsoV2MockHandler = (overrideResponse) => {
2759
2781
  return http.get('*/v2/addons/sitelock/:addonId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
2760
2782
  yield delay(0);
@@ -3279,6 +3301,7 @@ export const getHostingUAPIMock = () => [
3279
3301
  getSitesSettingsDebugMockHandler(),
3280
3302
  getSitesSettingsDebugToggleMockHandler(),
3281
3303
  getSitesSettingsPhpVersionUpdateMockHandler(),
3304
+ getSitesSettingsPhpVersionInheritanceMockHandler(),
3282
3305
  getSitesSettingsPhpVersionsMockHandler(),
3283
3306
  getSitesSshUserListMockHandler(),
3284
3307
  getSitesSshUserCreateMockHandler(),
@@ -3291,6 +3314,7 @@ export const getHostingUAPIMock = () => [
3291
3314
  getSiteUsersMockHandler(),
3292
3315
  getSitesVersionMockHandler(),
3293
3316
  getSiteAddonWpsolutionMockHandler(),
3317
+ getUserHostingsMockHandler(),
3294
3318
  getAddonsSitelockSsoV2MockHandler(),
3295
3319
  getBackupCreateV2MockHandler(),
3296
3320
  getBackupDownloadV2MockHandler(),
@@ -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.1572.0
6
+ * OpenAPI spec version: 1.1594.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -562,30 +562,6 @@ export declare type HostingSitesV2200UsedSitesDetails = {
562
562
  /** Count of sites that are in pending statuses i.e. pending_create pending_reset pending_delete etc */
563
563
  sites_pending?: number;
564
564
  };
565
- export declare type HostingSitesV2200 = {
566
- /**
567
- * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
568
- * @nullable
569
- */
570
- available_sites?: number | null;
571
- items?: HostingSitesV2200ItemsItem[];
572
- /** page size */
573
- limit?: number;
574
- /**
575
- * Maximum number of sites the customer can have. Null means 'unlimited'.
576
- * @nullable
577
- */
578
- max_sites?: number | null;
579
- /** current page number */
580
- page?: number;
581
- /** total number of pages */
582
- pages?: number;
583
- /** total number of sites returned */
584
- total?: number;
585
- /** 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. */
586
- used_sites?: number;
587
- used_sites_details?: HostingSitesV2200UsedSitesDetails;
588
- };
589
565
  /**
590
566
  * @nullable
591
567
  */
@@ -613,63 +589,6 @@ export declare type HostingSitesV2200ItemsItemStaging = {
613
589
  /** A list of staging sites of the current site */
614
590
  sites?: number[];
615
591
  } | null;
616
- export declare type HostingSitesV2200ItemsItemResourcesStorage = {
617
- /** @nullable */
618
- available?: number | null;
619
- /** @nullable */
620
- total?: number | null;
621
- unit?: string;
622
- /** @nullable */
623
- used?: number | null;
624
- };
625
- export declare type HostingSitesV2200ItemsItemResources = {
626
- storage?: HostingSitesV2200ItemsItemResourcesStorage;
627
- /** @nullable */
628
- workers?: number | null;
629
- };
630
- /**
631
- * @nullable
632
- */
633
- export declare type HostingSitesV2200ItemsItemPendingUrlData = {
634
- /**
635
- * The root domain name
636
- * @nullable
637
- */
638
- base_domain?: string | null;
639
- /**
640
- * The Fully Qualified Domain Name (FQDN)
641
- * @nullable
642
- */
643
- domain?: string | null;
644
- /**
645
- * The current pending_url's HAL Domain ID
646
- * @nullable
647
- */
648
- domain_id?: number | null;
649
- /** @nullable */
650
- error?: string | null;
651
- /** Flag indicating whether the pending_url is temporary or not */
652
- is_temp?: boolean;
653
- /**
654
- * Flag indicating whether the url_sync job has run out of attempts
655
- * @nullable
656
- */
657
- job_failed?: boolean | null;
658
- /** @nullable */
659
- stage?: string | null;
660
- /**
661
- * Timestamp for when we will update the WP url, regardless of active sessions
662
- * @nullable
663
- */
664
- wp_session?: string | null;
665
- } | null;
666
- /**
667
- * Job ids for the site
668
- * @nullable
669
- */
670
- export declare type HostingSitesV2200ItemsItemJobs = {
671
- [key: string]: unknown;
672
- } | null;
673
592
  export declare type HostingSitesV2200ItemsItem = {
674
593
  /** @nullable */
675
594
  account_back_ref?: string | null;
@@ -748,6 +667,87 @@ export declare type HostingSitesV2200ItemsItem = {
748
667
  */
749
668
  version_ptr?: string | null;
750
669
  };
670
+ export declare type HostingSitesV2200 = {
671
+ /**
672
+ * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
673
+ * @nullable
674
+ */
675
+ available_sites?: number | null;
676
+ items?: HostingSitesV2200ItemsItem[];
677
+ /** page size */
678
+ limit?: number;
679
+ /**
680
+ * Maximum number of sites the customer can have. Null means 'unlimited'.
681
+ * @nullable
682
+ */
683
+ max_sites?: number | null;
684
+ /** current page number */
685
+ page?: number;
686
+ /** total number of pages */
687
+ pages?: number;
688
+ /** total number of sites returned */
689
+ total?: number;
690
+ /** 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. */
691
+ used_sites?: number;
692
+ used_sites_details?: HostingSitesV2200UsedSitesDetails;
693
+ };
694
+ export declare type HostingSitesV2200ItemsItemResourcesStorage = {
695
+ /** @nullable */
696
+ available?: number | null;
697
+ /** @nullable */
698
+ total?: number | null;
699
+ unit?: string;
700
+ /** @nullable */
701
+ used?: number | null;
702
+ };
703
+ export declare type HostingSitesV2200ItemsItemResources = {
704
+ storage?: HostingSitesV2200ItemsItemResourcesStorage;
705
+ /** @nullable */
706
+ workers?: number | null;
707
+ };
708
+ /**
709
+ * @nullable
710
+ */
711
+ export declare type HostingSitesV2200ItemsItemPendingUrlData = {
712
+ /**
713
+ * The root domain name
714
+ * @nullable
715
+ */
716
+ base_domain?: string | null;
717
+ /**
718
+ * The Fully Qualified Domain Name (FQDN)
719
+ * @nullable
720
+ */
721
+ domain?: string | null;
722
+ /**
723
+ * The current pending_url's HAL Domain ID
724
+ * @nullable
725
+ */
726
+ domain_id?: number | null;
727
+ /** @nullable */
728
+ error?: string | null;
729
+ /** Flag indicating whether the pending_url is temporary or not */
730
+ is_temp?: boolean;
731
+ /**
732
+ * Flag indicating whether the url_sync job has run out of attempts
733
+ * @nullable
734
+ */
735
+ job_failed?: boolean | null;
736
+ /** @nullable */
737
+ stage?: string | null;
738
+ /**
739
+ * Timestamp for when we will update the WP url, regardless of active sessions
740
+ * @nullable
741
+ */
742
+ wp_session?: string | null;
743
+ } | null;
744
+ /**
745
+ * Job ids for the site
746
+ * @nullable
747
+ */
748
+ export declare type HostingSitesV2200ItemsItemJobs = {
749
+ [key: string]: unknown;
750
+ } | null;
751
751
  export declare type HostingSitesV2Params = {
752
752
  limit?: number;
753
753
  page?: number;
@@ -799,12 +799,6 @@ export declare type HostingDomainsUnassignV2Body = {
799
799
  /** The site id to be unassigned */
800
800
  site_id: number;
801
801
  };
802
- export declare type HostingDomainsV2200 = {
803
- domains: HostingDomainsV2200DomainsItem[];
804
- limit?: number;
805
- page?: number;
806
- total?: number;
807
- };
808
802
  /**
809
803
  * Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
810
804
  * @nullable
@@ -924,6 +918,12 @@ export declare type HostingDomainsV2200DomainsItem = {
924
918
  third_party_dns?: boolean | null;
925
919
  type: string;
926
920
  };
921
+ export declare type HostingDomainsV2200 = {
922
+ domains: HostingDomainsV2200DomainsItem[];
923
+ limit?: number;
924
+ page?: number;
925
+ total?: number;
926
+ };
927
927
  export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
928
928
  export declare const HostingDomainsV2TypesItem: {
929
929
  readonly addon: "addon";
@@ -989,7 +989,9 @@ export declare type BackupListV2200BackupsItem = {
989
989
  backup_id?: string;
990
990
  /** @nullable */
991
991
  databases?: string[] | null;
992
+ dc_location?: string;
992
993
  schedule_type?: string;
994
+ timezone?: string;
993
995
  type?: string;
994
996
  };
995
997
  export declare type BackupListV2200 = {
@@ -1030,6 +1032,282 @@ export declare type AddonsSitelockSsoV2Params = {
1030
1032
  */
1031
1033
  source?: string;
1032
1034
  };
1035
+ /**
1036
+ * Usage statistics
1037
+ * @nullable
1038
+ */
1039
+ export declare type UserHostings200RowsItemUsed = {
1040
+ /**
1041
+ * Disk usage in bytes
1042
+ * @nullable
1043
+ */
1044
+ disk_usage?: string | null;
1045
+ /**
1046
+ * Total number of sites
1047
+ * @nullable
1048
+ */
1049
+ sites?: number | null;
1050
+ /**
1051
+ * Number of active sites
1052
+ * @nullable
1053
+ */
1054
+ sites_active?: number | null;
1055
+ /**
1056
+ * Number of staging sites
1057
+ * @nullable
1058
+ */
1059
+ staging_sites?: number | null;
1060
+ /**
1061
+ * Number of workers
1062
+ * @nullable
1063
+ */
1064
+ workers?: number | null;
1065
+ } | null;
1066
+ /**
1067
+ * Remote limits for the account
1068
+ * @nullable
1069
+ */
1070
+ export declare type UserHostings200RowsItemLimitRemote = {
1071
+ /**
1072
+ * Quota in KB associated with the account
1073
+ * @nullable
1074
+ */
1075
+ quota_kib?: string | null;
1076
+ } | null;
1077
+ /**
1078
+ * Account limits
1079
+ * @nullable
1080
+ */
1081
+ export declare type UserHostings200RowsItemLimit = {
1082
+ /**
1083
+ * Disk space limit in GiB
1084
+ * @nullable
1085
+ */
1086
+ disk_limit_gib?: string | null;
1087
+ /**
1088
+ * Maximum number of sites allowed
1089
+ * @nullable
1090
+ */
1091
+ sites?: string | null;
1092
+ /**
1093
+ * Number of workers
1094
+ * @nullable
1095
+ */
1096
+ workers?: number | null;
1097
+ } | null;
1098
+ /**
1099
+ * Feature details from HAL account_feature_info_list
1100
+ */
1101
+ export declare type UserHostings200RowsItem = {
1102
+ /**
1103
+ * Product auto-renew flag
1104
+ * @nullable
1105
+ */
1106
+ auto_renew_flag?: boolean | null;
1107
+ /** HAL Account back_reference, used to link to the product instance */
1108
+ back_reference?: string;
1109
+ /**
1110
+ * Product expiration date
1111
+ * @nullable
1112
+ */
1113
+ expiration_date?: string | null;
1114
+ /** Feature set name ex: hosting_40s */
1115
+ feature_set?: string;
1116
+ /** Additional information about the account */
1117
+ info?: UserHostings200RowsItemInfo;
1118
+ /**
1119
+ * Account limits
1120
+ * @nullable
1121
+ */
1122
+ limit?: UserHostings200RowsItemLimit;
1123
+ /**
1124
+ * Remote limits for the account
1125
+ * @nullable
1126
+ */
1127
+ limit_remote?: UserHostings200RowsItemLimitRemote;
1128
+ /**
1129
+ * Package name
1130
+ * @nullable
1131
+ */
1132
+ package?: string | null;
1133
+ /**
1134
+ * Control panel type
1135
+ * @nullable
1136
+ */
1137
+ panel?: string | null;
1138
+ /**
1139
+ * Product code
1140
+ * @nullable
1141
+ */
1142
+ prod_code?: string | null;
1143
+ /**
1144
+ * Product name
1145
+ * @nullable
1146
+ */
1147
+ prod_name?: string | null;
1148
+ /**
1149
+ * Number of sites
1150
+ * @nullable
1151
+ */
1152
+ sites?: number | null;
1153
+ /**
1154
+ * Usage statistics
1155
+ * @nullable
1156
+ */
1157
+ used?: UserHostings200RowsItemUsed;
1158
+ };
1159
+ export declare type UserHostings200 = {
1160
+ /** Feature information for the paginated product instances */
1161
+ rows?: UserHostings200RowsItem[];
1162
+ /** Total number of product instance IDs available to that account */
1163
+ total_count?: number;
1164
+ };
1165
+ /**
1166
+ * Region information for the account
1167
+ * @nullable
1168
+ */
1169
+ export declare type UserHostings200RowsItemInfoRegion = {
1170
+ /**
1171
+ * Region description
1172
+ * @nullable
1173
+ */
1174
+ desc?: string | null;
1175
+ /**
1176
+ * Region name
1177
+ * @nullable
1178
+ */
1179
+ name?: string | null;
1180
+ } | null;
1181
+ /**
1182
+ * Additional information about the account
1183
+ */
1184
+ export declare type UserHostings200RowsItemInfo = {
1185
+ /**
1186
+ * HAL Account back_reference, used to link to the product instance
1187
+ * @nullable
1188
+ */
1189
+ addon_back_ref?: string | null;
1190
+ /**
1191
+ * The ID of the addon associated with the account
1192
+ * @nullable
1193
+ */
1194
+ addon_id?: string | null;
1195
+ /**
1196
+ * The status of the addon associated with the account
1197
+ * @nullable
1198
+ */
1199
+ addon_status?: string | null;
1200
+ /**
1201
+ * Brand name associated with the account
1202
+ * @nullable
1203
+ */
1204
+ brand?: string | null;
1205
+ /**
1206
+ * Brand ID associated with the account
1207
+ * @nullable
1208
+ */
1209
+ brand_id?: string | null;
1210
+ /**
1211
+ * Date when the account was added
1212
+ * @nullable
1213
+ */
1214
+ date_added?: string | null;
1215
+ /**
1216
+ * Date when the account was last modified
1217
+ * @nullable
1218
+ */
1219
+ date_modified?: string | null;
1220
+ /**
1221
+ * Home directory path for the account
1222
+ * @nullable
1223
+ */
1224
+ homedir?: string | null;
1225
+ /**
1226
+ * Account ID, used to link to the product instance
1227
+ * @nullable
1228
+ */
1229
+ id?: string | null;
1230
+ /**
1231
+ * IP address associated with the account
1232
+ * @nullable
1233
+ */
1234
+ ip?: string | null;
1235
+ /**
1236
+ * A list of nameservers associated with the account
1237
+ * @nullable
1238
+ */
1239
+ ns?: string[] | null;
1240
+ /**
1241
+ * Operating system name
1242
+ * @nullable
1243
+ */
1244
+ os_name?: string | null;
1245
+ /**
1246
+ * Platform type
1247
+ * @nullable
1248
+ */
1249
+ platform?: string | null;
1250
+ /**
1251
+ * Region information for the account
1252
+ * @nullable
1253
+ */
1254
+ region?: UserHostings200RowsItemInfoRegion;
1255
+ /**
1256
+ * Server ID
1257
+ * @nullable
1258
+ */
1259
+ server_id?: string | null;
1260
+ /**
1261
+ * Server status
1262
+ * @nullable
1263
+ */
1264
+ server_status?: string | null;
1265
+ /**
1266
+ * Server type
1267
+ * @nullable
1268
+ */
1269
+ server_type?: string | null;
1270
+ /**
1271
+ * SSH hostname
1272
+ * @nullable
1273
+ */
1274
+ ssh_hostname?: string | null;
1275
+ /**
1276
+ * Account status
1277
+ * @nullable
1278
+ */
1279
+ status?: string | null;
1280
+ /**
1281
+ * HAL Tenant back_reference, used to link to the product instance
1282
+ * @nullable
1283
+ */
1284
+ tenant_back_ref?: string | null;
1285
+ /**
1286
+ * HAL Tenant ID, used to link to the product instance
1287
+ * @nullable
1288
+ */
1289
+ tenant_id?: string | null;
1290
+ /**
1291
+ * Type of account, e.g., 'shared_cpanel'
1292
+ * @nullable
1293
+ */
1294
+ type?: string | null;
1295
+ /**
1296
+ * Username associated with the account
1297
+ * @nullable
1298
+ */
1299
+ username?: string | null;
1300
+ };
1301
+ export declare type UserHostingsParams = {
1302
+ /**
1303
+ * Starting index for pagination (default: 0)
1304
+ */
1305
+ start?: number;
1306
+ /**
1307
+ * Maximum number of items to return. If not provided, returns all items from start index
1308
+ */
1309
+ limit?: number;
1310
+ };
1033
1311
  export declare type SiteAddonWpsolution400 = {
1034
1312
  error?: string;
1035
1313
  };
@@ -1055,10 +1333,6 @@ export declare type SitesVersion200 = {
1055
1333
  latest?: string;
1056
1334
  update?: boolean;
1057
1335
  };
1058
- export declare type SiteUsers200UsersItemMeta = {
1059
- maestro_web_pro?: string;
1060
- maestro_wpp_identifier?: string;
1061
- };
1062
1336
  export declare type SiteUsers200UsersItem = {
1063
1337
  display_name?: string;
1064
1338
  id: number;
@@ -1073,6 +1347,10 @@ export declare type SiteUsers200UsersItem = {
1073
1347
  export declare type SiteUsers200 = {
1074
1348
  users: SiteUsers200UsersItem[];
1075
1349
  };
1350
+ export declare type SiteUsers200UsersItemMeta = {
1351
+ maestro_web_pro?: string;
1352
+ maestro_wpp_identifier?: string;
1353
+ };
1076
1354
  export declare type SiteStatus200 = {
1077
1355
  /** @nullable */
1078
1356
  cloudflare_ready?: boolean | null;
@@ -1239,6 +1517,42 @@ export declare type SitesSettingsPhpVersions200 = {
1239
1517
  latest?: string;
1240
1518
  versions?: string[];
1241
1519
  };
1520
+ export declare type SitesSettingsPhpVersionInheritance200InheritedItem = {
1521
+ /** Docpath of the nested site */
1522
+ docpath: string;
1523
+ /** Docroot of the nested site */
1524
+ docroot?: string;
1525
+ /** Domain of the nested site */
1526
+ domain?: string;
1527
+ /** Home directory of the nested site */
1528
+ homedir?: string;
1529
+ /** Status flag */
1530
+ ok?: number;
1531
+ /** Path of the nested site */
1532
+ path?: string;
1533
+ /** Flag indicating if PHP version is inherited */
1534
+ php_inherited?: number;
1535
+ /** PHP version inherited by the nested site */
1536
+ php_version?: string;
1537
+ /** Type of the nested site */
1538
+ type?: string;
1539
+ /** URL of the nested site */
1540
+ url: string;
1541
+ /** User owning the nested site */
1542
+ user?: string;
1543
+ };
1544
+ export declare type SitesSettingsPhpVersionInheritance200 = {
1545
+ /** List of nested sites inheriting PHP version */
1546
+ inherited: SitesSettingsPhpVersionInheritance200InheritedItem[];
1547
+ /** 1 if successful, 0 otherwise */
1548
+ success: number;
1549
+ };
1550
+ export declare type SitesSettingsPhpVersionInheritanceParams = {
1551
+ /**
1552
+ * Optional user to get the homedir to use as a top level
1553
+ */
1554
+ user?: string;
1555
+ };
1242
1556
  export declare type SitesSettingsPhpVersionUpdate200 = {
1243
1557
  success?: number;
1244
1558
  };
@@ -4343,7 +4657,6 @@ export declare type ListCrons200 = {
4343
4657
  };
4344
4658
  export declare type HostingCapabilities200 = {
4345
4659
  advanced_hosting?: boolean;
4346
- cbs_backups?: boolean;
4347
4660
  cpanel?: boolean;
4348
4661
  is_sitelock_migrated?: boolean;
4349
4662
  reset_password?: boolean;