@newfold/huapi-js 2.1637.0 → 2.1647.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.1637.0",
13
+ "version": "2.1647.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, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, 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';
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, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, 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, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
5
5
  declare type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
@@ -1403,6 +1403,58 @@ export declare function useDomainEmailDeliverability<TData = Awaited<ReturnType<
1403
1403
  }): UseQueryResult<TData, TError> & {
1404
1404
  queryKey: QueryKey;
1405
1405
  };
1406
+ /**
1407
+ * Sets hal domain meta_used_entri that indicates the domain was set up using Entri
1408
+ * @summary Set hal domain meta_used_entri
1409
+ */
1410
+ export declare const domainsSetEntriUsed: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainsSetEntriUsed200>>;
1411
+ export declare const getDomainsSetEntriUsedMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1412
+ mutation?: UseMutationOptions<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
1413
+ domainId: string;
1414
+ }, TContext> | undefined;
1415
+ axios?: AxiosRequestConfig<any> | undefined;
1416
+ } | undefined) => UseMutationOptions<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
1417
+ domainId: string;
1418
+ }, TContext>;
1419
+ export declare type DomainsSetEntriUsedMutationResult = NonNullable<Awaited<ReturnType<typeof domainsSetEntriUsed>>>;
1420
+ export declare type DomainsSetEntriUsedMutationError = AxiosError<unknown>;
1421
+ /**
1422
+ * @summary Set hal domain meta_used_entri
1423
+ */
1424
+ export declare const useDomainsSetEntriUsed: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1425
+ mutation?: UseMutationOptions<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
1426
+ domainId: string;
1427
+ }, TContext> | undefined;
1428
+ axios?: AxiosRequestConfig<any> | undefined;
1429
+ } | undefined) => UseMutationResult<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
1430
+ domainId: string;
1431
+ }, TContext>;
1432
+ /**
1433
+ * Unsets hal domain meta_used_entri that indicates the domain was set up using Entri
1434
+ * @summary Unset hal domain meta_used_entri
1435
+ */
1436
+ export declare const domainsUnsetEntriUsed: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainsUnsetEntriUsed200>>;
1437
+ export declare const getDomainsUnsetEntriUsedMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1438
+ mutation?: UseMutationOptions<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
1439
+ domainId: string;
1440
+ }, TContext> | undefined;
1441
+ axios?: AxiosRequestConfig<any> | undefined;
1442
+ } | undefined) => UseMutationOptions<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
1443
+ domainId: string;
1444
+ }, TContext>;
1445
+ export declare type DomainsUnsetEntriUsedMutationResult = NonNullable<Awaited<ReturnType<typeof domainsUnsetEntriUsed>>>;
1446
+ export declare type DomainsUnsetEntriUsedMutationError = AxiosError<unknown>;
1447
+ /**
1448
+ * @summary Unset hal domain meta_used_entri
1449
+ */
1450
+ export declare const useDomainsUnsetEntriUsed: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
1451
+ mutation?: UseMutationOptions<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
1452
+ domainId: string;
1453
+ }, TContext> | undefined;
1454
+ axios?: AxiosRequestConfig<any> | undefined;
1455
+ } | undefined) => UseMutationResult<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
1456
+ domainId: string;
1457
+ }, TContext>;
1406
1458
  /**
1407
1459
  * Access logs
1408
1460
  * @summary Access logs
@@ -6407,6 +6459,7 @@ export declare function useSitesErrorLogsDownload<TData = Awaited<ReturnType<typ
6407
6459
  };
6408
6460
  /**
6409
6461
  * Returns malware status of atomic site
6462
+ * @deprecated
6410
6463
  * @summary malware status of atomic site
6411
6464
  */
6412
6465
  export declare const siteMalwareStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteMalwareStatus200>>;
@@ -7742,32 +7795,32 @@ export declare const useSiteAddonWpsolution: <TError = AxiosError<SiteAddonWpsol
7742
7795
  }, TContext>;
