@newfold/huapi-js 2.1748.0 → 2.1750.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.1748.0",
13
+ "version": "2.1750.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, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, 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, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, 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, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, 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, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
5
5
  declare type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
@@ -1799,6 +1799,38 @@ export declare const useHostingAdvancedDomainServices: <TError = AxiosError<unkn
1799
1799
  hostingId: string;
1800
1800
  data: HostingAdvancedDomainServicesBody;
1801
1801
  }, TContext>;
1802
+ /**
1803
+ * Returns a list of images avaiable to rebuild a server with
1804
+ * @summary list of server images
1805
+ */
1806
+ export declare const hostingAdvancedImages: (hostingId: string, params?: HostingAdvancedImagesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedImages200>>;
1807
+ export declare const getHostingAdvancedImagesQueryKey: (hostingId: string, params?: HostingAdvancedImagesParams) => readonly [`/v1/hosting/${string}/advanced/images`, ...HostingAdvancedImagesParams[]];
1808
+ export declare const getHostingAdvancedImagesQueryOptions: <TData = AxiosResponse<HostingAdvancedImages200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingAdvancedImagesParams, options?: {
1809
+ query?: Partial<UseQueryOptions<AxiosResponse<HostingAdvancedImages200, any>, TError, TData, QueryKey>> | undefined;
1810
+ axios?: AxiosRequestConfig<any> | undefined;
1811
+ } | undefined) => UseQueryOptions<AxiosResponse<HostingAdvancedImages200, any>, TError, TData, QueryKey> & {
1812
+ queryKey: QueryKey;
1813
+ };
1814
+ export declare type HostingAdvancedImagesQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedImages>>>;
1815
+ export declare type HostingAdvancedImagesQueryError = AxiosError<unknown>;
1816
+ export declare function useHostingAdvancedImages<TData = Awaited<ReturnType<typeof hostingAdvancedImages>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | HostingAdvancedImagesParams, options: {
1817
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>, 'initialData'>;
1818
+ axios?: AxiosRequestConfig;
1819
+ }): DefinedUseQueryResult<TData, TError> & {
1820
+ queryKey: QueryKey;
1821
+ };
1822
+ export declare function useHostingAdvancedImages<TData = Awaited<ReturnType<typeof hostingAdvancedImages>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingAdvancedImagesParams, options?: {
1823
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>, 'initialData'>;
1824
+ axios?: AxiosRequestConfig;
1825
+ }): UseQueryResult<TData, TError> & {
1826
+ queryKey: QueryKey;
1827
+ };
1828
+ export declare function useHostingAdvancedImages<TData = Awaited<ReturnType<typeof hostingAdvancedImages>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingAdvancedImagesParams, options?: {
1829
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>>;
1830
+ axios?: AxiosRequestConfig;
1831
+ }): UseQueryResult<TData, TError> & {
1832
+ queryKey: QueryKey;
1833
+ };
1802
1834
  /**
1803
1835
  * Returns the hosting server info
1804
1836
  * @summary server status/info
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.1748.0
6
+ * OpenAPI spec version: 1.1750.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -1423,6 +1423,32 @@ export const useHostingAdvancedDomainServices = (options) => {
1423
1423
  const mutationOptions = getHostingAdvancedDomainServicesMutationOptions(options);
1424
1424
  return useMutation(mutationOptions);
1425
1425
  };
1426
+ /**
1427
+ * Returns a list of images avaiable to rebuild a server with
1428
+ * @summary list of server images
1429
+ */
1430
+ export const hostingAdvancedImages = (hostingId, params, options) => {
1431
+ return axios.get(`/v1/hosting/${hostingId}/advanced/images`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
1432
+ };
1433
+ export const getHostingAdvancedImagesQueryKey = (hostingId, params) => {
1434
+ return [`/v1/hosting/${hostingId}/advanced/images`, ...(params ? [params] : [])];
1435
+ };
1436
+ export const getHostingAdvancedImagesQueryOptions = (hostingId, params, options) => {
1437
+ var _a;
1438
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1439
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingAdvancedImagesQueryKey(hostingId, params);
1440
+ const queryFn = ({ signal }) => hostingAdvancedImages(hostingId, params, Object.assign({ signal }, axiosOptions));
1441
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
1442
+ };
1443
+ /**
1444
+ * @summary list of server images
1445
+ */
1446
+ export function useHostingAdvancedImages(hostingId, params, options) {
1447
+ const queryOptions = getHostingAdvancedImagesQueryOptions(hostingId, params, options);
1448
+ const query = useQuery(queryOptions);
1449
+ query.queryKey = queryOptions.queryKey;
1450
+ return query;
1451
+ }
1426
1452
  /**
1427
1453
  * Returns the hosting server info
1428
1454
  * @summary server status/info
@@ -1,5 +1,5 @@
1
1
  import { http } from 'msw';
2
- import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, 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, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
2
+ import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, 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, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
3
3
  export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
4
4
  export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
5
5
  export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
@@ -58,6 +58,7 @@ export declare const getHostingAdvancedDnsResponseMock: (overrideResponse?: Part
58
58
  export declare const getHostingAdvancedDnsUpdateResponseMock: (overrideResponse?: Partial<HostingAdvancedDnsUpdate200>) => HostingAdvancedDnsUpdate200;
59
59
  export declare const getHostingAdvancedDomainServicesCheckResponseMock: (overrideResponse?: Partial<HostingAdvancedDomainServicesCheck200>) => HostingAdvancedDomainServicesCheck200;
60
60
  export declare const getHostingAdvancedDomainServicesResponseMock: (overrideResponse?: Partial<HostingAdvancedDomainServices200>) => HostingAdvancedDomainServices200;
61
+ export declare const getHostingAdvancedImagesResponseMock: (overrideResponse?: Partial<HostingAdvancedImages200>) => HostingAdvancedImages200;
61
62
  export declare const getHostingAdvancedServerResponseMock: (overrideResponse?: Partial<HostingAdvancedServer200>) => HostingAdvancedServer200;
62
63
  export declare const getHostingAdvancedServerStatusResponseMock: (overrideResponse?: Partial<HostingAdvancedServerStatus200>) => HostingAdvancedServerStatus200;
63
64
  export declare const getHostingAdvancedPasswordResponseMock: (overrideResponse?: Partial<HostingAdvancedPassword200>) => HostingAdvancedPassword200;
@@ -338,6 +339,7 @@ export declare const getHostingAdvancedDnsMockHandler: (overrideResponse?: Hosti
338
339
  export declare const getHostingAdvancedDnsUpdateMockHandler: (overrideResponse?: HostingAdvancedDnsUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingAdvancedDnsUpdate200> | HostingAdvancedDnsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
339
340
  export declare const getHostingAdvancedDomainServicesCheckMockHandler: (overrideResponse?: HostingAdvancedDomainServicesCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedDomainServicesCheck200> | HostingAdvancedDomainServicesCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
340
341
  export declare const getHostingAdvancedDomainServicesMockHandler: (overrideResponse?: HostingAdvancedDomainServices200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingAdvancedDomainServices200> | HostingAdvancedDomainServices200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
342
+ export declare const getHostingAdvancedImagesMockHandler: (overrideResponse?: HostingAdvancedImages200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedImages200> | HostingAdvancedImages200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
341
343
  export declare const getHostingAdvancedServerMockHandler: (overrideResponse?: HostingAdvancedServer200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedServer200> | HostingAdvancedServer200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
342
344
  export declare const getHostingAdvancedServerStatusMockHandler: (overrideResponse?: HostingAdvancedServerStatus200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingAdvancedServerStatus200> | HostingAdvancedServerStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
343
345
  export declare const getHostingAdvancedPasswordMockHandler: (overrideResponse?: HostingAdvancedPassword200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingAdvancedPassword200> | HostingAdvancedPassword200) | 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.1748.0
7
+ * OpenAPI spec version: 1.1750.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -60,7 +60,7 @@ export const getDomainsUnsetEntriUsedResponseMock = (overrideResponse = {}) => (
60
60
  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));
61
61
  export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
62
62
  export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
63
- export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_limits: faker.helpers.arrayElement([{ email_accounts: 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]) }, undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), subbrand: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ staging: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
63
+ export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_limits: faker.helpers.arrayElement([{ email_accounts: 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]) }, undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), subbrand: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ staging: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), server_status: 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.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
64
64
  export const getActivityLogResponseMock = (overrideResponse = {}) => (Object.assign({ activity: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), data: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_entry: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), event: faker.helpers.arrayElement([faker.word.sample(), undefined]), site_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tenant_id: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
65
65
  export const getHostingAddonsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), meta: faker.helpers.arrayElement([{
66
66
  [faker.string.alphanumeric(5)]: faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined }), faker.datatype.boolean()])
@@ -69,6 +69,7 @@ export const getHostingAdvancedDnsResponseMock = (overrideResponse = {}) => (Obj
69
69
  export const getHostingAdvancedDnsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
70
70
  export const getHostingAdvancedDomainServicesCheckResponseMock = (overrideResponse = {}) => (Object.assign({ configure_domain_services: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), managed_cpanel_user_exists: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
71
71
  export const getHostingAdvancedDomainServicesResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
72
+ export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
72
73
  export const getHostingAdvancedServerResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([{ other_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), primary_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
73
74
  export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
74
75
  export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
@@ -895,6 +896,16 @@ export const getHostingAdvancedDomainServicesMockHandler = (overrideResponse) =>
895
896
  });
896
897
  }));
897
898
  };
899
+ export const getHostingAdvancedImagesMockHandler = (overrideResponse) => {
900
+ return http.get('*/v1/hosting/:hostingId/advanced/images', (info) => __awaiter(void 0, void 0, void 0, function* () {
901
+ yield delay(0);
902
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
903
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
904
+ : getHostingAdvancedImagesResponseMock()), { status: 200,
905
+ headers: { 'Content-Type': 'application/json' }
906
+ });
907
+ }));
908
+ };
898
909
  export const getHostingAdvancedServerMockHandler = (overrideResponse) => {
899
910
  return http.get('*/v1/hosting/:hostingId/advanced/server', (info) => __awaiter(void 0, void 0, void 0, function* () {
900
911
  yield delay(0);
@@ -3194,6 +3205,7 @@ export const getHostingUAPIMock = () => [
3194
3205
  getHostingAdvancedDnsUpdateMockHandler(),
3195
3206
  getHostingAdvancedDomainServicesCheckMockHandler(),
3196
3207
  getHostingAdvancedDomainServicesMockHandler(),
3208
+ getHostingAdvancedImagesMockHandler(),
3197
3209
  getHostingAdvancedServerMockHandler(),
3198
3210
  getHostingAdvancedServerStatusMockHandler(),
3199
3211
  getHostingAdvancedPasswordMockHandler(),
@@ -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.1748.0
6
+ * OpenAPI spec version: 1.1750.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -265,6 +265,12 @@ export declare type SiteMalwareStatusV2200 = {
265
265
  */
266
266
  scanner_state?: string | null;
267
267
  };
268
+ export declare type SitesDomainsV2200 = {
269
+ domains: SitesDomainsV2200DomainsItem[];
270
+ limit?: number;
271
+ page?: number;
272
+ total?: number;
273
+ };
268
274
  /**
269
275
  * Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
270
276
  * @nullable
@@ -401,26 +407,9 @@ export declare type SitesDomainsV2200DomainsItem = {
401
407
  */
402
408
  used_entri?: number | null;
403
409
  };
404
- export declare type SitesDomainsV2200 = {
405
- domains: SitesDomainsV2200DomainsItem[];
406
- limit?: number;
407
- page?: number;
408
- total?: number;
409
- };
410
410
  export declare type SitesDomainsV2Params = {
411
411
  scan?: boolean;
412
412
  };
413
- export declare type SitesListV2200 = {
414
- items?: SitesListV2200ItemsItem[];
415
- /** page size */
416
- limit?: number;
417
- /** current page number */
418
- page?: number;
419
- /** total number of pages */
420
- pages?: number;
421
- /** total number of sites returned */
422
- total?: number;
423
- };
424
413
  /**
425
414
  * @nullable
426
415
  */
@@ -583,6 +572,17 @@ export declare type SitesListV2200ItemsItem = {
583
572
  */
584
573
  version_ptr?: string | null;
585
574
  };
575
+ export declare type SitesListV2200 = {
576
+ items?: SitesListV2200ItemsItem[];
577
+ /** page size */
578
+ limit?: number;
579
+ /** current page number */
580
+ page?: number;
581
+ /** total number of pages */
582
+ pages?: number;
583
+ /** total number of sites returned */
584
+ total?: number;
585
+ };
586
586
  export declare type SshKeyV2200 = {
587
587
  deleted?: number;
588
588
  key_name?: string;
@@ -1234,6 +1234,70 @@ export declare type UserHostingOverviewParams = {
1234
1234
  */
1235
1235
  limit?: number;
1236
1236
  };
1237
+ export declare type UserHosting200RowsItem = {
1238
+ /** Additional information about the account */
1239
+ account_info?: UserHosting200RowsItemAccountInfo;
1240
+ /** HAL Account back_reference, used to link to the product instance */
1241
+ back_reference?: string;
1242
+ /**
1243
+ * Information from the billing system about this hosting account
1244
+ * @nullable
1245
+ */
1246
+ billing?: UserHosting200RowsItemBilling;
1247
+ /**
1248
+ * Capability sites associated with the account
1249
+ * @nullable
1250
+ */
1251
+ capability_sites?: string | null;
1252
+ /**
1253
+ * Feature set name ex: hosting_40s
1254
+ * @nullable
1255
+ */
1256
+ feature_set?: string | null;
1257
+ /** Whether the product associated with this hosting account has panel mail (True) or not (False) */
1258
+ has_panel_mail?: boolean;
1259
+ /** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
1260
+ is_upgradeable?: boolean;
1261
+ /**
1262
+ * Account limits
1263
+ * @nullable
1264
+ */
1265
+ limit?: UserHosting200RowsItemLimit;
1266
+ /**
1267
+ * Remote limits for the account
1268
+ * @nullable
1269
+ */
1270
+ limit_remote?: UserHosting200RowsItemLimitRemote;
1271
+ /**
1272
+ * Package name
1273
+ * @nullable
1274
+ */
1275
+ package?: string | null;
1276
+ /**
1277
+ * Control panel type
1278
+ * @nullable
1279
+ */
1280
+ panel?: string | null;
1281
+ /**
1282
+ * Number of sites
1283
+ * @nullable
1284
+ */
1285
+ sites?: number | null;
1286
+ /**
1287
+ * Usage statistics for non-staging sites
1288
+ * @nullable
1289
+ */
1290
+ used?: UserHosting200RowsItemUsed;
1291
+ /**
1292
+ * Usage statistics for staging sites
1293
+ * @nullable
1294
+ */
1295
+ used_stage?: UserHosting200RowsItemUsedStage;
1296
+ };
1297
+ export declare type UserHosting200 = {
1298
+ /** Information for the paginated hosting accounts */
1299
+ rows?: UserHosting200RowsItem[];
1300
+ };
1237
1301
  /**
1238
1302
  * Usage statistics for staging sites
1239
1303
  * @nullable
@@ -1354,70 +1418,6 @@ export declare type UserHosting200RowsItemBilling = {
1354
1418
  */
1355
1419
  prod_name?: string | null;
1356
1420
  } | null;
1357
- export declare type UserHosting200RowsItem = {
1358
- /** Additional information about the account */
1359
- account_info?: UserHosting200RowsItemAccountInfo;
1360
- /** HAL Account back_reference, used to link to the product instance */
1361
- back_reference?: string;
1362
- /**
1363
- * Information from the billing system about this hosting account
1364
- * @nullable
1365
- */
1366
- billing?: UserHosting200RowsItemBilling;
1367
- /**
1368
- * Capability sites associated with the account
1369
- * @nullable
1370
- */
1371
- capability_sites?: string | null;
1372
- /**
1373
- * Feature set name ex: hosting_40s
1374
- * @nullable
1375
- */
1376
- feature_set?: string | null;
1377
- /** Whether the product associated with this hosting account has panel mail (True) or not (False) */
1378
- has_panel_mail?: boolean;
1379
- /** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
1380
- is_upgradeable?: boolean;
1381
- /**
1382
- * Account limits
1383
- * @nullable
1384
- */
1385
- limit?: UserHosting200RowsItemLimit;
1386
- /**
1387
- * Remote limits for the account
1388
- * @nullable
1389
- */
1390
- limit_remote?: UserHosting200RowsItemLimitRemote;
1391
- /**
1392
- * Package name
1393
- * @nullable
1394
- */
1395
- package?: string | null;
1396
- /**
1397
- * Control panel type
1398
- * @nullable
1399
- */
1400
- panel?: string | null;
1401
- /**
1402
- * Number of sites
1403
- * @nullable
1404
- */
1405
- sites?: number | null;
1406
- /**
1407
- * Usage statistics for non-staging sites
1408
- * @nullable
1409
- */
1410
- used?: UserHosting200RowsItemUsed;
1411
- /**
1412
- * Usage statistics for staging sites
1413
- * @nullable
1414
- */
1415
- used_stage?: UserHosting200RowsItemUsedStage;
1416
- };
1417
- export declare type UserHosting200 = {
1418
- /** Information for the paginated hosting accounts */
1419
- rows?: UserHosting200RowsItem[];
1420
- };
1421
1421
  /**
1422
1422
  * Region information for the account
1423
1423
  * @nullable
@@ -2134,6 +2134,18 @@ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
2134
2134
  dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
2135
2135
  timestamp?: number;
2136
2136
  };
2137
+ export declare type SitesMetricDimensions200Dimensions = {
2138
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
2139
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
2140
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
2141
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
2142
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
2143
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
2144
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
2145
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
2146
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
2147
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
2148
+ };
2137
2149
  export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
2138
2150
  [key: string]: number;
2139
2151
  };
@@ -2183,18 +2195,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
2183
2195
  dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
2184
2196
  timestamp?: number;
2185
2197
  };
2186
- export declare type SitesMetricDimensions200Dimensions = {
2187
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
2188
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
2189
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
2190
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
2191
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
2192
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
2193
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
2194
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
2195
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
2196
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
2197
- };
2198
2198
  export declare type SitesMetricDimensionsParams = {
2199
2199
  start?: string;
2200
2200
  end?: string;
@@ -5004,7 +5004,9 @@ export declare type HostingAdvancedServerStatusBody = {
5004
5004
  action?: string;
5005
5005
  /** Admin email for the site user */
5006
5006
  admin_email?: string;
5007
- /** To skip site installation */
5007
+ /** ID of the image to rebuild with - only applicable for the 'rebuild' action */
5008
+ image_id?: string;
5009
+ /** To skip site installation - DEPRECATED do not use */
5008
5010
  skip_site_installation?: boolean;
5009
5011
  /** Site subtype to be installed during rebuild */
5010
5012
  subtype?: string;
@@ -5032,6 +5034,55 @@ export declare type HostingAdvancedServer200 = {
5032
5034
  uptime?: string;
5033
5035
  uptime_seconds?: number;
5034
5036
  };
5037
+ export declare type HostingAdvancedImages200ImagesItem = {
5038
+ /** The image architecture type */
5039
+ arch_name?: string;
5040
+ /**
5041
+ * Whether this is the image currently in use by the hosting addon
5042
+ * @nullable
5043
+ */
5044
+ current?: number | null;
5045
+ /** The date and time the image was added */
5046
+ date_added?: string;
5047
+ /**
5048
+ * Whether this image is the default for docker site installations; If this = 1, it is the image that will be used when installing a Docker app
5049
+ * @nullable
5050
+ */
5051
+ docker_default?: string | null;
5052
+ /** The id of the image */
5053
+ id?: string;
5054
+ /**
5055
+ * Whether this is an LTS (long term support) image - Ubuntu only
5056
+ * @nullable
5057
+ */
5058
+ lts?: number | null;
5059
+ /** The full image name */
5060
+ name?: string;
5061
+ /** The name of the operating system included on the image */
5062
+ os_name?: string;
5063
+ /** The version of the operating system included on the image */
5064
+ os_version?: string;
5065
+ /** The software included on the image */
5066
+ software?: string;
5067
+ /**
5068
+ * Whether this image can be rebuilt to without a docker site
5069
+ * @nullable
5070
+ */
5071
+ user_image?: number | null;
5072
+ };
5073
+ export declare type HostingAdvancedImages200 = {
5074
+ images: HostingAdvancedImages200ImagesItem[];
5075
+ };
5076
+ export declare type HostingAdvancedImagesParams = {
5077
+ /**
5078
+ * Starting page for pagination
5079
+ */
5080
+ page?: number;
5081
+ /**
5082
+ * Maximum number of items to return. If not provided, returns all items from start index
5083
+ */
5084
+ limit?: number;
5085
+ };
5035
5086
  export declare type HostingAdvancedDomainServices200 = {
5036
5087
  success?: number;
5037
5088
  };
@@ -5130,6 +5181,8 @@ export declare type HostingAccount200 = {
5130
5181
  /** @nullable */
5131
5182
  resources?: HostingAccount200Resources;
5132
5183
  /** @nullable */
5184
+ server_status?: string | null;
5185
+ /** @nullable */
5133
5186
  ssh_hostname?: string | null;
5134
5187
  status?: string;
5135
5188
  type?: string;