7743
7796
  /**
7744
7797
  * 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
7798
+ * @summary Return a list of accounts and info about each (account, addon, sites), plus extra optional info (disk usage, userbox limits, etc)
7746
7799
  */
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;
7800
+ export declare const userHosting: (params?: UserHostingParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserHosting200>>;
7801
+ export declare const getUserHostingQueryKey: (params?: UserHostingParams) => readonly ["/v1/user/hosting", ...UserHostingParams[]];
7802
+ export declare const getUserHostingQueryOptions: <TData = AxiosResponse<UserHosting200, any>, TError = AxiosError<unknown, any>>(params?: UserHostingParams, options?: {
7803
+ query?: Partial<UseQueryOptions<AxiosResponse<UserHosting200, any>, TError, TData, QueryKey>> | undefined;
7751
7804
  axios?: AxiosRequestConfig<any> | undefined;
7752
- } | undefined) => UseQueryOptions<AxiosResponse<UserHostings200, any>, TError, TData, QueryKey> & {
7805
+ } | undefined) => UseQueryOptions<AxiosResponse<UserHosting200, any>, TError, TData, QueryKey> & {
7753
7806
  queryKey: QueryKey;
7754
7807
  };
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'>;
7808
+ export declare type UserHostingQueryResult = NonNullable<Awaited<ReturnType<typeof userHosting>>>;
7809
+ export declare type UserHostingQueryError = AxiosError<unknown>;
7810
+ export declare function useUserHosting<TData = Awaited<ReturnType<typeof userHosting>>, TError = AxiosError<unknown>>(params: undefined | UserHostingParams, options: {
7811
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>, 'initialData'>;
7759
7812
  axios?: AxiosRequestConfig;
7760
7813
  }): DefinedUseQueryResult<TData, TError> & {
7761
7814
  queryKey: QueryKey;
7762
7815
  };
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'>;
7816
+ export declare function useUserHosting<TData = Awaited<ReturnType<typeof userHosting>>, TError = AxiosError<unknown>>(params?: UserHostingParams, options?: {
7817
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>, 'initialData'>;
7765
7818
  axios?: AxiosRequestConfig;
7766
7819
  }): UseQueryResult<TData, TError> & {
7767
7820
  queryKey: QueryKey;
7768
7821
  };
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>>;
7822
+ export declare function useUserHosting<TData = Awaited<ReturnType<typeof userHosting>>, TError = AxiosError<unknown>>(params?: UserHostingParams, options?: {
7823
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>>;
7771
7824
  axios?: AxiosRequestConfig;
7772
7825
  }): UseQueryResult<TData, TError> & {
7773
7826
  queryKey: QueryKey;
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.1637.0
6
+ * OpenAPI spec version: 1.1647.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -1105,6 +1105,50 @@ export function useDomainEmailDeliverability(domainId, options) {
1105
1105
  query.queryKey = queryOptions.queryKey;
1106
1106
  return query;
1107
1107
  }
1108
+ /**
1109
+ * Sets hal domain meta_used_entri that indicates the domain was set up using Entri
1110
+ * @summary Set hal domain meta_used_entri
1111
+ */
1112
+ export const domainsSetEntriUsed = (domainId, options) => {
1113
+ return axios.post(`/v1/domains/${domainId}/entri/used`, undefined, options);
1114
+ };
1115
+ export const getDomainsSetEntriUsedMutationOptions = (options) => {
1116
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1117
+ const mutationFn = (props) => {
1118
+ const { domainId } = props !== null && props !== void 0 ? props : {};
1119
+ return domainsSetEntriUsed(domainId, axiosOptions);
1120
+ };
1121
+ return Object.assign({ mutationFn }, mutationOptions);
1122
+ };
1123
+ /**
1124
+ * @summary Set hal domain meta_used_entri
1125
+ */
1126
+ export const useDomainsSetEntriUsed = (options) => {
1127
+ const mutationOptions = getDomainsSetEntriUsedMutationOptions(options);
1128
+ return useMutation(mutationOptions);
1129
+ };
1130
+ /**
1131
+ * Unsets hal domain meta_used_entri that indicates the domain was set up using Entri
1132
+ * @summary Unset hal domain meta_used_entri
1133
+ */
1134
+ export const domainsUnsetEntriUsed = (domainId, options) => {
1135
+ return axios.delete(`/v1/domains/${domainId}/entri/used`, options);
1136
+ };
1137
+ export const getDomainsUnsetEntriUsedMutationOptions = (options) => {
1138
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1139
+ const mutationFn = (props) => {
1140
+ const { domainId } = props !== null && props !== void 0 ? props : {};
1141
+ return domainsUnsetEntriUsed(domainId, axiosOptions);
1142
+ };
1143
+ return Object.assign({ mutationFn }, mutationOptions);
1144
+ };
1145
+ /**
1146
+ * @summary Unset hal domain meta_used_entri
1147
+ */
1148
+ export const useDomainsUnsetEntriUsed = (options) => {
1149
+ const mutationOptions = getDomainsUnsetEntriUsedMutationOptions(options);
1150
+ return useMutation(mutationOptions);
1151
+ };
1108
1152
  /**
1109
1153
  * Access logs
1110
1154
  * @summary Access logs
@@ -4932,6 +4976,7 @@ export function useSitesErrorLogsDownload(siteId, params, options) {
4932
4976
  }
4933
4977
  /**
4934
4978
  * Returns malware status of atomic site
4979
+ * @deprecated
4935
4980
  * @summary malware status of atomic site
4936
4981
  */
4937
4982
  export const siteMalwareStatus = (siteId, options) => {
@@ -4948,6 +4993,7 @@ export const getSiteMalwareStatusQueryOptions = (siteId, options) => {
4948
4993
  return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
4949
4994
  };
4950
4995
  /**
4996
+ * @deprecated
4951
4997
  * @summary malware status of atomic site
4952
4998
  */
4953
4999
  export function useSiteMalwareStatus(siteId, options) {
@@ -5971,26 +6017,26 @@ export const useSiteAddonWpsolution = (options) => {
5971
6017
  };
5972
6018
  /**
5973
6019
  * 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
6020
+ * @summary Return a list of accounts and info about each (account, addon, sites), plus extra optional info (disk usage, userbox limits, etc)
5975
6021
  */
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) }));
6022
+ export const userHosting = (params, options) => {
6023
+ return axios.get(`/v1/user/hosting`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
5978
6024
  };
5979
- export const getUserHostingsQueryKey = (params) => {
5980
- return [`/v1/user/hostings`, ...(params ? [params] : [])];
6025
+ export const getUserHostingQueryKey = (params) => {
6026
+ return [`/v1/user/hosting`, ...(params ? [params] : [])];
5981
6027
  };
5982
- export const getUserHostingsQueryOptions = (params, options) => {
6028
+ export const getUserHostingQueryOptions = (params, options) => {
5983
6029
  var _a;
5984
6030
  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));
6031
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserHostingQueryKey(params);
6032
+ const queryFn = ({ signal }) => userHosting(params, Object.assign({ signal }, axiosOptions));
5987
6033
  return Object.assign({ queryKey, queryFn }, queryOptions);
5988
6034
  };
5989
6035
  /**
5990
- * @summary Return the array of product_inst_ids for the supplied account_ids
6036
+ * @summary Return a list of accounts and info about each (account, addon, sites), plus extra optional info (disk usage, userbox limits, etc)
5991
6037
  */
5992
- export function useUserHostings(params, options) {
5993
- const queryOptions = getUserHostingsQueryOptions(params, options);
6038
+ export function useUserHosting(params, options) {
6039
+ const queryOptions = getUserHostingQueryOptions(params, options);
5994
6040
  const query = useQuery(queryOptions);
5995
6041
  query.queryKey = queryOptions.queryKey;
5996
6042
  return query;
@@ -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, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, 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';
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, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, 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, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, 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;
@@ -45,6 +45,8 @@ export declare const getDomainDnseditorAddResponseMock: (overrideResponse?: Part
45
45
  export declare const getDomainDnseditorEditResponseMock: (overrideResponse?: Partial<DomainDnseditorEdit200>) => DomainDnseditorEdit200;
46
46
  export declare const getDomainDnszoneResetResponseMock: (overrideResponse?: Partial<DomainDnszoneReset200>) => DomainDnszoneReset200;
47
47
  export declare const getDomainEmailDeliverabilityResponseMock: (overrideResponse?: Partial<DomainEmailDeliverability200>) => DomainEmailDeliverability200;
48
+ export declare const getDomainsSetEntriUsedResponseMock: (overrideResponse?: Partial<DomainsSetEntriUsed200>) => DomainsSetEntriUsed200;
49
+ export declare const getDomainsUnsetEntriUsedResponseMock: (overrideResponse?: Partial<DomainsUnsetEntriUsed200>) => DomainsUnsetEntriUsed200;
48
50
  export declare const getAccessLogsResponseMock: (overrideResponse?: Partial<AccessLogs200>) => AccessLogs200;
49
51
  export declare const getDomainUnassignResponseMock: (overrideResponse?: Partial<DomainUnassign200>) => DomainUnassign200;
50
52
  export declare const getDomainZoneeditorUrlResponseMock: (overrideResponse?: Partial<DomainZoneeditorUrl200>) => DomainZoneeditorUrl200;
@@ -244,7 +246,7 @@ export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<Site
244
246
  export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
245
247
  export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
246
248
  export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
247
- export declare const getUserHostingsResponseMock: (overrideResponse?: Partial<UserHostings200>) => UserHostings200;
249
+ export declare const getUserHostingResponseMock: (overrideResponse?: Partial<UserHosting200>) => UserHosting200;
248
250
  export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
249
251
  export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
250
252
  export declare const getBackupDownloadV2ResponseMock: (overrideResponse?: Partial<BackupDownloadV2200>) => BackupDownloadV2200;
@@ -320,6 +322,8 @@ export declare const getDomainDnseditorAddMockHandler: (overrideResponse?: Domai
320
322
  export declare const getDomainDnseditorEditMockHandler: (overrideResponse?: DomainDnseditorEdit200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<DomainDnseditorEdit200> | DomainDnseditorEdit200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
321
323
  export declare const getDomainDnszoneResetMockHandler: (overrideResponse?: DomainDnszoneReset200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainDnszoneReset200> | DomainDnszoneReset200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
322
324
  export declare const getDomainEmailDeliverabilityMockHandler: (overrideResponse?: DomainEmailDeliverability200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainEmailDeliverability200> | DomainEmailDeliverability200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
325
+ export declare const getDomainsSetEntriUsedMockHandler: (overrideResponse?: DomainsSetEntriUsed200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainsSetEntriUsed200> | DomainsSetEntriUsed200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
326
+ export declare const getDomainsUnsetEntriUsedMockHandler: (overrideResponse?: DomainsUnsetEntriUsed200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DomainsUnsetEntriUsed200> | DomainsUnsetEntriUsed200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
323
327
  export declare const getAccessLogsMockHandler: (overrideResponse?: AccessLogs200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AccessLogs200> | AccessLogs200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
324
328
  export declare const getDomainUnassignMockHandler: (overrideResponse?: DomainUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainUnassign200> | DomainUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
325
329
  export declare const getDomainZoneeditorUrlMockHandler: (overrideResponse?: DomainZoneeditorUrl200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainZoneeditorUrl200> | DomainZoneeditorUrl200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
@@ -521,7 +525,7 @@ export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200
521
525
  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;
522
526
  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;
523
527
  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;
524
- 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;
528
+ export declare const getUserHostingMockHandler: (overrideResponse?: UserHosting200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHosting200> | UserHosting200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
525
529
  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;
526
530
  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;
527
531
  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.1637.0
7
+ * OpenAPI spec version: 1.1647.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -54,6 +54,8 @@ export const getDomainDnseditorAddResponseMock = (overrideResponse = {}) => (Obj
54
54
  export const getDomainDnseditorEditResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
55
55
  export const getDomainDnszoneResetResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
56
56
  export const getDomainEmailDeliverabilityResponseMock = (overrideResponse = {}) => (Object.assign({ a_record_check: faker.helpers.arrayElement([{ a_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), box: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected: faker.helpers.arrayElement([faker.word.sample(), undefined]), xns: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), dkim_check: faker.helpers.arrayElement([{ dkim_record: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), pubkeys_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), record_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), mx_check: faker.helpers.arrayElement([{ box_mx: faker.helpers.arrayElement([faker.word.sample(), undefined]), mx_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), xns_mx: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), ptr_check: faker.helpers.arrayElement([{ helo_hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ptr_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), ptr_value: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), spf_check: faker.helpers.arrayElement([{ box_spf: faker.helpers.arrayElement([faker.word.sample(), undefined]), spf_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), xns_spf: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
57
+ export const getDomainsSetEntriUsedResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
58
+ export const getDomainsUnsetEntriUsedResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
57
59
  export const getAccessLogsResponseMock = (overrideResponse = {}) => (Object.assign({ logs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), device: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), host: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), request: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), response_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), response_size: 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]) }, overrideResponse));
58
60
  export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
59
61
  export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
@@ -277,7 +279,7 @@ export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assi
277
279
  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));
278
280
  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));
279
281
  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));
282
+ export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), 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]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
281
283
  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));
282
284
  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));
283
285
  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));
@@ -760,6 +762,26 @@ export const getDomainEmailDeliverabilityMockHandler = (overrideResponse) => {
760
762
  });
761
763
  }));
762
764
  };
765
+ export const getDomainsSetEntriUsedMockHandler = (overrideResponse) => {
766
+ return http.post('*/v1/domains/:domainId/entri/used', (info) => __awaiter(void 0, void 0, void 0, function* () {
767
+ yield delay(0);
768
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
769
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
770
+ : getDomainsSetEntriUsedResponseMock()), { status: 200,
771
+ headers: { 'Content-Type': 'application/json' }
772
+ });
773
+ }));
774
+ };
775
+ export const getDomainsUnsetEntriUsedMockHandler = (overrideResponse) => {
776
+ return http.delete('*/v1/domains/:domainId/entri/used', (info) => __awaiter(void 0, void 0, void 0, function* () {
777
+ yield delay(0);
778
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
779
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
780
+ : getDomainsUnsetEntriUsedResponseMock()), { status: 200,
781
+ headers: { 'Content-Type': 'application/json' }
782
+ });
783
+ }));
784
+ };
763
785
  export const getAccessLogsMockHandler = (overrideResponse) => {
764
786
  return http.get('*/v1/domains/:domainId/logs/access', (info) => __awaiter(void 0, void 0, void 0, function* () {
765
787
  yield delay(0);
@@ -2770,12 +2792,12 @@ export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
2770
2792
  });
2771
2793
  }));
2772
2794
  };
2773
- export const getUserHostingsMockHandler = (overrideResponse) => {
2774
- return http.get('*/v1/user/hostings', (info) => __awaiter(void 0, void 0, void 0, function* () {
2795
+ export const getUserHostingMockHandler = (overrideResponse) => {
2796
+ return http.get('*/v1/user/hosting', (info) => __awaiter(void 0, void 0, void 0, function* () {
2775
2797
  yield delay(0);
2776
2798
  return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2777
2799
  ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2778
- : getUserHostingsResponseMock()), { status: 200,
2800
+ : getUserHostingResponseMock()), { status: 200,
2779
2801
  headers: { 'Content-Type': 'application/json' }
2780
2802
  });
2781
2803
  }));
@@ -3126,6 +3148,8 @@ export const getHostingUAPIMock = () => [
3126
3148
  getDomainDnseditorEditMockHandler(),
3127
3149
  getDomainDnszoneResetMockHandler(),
3128
3150
  getDomainEmailDeliverabilityMockHandler(),
3151
+ getDomainsSetEntriUsedMockHandler(),
3152
+ getDomainsUnsetEntriUsedMockHandler(),
3129
3153
  getAccessLogsMockHandler(),
3130
3154
  getDomainUnassignMockHandler(),
3131
3155
  getDomainZoneeditorUrlMockHandler(),
@@ -3327,7 +3351,7 @@ export const getHostingUAPIMock = () => [
3327
3351
  getSiteUsersMockHandler(),
3328
3352
  getSitesVersionMockHandler(),
3329
3353
  getSiteAddonWpsolutionMockHandler(),
3330
- getUserHostingsMockHandler(),
3354
+ getUserHostingMockHandler(),
3331
3355
  getAddonsSitelockSsoV2MockHandler(),
3332
3356
  getBackupCreateV2MockHandler(),
3333
3357
  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.1637.0
6
+ * OpenAPI spec version: 1.1647.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -220,6 +220,12 @@ export declare type SiteMalwareStatusV2200 = {
220
220
  */
221
221
  scanner_state?: string | null;
222
222
  };
223
+ export declare type SitesDomainsV2200 = {
224
+ domains: SitesDomainsV2200DomainsItem[];
225
+ limit?: number;
226
+ page?: number;
227
+ total?: number;
228
+ };
223
229
  /**
224
230
  * Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
225
231
  * @nullable
@@ -339,26 +345,9 @@ export declare type SitesDomainsV2200DomainsItem = {
339
345
  third_party_dns?: boolean | null;
340
346
  type: string;
341
347
  };
342
- export declare type SitesDomainsV2200 = {
343
- domains: SitesDomainsV2200DomainsItem[];
344
- limit?: number;
345
- page?: number;
346
- total?: number;
347
- };
348
348
  export declare type SitesDomainsV2Params = {
349
349
  scan?: boolean;
350
350
  };
351
- export declare type SitesListV2200 = {
352
- items?: SitesListV2200ItemsItem[];
353
- /** page size */
354
- limit?: number;
355
- /** current page number */
356
- page?: number;
357
- /** total number of pages */
358
- pages?: number;
359
- /** total number of sites returned */
360
- total?: number;
361
- };
362
351
  /**
363
352
  * @nullable
364
353
  */
@@ -521,6 +510,17 @@ export declare type SitesListV2200ItemsItem = {
521
510
  */
522
511
  version_ptr?: string | null;
523
512
  };
513
+ export declare type SitesListV2200 = {
514
+ items?: SitesListV2200ItemsItem[];
515
+ /** page size */
516
+ limit?: number;
517
+ /** current page number */
518
+ page?: number;
519
+ /** total number of pages */
520
+ pages?: number;
521
+ /** total number of sites returned */
522
+ total?: number;
523
+ };
524
524
  export declare type SshKeyV2200 = {
525
525
  deleted?: number;
526
526
  key_name?: string;
@@ -859,6 +859,12 @@ export declare type HostingDomainsUnassignV2Body = {
859
859
  /** The site id to be unassigned */
860
860
  site_id: number;
861
861
  };
862
+ export declare type HostingDomainsV2200 = {
863
+ domains: HostingDomainsV2200DomainsItem[];
864
+ limit?: number;
865
+ page?: number;
866
+ total?: number;
867
+ };
862
868
  /**
863
869
  * Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
864
870
  * @nullable
@@ -978,12 +984,6 @@ export declare type HostingDomainsV2200DomainsItem = {
978
984
  third_party_dns?: boolean | null;
979
985
  type: string;
980
986
  };
981
- export declare type HostingDomainsV2200 = {
982
- domains: HostingDomainsV2200DomainsItem[];
983
- limit?: number;
984
- page?: number;
985
- total?: number;
986
- };
987
987
  export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
988
988
  export declare const HostingDomainsV2TypesItem: {
989
989
  readonly addon: "addon";
@@ -1092,22 +1092,46 @@ export declare type AddonsSitelockSsoV2Params = {
1092
1092
  */
1093
1093
  source?: string;
1094
1094
  };
1095
- export declare type UserHostings200 = {
1096
- /** Feature information for the paginated product instances */
1097
- rows?: UserHostings200RowsItem[];
1098
- /** Total number of product instance IDs available to that account */
1099
- total_count?: number;
1095
+ export declare type UserHosting200 = {
1096
+ /** Information for the paginated hosting accounts */
1097
+ rows?: UserHosting200RowsItem[];
1100
1098
  };
1101
1099
  /**
1102
- * Usage statistics
1100
+ * Usage statistics for staging sites
1103
1101
  * @nullable
1104
1102
  */
1105
- export declare type UserHostings200RowsItemUsed = {
1103
+ export declare type UserHosting200RowsItemUsedStage = {
1106
1104
  /**
1107
1105
  * Disk usage in bytes
1108
1106
  * @nullable
1109
1107
  */
1110
- disk_usage?: string | null;
1108
+ disk_limit_gib?: number | null;
1109
+ /**
1110
+ * Disk usage in bytes
1111
+ * @nullable
1112
+ */
1113
+ disk_usage?: number | null;
1114
+ /**
1115
+ * Number of workers
1116
+ * @nullable
1117
+ */
1118
+ workers?: number | null;
1119
+ } | null;
1120
+ /**
1121
+ * Usage statistics for non-staging sites
1122
+ * @nullable
1123
+ */
1124
+ export declare type UserHosting200RowsItemUsed = {
1125
+ /**
1126
+ * Disk usage in bytes
1127
+ * @nullable
1128
+ */
1129
+ disk_limit_gib?: number | null;
1130
+ /**
1131
+ * Disk usage in bytes
1132
+ * @nullable
1133
+ */
1134
+ disk_usage?: number | null;
1111
1135
  /**
1112
1136
  * Total number of sites
1113
1137
  * @nullable
@@ -1133,7 +1157,7 @@ export declare type UserHostings200RowsItemUsed = {
1133
1157
  * Remote limits for the account
1134
1158
  * @nullable
1135
1159
  */
1136
- export declare type UserHostings200RowsItemLimitRemote = {
1160
+ export declare type UserHosting200RowsItemLimitRemote = {
1137
1161
  /**
1138
1162
  * Quota in KB associated with the account
1139
1163
  * @nullable
@@ -1144,7 +1168,7 @@ export declare type UserHostings200RowsItemLimitRemote = {
1144
1168
  * Account limits
1145
1169
  * @nullable
1146
1170
  */
1147
- export declare type UserHostings200RowsItemLimit = {
1171
+ export declare type UserHosting200RowsItemLimit = {
1148
1172
  /**
1149
1173
  * Disk space limit in GiB
1150
1174
  * @nullable
@@ -1161,11 +1185,37 @@ export declare type UserHostings200RowsItemLimit = {
1161
1185
  */
1162
1186
  workers?: number | null;
1163
1187
  } | null;
1188
+ /**
1189
+ * Information from the billing system about this hosting account
1190
+ * @nullable
1191
+ */
1192
+ export declare type UserHosting200RowsItemBilling = {
1193
+ /**
1194
+ * Product auto-renew flag
1195
+ * @nullable
1196
+ */
1197
+ auto_renew_flag?: boolean | null;
1198
+ /**
1199
+ * Product expiration date
1200
+ * @nullable
1201
+ */
1202
+ expiration_date?: string | null;
1203
+ /**
1204
+ * Product code
1205
+ * @nullable
1206
+ */
1207
+ prod_code?: string | null;
1208
+ /**
1209
+ * Product name
1210
+ * @nullable
1211
+ */
1212
+ prod_name?: string | null;
1213
+ } | null;
1164
1214
  /**
1165
1215
  * Region information for the account
1166
1216
  * @nullable
1167
1217
  */
1168
- export declare type UserHostings200RowsItemInfoRegion = {
1218
+ export declare type UserHosting200RowsItemAccountInfoRegion = {
1169
1219
  /**
1170
1220
  * Region description
1171
1221
  * @nullable
@@ -1180,7 +1230,7 @@ export declare type UserHostings200RowsItemInfoRegion = {
1180
1230
  /**
1181
1231
  * Additional information about the account
1182
1232
  */
1183
- export declare type UserHostings200RowsItemInfo = {
1233
+ export declare type UserHosting200RowsItemAccountInfo = {
1184
1234
  /**
1185
1235
  * HAL Account back_reference, used to link to the product instance
1186
1236
  * @nullable
@@ -1250,7 +1300,7 @@ export declare type UserHostings200RowsItemInfo = {
1250
1300
  * Region information for the account
1251
1301
  * @nullable
1252
1302
  */
1253
- region?: UserHostings200RowsItemInfoRegion;
1303
+ region?: UserHosting200RowsItemAccountInfoRegion;
1254
1304
  /**
1255
1305
  * Server ID
1256
1306
  * @nullable
@@ -1297,36 +1347,33 @@ export declare type UserHostings200RowsItemInfo = {
1297
1347
  */
1298
1348
  username?: string | null;
1299
1349
  };
1300
- /**
1301
- * Feature details from HAL account_feature_info_list
1302
- */
1303
- export declare type UserHostings200RowsItem = {
1350
+ export declare type UserHosting200RowsItem = {
1351
+ /** Additional information about the account */
1352
+ account_info?: UserHosting200RowsItemAccountInfo;
1353
+ /** HAL Account back_reference, used to link to the product instance */
1354
+ back_reference?: string;
1304
1355
  /**
1305
- * Product auto-renew flag
1356
+ * Information from the billing system about this hosting account
1306
1357
  * @nullable
1307
1358
  */
1308
- auto_renew_flag?: boolean | null;
1309
- /** HAL Account back_reference, used to link to the product instance */
1310
- back_reference?: string;
1359
+ billing?: UserHosting200RowsItemBilling;
1311
1360
  /**
1312
- * Product expiration date
1361
+ * Feature set name ex: hosting_40s
1313
1362
  * @nullable
1314
1363
  */
1315
- expiration_date?: string | null;
1316
- /** Feature set name ex: hosting_40s */
1317
- feature_set?: string;
1318
- /** Additional information about the account */
1319
- info?: UserHostings200RowsItemInfo;
1364
+ feature_set?: string | null;
1365
+ /** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
1366
+ is_upgradeable?: boolean;
1320
1367
  /**
1321
1368
  * Account limits
1322
1369
  * @nullable
1323
1370
  */
1324
- limit?: UserHostings200RowsItemLimit;
1371
+ limit?: UserHosting200RowsItemLimit;
1325
1372
  /**
1326
1373
  * Remote limits for the account
1327
1374
  * @nullable
1328
1375
  */
1329
- limit_remote?: UserHostings200RowsItemLimitRemote;
1376
+ limit_remote?: UserHosting200RowsItemLimitRemote;
1330
1377
  /**
1331
1378
  * Package name
1332
1379
  * @nullable
@@ -1338,35 +1385,34 @@ export declare type UserHostings200RowsItem = {
1338
1385
  */
1339
1386
  panel?: string | null;
1340
1387
  /**
1341
- * Product code
1342
- * @nullable
1343
- */
1344
- prod_code?: string | null;
1345
- /**
1346
- * Product name
1388
+ * Number of sites
1347
1389
  * @nullable
1348
1390
  */
1349
- prod_name?: string | null;
1391
+ sites?: number | null;
1350
1392
  /**
1351
- * Number of sites
1393
+ * Usage statistics for non-staging sites
1352
1394
  * @nullable
1353
1395
  */
1354
- sites?: number | null;
1396
+ used?: UserHosting200RowsItemUsed;
1355
1397
  /**
1356
- * Usage statistics
1398
+ * Usage statistics for staging sites
1357
1399
  * @nullable
1358
1400
  */
1359
- used?: UserHostings200RowsItemUsed;
1401
+ used_stage?: UserHosting200RowsItemUsedStage;
1360
1402
  };
1361
- export declare type UserHostingsParams = {
1403
+ export declare type UserHostingParams = {
1362
1404
  /**
1363
- * Starting index for pagination (default: 0)
1405
+ * Starting page for pagination (default: 1)
1364
1406
  */
1365
- start?: number;
1407
+ page?: number;
1366
1408
  /**
1367
1409
  * Maximum number of items to return. If not provided, returns all items from start index
1368
1410
  */
1369
1411
  limit?: number;
1412
+ /**
1413
+ * Whether to reach out to remote sources for more granular hosting info
1414
+ */
1415
+ remote?: boolean;
1370
1416
  };
1371
1417
  export declare type SiteAddonWpsolution400 = {
1372
1418
  error?: string;
@@ -1728,6 +1774,8 @@ export declare type ResetSite200 = {
1728
1774
  status: string;
1729
1775
  };
1730
1776
  export declare type ResetSiteBody = {
1777
+ /** Admin email for the site user */
1778
+ admin_email?: string;
1731
1779
  /** Site subtype to morph to */
1732
1780
  subtype?: string;
1733
1781
  /** Site type to morph to */
@@ -1878,6 +1926,22 @@ export declare type SitesPerformanceCachepurgeBody = {
1878
1926
  export declare type SitePendingDomainDelete200 = {
1879
1927
  [key: string]: unknown;
1880
1928
  };
1929
+ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
1930
+ dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
1931
+ timestamp?: number;
1932
+ };
1933
+ export declare type SitesMetricDimensions200Dimensions = {
1934
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1935
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1936
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1937
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1938
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1939
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1940
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1941
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1942
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1943
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1944
+ };
1881
1945
  export declare type SitesMetricDimensions200 = {
1882
1946
  date_end?: string;
1883
1947
  date_start?: string;
@@ -1888,10 +1952,6 @@ export declare type SitesMetricDimensions200 = {
1888
1952
  export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
1889
1953
  [key: string]: number;
1890
1954
  };
1891
- export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
1892
- dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
1893
- timestamp?: number;
1894
- };
1895
1955
  export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
1896
1956
  [key: string]: number;
1897
1957
  };
@@ -1955,18 +2015,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
1955
2015
  dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
1956
2016
  timestamp?: number;
1957
2017
  };
1958
- export declare type SitesMetricDimensions200Dimensions = {
1959
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1960
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1961
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1962
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1963
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1964
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1965
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1966
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1967
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1968
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1969
- };
1970
2018
  export declare type SitesMetricDimensionsParams = {
1971
2019
  start?: string;
1972
2020
  end?: string;
@@ -2959,9 +3007,6 @@ export declare type HostingRedirects200Item = {
2959
3007
  url?: string;
2960
3008
  wildcard?: boolean;
2961
3009
  };
2962
- export declare type ProductLicenseDetails200 = {
2963
- wpsolution?: ProductLicenseDetails200Wpsolution;
2964
- };
2965
3010
  export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
2966
3011
  expirationDate?: string;
2967
3012
  prodInstId?: string;
@@ -2975,6 +3020,9 @@ export declare type ProductLicenseDetails200Wpsolution = {
2975
3020
  creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
2976
3021
  total?: number;
2977
3022
  };
3023
+ export declare type ProductLicenseDetails200 = {
3024
+ wpsolution?: ProductLicenseDetails200Wpsolution;
3025
+ };
2978
3026
  export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
2979
3027
  export declare const ProductLicenseDetailsProductName: {
2980
3028
  readonly wpsolution: "wpsolution";
@@ -3890,6 +3938,14 @@ export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
3890
3938
  */
3891
3939
  val?: string | null;
3892
3940
  };
3941
+ export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
3942
+ action?: FilterAction;
3943
+ /**
3944
+ * The destination for the action (e.g., folder name, email address, script path, etc)
3945
+ * @nullable
3946
+ */
3947
+ dest?: string | null;
3948
+ };
3893
3949
  export declare type HostingEmailFiltersList200FiltersItem = {
3894
3950
  /** Where the email will be forwarded to */
3895
3951
  actions?: HostingEmailFiltersList200FiltersItemActionsItem[];
@@ -3908,14 +3964,6 @@ export declare type HostingEmailFiltersList200 = {
3908
3964
  /** List of filters */
3909
3965
  filters?: HostingEmailFiltersList200FiltersItem[];
3910
3966
  };
3911
- export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
3912
- action?: FilterAction;
3913
- /**
3914
- * The destination for the action (e.g., folder name, email address, script path, etc)
3915
- * @nullable
3916
- */
3917
- dest?: string | null;
3918
- };
3919
3967
  export declare type HostingEmailFiltersListParams = {
3920
3968
  /**
3921
3969
  * The email account address to query filters by
@@ -4092,6 +4140,10 @@ export declare type HostingEmailUpdateBody = {
4092
4140
  /** The password for the email */
4093
4141
  password?: string;
4094
4142
  };
4143
+ export declare type HostingEmailList200 = {
4144
+ /** List of email resources */
4145
+ rows?: HostingEmailList200RowsItem[];
4146
+ };
4095
4147
  /**
4096
4148
  * List of suspensions that affect the entire user account
4097
4149
  * @nullable
@@ -4181,10 +4233,6 @@ export declare type HostingEmailList200RowsItem = {
4181
4233
  */
4182
4234
  utf8_folders?: boolean | null;
4183
4235
  };
4184
- export declare type HostingEmailList200 = {
4185
- /** List of email resources */
4186
- rows?: HostingEmailList200RowsItem[];
4187
- };
4188
4236
  export declare type HostingEmailDelete200 = {
4189
4237
  [key: string]: unknown;
4190
4238
  };
@@ -4773,6 +4821,14 @@ export declare type HostingAdvancedServerStatus200 = {
4773
4821
  export declare type HostingAdvancedServerStatusBody = {
4774
4822
  /** action to be performed */
4775
4823
  action?: string;
4824
+ /** Admin email for the site user */
4825
+ admin_email?: string;
4826
+ /** To skip site installation */
4827
+ skip_site_installation?: boolean;
4828
+ /** Site subtype to be installed during rebuild */
4829
+ subtype?: string;
4830
+ /** Site type to be installed during rebuild */
4831
+ type?: string;
4776
4832
  };
4777
4833
  export declare type HostingAdvancedServer200Ips = {
4778
4834
  other_ips?: string[];
@@ -4880,6 +4936,24 @@ export declare type ActivityLog200 = {
4880
4936
  export declare type ActivityLogParams = {
4881
4937
  days?: number;
4882
4938
  };
4939
+ export declare type HostingAccount200 = {
4940
+ account_id?: string;
4941
+ account_limits?: HostingAccount200AccountLimits;
4942
+ advanced?: boolean;
4943
+ billing?: HostingAccount200Billing;
4944
+ brand?: string;
4945
+ id?: string;
4946
+ panel?: string;
4947
+ plan_key?: string;
4948
+ platform?: string;
4949
+ /** @nullable */
4950
+ resources?: HostingAccount200Resources;
4951
+ /** @nullable */
4952
+ ssh_hostname?: string | null;
4953
+ status?: string;
4954
+ type?: string;
4955
+ username?: string;
4956
+ };
4883
4957
  export declare type HostingAccount200ResourcesWorkers = {
4884
4958
  /** @nullable */
4885
4959
  available?: number | null;
@@ -4905,24 +4979,6 @@ export declare type HostingAccount200Resources = {
4905
4979
  storage?: HostingAccount200ResourcesStorage;
4906
4980
  workers?: HostingAccount200ResourcesWorkers;
4907
4981
  } | null;
4908
- export declare type HostingAccount200 = {
4909
- account_id?: string;
4910
- account_limits?: HostingAccount200AccountLimits;
4911
- advanced?: boolean;
4912
- billing?: HostingAccount200Billing;
4913
- brand?: string;
4914
- id?: string;
4915
- panel?: string;
4916
- plan_key?: string;
4917
- platform?: string;
4918
- /** @nullable */
4919
- resources?: HostingAccount200Resources;
4920
- /** @nullable */
4921
- ssh_hostname?: string | null;
4922
- status?: string;
4923
- type?: string;
4924
- username?: string;
4925
- };
4926
4982
  export declare type HostingAccount200ResourcesStagingWorkers = {
4927
4983
  /** @nullable */
4928
4984
  available?: number | null;
@@ -4999,6 +5055,12 @@ export declare type AccessLogsParams = {
4999
5055
  */
5000
5056
  type?: AccessLogsType;
5001
5057
  };
5058
+ export declare type DomainsUnsetEntriUsed200 = {
5059
+ [key: string]: unknown;
5060
+ };
5061
+ export declare type DomainsSetEntriUsed200 = {
5062
+ [key: string]: unknown;
5063
+ };
5002
5064
  export declare type DomainEmailDeliverability200SpfCheck = {
5003
5065
  /** SPF record configured on the hosting server */
5004
5066
  box_spf?: string;